sequel-pg-locker 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +28 -1
- data/lib/sequel-pg-locker/version.rb +1 -1
- metadata +1 -1
data/README.md
CHANGED
@@ -2,7 +2,9 @@
|
|
2
2
|
|
3
3
|
![](https://github.com/dylanegan/sequel-pg-locker/raw/master/sequel-pg-locker.jpg)
|
4
4
|
|
5
|
-
A simple way, using PostgreSQL, to has [semaphores](http://en.wikipedia.org/wiki/Semaphore_(programming)).
|
5
|
+
A simple way, using PostgreSQL, to has [semaphores](http://en.wikipedia.org/wiki/Semaphore_(programming\)).
|
6
|
+
|
7
|
+
Pulled from code by [Mark Fine](https://github.com/mfine).
|
6
8
|
|
7
9
|
## Usage
|
8
10
|
|
@@ -25,3 +27,28 @@ A simple way, using PostgreSQL, to has [semaphores](http://en.wikipedia.org/wiki
|
|
25
27
|
1.9.3-p0 :004 > Sequel::PG::Locker.lock(12346)
|
26
28
|
=> true
|
27
29
|
```
|
30
|
+
|
31
|
+
## License
|
32
|
+
|
33
|
+
The MIT License (MIT)
|
34
|
+
|
35
|
+
Copyright © Heroku 2012
|
36
|
+
|
37
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
38
|
+
a copy of this software and associated documentation files (the
|
39
|
+
"Software"), to deal in the Software without restriction, including
|
40
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
41
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
42
|
+
permit persons to whom the Software is furnished to do so, subject to
|
43
|
+
the following conditions:
|
44
|
+
|
45
|
+
The above copyright notice and this permission notice shall be
|
46
|
+
included in all copies or substantial portions of the Software.
|
47
|
+
|
48
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
49
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
50
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
51
|
+
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
|
52
|
+
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
53
|
+
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
54
|
+
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|