Skip to content

Commit ef4c084

Browse files
committed
Add badges to readme
1 parent f39ad13 commit ef4c084

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed

.gitattributes

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
*.st linguist-language=Smalltalk

README.md

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,11 @@
11
# ObjectPool
2+
3+
[![GitHub release](https://img.shields.io/github/release/pharo-ide/ObjectPool.svg)](https://github.com/pharo-ide/ObjectPool/releases/latest)
4+
[![Build Status](https://github.com/pharo-ide/ObjectPool/workflows/Build/badge.svg?branch=master)](https://github.com/pharo-ide/ObjectPool/actions?query=workflow%3ABuild)
5+
[![Coverage Status](https://codecov.io/github/pharo-ide/ObjectPool/coverage.svg?branch=master)](https://codecov.io/gh/pharo-ide/ObjectPool/branch/master)
6+
[![Pharo 7.0](https://img.shields.io/badge/Pharo-7.0-informational)](https://pharo.org)
7+
[![Pharo 8.0](https://img.shields.io/badge/Pharo-8.0-informational)](https://pharo.org)
8+
29
Object Pool offers easy way to build pools for objects. One common situation
310
could be pooling database connections. This library was created for supporting pooling
411
of GlorpDBX database connections. However GlorpDBX related code is different
@@ -19,11 +26,11 @@ OPBasicPool new
1926
To get new collection from the pool:
2027
```Smalltalk
2128
pool withPooled: [:o| "Do something"].
22-
```
29+
```
2330
To also clear collections when they are returned add passivator
2431
```Smalltalk
2532
pool passivator:[:o|o removeAll].
26-
```
33+
```
2734
Or to do that before borrow add activator:
2835
```Smalltalk
2936
pool activator:[:o|o removeAll].
@@ -48,4 +55,3 @@ spec
4855
baseline: 'ObjectPool'
4956
with: [ spec repository: 'github://pharo-ide/ObjectPool:v1.0.0' ]
5057
```
51-

0 commit comments

Comments
 (0)