itamae 1.0.0.beta47 → 1.0.0.beta48

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
  SHA1:
3
- metadata.gz: bc13f155a2d5b06eae4ceb4d25218175ba385f76
4
- data.tar.gz: 5f0f2e50fef4c649303d6d0a0c9c77f36c5dc1a7
3
+ metadata.gz: ea6504545b5ef08cb42d0606a9231f2bcfc0cf73
4
+ data.tar.gz: 5e66a3f2870bb81b3a8eace424d8e6b9d3084df0
5
5
  SHA512:
6
- metadata.gz: 86a591a7c417d9a79727a32a40f6e6b923508b6e7892bebb338fd35d23c3756c0b3f66128d741978e1c73acd67b84ae9e91ede219c8fa6d17be02da5751e9c14
7
- data.tar.gz: bc60e85677b29e53ea3f569afb7cd91d5d7cc6225a5a399bb07ebcf80442e2f7fda43ca50e4d8c5bed949549d6c0d4364d4f73e7456ade03e93e88d87c0183ee
6
+ metadata.gz: 275ce2988ae1ea0071f1c3b2def47808c8a6664e59acce0a2fc4c68c0ce798ff2e2659a76194957219cd14bcf406498b47facb9879c816c1d229a04dbaa79579
7
+ data.tar.gz: 3d90b5e3229cd87e019ffc4b433dadba069ff6437db0089ef71d6af885e88c932d18bf0d7ee6914187645472d1e45024edfdb92c151506372245226bdf4b1789
data/lib/itamae/recipe.rb CHANGED
@@ -53,11 +53,14 @@ module Itamae
53
53
  super unless args.size == 2
54
54
 
55
55
  method, name = args
56
- klass = Resource.get_resource_class(method)
56
+ begin
57
+ klass = Resource.get_resource_class(method)
58
+ rescue NameError
59
+ super
60
+ end
61
+
57
62
  resource = klass.new(self, name, &block)
58
63
  @children << resource
59
- rescue
60
- super
61
64
  end
62
65
 
63
66
  def include_recipe(recipe)
@@ -1 +1 @@
1
- 1.0.0.beta47
1
+ 1.0.0.beta48
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: itamae
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0.beta47
4
+ version: 1.0.0.beta48
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ryota Arai
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-09-09 00:00:00.000000000 Z
11
+ date: 2014-09-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor