sparkle_formation 1.0.2 → 1.0.4
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 +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/sparkle_formation/sparkle.rb +9 -6
- data/lib/sparkle_formation/translation/heat.rb +1 -0
- data/lib/sparkle_formation/version.rb +1 -1
- data/sparkle_formation.gemspec +1 -0
- metadata +16 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5a7ac537659ebf74662bbcfff4803d88c1dedfc8
|
4
|
+
data.tar.gz: f87846f1473c7b2557121b125243829dad134edd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8710305f6ca7f5e96e987c87c2896451641d3a9469f5c0d3c1bb1a283b6c7ed1a09759979d014fd447862c689eb815b870ac7462d4c10a106b1659623eb8e7b3
|
7
|
+
data.tar.gz: 903bbd84d290e38b3273858dd16260e866c95a62085d4d12441c6b6ff007b1412f18f421ccd03d12d22398f878a39527943458893db0ef1f7f24e33550a7a857
|
data/CHANGELOG.md
CHANGED
@@ -247,18 +247,21 @@ class SparkleFormation
|
|
247
247
|
data = Smash.new(:template => [])
|
248
248
|
t_wrap = eval_wrapper.new
|
249
249
|
t_wrap.part_data(data)
|
250
|
-
|
251
|
-
|
252
|
-
|
250
|
+
if(slim_path.end_with?('.rb'))
|
251
|
+
begin
|
252
|
+
t_wrap.instance_eval(IO.read(path), path, 1)
|
253
|
+
rescue TypeError
|
254
|
+
end
|
253
255
|
end
|
254
|
-
data = data[:template].first
|
256
|
+
data = data[:template].first || Smash.new
|
255
257
|
unless(data[:name])
|
256
|
-
data[:name] = slim_path.tr('/', '__')
|
258
|
+
data[:name] = slim_path.tr('/', '__').sub(/\.(rb|json)$/, '')
|
257
259
|
end
|
258
260
|
hash[data[:name]] = data.merge(
|
259
261
|
Smash.new(
|
260
262
|
:type => :template,
|
261
|
-
:path => path
|
263
|
+
:path => path,
|
264
|
+
:serialized => !path.end_with?('.rb')
|
262
265
|
)
|
263
266
|
)
|
264
267
|
end
|
data/sparkle_formation.gemspec
CHANGED
@@ -13,6 +13,7 @@ Gem::Specification.new do |s|
|
|
13
13
|
s.add_dependency 'attribute_struct', '~> 0.2.2'
|
14
14
|
s.add_dependency 'multi_json'
|
15
15
|
s.add_dependency 'bogo'
|
16
|
+
s.add_development_dependency 'minitest'
|
16
17
|
s.executables << 'generate_sparkle_docs'
|
17
18
|
s.files = Dir['lib/**/*'] + %w(sparkle_formation.gemspec README.md CHANGELOG.md LICENSE)
|
18
19
|
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.0.
|
4
|
+
version: 1.0.4
|
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-
|
11
|
+
date: 2015-10-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: attribute_struct
|
@@ -52,6 +52,20 @@ dependencies:
|
|
52
52
|
- - ">="
|
53
53
|
- !ruby/object:Gem::Version
|
54
54
|
version: '0'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: minitest
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - ">="
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0'
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - ">="
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '0'
|
55
69
|
description: Ruby DSL for programmatic orchestration API template generation
|
56
70
|
email: chrisroberts.code@gmail.com
|
57
71
|
executables:
|