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: 9993a73260698ae5551f4f53fa16009e7cefb1ee
4
- data.tar.gz: 8251eb929a814ce1fa0b166ffd66404ac77f55e0
3
+ metadata.gz: 621bf3e078e10c006823636a6536aad4d000094d
4
+ data.tar.gz: 2252bbe34b6be97cf502a637b24c5f4b6190524a
5
5
  SHA512:
6
- metadata.gz: 4e3abfc550594ef29c82d63ff83c0042fdae23e5c659c5fed8cd846242d410b8dd9212acf429fbc4d670d27fb5c1540837fe76790959c3f0a616afea55371f5b
7
- data.tar.gz: 1f81daeeb4da26833dc9d40aad0034ae7423395079573464e69007f407a983a3e7a7575d656a2954e7bf3387018fb4c1d3a06885b0dcd97f007285c2d1585bd6
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 ::ActiveRecord::VERSION::MAJOR == 4 && ::ActiveRecord::VERSION::MINOR == 2
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
- unless ::ActiveRecord::VERSION::MAJOR == 4 && ::ActiveRecord::VERSION::MINOR == 2
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
@@ -1,3 +1,3 @@
1
1
  module EffectiveObfuscation
2
- VERSION = '1.1.2'.freeze
2
+ VERSION = '1.2.0'.freeze
3
3
  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.1.2
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-02-08 00:00:00.000000000 Z
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.6
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