diffcrypt 0.4.0 → 0.4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e40a357c62cf93d9c49f336c7ad456d4f7510bd8389f3fb20c4913b91f4ef5f2
4
- data.tar.gz: 4fb0296c2eaf901c59bdec117f974203500596f6347a9b8c12632b7dbe39ab77
3
+ metadata.gz: e6d985bd619146b0cede42746b62e00f7e52a01a92a8e7a79718ab0f9b80391a
4
+ data.tar.gz: d0fb2659741c498608421b741b4fa1acfbdec8f74bc7ac65425a9c97017a9342
5
5
  SHA512:
6
- metadata.gz: d368c674a915b706b876a5a022c7003e3f7ecf30b38b581f2e7debf261d47102d759c27d317b85a71904bace22fd1a0306d9175b2c9496592375d786d3fe4fc1
7
- data.tar.gz: 9e24c98075aab9c2f8e0550e757adea3df5b7f1e341f7d93d5644ee21e6a9ee9a352f7450a1a63afd609d876406c6efbe4aaff56e6c978c413259588625eedf5
6
+ metadata.gz: 2ba3e972200d1a4d785a9f4bdc67defc04e26d94d35421f9cc2b8a9e956b56f693e452acf0fbbb98ea7f96eb3fc6454e92dbb7d3fa825a6dc16f2882f86b12c6
7
+ data.tar.gz: d1e7c88b0a323ecb366e2a9642b45c8b60701c1492d97615773d7c12e5fe5753086b440d9bd1ccc19662ca3cb9f67de6c64e90000229ee64df73d619cc0f70f4
@@ -7,6 +7,14 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
 
8
8
 
9
9
 
10
+ ## [0.4.1] - 2020-10-06
11
+
12
+ ### Fixed
13
+
14
+ - Could not initialize a new file or modify existing rails format file (Thanks @swiknaba #31)
15
+
16
+
17
+
10
18
  ## [0.4.0] - 2020-10-01
11
19
 
12
20
  ### Changed
data/README.md CHANGED
@@ -85,7 +85,7 @@ end
85
85
 
86
86
  ## Converting between ciphers
87
87
 
88
- Sometimes you may want to rotate the cipher used on a file. You cab do this rogramtically using the ruby code above, or you can also chain the CLI commands like so:
88
+ Sometimes you may want to rotate the cipher used on a file. You can do this programmatically using the ruby code above, or you can also chain the CLI commands like so:
89
89
 
90
90
  ```shell
91
91
  diffcrypt decrypt -k $(cat test/fixtures/aes-128-gcm.key) test/fixtures/example.yml.enc > test/fixtures/example.128.yml \
@@ -99,7 +99,7 @@ module Diffcrypt
99
99
  # @return [String]
100
100
  def decrypt(contents)
101
101
  if contents.index('---').nil?
102
- @active_support_encryptor.decrypt_and_verify contents
102
+ active_support_encryptor.decrypt_and_verify contents
103
103
  else
104
104
  encryptor.decrypt contents
105
105
  end
@@ -108,7 +108,7 @@ module Diffcrypt
108
108
  # Rails applications with an existing credentials file, the inbuilt active support encryptor should be used
109
109
  # @return [ActiveSupport::MessageEncryptor]
110
110
  def active_support_encryptor
111
- @active_support_encryptor = ActiveSupport::MessageEncryptor.new(
111
+ @active_support_encryptor ||= ActiveSupport::MessageEncryptor.new(
112
112
  [key].pack('H*'),
113
113
  cipher: @diffcrypt_file.cipher,
114
114
  )
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Diffcrypt
4
- VERSION = '0.4.0'
4
+ VERSION = '0.4.1'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: diffcrypt
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Marc Qualie
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-10-01 00:00:00.000000000 Z
11
+ date: 2020-10-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport