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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: debb90e8d8638159b905091113dcc1ad56712b698106eb2d203b1f0e1200a62b
4
- data.tar.gz: 4fa5db8123957e48ed172858de9d5decb08bb05838b1eafd119d0427915d703d
3
+ metadata.gz: 941bb9ea78dc5e3f6f91c1c6e423d086659eeaee58ffcdb41c66f0b99dc08667
4
+ data.tar.gz: a796304a86594b08468cf5f14c9a326ff22c7fa1987f6e1aedcd64440ff64dc9
5
5
  SHA512:
6
- metadata.gz: 550f1580b5fc523622247738a3e3cbbc0a61996144f3f8a088f05ea2f061154fb4e1e20ea598d4a62891bb99234b1ef45c8867c191ddf5aa5a285d2410e70192
7
- data.tar.gz: b99054cf2c631b478bdbe18879d4db7d4e61d5d4864745c29e54d06d8f12c9f78ceae8cf484857d8e7ce7d3a9c5674985f0d536a3f26db5e2c21fa68989d98b4
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.0...master)
2
+ [full changelog](https://github.com/itamae-kitchen/itamae/compare/v1.14.1...master)
3
3
 
4
- # v1.14.0
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)
@@ -1,3 +1,3 @@
1
1
  module Itamae
2
- VERSION = "1.14.0"
2
+ VERSION = "1.14.1"
3
3
  end
@@ -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.0
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-06 00:00:00.000000000 Z
13
+ date: 2022-07-10 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: thor