itamae-mitsurin 0.35 → 0.36

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
  SHA1:
3
- metadata.gz: db9ad7a86446e88dc50ab91c861e38155c1350f6
4
- data.tar.gz: 2fe613b6476780c81e5311e744101a487f729d8c
3
+ metadata.gz: d035a5bf6fe73ee2c347aa0d3d867bfd8f689666
4
+ data.tar.gz: c662add51008eab10c8de6cb539dbecfbe4fe9ab
5
5
  SHA512:
6
- metadata.gz: 190496a48de3ddb5777a3004172495ebe4d390051d6fbe72be8545677ed2613ed278b80dee8d443c38f96c0da8fe1252b17976d5ac236605db9dd8dfd4d5c932
7
- data.tar.gz: a7cdb00986b1a28f2e6619d10e6a0a4839e4af690253d3903aad8c49288eb5e0c61bb4434d9221234acce291483a5a14143144b9b4018f8b06df9ae7a081af15
6
+ metadata.gz: ddd69d0300951a385e922ada278b176fc3425ac49a3f6ecc9a418bb706f7bba3ab3098c0ddb3881bf96f2ac57870b02545d34f5101d5d5dc6f9dc0bf22e29460
7
+ data.tar.gz: 6a00cca54e095d9e9e3ea908d3b49097c5e2830f0faa048015809a2388acc3b383f0ea21120c6dcd1e5d280048f2b7b7e985c056f74e83d32436f6f3cf9d4d6f
@@ -110,12 +110,14 @@ module ItamaeMitsurin
110
110
  # recipes load to_command
111
111
  command_recipe = []
112
112
  recipes.each do |recipe_h|
113
- target_recipe = "site-cookbooks/**/#{recipe_h.keys.join}/recipes/#{recipe_h["#{recipe_h.keys.join}"]}.rb"
114
- unless File.exists?("#{Dir.glob(target_recipe).join}")
115
- ex_recipe = recipe_h.to_s.gsub('=>', '::').gsub('"', '')
116
- raise "Recipe load error, nodefile:#{node_file}, reason:Not exist the recipe #{ex_recipe}"
113
+ target_recipe = "site-cookbooks/**/#{recipe_h.keys.join}/recipes/#{recipe_h[recipe_h.keys.join]}.rb"
114
+ Dir.glob(target_recipe).join("\s").split.each do |target|
115
+ unless File.exists?(target)
116
+ ex_recipe = recipe_h.to_s.gsub('=>', '::').gsub('"', '')
117
+ raise "Recipe load error, nodefile:#{node_file}, reason:Not exist the recipe #{ex_recipe}"
118
+ end
119
+ command_recipe << " #{target}"
117
120
  end
118
- command_recipe << " #{Dir.glob(target_recipe).join("\s")}"
119
121
  end
120
122
 
121
123
  command_recipe.sort_by! {|item| File.dirname(item)}
@@ -119,12 +119,14 @@ module ItamaeMitsurin
119
119
  # recipe load to_command
120
120
  command_recipe = []
121
121
  recipes.each do |recipe_h|
122
- target_recipe = "site-cookbooks/**/#{recipe_h.keys.join}/recipes/#{recipe_h["#{recipe_h.keys.join}"]}.rb"
123
- unless File.exists?("#{Dir.glob(target_recipe).join}")
124
- ex_recipe = recipe_h.to_s.gsub('=>', '::').gsub('"', '')
125
- raise "Recipe load error, nodefile:#{node_file}, reason:Not exist the recipe #{ex_recipe}"
122
+ target_recipe = "site-cookbooks/**/#{recipe_h.keys.join}/recipes/#{recipe_h[recipe_h.keys.join]}.rb"
123
+ Dir.glob(target_recipe).join("\s").split.each do |target|
124
+ unless File.exists?(target)
125
+ ex_recipe = recipe_h.to_s.gsub('=>', '::').gsub('"', '')
126
+ raise "Recipe load error, nodefile:#{node_file}, reason:Not exist the recipe #{ex_recipe}"
127
+ end
128
+ command_recipe << " #{target}"
126
129
  end
127
- command_recipe << " #{Dir.glob(target_recipe).join("\s")}"
128
130
  end
129
131
 
130
132
  command_recipe.sort_by! {|item| File.dirname(item)}
@@ -126,12 +126,14 @@ module ItamaeMitsurin
126
126
  # recipe load to_command
127
127
  command_recipe = []
128
128
  recipes.each do |recipe_h|
129
- target_recipe = "site-cookbooks/**/#{recipe_h.keys.join}/recipes/#{recipe_h["#{recipe_h.keys.join}"]}.rb"
130
- unless File.exists?("#{Dir.glob(target_recipe).join}")
131
- ex_recipe = recipe_h.to_s.gsub('=>', '::').gsub('"', '')
132
- raise "Recipe load error, nodefile:#{node_file}, reason:Not exist the recipe #{ex_recipe}"
129
+ target_recipe = "site-cookbooks/**/#{recipe_h.keys.join}/recipes/#{recipe_h[recipe_h.keys.join]}.rb"
130
+ Dir.glob(target_recipe).join("\s").split.each do |target|
131
+ unless File.exists?(target)
132
+ ex_recipe = recipe_h.to_s.gsub('=>', '::').gsub('"', '')
133
+ raise "Recipe load error, nodefile:#{node_file}, reason:Not exist the recipe #{ex_recipe}"
134
+ end
135
+ command_recipe << " #{target}"
133
136
  end
134
- command_recipe << " #{Dir.glob(target_recipe).join("\s")}"
135
137
  end
136
138
 
137
139
  command_recipe.sort_by! {|item| File.dirname(item)}
@@ -105,12 +105,14 @@ module ItamaeMitsurin
105
105
  # recipe load to_command
106
106
  command_recipe = []
107
107
  recipes.each do |recipe_h|
108
- target_recipe = "site-cookbooks/**/#{recipe_h.keys.join}/recipes/#{recipe_h["#{recipe_h.keys.join}"]}.rb"
109
- unless File.exists?("#{Dir.glob(target_recipe).join}")
110
- ex_recipe = recipe_h.to_s.gsub('=>', '::').gsub('"', '')
111
- raise "Recipe load error, nodefile:#{node_file}, reason:Not exist the recipe #{ex_recipe}"
108
+ target_recipe = "site-cookbooks/**/#{recipe_h.keys.join}/recipes/#{recipe_h[recipe_h.keys.join]}.rb"
109
+ Dir.glob(target_recipe).join("\s").split.each do |target|
110
+ unless File.exists?(target)
111
+ ex_recipe = recipe_h.to_s.gsub('=>', '::').gsub('"', '')
112
+ raise "Recipe load error, nodefile:#{node_file}, reason:Not exist the recipe #{ex_recipe}"
113
+ end
114
+ command_recipe << " #{target}"
112
115
  end
113
- command_recipe << " #{Dir.glob(target_recipe).join("\s")}"
114
116
  end
115
117
 
116
118
  command_recipe.sort_by! {|item| File.dirname(item)}
@@ -65,12 +65,14 @@ module Itamae
65
65
  # recipe load to_spec
66
66
  spec_pattern = []
67
67
  recipes.each do |spec_h|
68
- target_spec = "site-cookbooks/**/#{spec_h.keys.join}/spec/#{spec_h["#{spec_h.keys.join}"]}_spec.rb"
69
- unless File.exists?("#{Dir.glob(target_spec).join}")
70
- ex_recipe = spec_h.to_s.gsub('=>', '::').gsub('"', '')
71
- raise "Spec load error, nodefile:#{node_file}, reason:Not exist the spec #{ex_recipe}"
68
+ target_spec = "site-cookbooks/**/#{recipe_h.keys.join}/spec/#{recipe_h[recipe_h.keys.join]}_spec.rb"
69
+ Dir.glob(target_spec).join("\s").split.each do |target|
70
+ unless File.exists?(target)
71
+ ex_spec = spec_h.to_s.gsub('=>', '::').gsub('"', '')
72
+ raise "Spec load error, nodefile:#{node_file}, reason:Not exist the recipe #{ex_spec}"
73
+ end
74
+ spec_pattern << " #{target}"
72
75
  end
73
- spec_pattern << " #{Dir.glob(target_spec).join("\s")}"
74
76
  end
75
77
 
76
78
  spec_pattern.sort_by! {|item| File.dirname(item)}
@@ -1 +1 @@
1
- 0.35
1
+ 0.36
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: itamae-mitsurin
3
3
  version: !ruby/object:Gem::Version
4
- version: '0.35'
4
+ version: '0.36'
5
5
  platform: ruby
6
6
  authors:
7
7
  - Akihiro Kamiyama
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-04-28 00:00:00.000000000 Z
11
+ date: 2016-05-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor