effective_obfuscation 1.3.2 → 1.3.3
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: 6c5314329878e18d055b1f2192cf5c93b4460cca
|
4
|
+
data.tar.gz: 8746112640aca43f91b9472dfddbc81233f318b1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: eb3c20d75131f27daf792d7a4916b13c88c38a0a32d0d382c3b459b1f0d287091610fdb605f04816df6257a205056c798f6aec775b55d3745f1919994a0724e9
|
7
|
+
data.tar.gz: 7f75d8a43b9b2404ff697e4d439f194142631f2d8f7538af25e84822d33b1eedf85cd523369c945bbf29e0d47c1c0aaf4381fd5ad5a9924b09410b889ece28c0
|
@@ -50,7 +50,7 @@ module ActsAsObfuscated
|
|
50
50
|
ransacker :id, :formatter => Proc.new { |original|
|
51
51
|
obfuscated_id = original.to_s.delete('^0-9').first(10)
|
52
52
|
obfuscated_id.length == 10 ? deobfuscate(original) : 0
|
53
|
-
}
|
53
|
+
} do |parent| parent.table[:id] end
|
54
54
|
end
|
55
55
|
|
56
56
|
extend FinderMethods if EffectiveObfuscation.extend_klass?
|
@@ -13,7 +13,7 @@ module EffectiveObfuscation
|
|
13
13
|
|
14
14
|
def self.extend_klass?
|
15
15
|
return false if Gem::Version.new(Rails.version) < Gem::Version.new('4.2')
|
16
|
-
return true if Gem::Version.new(Rails.version) >= Gem::Version.new('5
|
16
|
+
return true if Gem::Version.new(Rails.version) >= Gem::Version.new('5')
|
17
17
|
false
|
18
18
|
end
|
19
19
|
|
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.3.
|
4
|
+
version: 1.3.3
|
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:
|
11
|
+
date: 2018-02-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -72,7 +72,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
72
72
|
version: '0'
|
73
73
|
requirements: []
|
74
74
|
rubyforge_project:
|
75
|
-
rubygems_version: 2.4.
|
75
|
+
rubygems_version: 2.4.5.1
|
76
76
|
signing_key:
|
77
77
|
specification_version: 4
|
78
78
|
summary: Display unique 10-digit numbers instead of ActiveRecord IDs. Hides the ID
|