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: 136beb68fd38439dfe0d5904a5e0e6dd353b939a
4
- data.tar.gz: a39e154c154df56f985d28bcb8c321491640959d
3
+ metadata.gz: 6c5314329878e18d055b1f2192cf5c93b4460cca
4
+ data.tar.gz: 8746112640aca43f91b9472dfddbc81233f318b1
5
5
  SHA512:
6
- metadata.gz: 2557b83c462eccf88a25c9bfecaaffadd671c36d19cfec9e9b276aeb5ccf9a2da4452b3a49d876edbe2b005acae6c4f9059aca99e00f5a1d2ec9ee56103ca82c
7
- data.tar.gz: eb7f98b1704d724814057648ded7c3dc5ee0fff97cdc62329b71001c2371ae6bb03100a4e7229db14d9c9b6635ad3b1a91fa2a8c48a9fc3b43d894e6e5f27ebf
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
- } { |parent| parent.table[:id] }
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.1')
16
+ return true if Gem::Version.new(Rails.version) >= Gem::Version.new('5')
17
17
  false
18
18
  end
19
19
 
@@ -1,3 +1,3 @@
1
1
  module EffectiveObfuscation
2
- VERSION = '1.3.2'.freeze
2
+ VERSION = '1.3.3'.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.3.2
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: 2017-05-29 00:00:00.000000000 Z
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.6
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