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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c2b0c526ebc1e7e833810b3234fc1bc56b441a4f
|
4
|
+
data.tar.gz: 571fa5c79d9e2c586d4d00ba596ddeba7986b0c4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
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
|
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.
|
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-
|
11
|
+
date: 2017-01-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|