itamae 1.10.1 → 1.10.2

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: 8e9e11beb34dd083aaff7d84c7ce47eed12641e3bdd96e182dd2b503fac5c294
4
- data.tar.gz: 2de0f1ebc33b5f5e096bf924662b0855583f2678eb7f26268b7365afbacbc7d8
3
+ metadata.gz: d537d0b8fccaf05648269fd73bf4b66418997561130cc32daeec44c731d7bc06
4
+ data.tar.gz: ffb4e8c884f3a9fd62ddefd10ed8ef743928edb39fccbe0a3b95399d9ab40f7e
5
5
  SHA512:
6
- metadata.gz: 6ac11c90da5aa4b0301c332547af1ae6f4c41e38e760e5b8676514432e102cd0b70d45fc6c1395900a6236d408fa673dc1a3089a07049af9fb3fde5d9ab50506
7
- data.tar.gz: c014c539dd0cbfa07baee78ccd88a23acd0519d21b16a0ba1c25e7598737c249d7e4b7a07998067edd16c8d0b96ae8188e87c3f77bf3132211530d4b49188006
6
+ metadata.gz: 840de2dcfe70cf2100b09686ada740b61fa116189f1d9eda7fe5ed99b9b0e134bc60c83ffbc2034eefec475eba9c5f0e3f074048c75c6e0467f5d3f159260b56
7
+ data.tar.gz: f0bc01b74bd79244bdf7f5b3f93c07ada68333a6427fcac4b1bfbbb3fed48b11b89ccc24a291c7e30665e33f86a0491f2b317e2bedd575780252b808f3e4af36
@@ -1,5 +1,12 @@
1
1
  ## Unreleased
2
- [full changelog](https://github.com/itamae-kitchen/itamae/compare/v1.10.1...master)
2
+ [full changelog](https://github.com/itamae-kitchen/itamae/compare/v1.10.2...master)
3
+
4
+ ## v1.10.2
5
+ [full changelog](https://github.com/itamae-kitchen/itamae/compare/v1.10.1...v1.10.2)
6
+
7
+ Bugfixes
8
+
9
+ - [Disable mash warnings (review catch up)](https://github.com/itamae-kitchen/itamae/pull/273)
3
10
 
4
11
  ## v1.10.1
5
12
  [full changelog](https://github.com/itamae-kitchen/itamae/compare/v1.10.0...v1.10.1)
@@ -13,6 +13,7 @@ require "itamae/notification"
13
13
  require "itamae/definition"
14
14
  require "itamae/ext"
15
15
  require "itamae/generators"
16
+ require "itamae/mash"
16
17
 
17
18
  module Itamae
18
19
  # Your code goes here...
@@ -0,0 +1,7 @@
1
+ require 'hashie'
2
+
3
+ module Itamae
4
+ class Mash < Hashie::Mash
5
+ disable_warnings
6
+ end
7
+ end
@@ -10,7 +10,7 @@ module Itamae
10
10
  attr_reader :mash
11
11
 
12
12
  def initialize(hash, backend)
13
- @mash = Hashie::Mash.new(hash)
13
+ @mash = Itamae::Mash.new(hash)
14
14
  @backend = backend
15
15
  end
16
16
 
@@ -43,7 +43,7 @@ module Itamae
43
43
  private
44
44
 
45
45
  def _reverse_merge(other_hash)
46
- Hashie::Mash.new(other_hash).merge(@mash)
46
+ Itamae::Mash.new(other_hash).merge(@mash)
47
47
  end
48
48
 
49
49
  def method_missing(method, *args)
@@ -63,7 +63,7 @@ module Itamae
63
63
  def fetch_inventory_value(key)
64
64
  value = @backend.host_inventory[key]
65
65
  if value.is_a?(Hash)
66
- value = Hashie::Mash.new(value)
66
+ value = Itamae::Mash.new(value)
67
67
  end
68
68
 
69
69
  value
@@ -16,7 +16,7 @@ module Itamae
16
16
  def initialize(resource)
17
17
  @resource = resource
18
18
 
19
- @attributes = Hashie::Mash.new
19
+ @attributes = Itamae::Mash.new
20
20
  @notifications = []
21
21
  @subscriptions = []
22
22
  @verify_commands = []
@@ -222,7 +222,7 @@ module Itamae
222
222
  end
223
223
 
224
224
  def clear_current_attributes
225
- @current_attributes = Hashie::Mash.new
225
+ @current_attributes = Itamae::Mash.new
226
226
  end
227
227
 
228
228
  def pre_action
@@ -1,3 +1,3 @@
1
1
  module Itamae
2
- VERSION = "1.10.1"
2
+ VERSION = "1.10.2"
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.10.1
4
+ version: 1.10.2
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: 2018-11-23 00:00:00.000000000 Z
13
+ date: 2018-12-14 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: thor
@@ -246,6 +246,7 @@ files:
246
246
  - lib/itamae/handler/json.rb
247
247
  - lib/itamae/handler_proxy.rb
248
248
  - lib/itamae/logger.rb
249
+ - lib/itamae/mash.rb
249
250
  - lib/itamae/node.rb
250
251
  - lib/itamae/notification.rb
251
252
  - lib/itamae/recipe.rb
@@ -322,7 +323,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
322
323
  version: '0'
323
324
  requirements: []
324
325
  rubyforge_project:
325
- rubygems_version: 2.7.7
326
+ rubygems_version: 2.7.6
326
327
  signing_key:
327
328
  specification_version: 4
328
329
  summary: Simple Configuration Management Tool