sparkle_formation 0.4.0 → 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -44,22 +44,5 @@ class SparkleFormation
44
44
  ::SparkleFormation::SparkleStruct
45
45
  end
46
46
 
47
- # Override the state to force helpful error when no value has been
48
- # provided
49
- #
50
- # @param arg [String, Symbol] name of parameter
51
- # @return [Object]
52
- # @raises [ArgumentError]
53
- def _state(arg)
54
- result = super
55
- if(@self && result.nil?)
56
- if(_self.parameters.keys.map(&:to_s).include?(arg.to_s))
57
- ::Kernel.raise ::ArgumentError.new "No value provided for compile time parameter: `#{arg}`!"
58
- end
59
- end
60
- result
61
- end
62
- alias_method :state!, :_state
63
-
64
47
  end
65
48
  end
@@ -1,21 +1,3 @@
1
- #
2
- # Author:: Chris Roberts <chris@hw-ops.com>
3
- # Copyright:: 2013, Heavy Water Operations, LLC
4
- # License:: Apache License, Version 2.0
5
- #
6
- # Licensed under the Apache License, Version 2.0 (the "License");
7
- # you may not use this file except in compliance with the License.
8
- # You may obtain a copy of the License at
9
- #
10
- # http://www.apache.org/licenses/LICENSE-2.0
11
- #
12
- # Unless required by applicable law or agreed to in writing, software
13
- # distributed under the License is distributed on an "AS IS" BASIS,
14
- # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
- # See the License for the specific language governing permissions and
16
- # limitations under the License.
17
- #
18
-
19
1
  class SparkleFormation
20
2
 
21
3
  # Helper utilities
@@ -1,22 +1,4 @@
1
- #
2
- # Author:: Chris Roberts <chris@hw-ops.com>
3
- # Copyright:: 2013, Heavy Water Operations, LLC
4
- # License:: Apache License, Version 2.0
5
- #
6
- # Licensed under the Apache License, Version 2.0 (the "License");
7
- # you may not use this file except in compliance with the License.
8
- # You may obtain a copy of the License at
9
- #
10
- # http://www.apache.org/licenses/LICENSE-2.0
11
- #
12
- # Unless required by applicable law or agreed to in writing, software
13
- # distributed under the License is distributed on an "AS IS" BASIS,
14
- # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
- # See the License for the specific language governing permissions and
16
- # limitations under the License.
17
- #
18
-
19
1
  class SparkleFormation
20
2
  # Current library version
21
- VERSION = Gem::Version.new('0.4.0')
3
+ VERSION = Gem::Version.new('1.0.0')
22
4
  end
@@ -16,11 +16,15 @@
16
16
  # limitations under the License.
17
17
  #
18
18
 
19
+ require 'bogo'
19
20
  require 'multi_json'
20
21
  require 'attribute_struct'
21
22
 
22
23
  class SparkleFormation
23
24
  autoload :Aws, 'sparkle_formation/aws'
25
+ autoload :Error, 'sparkle_formation/error'
26
+ autoload :Sparkle, 'sparkle_formation/sparkle'
27
+ autoload :SparkleCollection, 'sparkle_formation/sparkle_collection'
24
28
  autoload :SparkleAttribute, 'sparkle_formation/sparkle_attribute'
25
29
  autoload :SparkleStruct, 'sparkle_formation/sparkle_struct'
26
30
  autoload :Utils, 'sparkle_formation/utils'
@@ -3,15 +3,16 @@ require 'sparkle_formation/version'
3
3
  Gem::Specification.new do |s|
4
4
  s.name = 'sparkle_formation'
5
5
  s.version = SparkleFormation::VERSION.version
6
- s.summary = 'Cloud Formation builder'
6
+ s.summary = 'Orchestration Template Generator'
7
7
  s.author = 'Chris Roberts'
8
8
  s.email = 'chrisroberts.code@gmail.com'
9
9
  s.homepage = 'http://github.com/heavywater/sparkle_formation'
10
- s.description = 'Cloud Formation builder'
10
+ s.description = 'Ruby DSL for programmatic orchestration API template generation'
11
11
  s.license = 'Apache-2.0'
12
12
  s.require_path = 'lib'
13
13
  s.add_dependency 'attribute_struct', '~> 0.2.2'
14
14
  s.add_dependency 'multi_json'
15
+ s.add_dependency 'bogo'
15
16
  s.executables << 'generate_sparkle_docs'
16
17
  s.files = Dir['lib/**/*'] + %w(sparkle_formation.gemspec README.md CHANGELOG.md LICENSE)
17
18
  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: 0.4.0
4
+ version: 1.0.0
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-10-19 00:00:00.000000000 Z
11
+ date: 2015-09-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: attribute_struct
@@ -38,7 +38,21 @@ dependencies:
38
38
  - - ">="
39
39
  - !ruby/object:Gem::Version
40
40
  version: '0'
41
- description: Cloud Formation builder
41
+ - !ruby/object:Gem::Dependency
42
+ name: bogo
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ">="
46
+ - !ruby/object:Gem::Version
47
+ version: '0'
48
+ type: :runtime
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ">="
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
55
+ description: Ruby DSL for programmatic orchestration API template generation
42
56
  email: chrisroberts.code@gmail.com
43
57
  executables:
44
58
  - generate_sparkle_docs
@@ -52,7 +66,10 @@ files:
52
66
  - lib/sparkle_formation.rb
53
67
  - lib/sparkle_formation/aws.rb
54
68
  - lib/sparkle_formation/aws/cfn_resources.rb
69
+ - lib/sparkle_formation/error.rb
70
+ - lib/sparkle_formation/sparkle.rb
55
71
  - lib/sparkle_formation/sparkle_attribute.rb
72
+ - lib/sparkle_formation/sparkle_collection.rb
56
73
  - lib/sparkle_formation/sparkle_formation.rb
57
74
  - lib/sparkle_formation/sparkle_struct.rb
58
75
  - lib/sparkle_formation/translation.rb
@@ -81,8 +98,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
81
98
  version: '0'
82
99
  requirements: []
83
100
  rubyforge_project:
84
- rubygems_version: 2.4.8
101
+ rubygems_version: 2.2.2
85
102
  signing_key:
86
103
  specification_version: 4
87
- summary: Cloud Formation builder
104
+ summary: Orchestration Template Generator
88
105
  test_files: []
106
+ has_rdoc: