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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: fb31613525e78d8a5f45fe9276daa26127c3f6555b69864cf6c438713c8a5385
4
- data.tar.gz: f0cccb6f0706f613284e4f42e04c482dc3368c9e3b121b4d3a895c961e74383b
3
+ metadata.gz: 3e3ddad8a3f396ef45c6bab7511d7dea40af793a98a7b439f1c354f558774608
4
+ data.tar.gz: 50bc66720f9f45f6ee88e2dd2f7ea565a73d3daee8fd90fcaff5d13c0205f3d7
5
5
  SHA512:
6
- metadata.gz: 3d0d83aedaafe07809888c2bf7edb1100ee7b51c3d99dbf9deaa6108932a6585246e7b1d0f917f403f5a765e4421a73804465afacb6bd1c942c4a2befee1ecec
7
- data.tar.gz: d40a2bfb110cae3f2961c5ca57f5de5e5250d54354b9470b1ffa140bf88717970cb9d067f65a4f03576e26b7b2372c88b5294eb22158bbfcc51bb8aa749cb07a
6
+ metadata.gz: eb329a93e182da12129d5444fea3e4241119583e5b5cfd2b603aba37f17ff11d03fce0500ec81dab59fe9021e18fdd58d4f0cea4bbe0b02b92c248d351eecaee
7
+ data.tar.gz: 44e7fe777210f7159ab550860e8fc43006fbdf94b55e439dac57eb2072f2b569947d42b3132e6f7d6f7410c5e6246894a0a323aa668e9c7315f78973f5a2c1b0
@@ -12,8 +12,8 @@ jobs:
12
12
  strategy:
13
13
  matrix:
14
14
  ruby:
15
- - "2.7.5"
16
- - "3.0.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
- - "2.7.5"
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.5.0'
10
- gem 'rake', '~> 13.0'
9
+ gem 'minitest-reporters', '~> 1.6.0'
10
+ gem 'rake', '~> 13.2'
11
11
  gem 'rubocop', '~> 1.25.1'
12
- gem 'simplecov', '~> 0.21.2', require: false # CodeClimate not compatible with 0.18+ yet - https://github.com/codeclimate/test-reporter/issues/413
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.1'
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
@@ -6,6 +6,7 @@ require 'tmpdir'
6
6
  require 'securerandom'
7
7
  require 'yaml'
8
8
 
9
+ require 'active_support' # NOTE: This is required because of a bug in 7.1 which needs deprecation libs
9
10
  require 'active_support/message_encryptor'
10
11
 
11
12
  require_relative './version'
@@ -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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Diffcrypt
4
- VERSION = '0.6.1'
4
+ VERSION = '0.7.0'
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.6.1
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: 2022-02-06 00:00:00.000000000 Z
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.1'
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.1'
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.1.6
108
+ rubygems_version: 3.2.33
109
109
  signing_key:
110
110
  specification_version: 4
111
111
  summary: Diffable encrypted configuration files