rails3-generators 0.10.2 → 0.10.3
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.
- data/CHANGELOG.rdoc +1 -1
- data/VERSION +1 -1
- data/lib/generators/machinist/model/model_generator.rb +2 -2
- data/rails3-generators.gemspec +2 -2
- metadata +3 -3
data/CHANGELOG.rdoc
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.10.
|
1
|
+
0.10.3
|
@@ -5,7 +5,7 @@ module Machinist
|
|
5
5
|
class ModelGenerator < Base
|
6
6
|
argument :attributes, :type => :array, :default => [], :banner => "field:type field:type"
|
7
7
|
class_option :dir, :type => :string, :default => "test/blueprints", :desc => "The directory where the blueprints should go"
|
8
|
-
class_option :extension, :type => :string, :default => "rb", :desc => "file
|
8
|
+
class_option :extension, :type => :string, :default => "rb", :desc => "file extension name"
|
9
9
|
|
10
10
|
def create_machinist_initializer
|
11
11
|
return if File.exists?(File.expand_path("config/initializers/machinist.rb", self.destination_root))
|
@@ -13,7 +13,7 @@ module Machinist
|
|
13
13
|
end
|
14
14
|
|
15
15
|
def create_blueprint_file
|
16
|
-
template 'blueprint.rb', File.join(options[:dir], "#{table_name}.#{options[:
|
16
|
+
template 'blueprint.rb', File.join(options[:dir], "#{table_name}.#{options[:extension].to_s}")
|
17
17
|
end
|
18
18
|
end
|
19
19
|
end
|
data/rails3-generators.gemspec
CHANGED
@@ -5,7 +5,7 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{rails3-generators}
|
8
|
-
s.version = "0.10.
|
8
|
+
s.version = "0.10.3"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Jose Valim", "Anuj Dutta", "Paul Berry", "Jeff Tucker", "Louis T.", "Jai-Gouk Kim", "Darcy Laycock", "Peter Haza", "Peter Gumeson"]
|
@@ -130,7 +130,7 @@ Gem::Specification.new do |s|
|
|
130
130
|
]
|
131
131
|
s.homepage = %q{http://github.com/indirect/rails3-generators}
|
132
132
|
s.post_install_message = %q{
|
133
|
-
rails3-generators-0.10.
|
133
|
+
rails3-generators-0.10.3
|
134
134
|
|
135
135
|
Be sure to check out the wiki, http://wiki.github.com/indirect/rails3-generators/,
|
136
136
|
for information about recent changes to this project.
|
metadata
CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 0
|
7
7
|
- 10
|
8
|
-
-
|
9
|
-
version: 0.10.
|
8
|
+
- 3
|
9
|
+
version: 0.10.3
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- Jose Valim
|
@@ -151,7 +151,7 @@ homepage: http://github.com/indirect/rails3-generators
|
|
151
151
|
licenses: []
|
152
152
|
|
153
153
|
post_install_message: "\n\
|
154
|
-
rails3-generators-0.10.
|
154
|
+
rails3-generators-0.10.3\n\n\
|
155
155
|
Be sure to check out the wiki, http://wiki.github.com/indirect/rails3-generators/,\n\
|
156
156
|
for information about recent changes to this project.\n\n\
|
157
157
|
note: if you use erb templates add the follow to your generators block to take full advantage of this gem.\n\
|