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 +4 -4
- data/CHANGELOG.md +3 -0
- data/lib/sparkle_formation/sparkle_struct.rb +7 -1
- data/lib/sparkle_formation/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8a7e6e93033281c4cab5a4de58a9b3f69fe8f4a2
|
4
|
+
data.tar.gz: 4e8caf3fd312ef7652fdae7772a81063c1e0f8d0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e48b6a5e95547b94d5e9125f8a6ced01cadbef7e31c44ef0e5227b8c13d16bb88c5b57f88d878c73dfe4f75f6f39bce998fc791443fdbc20471f2749dad4831e
|
7
|
+
data.tar.gz: ae71260ea64450bc052200c7787c2f4991aa737342a4a7ca03e2ef44580e1a299a925f889dcbfbcaa4a4f8adbdccaf4f33928ebb8e4bcc63474f8669f7882b50
|
data/CHANGELOG.md
CHANGED
@@ -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
|
|
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.
|
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-
|
11
|
+
date: 2015-12-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: attribute_struct
|