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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- data.tar.gz: 5de726ed22ab717d6b7d4c46b78f05ce2d1ffe80
4
- metadata.gz: 1c082e3e46be1848f8ebaad6a48f9fd640fda707
5
2
  SHA512:
6
- data.tar.gz: 1500e4acd3c15fb9d864bbdbdb30b1fd6d92808d63fe1acd904046ed17f089553706939a54adb7723334eca23e1c298eb7ac66708308de56c0ef82fc5dc372de
7
- metadata.gz: 91f9f3529ffe477582aed59b861a446134b055e4e293d40daf39596f6ae6c1e2fa5d03209a7145c00126f721f9deb11704bdf7a5ffbc4f4fbe341dacfc62d18f
3
+ metadata.gz: b1f742b2a4f11f79b4f47ba505a8f08bc0014932806e1af33e267a580acdcae3583641ff4ed00d7ce627680ab384c3bfa044a3eabddcaf0740f631c2ed93893b
4
+ data.tar.gz: 093dfdf74134fd108e7dd9450b37f80544678ab3662bcb75fd25bc54899d5cafad2d11075f7df64253fab6fae0ef166eeaa1988547c9c118ddba1dfde2e65e30
5
+ SHA1:
6
+ metadata.gz: 4d31db0d4478e7101d795093e417f9189b8ceaf1
7
+ data.tar.gz: b92edff7f04603bfca7b4c6a87be37d3a6f9250a
data/.travis.yml CHANGED
@@ -1,6 +1,5 @@
1
1
  language: ruby
2
2
  gemfile:
3
- - gemfiles/rails2.gemfile
4
3
  - gemfiles/rails3.gemfile
5
4
  rvm:
6
5
  - 1.8.7
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.2.1
4
+
5
+ [Full Changelog](http://github.com/zencoder/locker/compare/v0.2.0...v0.2.1)
6
+
7
+ Enhancements:
8
+
9
+ * Removed support for rails 2.
10
+
3
11
  ## 0.2.0
4
12
 
5
13
  [Full Changelog](http://github.com/zencoder/locker/compare/v0.1.0...v0.2.0)
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.3.14) gem.
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
@@ -1,3 +1,3 @@
1
1
  class Locker
2
- VERSION = "0.2.0"
2
+ VERSION = "0.2.1"
3
3
  end
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", ">=2.3.14"
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.0
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: 2.3.14
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
@@ -1,15 +0,0 @@
1
- source "https://rubygems.org"
2
-
3
- gem "activerecord", ">=2.3.14", "<3"
4
-
5
- platforms :jruby do
6
- gem 'activerecord-jdbcpostgresql-adapter'
7
- end
8
-
9
- platforms :ruby do
10
- gem "pg"
11
- end
12
-
13
- group :development, :test do
14
- gem "rspec"
15
- end