effective_obfuscation 1.1.2 → 1.2.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: 621bf3e078e10c006823636a6536aad4d000094d
|
4
|
+
data.tar.gz: 2252bbe34b6be97cf502a637b24c5f4b6190524a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ac4bf60be8d29d6a2cc1cdfb338403e201e743d8dd8dbfbc8ee9e20050c49780eea10ba52b743cdbae9ccdfc4c1eb6689ffa210079435d19af16948305d26b49
|
7
|
+
data.tar.gz: 8b51916a38e9939b4945ee89418d77bc78590a46f94c33f4c8dd635816482ddeea594a04afa2488f129a588860f56b25230c3f652bda26b2888e45033977d1df
|
@@ -53,9 +53,7 @@ module ActsAsObfuscated
|
|
53
53
|
} { |parent| parent.table[:id] }
|
54
54
|
end
|
55
55
|
|
56
|
-
if ::
|
57
|
-
extend FinderMethods
|
58
|
-
end
|
56
|
+
extend FinderMethods if Gem::Version.new(Rails.version) >= Gem::Version.new('4.2.0')
|
59
57
|
end
|
60
58
|
|
61
59
|
module ClassMethods
|
@@ -113,7 +111,7 @@ module ActsAsObfuscated
|
|
113
111
|
acts_as_obfuscated_opts[:max_id] ||= (self.unscoped.maximum(:id) rescue 2147483647)
|
114
112
|
end
|
115
113
|
|
116
|
-
|
114
|
+
if Gem::Version.new(Rails.version) < Gem::Version.new('4.2')
|
117
115
|
def relation
|
118
116
|
super.tap { |relation| relation.extend(FinderMethods) }
|
119
117
|
end
|
metadata
CHANGED
@@ -1,41 +1,41 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: effective_obfuscation
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.2.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: 2016-
|
11
|
+
date: 2016-08-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- -
|
17
|
+
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
19
|
version: 3.2.0
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- -
|
24
|
+
- - ">="
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: 3.2.0
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: scatter_swap
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- - ~>
|
31
|
+
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
33
|
version: 0.0.3
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
|
-
- - ~>
|
38
|
+
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: 0.0.3
|
41
41
|
description: Display unique 10-digit numbers instead of ActiveRecord IDs. Hides the
|
@@ -66,17 +66,17 @@ require_paths:
|
|
66
66
|
- lib
|
67
67
|
required_ruby_version: !ruby/object:Gem::Requirement
|
68
68
|
requirements:
|
69
|
-
- -
|
69
|
+
- - ">="
|
70
70
|
- !ruby/object:Gem::Version
|
71
71
|
version: '0'
|
72
72
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
73
73
|
requirements:
|
74
|
-
- -
|
74
|
+
- - ">="
|
75
75
|
- !ruby/object:Gem::Version
|
76
76
|
version: '0'
|
77
77
|
requirements: []
|
78
78
|
rubyforge_project:
|
79
|
-
rubygems_version: 2.4.
|
79
|
+
rubygems_version: 2.4.5.1
|
80
80
|
signing_key:
|
81
81
|
specification_version: 4
|
82
82
|
summary: Display unique 10-digit numbers instead of ActiveRecord IDs. Hides the ID
|