active_record_mutex 2.2.0 → 2.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
2
  SHA1:
3
- metadata.gz: 57edd5b2783fbaca9577d0d8844995db0da452af
4
- data.tar.gz: f10aceb1edeb6b41e44fdab8d64121bc9b409bfc
3
+ metadata.gz: bae4a0303c87496334623532cdf84ebe36965400
4
+ data.tar.gz: 3ff1f5b3142972f9e38b35dd6384efdc6141756f
5
5
  SHA512:
6
- metadata.gz: d427e2a1befb62f430afd4f2dcf648f797ea8782147161d867188ec606ce8b0c23d0b0f48427c508381a19103257c94170a0a46ed5c3706814e40e360a87c013
7
- data.tar.gz: fc1165348c415d5561c6b0607555697082aa1339e17e14a93a24b0f0ea225703a9d7c461189be949d23a0ac598c9a8f30c7b850fb42dad41ca69827fa400fb08
6
+ metadata.gz: c6925871418c55c987de96784403d27b959af95bd07a5f27b9dbf97f9bcb5cf844875279aff404c9e39173af238dccec9b2a04f6c12513e712465430ac977d46
7
+ data.tar.gz: ffa0d076563b3e3b86b66528c36b6c1eb95ddc597196036d34db6f5020c4f3d58aa58c430bd70a791a439f9a81d412cd42be81c0b8e0e3533b6b96f8e669a655
data/VERSION CHANGED
@@ -1 +1 @@
1
- 2.2.0
1
+ 2.2.1
@@ -1,9 +1,9 @@
1
1
  # -*- encoding: utf-8 -*-
2
- # stub: active_record_mutex 2.2.0 ruby lib
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.0"
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"]
@@ -1,6 +1,6 @@
1
1
  module ActiveRecord::DatabaseMutex
2
2
  # ActiveRecord::DatabaseMutex version
3
- VERSION = '2.2.0'
3
+ VERSION = '2.2.1'
4
4
  VERSION_ARRAY = VERSION.split('.').map(&:to_i) # :nodoc:
5
5
  VERSION_MAJOR = VERSION_ARRAY[0] # :nodoc:
6
6
  VERSION_MINOR = VERSION_ARRAY[1] # :nodoc:
@@ -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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: active_record_mutex
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.2.0
4
+ version: 2.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Florian Frank