locker 0.3.0 → 0.3.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
2
  SHA1:
3
- metadata.gz: 8d4fe6495ead44c7d486b9b92e2e3a1e426f544c
4
- data.tar.gz: 992771712a5be9b554ca67b55c89f7817b3dcd63
3
+ metadata.gz: 26ef04b820465aabae3bae6882ce4e26c10903be
4
+ data.tar.gz: da0895652026efb9c039587b23f83a82e5e0f6f6
5
5
  SHA512:
6
- metadata.gz: a8118488900768eb4350649fd1e03b0ad96dcc16777975163f914b46e6b89ba25a226189e8e4ad864f4b60197d7adccd709402c04384b5ee1885771f455e63c7
7
- data.tar.gz: b225d2c0d59c66ceaf30a194e76b4a58606bac879adf83e74b85cd6f60561630f1def4ae9fdd6c47f5dbc67596356f81909dca3b7d9c761fd2d13ed60f6144b6
6
+ metadata.gz: e22f69322a8b8a22ec6c05a011a2a2824aede763357f673f34e08dc6d43584c103b24ac780f1df56d812814ce3768c2aa2c2b098fc2014f9639ec65d6852da4f
7
+ data.tar.gz: 0ebb808afb8b0e6442c8b9f7ad3360bf9771e41a26f4156cc3b8973a21ce735d4be62edacabed4cb52d035972f4e69a0e6360534eae9314855f8f488e3b6cd9f
@@ -1,8 +1,10 @@
1
1
  language: ruby
2
2
  gemfile:
3
- - gemfiles/rails3.gemfile
3
+ - Gemfile_rails_3
4
+ - Gemfile_rails_4
4
5
  rvm:
5
- - 2.1.5
6
- - 2.2.1
7
- - jruby-19mode
6
+ - ruby-2.1.8
7
+ - ruby-2.2.4
8
+ - ruby-2.3.0
9
+ - jruby-9.0.4.0
8
10
  script: bundle exec rspec
data/Gemfile CHANGED
@@ -3,6 +3,13 @@ source "https://rubygems.org"
3
3
  gem "activerecord", ">=3.2", "<5"
4
4
 
5
5
  group :development, :test do
6
- gem "pg"
6
+ platform :ruby do
7
+ gem "pg"
8
+ end
9
+
10
+ platform :jruby do
11
+ gem 'activerecord-jdbcpostgresql-adapter'
12
+ end
13
+
7
14
  gem "rspec", "~> 3.2.0"
8
15
  end
@@ -0,0 +1,15 @@
1
+ source "https://rubygems.org"
2
+
3
+ gem "activerecord", ">=3.2", "<4"
4
+
5
+ group :development, :test do
6
+ platform :ruby do
7
+ gem "pg"
8
+ end
9
+
10
+ platform :jruby do
11
+ gem 'activerecord-jdbcpostgresql-adapter'
12
+ end
13
+
14
+ gem "rspec", "~> 3.2.0"
15
+ end
@@ -0,0 +1,15 @@
1
+ source "https://rubygems.org"
2
+
3
+ gem "activerecord", ">=4", "<5"
4
+
5
+ group :development, :test do
6
+ platform :ruby do
7
+ gem "pg"
8
+ end
9
+
10
+ platform :jruby do
11
+ gem 'activerecord-jdbcpostgresql-adapter'
12
+ end
13
+
14
+ gem "rspec", "~> 3.2.0"
15
+ end
@@ -58,9 +58,10 @@ class Locker
58
58
  @locked = false
59
59
  # Using a mutex to synchronize so that we're sure we're not
60
60
  # executing a query when we kill the thread.
61
- mutex.synchronize{}
62
- if checker.alive?
63
- checker.exit rescue nil
61
+ mutex.synchronize do
62
+ if checker.alive?
63
+ checker.exit rescue nil
64
+ end
64
65
  end
65
66
  end
66
67
  true
@@ -1,3 +1,3 @@
1
1
  class Locker
2
- VERSION = "0.3.0"
2
+ VERSION = "0.3.1"
3
3
  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.3.0
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nathan Sutton
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2015-04-03 00:00:00.000000000 Z
12
+ date: 2016-02-11 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: activerecord
@@ -74,10 +74,11 @@ files:
74
74
  - ".travis.yml"
75
75
  - CHANGELOG.md
76
76
  - Gemfile
77
+ - Gemfile_rails_3
78
+ - Gemfile_rails_4
77
79
  - LICENSE
78
80
  - README.md
79
81
  - Rakefile
80
- - gemfiles/rails3.gemfile
81
82
  - generators/locker/USAGE
82
83
  - generators/locker/locker_generator.rb
83
84
  - generators/locker/templates/migration.rb
@@ -1,15 +0,0 @@
1
- source "https://rubygems.org"
2
-
3
- gem "activerecord", ">=3.2", "<4"
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