itamae 1.12.3 → 1.12.6

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: 17158d3ef06df2730ccbe939d17e55b6adc0ede605bed85e4139c49afb1d7117
4
- data.tar.gz: '087403bab2639a22e8fc59d2064c12e55801749a8e202b13c90e6de4093edb62'
3
+ metadata.gz: e18a63f707a8c5e6553adf7548c3467e704f59a845a81292385a34c14ae4462b
4
+ data.tar.gz: 8d159da6ad0674a343f521a0cbc721ccd5016e6e394489724f18381c4c04edfa
5
5
  SHA512:
6
- metadata.gz: 2c7585b3bb1fcf639f450b7dbeb97cd7a0d4fb4e04b4bf1375f28d4c60910943dcf41efc2989af05ad38df85375103a43a77e36aac8b1296ae84ed3bbd0f9f05
7
- data.tar.gz: 9461f6adf5d0622c2f908b239a1dd13a10dd03d95bd752cfdb03717289df9993cbc0592335faded7f996bf9f8ba3b5ce34cbbb42cc85bda3c5345249a789e411
6
+ metadata.gz: 236c31793aef48956d4d04b92ac7dd09076d7f3a33a9f7eefc943fe74beebc8914f4aa05630c104dc35f11b2b70e6504409b4469a8b436d5d2d476482439dc90
7
+ data.tar.gz: fcb7322c39beba8614cdc88383a9b1ece9626f5318a717f323c9420ecc57e29f9e6dd28285df42588fe9a8abdb6899b1121eba6a2ba53269e2ba615a4affaf1b
@@ -27,9 +27,11 @@ jobs:
27
27
  - "2.6"
28
28
  - "2.7"
29
29
  - "3.0"
30
+ - "3.1"
30
31
  rubyopt:
31
32
  - ""
32
33
  - "--jit"
34
+ - "--yjit"
33
35
  exclude:
34
36
  # --jit is available since MRI 2.6
35
37
  - ruby: "2.3"
@@ -38,7 +40,19 @@ jobs:
38
40
  rubyopt: "--jit"
39
41
  - ruby: "2.5"
40
42
  rubyopt: "--jit"
41
-
43
+ # --yjit is available since MRI 3.1
44
+ - ruby: "2.3"
45
+ rubyopt: "--yjit"
46
+ - ruby: "2.4"
47
+ rubyopt: "--yjit"
48
+ - ruby: "2.5"
49
+ rubyopt: "--yjit"
50
+ - ruby: "2.6"
51
+ rubyopt: "--yjit"
52
+ - ruby: "2.7"
53
+ rubyopt: "--yjit"
54
+ - ruby: "3.0"
55
+ rubyopt: "--yjit"
42
56
  env:
43
57
  RUBYOPT: ${{ matrix.rubyopt }}
44
58
 
data/CHANGELOG.md CHANGED
@@ -1,5 +1,33 @@
1
1
  ## Unreleased
2
- [full changelog](https://github.com/itamae-kitchen/itamae/compare/v1.12.2...master)
2
+ [full changelog](https://github.com/itamae-kitchen/itamae/compare/v1.12.6...master)
3
+
4
+ ## v1.12.6
5
+ [full changelog](https://github.com/itamae-kitchen/itamae/compare/v1.12.5...v1.12.6)
6
+
7
+ Bugfixes
8
+
9
+ - [Support Psych4.x](https://github.com/itamae-kitchen/itamae/pull/348)
10
+
11
+ ## v1.12.5
12
+ [full changelog](https://github.com/itamae-kitchen/itamae/compare/v1.12.4...v1.12.5)
13
+
14
+ Bugfixes
15
+
16
+ - [Define exit_on_failure? to suppress thor's warning](https://github.com/itamae-kitchen/itamae/pull/344)
17
+
18
+ ## v1.12.4
19
+ [full changelog](https://github.com/itamae-kitchen/itamae/compare/v1.12.3...v1.12.4)
20
+
21
+ Improvements
22
+
23
+ - [Initialize tmp_dir if no tmpdir option was specified.](https://github.com/itamae-kitchen/itamae/pull/341)
24
+
25
+ ## v1.12.3
26
+ [full changelog](https://github.com/itamae-kitchen/itamae/compare/v1.12.2...v1.12.3)
27
+
28
+ Bugfixes
29
+
30
+ - [Fix Chef install script URL (by @NPoi)](https://github.com/itamae-kitchen/itamae/pull/339)
3
31
 
4
32
  ## v1.12.2
5
33
  [full changelog](https://github.com/itamae-kitchen/itamae/compare/v1.12.1...v1.12.2)
data/bin/itamae CHANGED
@@ -2,4 +2,3 @@
2
2
 
3
3
  require 'itamae/cli'
4
4
  Itamae::CLI.start
5
-
data/lib/itamae/cli.rb CHANGED
@@ -31,11 +31,15 @@ module Itamae
31
31
  def self.options
32
32
  @itamae_options ||= super.dup.tap do |options|
33
33
  if config = options[:config]
34
- options.merge!(YAML.load_file(config))
34
+ options.merge!(YAML.respond_to?(:unsafe_load) ? YAML.unsafe_load(config) : YAML.load(config))
35
35
  end
36
36
  end
37
37
  end
38
38
 
39
+ def self.exit_on_failure?
40
+ true
41
+ end
42
+
39
43
  desc "local RECIPE [RECIPE...]", "Run Itamae locally"
40
44
  define_exec_options
41
45
  def local(*recipe_files)
data/lib/itamae/runner.rb CHANGED
@@ -30,7 +30,7 @@ module Itamae
30
30
  prepare_handler
31
31
 
32
32
  @node = create_node
33
- @tmpdir = options[:tmp_dir]
33
+ @tmpdir = options[:tmp_dir] || '/tmp/itamae_tmp'
34
34
  @children = RecipeChildren.new
35
35
  @diff = false
36
36
 
@@ -114,7 +114,8 @@ module Itamae
114
114
  if @options[:node_yaml]
115
115
  path = File.expand_path(@options[:node_yaml])
116
116
  Itamae.logger.info "Loading node data from #{path}..."
117
- hash.merge!(YAML.load(open(path)) || {})
117
+ yaml = YAML.respond_to?(:unsafe_load) ? YAML.unsafe_load(open(path)) : YAML.load(open(path))
118
+ hash.merge!(yaml || {})
118
119
  end
119
120
 
120
121
  Node.new(hash, @backend)
@@ -1,3 +1,3 @@
1
1
  module Itamae
2
- VERSION = "1.12.3"
2
+ VERSION = "1.12.6"
3
3
  end
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.12.3
4
+ version: 1.12.6
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: 2021-11-18 00:00:00.000000000 Z
13
+ date: 2022-04-18 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: thor