locker 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/.travis.yml +0 -1
- data/CHANGELOG.md +8 -0
- data/README.md +1 -9
- data/lib/locker/version.rb +1 -1
- data/locker.gemspec +1 -1
- metadata +5 -3
- data/gemfiles/rails2.gemfile +0 -15
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
SHA1:
|
3
|
-
data.tar.gz: 5de726ed22ab717d6b7d4c46b78f05ce2d1ffe80
|
4
|
-
metadata.gz: 1c082e3e46be1848f8ebaad6a48f9fd640fda707
|
5
2
|
SHA512:
|
6
|
-
|
7
|
-
|
3
|
+
metadata.gz: b1f742b2a4f11f79b4f47ba505a8f08bc0014932806e1af33e267a580acdcae3583641ff4ed00d7ce627680ab384c3bfa044a3eabddcaf0740f631c2ed93893b
|
4
|
+
data.tar.gz: 093dfdf74134fd108e7dd9450b37f80544678ab3662bcb75fd25bc54899d5cafad2d11075f7df64253fab6fae0ef166eeaa1988547c9c118ddba1dfde2e65e30
|
5
|
+
SHA1:
|
6
|
+
metadata.gz: 4d31db0d4478e7101d795093e417f9189b8ceaf1
|
7
|
+
data.tar.gz: b92edff7f04603bfca7b4c6a87be37d3a6f9250a
|
data/.travis.yml
CHANGED
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
@@ -2,14 +2,10 @@
|
|
2
2
|
|
3
3
|
Locker is a locking mechanism for limiting the concurrency of ruby code using the database.
|
4
4
|
|
5
|
-
Locker is dependent on Postgres and the ActiveRecord (>= 2.
|
5
|
+
Locker is dependent on Postgres and the ActiveRecord (>= 3.2.0) gem.
|
6
6
|
|
7
7
|
**NOTE:** In the next minor version (0.1.0), the generated Locker migration has changed to include a bigint field named `sequence` with a default of zero. Since I'm pretty sure Zencoder is the only one using this gem at the moment, I opted to not include an upgrade path. If you really must, however:
|
8
8
|
|
9
|
-
In Rails 2.3.x+:
|
10
|
-
|
11
|
-
script/generate migration add_sequence_to_locks sequence:bigint
|
12
|
-
|
13
9
|
In Rails 3.x+:
|
14
10
|
|
15
11
|
script/rails generate migration add_sequence_to_locks sequence:bigint
|
@@ -111,10 +107,6 @@ This gem includes generators for Rails 3.0+:
|
|
111
107
|
|
112
108
|
`script/rails generate locker [ModelName]`
|
113
109
|
|
114
|
-
In Rails 2.3.x+:
|
115
|
-
|
116
|
-
`script/generate locker [ModelName]`
|
117
|
-
|
118
110
|
The 'ModelName' defaults to 'Lock' if not specified. This will generate the Lock model and its migration.
|
119
111
|
|
120
112
|
## Advanced Usage
|
data/lib/locker/version.rb
CHANGED
data/locker.gemspec
CHANGED
@@ -16,7 +16,7 @@ Gem::Specification.new do |s|
|
|
16
16
|
s.test_files = `git ls-files -- spec/*`.split("\n")
|
17
17
|
s.require_paths = ["lib"]
|
18
18
|
|
19
|
-
s.add_dependency "activerecord", ">=
|
19
|
+
s.add_dependency "activerecord", ">=3.2", "<4"
|
20
20
|
s.add_development_dependency "pg"
|
21
21
|
s.add_development_dependency "rspec"
|
22
22
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: locker
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Nathan Sutton
|
@@ -19,7 +19,10 @@ dependencies:
|
|
19
19
|
requirements:
|
20
20
|
- - ">="
|
21
21
|
- !ruby/object:Gem::Version
|
22
|
-
version:
|
22
|
+
version: "3.2"
|
23
|
+
- - <
|
24
|
+
- !ruby/object:Gem::Version
|
25
|
+
version: "4"
|
23
26
|
type: :runtime
|
24
27
|
version_requirements: *id001
|
25
28
|
- !ruby/object:Gem::Dependency
|
@@ -59,7 +62,6 @@ files:
|
|
59
62
|
- LICENSE
|
60
63
|
- README.md
|
61
64
|
- Rakefile
|
62
|
-
- gemfiles/rails2.gemfile
|
63
65
|
- gemfiles/rails3.gemfile
|
64
66
|
- generators/locker/USAGE
|
65
67
|
- generators/locker/locker_generator.rb
|
data/gemfiles/rails2.gemfile
DELETED