active_record_mutex 2.2.0 → 2.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/VERSION +1 -1
- data/active_record_mutex.gemspec +2 -2
- data/lib/active_record/database_mutex/version.rb +1 -1
- data/lib/active_record/database_mutex.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bae4a0303c87496334623532cdf84ebe36965400
|
4
|
+
data.tar.gz: 3ff1f5b3142972f9e38b35dd6384efdc6141756f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c6925871418c55c987de96784403d27b959af95bd07a5f27b9dbf97f9bcb5cf844875279aff404c9e39173af238dccec9b2a04f6c12513e712465430ac977d46
|
7
|
+
data.tar.gz: ffa0d076563b3e3b86b66528c36b6c1eb95ddc597196036d34db6f5020c4f3d58aa58c430bd70a791a439f9a81d412cd42be81c0b8e0e3533b6b96f8e669a655
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
2.2.
|
1
|
+
2.2.1
|
data/active_record_mutex.gemspec
CHANGED
@@ -1,9 +1,9 @@
|
|
1
1
|
# -*- encoding: utf-8 -*-
|
2
|
-
# stub: active_record_mutex 2.2.
|
2
|
+
# stub: active_record_mutex 2.2.1 ruby lib
|
3
3
|
|
4
4
|
Gem::Specification.new do |s|
|
5
5
|
s.name = "active_record_mutex"
|
6
|
-
s.version = "2.2.
|
6
|
+
s.version = "2.2.1"
|
7
7
|
|
8
8
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
9
9
|
s.require_paths = ["lib"]
|
@@ -34,7 +34,7 @@ module ActiveRecord
|
|
34
34
|
# Returns a mutex instance for this ActiveRecord subclass.
|
35
35
|
def mutex
|
36
36
|
@mutex ||= Implementation.new(
|
37
|
-
:name => [ name, ENV['RAILS_ENV'] ].compact * ?@
|
37
|
+
:name => [ name, defined?(Rails) ? Rails.env : ENV['RAILS_ENV'] ].compact * ?@
|
38
38
|
)
|
39
39
|
end
|
40
40
|
end
|