lib/scaffoldhub/specification.rb in scaffoldhub-0.0.8 vs lib/scaffoldhub/specification.rb in scaffoldhub-0.0.10

- old
+ new

@@ -40,14 +40,15 @@ class Specification mattr_accessor :name, :description, :base_url, :blog_post, :screenshot, :parameter_example define_dsl_attributes :name, :description, :base_url, :blog_post, :screenshot, :parameter_example - mattr_accessor :files, :errors, :tags + mattr_accessor :files, :errors, :tags, :gems @@files = [] @@errors = [] @@tags = [] + @@gems = [] define_dsl_file_keyword :model, :migration, :controller, :view, :layout class << self @@ -63,10 +64,11 @@ { :name => name, :description => description, :base_url => adjusted_base_url, :blog_post => blog_post, + :gems => gems, :files => files, :screenshot => screenshot, :tags => tags, :parameter_example => parameter_example }.to_yaml @@ -151,9 +153,13 @@ file(src, options, :template) end def tag(keyword) self.class.add_tag(keyword) + end + + def gem(*args) + @@gems << args end protected def join_with_parent(parent_value, new_value)