invar 0.9.1 → 0.9.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.rubocop.yml +22 -0
- data/.ruby-version +1 -1
- data/Gemfile +7 -5
- data/RELEASE_NOTES.md +14 -0
- data/lib/invar/private_file.rb +3 -2
- data/lib/invar/rake/task/secrets.rb +1 -2
- data/lib/invar/scope.rb +2 -2
- data/lib/invar/version.rb +1 -1
- data/lib/invar.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: de219e48de87431ca272889fc21eed52ad9bc91a9034bb08f284881f5f3eddf9
|
4
|
+
data.tar.gz: c7a291babaf371130c98fd0cb77e11ab4468903cffef66727d1043eb7eef7f78
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f273a02beda6a3485092f4ec8495834fa166788502f7a73cf4f1c95bf7c281c51c7db18fd2b2eeb447de34664e36dd876a2b96ca2c04c0ccbd98f36eebe0ff12
|
7
|
+
data.tar.gz: 6acfd6d89b8ff8fdf7f94f5b1ca4995774d0fddbac7a6e6bd46752d4b84861da6096d91110d58d6315423a37d180b3c7d5e284d93dd3a3892eb81d8c3524a68e
|
data/.rubocop.yml
CHANGED
@@ -1,5 +1,10 @@
|
|
1
1
|
inherit_from: ~/.config/rubocop/config.yml
|
2
2
|
|
3
|
+
require:
|
4
|
+
- rubocop-performance
|
5
|
+
- rubocop-rspec
|
6
|
+
- rubocop-rake
|
7
|
+
|
3
8
|
AllCops:
|
4
9
|
Exclude:
|
5
10
|
- 'bin/*'
|
@@ -12,3 +17,20 @@ Metrics/BlockLength:
|
|
12
17
|
Metrics/ModuleLength:
|
13
18
|
Exclude:
|
14
19
|
- 'spec/**/*.rb'
|
20
|
+
|
21
|
+
RSpec/ExampleWording:
|
22
|
+
Enabled: false
|
23
|
+
|
24
|
+
RSpec/ExampleLength:
|
25
|
+
CountAsOne:
|
26
|
+
- array
|
27
|
+
- hash
|
28
|
+
- heredoc
|
29
|
+
- method_call
|
30
|
+
|
31
|
+
RSpec/NotToNot:
|
32
|
+
Enabled: false
|
33
|
+
|
34
|
+
# TODO: remove this restriction
|
35
|
+
RSpec/MultipleMemoizedHelpers:
|
36
|
+
Enabled: false
|
data/.ruby-version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
ruby-3.
|
1
|
+
ruby-3.3.0
|
data/Gemfile
CHANGED
@@ -7,14 +7,16 @@ gemspec
|
|
7
7
|
|
8
8
|
group :development do
|
9
9
|
gem 'bundler', '~> 2.3'
|
10
|
-
gem 'rake', '~> 13.
|
11
|
-
gem 'rubocop', '~> 1.
|
12
|
-
gem 'rubocop-performance', '~> 1.
|
10
|
+
gem 'rake', '~> 13.1'
|
11
|
+
gem 'rubocop', '~> 1.61'
|
12
|
+
gem 'rubocop-performance', '~> 1.20'
|
13
|
+
gem 'rubocop-rake', '~> 0.6'
|
14
|
+
gem 'rubocop-rspec', '~> 2.27'
|
13
15
|
gem 'yard', '~> 0.9'
|
14
16
|
end
|
15
17
|
|
16
18
|
group :test do
|
17
|
-
gem '
|
18
|
-
gem 'rspec', '~> 3.
|
19
|
+
gem 'climate_control', '~> 1.2'
|
20
|
+
gem 'rspec', '~> 3.13'
|
19
21
|
gem 'simplecov', '~> 0.22'
|
20
22
|
end
|
data/RELEASE_NOTES.md
CHANGED
@@ -19,6 +19,20 @@ to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
19
19
|
|
20
20
|
* none
|
21
21
|
|
22
|
+
## [0.9.2] - 2024-03-03
|
23
|
+
|
24
|
+
### Major Changes
|
25
|
+
|
26
|
+
* none
|
27
|
+
|
28
|
+
### Minor Changes
|
29
|
+
|
30
|
+
* none
|
31
|
+
|
32
|
+
### Bugfixes
|
33
|
+
|
34
|
+
* Fixed load error in ruby 3.3 of not properly requiring Forwardable
|
35
|
+
|
22
36
|
## [0.9.1] - 2023-09-30
|
23
37
|
|
24
38
|
### Major Changes
|
data/lib/invar/private_file.rb
CHANGED
@@ -3,13 +3,14 @@
|
|
3
3
|
require 'invar/version'
|
4
4
|
require 'invar/scope'
|
5
5
|
|
6
|
-
require '
|
6
|
+
require 'forwardable'
|
7
7
|
|
8
8
|
module Invar
|
9
9
|
# Verifies a file is secure
|
10
10
|
class PrivateFile
|
11
11
|
extend Forwardable
|
12
|
-
def_delegators :@delegate_sd_obj,
|
12
|
+
def_delegators :@delegate_sd_obj,
|
13
|
+
:stat, :to_s, :basename, :dirname, :extname, :==, :chmod, :rename, :write, :binwrite
|
13
14
|
|
14
15
|
# Mask for limiting to the lowest three octal digits (which store permissions)
|
15
16
|
PERMISSIONS_MASK = 0o777
|
@@ -82,8 +82,7 @@ module Invar
|
|
82
82
|
encrypted_data = lockbox.encrypt(content)
|
83
83
|
|
84
84
|
config_dir.mkpath
|
85
|
-
|
86
|
-
File.open(file_path.to_s, 'wb') { |f| f.write encrypted_data }
|
85
|
+
file_path.binwrite encrypted_data
|
87
86
|
file_path.chmod permissions if permissions
|
88
87
|
|
89
88
|
warn "Saved file: #{ file_path }"
|
data/lib/invar/scope.rb
CHANGED
@@ -4,7 +4,7 @@ module Invar
|
|
4
4
|
# A set of configurations
|
5
5
|
class Scope
|
6
6
|
def initialize(data = nil)
|
7
|
-
@data = convert
|
7
|
+
@data = convert data
|
8
8
|
|
9
9
|
@data.freeze
|
10
10
|
freeze
|
@@ -34,7 +34,7 @@ module Invar
|
|
34
34
|
def respond_to_missing?(method_name, include_all)
|
35
35
|
guard_test_methods method_name
|
36
36
|
|
37
|
-
super
|
37
|
+
super(method_name, include_all)
|
38
38
|
end
|
39
39
|
|
40
40
|
# Returns a hash representation of this scope and subscopes.
|
data/lib/invar/version.rb
CHANGED
data/lib/invar.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: invar
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.9.
|
4
|
+
version: 0.9.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Robin Miller
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2024-03-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: dry-schema
|
@@ -92,7 +92,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
92
92
|
- !ruby/object:Gem::Version
|
93
93
|
version: '0'
|
94
94
|
requirements: []
|
95
|
-
rubygems_version: 3.
|
95
|
+
rubygems_version: 3.5.3
|
96
96
|
signing_key:
|
97
97
|
specification_version: 4
|
98
98
|
summary: Single source of truth for environmental configuration.
|