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 +4 -4
- data/.travis.yml +6 -4
- data/Gemfile +8 -1
- data/Gemfile_rails_3 +15 -0
- data/Gemfile_rails_4 +15 -0
- data/lib/locker/advisory.rb +4 -3
- data/lib/locker/version.rb +1 -1
- metadata +4 -3
- data/gemfiles/rails3.gemfile +0 -15
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 26ef04b820465aabae3bae6882ce4e26c10903be
|
4
|
+
data.tar.gz: da0895652026efb9c039587b23f83a82e5e0f6f6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e22f69322a8b8a22ec6c05a011a2a2824aede763357f673f34e08dc6d43584c103b24ac780f1df56d812814ce3768c2aa2c2b098fc2014f9639ec65d6852da4f
|
7
|
+
data.tar.gz: 0ebb808afb8b0e6442c8b9f7ad3360bf9771e41a26f4156cc3b8973a21ce735d4be62edacabed4cb52d035972f4e69a0e6360534eae9314855f8f488e3b6cd9f
|
data/.travis.yml
CHANGED
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
|
-
|
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
|
data/Gemfile_rails_3
ADDED
data/Gemfile_rails_4
ADDED
data/lib/locker/advisory.rb
CHANGED
@@ -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
|
-
|
63
|
-
|
61
|
+
mutex.synchronize do
|
62
|
+
if checker.alive?
|
63
|
+
checker.exit rescue nil
|
64
|
+
end
|
64
65
|
end
|
65
66
|
end
|
66
67
|
true
|
data/lib/locker/version.rb
CHANGED
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.
|
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:
|
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
|
data/gemfiles/rails3.gemfile
DELETED