sparkle_formation 1.1.12 → 1.1.14

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: 834c8c3a8e7fce26c9dc7ab423e1aaf3824f4c0b
4
- data.tar.gz: ac2dc9b8d0d03d3df50b58f78ea67e4993dba391
3
+ metadata.gz: 8a7e6e93033281c4cab5a4de58a9b3f69fe8f4a2
4
+ data.tar.gz: 4e8caf3fd312ef7652fdae7772a81063c1e0f8d0
5
5
  SHA512:
6
- metadata.gz: 1c33d9b0a56e7e67833a0e69503d89adb441770d4d88cd36206ff3c8a7696d9d72187f53a22d6bb87fb67d84e1d05be3675e182d12ca2a62cec413cf51fd0700
7
- data.tar.gz: 7b928c6d9b629c684272d97305f0c76100d26095acd896b20d1eed8f64ef344a0689214d64248f968ee52dd2a676b52e9a44e765da1247a21e4bf4c2075c63b0
6
+ metadata.gz: e48b6a5e95547b94d5e9125f8a6ced01cadbef7e31c44ef0e5227b8c13d16bb88c5b57f88d878c73dfe4f75f6f39bce998fc791443fdbc20471f2749dad4831e
7
+ data.tar.gz: ae71260ea64450bc052200c7787c2f4991aa737342a4a7ca03e2ef44580e1a299a925f889dcbfbcaa4a4f8adbdccaf4f33928ebb8e4bcc63474f8669f7882b50
data/CHANGELOG.md CHANGED
@@ -1,3 +1,6 @@
1
+ ## v1.1.14
2
+ * Fix for multi depth hash loading within nested stacks (#118)
3
+
1
4
  ## v1.1.12
2
5
  * New helper methods added `raise!` and `puts!` (#109)
3
6
  * Fix for registry usage within components (#115)
@@ -48,8 +48,14 @@ class SparkleFormation
48
48
  #
49
49
  # @return [SparkleStruct]
50
50
  def _klass_new(*args, &block)
51
- inst = super
51
+ inst = super()
52
52
  inst._set_self(_self)
53
+ if(args.first.is_a?(::Hash))
54
+ inst._load(args.first)
55
+ end
56
+ if(block)
57
+ inst.build!(&block)
58
+ end
53
59
  inst
54
60
  end
55
61
 
@@ -1,4 +1,4 @@
1
1
  class SparkleFormation
2
2
  # Current library version
3
- VERSION = Gem::Version.new('1.1.12')
3
+ VERSION = Gem::Version.new('1.1.14')
4
4
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sparkle_formation
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.12
4
+ version: 1.1.14
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chris Roberts
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-12-17 00:00:00.000000000 Z
11
+ date: 2015-12-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: attribute_struct