crypt_keeper 2.2.0 → 2.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
  SHA256:
3
- metadata.gz: 9607ecd6a9297094077cafed8d0f5a29624d4d68f1309630423b53442bdfba5e
4
- data.tar.gz: 7f7f07056ba8990311944d6b9bc4c9977354113e7e489b6fd5a2c27b3bb39b56
3
+ metadata.gz: a090653644f2d7aba77cd684309d1a720f3a956a8568d5c03f06985ca8b608ff
4
+ data.tar.gz: a61221ebb211944e2f2695f223da199c905e6ae70ce681aa3d4c909e61801e6c
5
5
  SHA512:
6
- metadata.gz: 211a89c08366409e4800fb000e7779fbc4162ce6abd43bc8fb3023984b381db2c5e5061d60668d863d42be75ea7cf3e83f751a1aa5dedf0e96891f019fe4dd04
7
- data.tar.gz: 2fab3a0eed0e1fbffc65831a469d83a2e5d1ffa748c26c4e7882696de670d5c18bed078323b5e08066e1fda345094b55bde4f85ec782c3017635709eb9984464
6
+ metadata.gz: 2eb493363aad423a7ea2131056b48e0c5be36ee4c61f46e1bc3dda20dba6cd70ac72e2f2a1741ed004a5e35c6b2526faaeaab5b777fee9f768a9ddd5e4a97db2
7
+ data.tar.gz: dd4f889755d15483c9777199a3e332d0d66b8845355179d9fbd4b0dc26e8524ad54cbe4df6a88882d7669d0f27c9bb37fc2473379ed2ada777a897ff41f5ca57
data/Appraisals CHANGED
@@ -34,3 +34,9 @@ appraise "activerecord_6_1" do
34
34
  gem "activesupport", "~> 6.1.0"
35
35
  gem "pg", "~> 1.1"
36
36
  end
37
+
38
+ appraise "activerecord_7_0" do
39
+ gem "activerecord", "~> 7.0"
40
+ gem "activesupport", "~> 7.0"
41
+ gem "pg", "~> 1.1"
42
+ end
data/crypt_keeper.gemspec CHANGED
@@ -18,13 +18,13 @@ Gem::Specification.new do |gem|
18
18
 
19
19
  gem.post_install_message = "WARNING: CryptKeeper 2.0 contains breaking changes and may require you to reencrypt your data! Please view the README at https://github.com/jmazzi/crypt_keeper for more information."
20
20
 
21
- gem.add_runtime_dependency 'activerecord', '>= 4.2', '< 6.2'
22
- gem.add_runtime_dependency 'activesupport', '>= 4.2', '< 6.2'
21
+ gem.add_runtime_dependency 'activerecord', '>= 4.2', '<= 7'
22
+ gem.add_runtime_dependency 'activesupport', '>= 4.2', '<= 7'
23
23
 
24
24
  gem.add_development_dependency 'rspec', '~> 3.5.0'
25
25
  gem.add_development_dependency 'guard', '~> 2.6.1'
26
26
  gem.add_development_dependency 'guard-rspec', '~> 4.2.9'
27
- gem.add_development_dependency 'rake', '~> 10.3.1'
27
+ gem.add_development_dependency 'rake'
28
28
  gem.add_development_dependency 'rb-fsevent', '~> 0.9.1'
29
29
  gem.add_development_dependency 'coveralls'
30
30
  gem.add_development_dependency 'appraisal', '~> 2.1.0'
@@ -0,0 +1,9 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "https://rubygems.org"
4
+
5
+ gem "activerecord", "~> 7.0"
6
+ gem "activesupport", "~> 7.0"
7
+ gem "pg", "~> 1.1"
8
+
9
+ gemspec :path => "../"
@@ -44,7 +44,7 @@ module CryptKeeper
44
44
  def search(records, field, criteria)
45
45
  if criteria.present?
46
46
  records
47
- .where.not("TRIM(BOTH FROM #{field}) = ?", "")
47
+ .where.not("TRIM(BOTH FROM \"#{field}\") = ?", "")
48
48
  .where("(pgp_sym_decrypt(cast(\"#{field}\" AS bytea), ?) = ?)",
49
49
  key, criteria)
50
50
  else
@@ -1,3 +1,3 @@
1
1
  module CryptKeeper
2
- VERSION = "2.2.0"
2
+ VERSION = "2.3.0"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: crypt_keeper
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.2.0
4
+ version: 2.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Justin Mazzi
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-04-09 00:00:00.000000000 Z
11
+ date: 2021-12-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord
@@ -17,9 +17,9 @@ dependencies:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
19
  version: '4.2'
20
- - - "<"
20
+ - - "<="
21
21
  - !ruby/object:Gem::Version
22
- version: '6.2'
22
+ version: '7'
23
23
  type: :runtime
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
@@ -27,9 +27,9 @@ dependencies:
27
27
  - - ">="
28
28
  - !ruby/object:Gem::Version
29
29
  version: '4.2'
30
- - - "<"
30
+ - - "<="
31
31
  - !ruby/object:Gem::Version
32
- version: '6.2'
32
+ version: '7'
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: activesupport
35
35
  requirement: !ruby/object:Gem::Requirement
@@ -37,9 +37,9 @@ dependencies:
37
37
  - - ">="
38
38
  - !ruby/object:Gem::Version
39
39
  version: '4.2'
40
- - - "<"
40
+ - - "<="
41
41
  - !ruby/object:Gem::Version
42
- version: '6.2'
42
+ version: '7'
43
43
  type: :runtime
44
44
  prerelease: false
45
45
  version_requirements: !ruby/object:Gem::Requirement
@@ -47,9 +47,9 @@ dependencies:
47
47
  - - ">="
48
48
  - !ruby/object:Gem::Version
49
49
  version: '4.2'
50
- - - "<"
50
+ - - "<="
51
51
  - !ruby/object:Gem::Version
52
- version: '6.2'
52
+ version: '7'
53
53
  - !ruby/object:Gem::Dependency
54
54
  name: rspec
55
55
  requirement: !ruby/object:Gem::Requirement
@@ -96,16 +96,16 @@ dependencies:
96
96
  name: rake
97
97
  requirement: !ruby/object:Gem::Requirement
98
98
  requirements:
99
- - - "~>"
99
+ - - ">="
100
100
  - !ruby/object:Gem::Version
101
- version: 10.3.1
101
+ version: '0'
102
102
  type: :development
103
103
  prerelease: false
104
104
  version_requirements: !ruby/object:Gem::Requirement
105
105
  requirements:
106
- - - "~>"
106
+ - - ">="
107
107
  - !ruby/object:Gem::Version
108
- version: 10.3.1
108
+ version: '0'
109
109
  - !ruby/object:Gem::Dependency
110
110
  name: rb-fsevent
111
111
  requirement: !ruby/object:Gem::Requirement
@@ -225,6 +225,7 @@ files:
225
225
  - gemfiles/activerecord_5_2.gemfile
226
226
  - gemfiles/activerecord_6_0.gemfile
227
227
  - gemfiles/activerecord_6_1.gemfile
228
+ - gemfiles/activerecord_7_0.gemfile
228
229
  - lib/crypt_keeper.rb
229
230
  - lib/crypt_keeper/helper.rb
230
231
  - lib/crypt_keeper/log_subscriber/mysql_aes.rb
@@ -273,7 +274,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
273
274
  - !ruby/object:Gem::Version
274
275
  version: '0'
275
276
  requirements: []
276
- rubygems_version: 3.0.9
277
+ rubygems_version: 3.1.4
277
278
  signing_key:
278
279
  specification_version: 4
279
280
  summary: Transparent ActiveRecord encryption