diffcrypt 0.6.1 → 0.7.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/test.yml +5 -3
- data/Gemfile +3 -3
- data/diffcrypt.gemspec +1 -1
- data/lib/diffcrypt/encryptor.rb +1 -0
- data/lib/diffcrypt/rails/encrypted_configuration.rb +8 -0
- data/lib/diffcrypt/version.rb +1 -1
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3e3ddad8a3f396ef45c6bab7511d7dea40af793a98a7b439f1c354f558774608
|
4
|
+
data.tar.gz: 50bc66720f9f45f6ee88e2dd2f7ea565a73d3daee8fd90fcaff5d13c0205f3d7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: eb329a93e182da12129d5444fea3e4241119583e5b5cfd2b603aba37f17ff11d03fce0500ec81dab59fe9021e18fdd58d4f0cea4bbe0b02b92c248d351eecaee
|
7
|
+
data.tar.gz: 44e7fe777210f7159ab550860e8fc43006fbdf94b55e439dac57eb2072f2b569947d42b3132e6f7d6f7410c5e6246894a0a323aa668e9c7315f78973f5a2c1b0
|
data/.github/workflows/test.yml
CHANGED
@@ -12,8 +12,8 @@ jobs:
|
|
12
12
|
strategy:
|
13
13
|
matrix:
|
14
14
|
ruby:
|
15
|
-
- "
|
16
|
-
- "3.
|
15
|
+
- "3.0.7"
|
16
|
+
- "3.1.5"
|
17
17
|
steps:
|
18
18
|
- uses: actions/checkout@v2
|
19
19
|
- name: Set up Ruby
|
@@ -23,12 +23,14 @@ jobs:
|
|
23
23
|
bundler-cache: true
|
24
24
|
- name: Run rspec
|
25
25
|
run: bundle exec rake test
|
26
|
+
|
26
27
|
rubocop:
|
27
28
|
runs-on: ubuntu-latest
|
28
29
|
strategy:
|
29
30
|
matrix:
|
30
31
|
ruby:
|
31
|
-
- "
|
32
|
+
- "3.0.7"
|
33
|
+
- "3.1.5"
|
32
34
|
steps:
|
33
35
|
- uses: actions/checkout@v2
|
34
36
|
- name: Set up Ruby
|
data/Gemfile
CHANGED
@@ -6,8 +6,8 @@ source 'https://rubygems.org'
|
|
6
6
|
gemspec
|
7
7
|
|
8
8
|
gem 'minitest', '~> 5.0'
|
9
|
-
gem 'minitest-reporters', '~> 1.
|
10
|
-
gem 'rake', '~> 13.
|
9
|
+
gem 'minitest-reporters', '~> 1.6.0'
|
10
|
+
gem 'rake', '~> 13.2'
|
11
11
|
gem 'rubocop', '~> 1.25.1'
|
12
|
-
gem 'simplecov', '~> 0.
|
12
|
+
gem 'simplecov', '~> 0.22.0', require: false # CodeClimate not compatible with 0.18+ yet - https://github.com/codeclimate/test-reporter/issues/413
|
13
13
|
gem 'simplecov-lcov', '< 0.9'
|
data/diffcrypt.gemspec
CHANGED
@@ -29,7 +29,7 @@ Gem::Specification.new do |spec|
|
|
29
29
|
spec.executables = %w[diffcrypt]
|
30
30
|
spec.require_paths = ['lib']
|
31
31
|
|
32
|
-
spec.add_runtime_dependency 'activesupport', '>= 6.0', '< 7.
|
32
|
+
spec.add_runtime_dependency 'activesupport', '>= 6.0', '< 7.2'
|
33
33
|
spec.add_runtime_dependency 'thor', '>= 0.20', '< 2'
|
34
34
|
spec.metadata['rubygems_mfa_required'] = 'true'
|
35
35
|
end
|
data/lib/diffcrypt/encryptor.rb
CHANGED
@@ -68,6 +68,14 @@ module Diffcrypt
|
|
68
68
|
read_env_key || read_key_file || handle_missing_key
|
69
69
|
end
|
70
70
|
|
71
|
+
# It's required since the commit https://github.com/rails/rails/commit/1740b1f2cb8104435b6041ec6bfaabe58a6d74e6
|
72
|
+
# Returns truthy if #key is truthy. Returns falsy otherwise. Unlike #key,
|
73
|
+
# does not raise MissingKeyError when +raise_if_missing_key+ is true.
|
74
|
+
# @return [Boolean]
|
75
|
+
def key?
|
76
|
+
!!(read_env_key || read_key_file)
|
77
|
+
end
|
78
|
+
|
71
79
|
def change(&block)
|
72
80
|
writing read, &block
|
73
81
|
end
|
data/lib/diffcrypt/version.rb
CHANGED
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
|
+
version: 0.7.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Marc Qualie
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2024-05-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -19,7 +19,7 @@ dependencies:
|
|
19
19
|
version: '6.0'
|
20
20
|
- - "<"
|
21
21
|
- !ruby/object:Gem::Version
|
22
|
-
version: '7.
|
22
|
+
version: '7.2'
|
23
23
|
type: :runtime
|
24
24
|
prerelease: false
|
25
25
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -29,7 +29,7 @@ dependencies:
|
|
29
29
|
version: '6.0'
|
30
30
|
- - "<"
|
31
31
|
- !ruby/object:Gem::Version
|
32
|
-
version: '7.
|
32
|
+
version: '7.2'
|
33
33
|
- !ruby/object:Gem::Dependency
|
34
34
|
name: thor
|
35
35
|
requirement: !ruby/object:Gem::Requirement
|
@@ -105,7 +105,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
105
105
|
- !ruby/object:Gem::Version
|
106
106
|
version: '0'
|
107
107
|
requirements: []
|
108
|
-
rubygems_version: 3.
|
108
|
+
rubygems_version: 3.2.33
|
109
109
|
signing_key:
|
110
110
|
specification_version: 4
|
111
111
|
summary: Diffable encrypted configuration files
|