effective_obfuscation 1.2.3 → 1.3.0

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: 66c78820411ac85c68890ea7c820e8edde646c71
4
- data.tar.gz: abc972df5fc6965e0aee00aa6a07853fd801b646
3
+ metadata.gz: c2b0c526ebc1e7e833810b3234fc1bc56b441a4f
4
+ data.tar.gz: 571fa5c79d9e2c586d4d00ba596ddeba7986b0c4
5
5
  SHA512:
6
- metadata.gz: 22abb8a737752142e3c2811b46820f81319884e6630fc80646a242791e300d4e23bd4a457a23f9e22e85cd4ca0ab510324327e6780428ff66ed75af5cf0e4321
7
- data.tar.gz: 7a7f19881dbe5cc360ed4376e36cffcf9f2b822bce399268279de9e3288f8f1c54f771f2d70472b8cd1b661a2d961928d96fd78acf1fa881969cd4324413d8c4
6
+ metadata.gz: 264f19b3e25184ae369d14bf54a72a959794cf83892c198d158b4575e4883b14290039d9dba212cc10b683ed8d53ff047904a73eea237e16b765522672e6664f
7
+ data.tar.gz: 6eee5ed098b7def15d4ea62704d23448773dd26eda28fb433ba2f1026e7cd973424d6b422198629384c0df41aa14a5319e1601423ae25b2ee3b1f4a647964697
@@ -53,7 +53,9 @@ module ActsAsObfuscated
53
53
  } { |parent| parent.table[:id] }
54
54
  end
55
55
 
56
- extend FinderMethods if Gem::Version.new(Rails.version) >= Gem::Version.new('4.2.0')
56
+ if Gem::Version.new(Rails.version) >= Gem::Version.new('4.2') && Gem::Version.new(Rails.version) < Gem::Version.new('5')
57
+ extend FinderMethods
58
+ end
57
59
  end
58
60
 
59
61
  module ClassMethods
@@ -111,7 +113,7 @@ module ActsAsObfuscated
111
113
  acts_as_obfuscated_opts[:max_id] ||= (self.unscoped.maximum(:id) rescue 2147483647)
112
114
  end
113
115
 
114
- if Gem::Version.new(Rails.version) < Gem::Version.new('4.2')
116
+ if Gem::Version.new(Rails.version) < Gem::Version.new('4.2') || Gem::Version.new(Rails.version) >= Gem::Version.new('5')
115
117
  def relation
116
118
  super.tap { |relation| relation.extend(FinderMethods) }
117
119
  end
@@ -1,3 +1,3 @@
1
1
  module EffectiveObfuscation
2
- VERSION = '1.2.3'.freeze
2
+ VERSION = '1.3.0'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: effective_obfuscation
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.3
4
+ version: 1.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Code and Effect
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-01-09 00:00:00.000000000 Z
11
+ date: 2017-01-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails