encryptable_attributes 0.2.0 → 0.2.1

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: 97e30bc4d67879654d302bcfa054d8ddcedb39ec9c6e97d89c97a7cad65f1605
4
- data.tar.gz: e8e1ee98d330083714721b1324dc72d7eedd0cd3f7d526f3cd4a2b39c6f18fea
3
+ metadata.gz: 173da0884b157d5b7280612abb975c6a2450605b8ff3f2b725a2a5db5d459c7f
4
+ data.tar.gz: d2e9f24ee9296a10ef216e8335f9b4e512c0f3200e2ae15dcf7f04c8f77ae3ad
5
5
  SHA512:
6
- metadata.gz: bc858805e483b1018f54024032a31153aa2767061d3837b0647edb1ac47df61395531c40ea28dd482d80626a3d9c4aacc187ddd1e4fb570f156b7cb816ce79af
7
- data.tar.gz: 986d1b553aeeb75b8e922dbbfeeb79762f4c1ec9545396bf407028e1644a5d3d1da4a609271e82177c68abc03de9eedb08381568b4fc7e61de907f1416625ce7
6
+ metadata.gz: 7e82ff723ab8ad2779e8d97f47c556a6ba160e91d1876aca27996bf655337e7347d864eae146e986f4c939d4f59ecb53b825fd70a1c35ff4bcec2711722e084d
7
+ data.tar.gz: 70476d5be41cc2bbdc424ef135d7190ffd7a85a6a003fd6fff9a1d03c5a0180088932a128b69f19f34688a17ec547506e0c69c26ca3c65ff6103c071c589f266
@@ -1,3 +1,8 @@
1
+ ## EncryptableAttributes 0.2.1 (May 13, 2018)
2
+ * *FIX*: Rotate `ActiveSupport::MessageEncryptor` keys to ensure they are kept in case new configs are added
3
+ * Added active_record as runtime dependency
4
+
5
+ ## EncryptableAttributes 0.2.0 (May 12, 2018)
1
6
  * Added `CHANGELOG.md`
2
7
  * Speficy dependency versions
3
8
  * Reduce loaded dependencies
@@ -21,11 +21,11 @@ Gem::Specification.new do |spec|
21
21
  spec.require_paths = ["lib"]
22
22
 
23
23
  spec.add_dependency "activesupport", "~> 5"
24
+ spec.add_dependency "activerecord", "~> 5"
24
25
 
25
26
  spec.add_development_dependency "bundler", "~> 1.16"
26
27
  spec.add_development_dependency "rake", "~> 12.3"
27
28
  spec.add_development_dependency "minitest", "~> 5.0"
28
- spec.add_development_dependency "activerecord", "~> 5"
29
29
  spec.add_development_dependency "standalone_migrations", "~> 5.2"
30
30
  spec.add_development_dependency "sqlite3", "~> 1.3"
31
31
  end
@@ -45,6 +45,9 @@ module EncryptableAttributes
45
45
  salt = SecureRandom.random_bytes(len)
46
46
  key = ActiveSupport::KeyGenerator.new(static_or_dynamic_secure_key).generate_key(salt, len)
47
47
  @crypt = ActiveSupport::MessageEncryptor.new(key)
48
+ @crypt.rotate(key) # Ensure configuration is kept
49
+
50
+ @crypt
48
51
  end
49
52
 
50
53
  def crypt
@@ -1,3 +1,3 @@
1
1
  module EncryptableAttributes
2
- VERSION = '0.2.0'.freeze
2
+ VERSION = '0.2.1'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: encryptable_attributes
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nils Sommer
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-05-12 00:00:00.000000000 Z
11
+ date: 2018-05-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -25,61 +25,61 @@ dependencies:
25
25
  - !ruby/object:Gem::Version
26
26
  version: '5'
27
27
  - !ruby/object:Gem::Dependency
28
- name: bundler
28
+ name: activerecord
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: '1.16'
34
- type: :development
33
+ version: '5'
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
- version: '1.16'
40
+ version: '5'
41
41
  - !ruby/object:Gem::Dependency
42
- name: rake
42
+ name: bundler
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
45
  - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: '12.3'
47
+ version: '1.16'
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - "~>"
53
53
  - !ruby/object:Gem::Version
54
- version: '12.3'
54
+ version: '1.16'
55
55
  - !ruby/object:Gem::Dependency
56
- name: minitest
56
+ name: rake
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
59
  - - "~>"
60
60
  - !ruby/object:Gem::Version
61
- version: '5.0'
61
+ version: '12.3'
62
62
  type: :development
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
66
  - - "~>"
67
67
  - !ruby/object:Gem::Version
68
- version: '5.0'
68
+ version: '12.3'
69
69
  - !ruby/object:Gem::Dependency
70
- name: activerecord
70
+ name: minitest
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
73
  - - "~>"
74
74
  - !ruby/object:Gem::Version
75
- version: '5'
75
+ version: '5.0'
76
76
  type: :development
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
80
  - - "~>"
81
81
  - !ruby/object:Gem::Version
82
- version: '5'
82
+ version: '5.0'
83
83
  - !ruby/object:Gem::Dependency
84
84
  name: standalone_migrations
85
85
  requirement: !ruby/object:Gem::Requirement