itamae 1.14.0 → 1.14.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 +4 -4
- data/CHANGELOG.md +10 -2
- data/lib/itamae/runner.rb +4 -0
- data/lib/itamae/version.rb +1 -1
- data/spec/unit/lib/itamae/runner_spec.rb +8 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 941bb9ea78dc5e3f6f91c1c6e423d086659eeaee58ffcdb41c66f0b99dc08667
|
4
|
+
data.tar.gz: a796304a86594b08468cf5f14c9a326ff22c7fa1987f6e1aedcd64440ff64dc9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ebe3d6b48795534aecab054b5f46b1a65f139810a5c65f3ad3efa3a42f4a01dbc36a2fbe5473c115a89fec39c7f29a2c49e6341ba7db9498a954970e2e351e2e
|
7
|
+
data.tar.gz: 926e1637d9372bc22a17d79af0e2456c142ed6a8e24c4b3e8ccd7c5af0dacd76b155848aec8d4b88fa78e27713c8831c27f8fb298acd6b72eab5008d799e0d85
|
data/CHANGELOG.md
CHANGED
@@ -1,7 +1,15 @@
|
|
1
1
|
## Unreleased
|
2
|
-
[full changelog](https://github.com/itamae-kitchen/itamae/compare/v1.14.
|
2
|
+
[full changelog](https://github.com/itamae-kitchen/itamae/compare/v1.14.1...master)
|
3
3
|
|
4
|
-
|
4
|
+
## v1.14.1
|
5
|
+
[full changelog](https://github.com/itamae-kitchen/itamae/compare/v1.14.0...v1.14.1)
|
6
|
+
|
7
|
+
Bugfixes
|
8
|
+
|
9
|
+
- [Add Itamae::Runner recipe_files argument data type validation (by @dvinciguerra)](https://github.com/itamae-kitchen/itamae/pull/356)
|
10
|
+
|
11
|
+
|
12
|
+
## v1.14.0
|
5
13
|
[full changelog](https://github.com/itamae-kitchen/itamae/compare/v1.13.1...v1.14.0)
|
6
14
|
|
7
15
|
Bugfixes
|
data/lib/itamae/runner.rb
CHANGED
@@ -5,6 +5,10 @@ module Itamae
|
|
5
5
|
class Runner
|
6
6
|
class << self
|
7
7
|
def run(recipe_files, backend_type, options)
|
8
|
+
unless recipe_files.is_a? Array
|
9
|
+
raise ArgumentError, 'recipe_files must be an Array'
|
10
|
+
end
|
11
|
+
|
8
12
|
Itamae.logger.info "Starting Itamae... #{options[:dry_run] ? '(dry-run)' : ''}"
|
9
13
|
|
10
14
|
backend = Backend.create(backend_type, options)
|
data/lib/itamae/version.rb
CHANGED
@@ -27,6 +27,14 @@ module Itamae
|
|
27
27
|
end
|
28
28
|
described_class.run(recipes, :local, {})
|
29
29
|
end
|
30
|
+
|
31
|
+
it "raises error for invalid recipes argument type" do
|
32
|
+
[nil, "recipe.rb"].each do |recipe|
|
33
|
+
expect do
|
34
|
+
described_class.run(recipe, :local, {})
|
35
|
+
end.to raise_error(ArgumentError, 'recipe_files must be an Array')
|
36
|
+
end
|
37
|
+
end
|
30
38
|
end
|
31
39
|
|
32
40
|
describe "#initialize" do
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: itamae
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.14.
|
4
|
+
version: 1.14.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ryota Arai
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2022-07-
|
13
|
+
date: 2022-07-10 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: thor
|