yamload 0.7.0 → 0.9.0

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: 16ac85003b48e85dd2475a7ab87c43037cc953eb6d6c492fa95444dd9f09ba79
4
- data.tar.gz: e50a8eb78728cc4975115c1474fa878080fb9ee745712e26dafffe6aeba41fa4
3
+ metadata.gz: 77f8f5a34d06ab4ffe2dedc15cb0a041db2cf78af90159a4c56ca6ca2183ae37
4
+ data.tar.gz: 18cdc178e8539f3c2d8671a0656c83c75b27ec023e7ef79ff15d72dd39460245
5
5
  SHA512:
6
- metadata.gz: e847bceccbb83e3f880b78fc8c9ea7c88541583b2adb3b70e2c5ff263afb51b519bc12f6202cb39fce469d35d400a867955d8f9fa067116de96a63cf5bd3d47d
7
- data.tar.gz: 8f9a9267907f7d1904afe7ba576aae7443da874b1a6b09f05a74c848938212d2bcf873ea573e8f5c0731fdeb12a79dbc252f68e3e8e068fe99e81a8cd9de60a3
6
+ metadata.gz: 73238d4be29ce9a4beda11955608138a281429cd85ca8ccfe6788821c108e603bc910ecc63749b6c2971d4211ae59e30bd07527433a3b6d54099e3e2d07f81ec
7
+ data.tar.gz: 5674598610e1c01b591972512a053e5f1f6cb17ec08fbb488f60d3527af9b0d1e3cfe9ff5e0c64e4ec712ac0e31a9ca7f7d8f5598f226aa4a1ba6c3dcd498f7f
@@ -0,0 +1,12 @@
1
+ # The commits that did automated reformatting. You can ignore them
2
+ # during git-blame with `--ignore-rev` or `--ignore-revs-file`.
3
+ # You can also globally configure GIT with the following command
4
+ #
5
+ # $ git config --add 'blame.ignoreRevsFile' '.git-blame-ignore-revs'
6
+ #
7
+ # Example entries:
8
+ #
9
+ # <full commit hash> # initial black-format
10
+ # <full commit hash> # rename something internal
11
+
12
+ 4ac64416bf38bab7509f784428c3677cce652bcc # Pretty CHANGELOG.md
@@ -5,7 +5,7 @@ jobs:
5
5
  strategy:
6
6
  fail-fast: false
7
7
  matrix:
8
- ruby: ["2.6", "2.7", "3.0", "3.1"]
8
+ ruby: ["3.0", "3.1", "3.2"]
9
9
  runs-on: ubuntu-latest
10
10
  env:
11
11
  AWS_REGION: us-east-1
data/.ruby-version CHANGED
@@ -1 +1 @@
1
- 3.1.0
1
+ 3.2.0
data/.standard.yml CHANGED
@@ -1 +1 @@
1
- ruby_version: 2.6
1
+ ruby_version: 3.2
data/CHANGELOG.md CHANGED
@@ -1,3 +1,11 @@
1
+ ## 0.9.0
2
+
3
+ - [PLAT-1175] Update to Ruby 3.2
4
+
5
+ ## 0.8.0
6
+
7
+ - [PLAT-379] Improve bundler startup time
8
+
1
9
  ## 0.7.1
2
10
 
3
11
  - Fix incorrect tags
@@ -12,72 +20,74 @@
12
20
 
13
21
  ## 0.5.0 (2020-07-02)
14
22
 
15
- - [TT-7683] Add support for AWS SSM and AWS Secrets Manager
23
+ - [TT-7683] Add support for AWS SSM and AWS Secrets Manager
16
24
 
17
25
  ## 0.4.0 (2020-05-20)
18
26
 
19
- - [TT-7323] Bring all dependencies up to date
27
+ - [TT-7323] Bring all dependencies up to date
20
28
 
21
29
  ## 0.3.0 (2017-07-31)
22
30
 
23
31
  Removed:
24
- - [TT-2967] Remove deprecated `Yamload::Loader#loaded_hash`
25
- - [TT-2967] Remove schema validation
32
+
33
+ - [TT-2967] Remove deprecated `Yamload::Loader#loaded_hash`
34
+ - [TT-2967] Remove schema validation
26
35
 
27
36
  Changed:
28
- - [TT-1790] Update ClassyHash to version 0.2.0
37
+
38
+ - [TT-1790] Update ClassyHash to version 0.2.0
29
39
 
30
40
  ## 0.2.0 (2015-02-20)
31
41
 
32
42
  Features:
33
43
 
34
- - Add ERB parsing as a prestep for loaded YAML files
44
+ - Add ERB parsing as a prestep for loaded YAML files
35
45
 
36
46
  ## 0.1.0 (2015-02-17)
37
47
 
38
- - use proper semantic versioning (semver.org)
48
+ - use proper semantic versioning (semver.org)
39
49
 
40
50
  Features:
41
51
 
42
- - support loading valid yml files which don't define a hash
43
- - deprecates `Yamload::Loader#loaded_hash` in favour of `Yamload::Loader#content`
52
+ - support loading valid yml files which don't define a hash
53
+ - deprecates `Yamload::Loader#loaded_hash` in favour of `Yamload::Loader#content`
44
54
 
45
55
  ## 0.0.6 (2015-02-04)
46
56
 
47
57
  Bugfixes:
48
58
 
49
- - check for directory existence
59
+ - check for directory existence
50
60
 
51
61
  ## 0.0.5 (2015-02-04)
52
62
 
53
63
  Bugfixes:
54
64
 
55
- - check for file existence
56
- - check for validity of file contents
65
+ - check for file existence
66
+ - check for validity of file contents
57
67
 
58
68
  ## 0.0.4 (2015-02-04)
59
69
 
60
70
  Features:
61
71
 
62
- - implement `Yamload::Loader#exist?` to check for file presence
72
+ - implement `Yamload::Loader#exist?` to check for file presence
63
73
 
64
74
  ## 0.0.3 (2015-02-04)
65
75
 
66
76
  Features:
67
77
 
68
- - use a faster schema validation engine with no dependencies
78
+ - use a faster schema validation engine with no dependencies
69
79
 
70
80
  ## 0.0.2 (2015-02-04)
71
81
 
72
82
  Features:
73
83
 
74
- - freeze the loaded hash
84
+ - freeze the loaded hash
75
85
 
76
86
  ## 0.0.1 (2015-02-04)
77
87
 
78
88
  Features:
79
89
 
80
- - load valid yml files defining a hash
81
- - conversion of loaded hash to immutable object
82
- - default values
83
- - schema validation
90
+ - load valid yml files defining a hash
91
+ - conversion of loaded hash to immutable object
92
+ - default values
93
+ - schema validation
@@ -1,8 +1,5 @@
1
1
  require "yaml"
2
2
  require "ice_nine"
3
- require "aws-sdk-secretsmanager"
4
- require "aws-sdk-ssm"
5
-
6
3
  require "yamload/loading"
7
4
  require "yamload/conversion"
8
5
  require "yamload/defaults"
@@ -50,6 +50,7 @@ module Yamload
50
50
  end
51
51
 
52
52
  def secrets_client
53
+ require "aws-sdk-secretsmanager"
53
54
  options = {}
54
55
  options[:endpoint] = ENV["AWS_SECRETS_MANAGER_ENDPOINT"] if ENV.has_key?("AWS_SECRETS_MANAGER_ENDPOINT")
55
56
  @secrets_client ||= Aws::SecretsManager::Client.new(options)
@@ -60,6 +61,7 @@ module Yamload
60
61
  end
61
62
 
62
63
  def ssm_client
64
+ require "aws-sdk-ssm"
63
65
  options = {}
64
66
  options[:endpoint] = ENV["AWS_SSM_ENDPOINT"] if ENV.has_key?("AWS_SSM_ENDPOINT")
65
67
  @ssm_client ||= Aws::SSM::Client.new(options)
@@ -1,3 +1,3 @@
1
1
  module Yamload
2
- VERSION = "0.7.0"
2
+ VERSION = "0.9.0"
3
3
  end
data/spec/spec_helper.rb CHANGED
@@ -4,5 +4,8 @@ require "support/coverage_loader"
4
4
 
5
5
  require "yamload"
6
6
 
7
+ require "aws-sdk-ssm"
8
+ require "aws-sdk-secretsmanager"
9
+
7
10
  current_file_dir = __dir__
8
11
  Yamload.dir = File.join(current_file_dir, "fixtures")
data/yamload.gemspec CHANGED
@@ -14,10 +14,9 @@ Gem::Specification.new do |spec|
14
14
 
15
15
  spec.files = `git ls-files -z`.split("\x0")
16
16
  spec.executables = spec.files.grep(/^bin\//) { |f| File.basename(f) }
17
- spec.test_files = spec.files.grep(/^(test|spec|features)\//)
18
17
  spec.require_paths = ["lib"]
19
18
 
20
- spec.required_ruby_version = ">= 2.6.0"
19
+ spec.required_ruby_version = ">= 3.0"
21
20
 
22
21
  spec.add_dependency "anima", ">= 0.2"
23
22
  spec.add_dependency "facets", ">= 3.0"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: yamload
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.0
4
+ version: 0.9.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alessandro Berardi
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2022-01-25 00:00:00.000000000 Z
12
+ date: 2023-01-17 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: anima
@@ -173,6 +173,7 @@ executables: []
173
173
  extensions: []
174
174
  extra_rdoc_files: []
175
175
  files:
176
+ - ".git-blame-ignore-revs"
176
177
  - ".github/dependabot.yml"
177
178
  - ".github/workflows/release.yml"
178
179
  - ".github/workflows/ruby.yml"
@@ -221,26 +222,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
221
222
  requirements:
222
223
  - - ">="
223
224
  - !ruby/object:Gem::Version
224
- version: 2.6.0
225
+ version: '3.0'
225
226
  required_rubygems_version: !ruby/object:Gem::Requirement
226
227
  requirements:
227
228
  - - ">="
228
229
  - !ruby/object:Gem::Version
229
230
  version: '0'
230
231
  requirements: []
231
- rubygems_version: 3.3.3
232
+ rubygems_version: 3.4.1
232
233
  signing_key:
233
234
  specification_version: 4
234
235
  summary: YAML files loader
235
- test_files:
236
- - spec/conversion_spec.rb
237
- - spec/fixtures/array.yml
238
- - spec/fixtures/empty.yml
239
- - spec/fixtures/erb.yml
240
- - spec/fixtures/erb_bad.yml
241
- - spec/fixtures/string.yml
242
- - spec/fixtures/test.yml
243
- - spec/fixtures/unsafe.yml
244
- - spec/loader_spec.rb
245
- - spec/spec_helper.rb
246
- - spec/support/coverage_loader.rb
236
+ test_files: []