padrino-gen 0.7.9 → 0.8.0
Sign up to get free protection for your applications and to get access to all the features.
- data/README.rdoc +42 -13
- data/Rakefile +7 -6
- data/VERSION +1 -1
- data/lib/padrino-gen/generators/actions.rb +25 -3
- data/lib/padrino-gen/generators/app/{app/app.rb.tt → app.rb.tt} +0 -0
- data/lib/padrino-gen/generators/app/{app → controllers}/.empty_directory +0 -0
- data/lib/padrino-gen/generators/app/{app/controllers → helpers}/.empty_directory +0 -0
- data/lib/padrino-gen/generators/app/{app/helpers → views}/.empty_directory +0 -0
- data/lib/padrino-gen/generators/app.rb +28 -36
- data/lib/padrino-gen/generators/components/actions.rb +4 -22
- data/lib/padrino-gen/generators/components/mocks/rr_gen.rb +8 -4
- data/lib/padrino-gen/generators/controller.rb +7 -4
- data/lib/padrino-gen/generators/mailer.rb +5 -2
- data/lib/padrino-gen/generators/model.rb +1 -1
- data/lib/padrino-gen/generators/{app → project}/.gitignore +0 -0
- data/lib/padrino-gen/generators/{app/app/views → project/app}/.empty_directory +0 -0
- data/lib/padrino-gen/generators/project/app/app.rb.tt +37 -0
- data/lib/padrino-gen/generators/{app/config/initializers → project/app/controllers}/.empty_directory +0 -0
- data/lib/padrino-gen/generators/{app/public/images → project/app/helpers}/.empty_directory +0 -0
- data/lib/padrino-gen/generators/{app/public/javascripts → project/app/views}/.empty_directory +0 -0
- data/lib/padrino-gen/generators/{app → project}/config/apps.rb.tt +0 -0
- data/lib/padrino-gen/generators/{app → project}/config/boot.rb +1 -1
- data/lib/padrino-gen/generators/{app/public/stylesheets → project/config/initializers}/.empty_directory +0 -0
- data/lib/padrino-gen/generators/{app → project}/config/initializers/example.rb +0 -0
- data/lib/padrino-gen/generators/{app → project}/config.ru +0 -0
- data/lib/padrino-gen/generators/{app/tmp → project/public/images}/.empty_directory +0 -0
- data/lib/padrino-gen/generators/project/public/javascripts/.empty_directory +0 -0
- data/lib/padrino-gen/generators/project/public/stylesheets/.empty_directory +0 -0
- data/lib/padrino-gen/generators/project/tmp/.empty_directory +0 -0
- data/lib/padrino-gen/generators/project.rb +64 -0
- data/lib/padrino-gen/generators/templates/Gemfile.tt +0 -1
- data/lib/padrino-gen/generators.rb +7 -3
- data/lib/padrino-gen/padrino-tasks/activerecord.rb +1 -1
- data/padrino-gen.gemspec +31 -24
- data/test/helper.rb +7 -7
- data/test/test_app_generator.rb +35 -199
- data/test/test_cli.rb +25 -0
- data/test/test_controller_generator.rb +45 -45
- data/test/test_generator.rb +0 -3
- data/test/test_mailer_generator.rb +25 -26
- data/test/test_migration_generator.rb +61 -62
- data/test/test_model_generator.rb +119 -114
- data/test/test_project_generator.rb +222 -0
- metadata +26 -19
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: padrino-gen
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.8.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Padrino Team
|
@@ -12,7 +12,7 @@ autorequire:
|
|
12
12
|
bindir: bin
|
13
13
|
cert_chain: []
|
14
14
|
|
15
|
-
date: 2010-02-
|
15
|
+
date: 2010-02-14 00:00:00 +01:00
|
16
16
|
default_executable: padrino-gen
|
17
17
|
dependencies:
|
18
18
|
- !ruby/object:Gem::Dependency
|
@@ -33,7 +33,7 @@ dependencies:
|
|
33
33
|
requirements:
|
34
34
|
- - "="
|
35
35
|
- !ruby/object:Gem::Version
|
36
|
-
version: 0.
|
36
|
+
version: 0.8.0
|
37
37
|
version:
|
38
38
|
- !ruby/object:Gem::Dependency
|
39
39
|
name: thor
|
@@ -73,7 +73,7 @@ dependencies:
|
|
73
73
|
requirements:
|
74
74
|
- - ">="
|
75
75
|
- !ruby/object:Gem::Version
|
76
|
-
version:
|
76
|
+
version: 2.10.3
|
77
77
|
version:
|
78
78
|
- !ruby/object:Gem::Dependency
|
79
79
|
name: mocha
|
@@ -135,21 +135,10 @@ files:
|
|
135
135
|
- lib/padrino-gen/generators.rb
|
136
136
|
- lib/padrino-gen/generators/actions.rb
|
137
137
|
- lib/padrino-gen/generators/app.rb
|
138
|
-
- lib/padrino-gen/generators/app
|
139
|
-
- lib/padrino-gen/generators/app/
|
140
|
-
- lib/padrino-gen/generators/app/
|
141
|
-
- lib/padrino-gen/generators/app/
|
142
|
-
- lib/padrino-gen/generators/app/app/helpers/.empty_directory
|
143
|
-
- lib/padrino-gen/generators/app/app/views/.empty_directory
|
144
|
-
- lib/padrino-gen/generators/app/config.ru
|
145
|
-
- lib/padrino-gen/generators/app/config/apps.rb.tt
|
146
|
-
- lib/padrino-gen/generators/app/config/boot.rb
|
147
|
-
- lib/padrino-gen/generators/app/config/initializers/.empty_directory
|
148
|
-
- lib/padrino-gen/generators/app/config/initializers/example.rb
|
149
|
-
- lib/padrino-gen/generators/app/public/images/.empty_directory
|
150
|
-
- lib/padrino-gen/generators/app/public/javascripts/.empty_directory
|
151
|
-
- lib/padrino-gen/generators/app/public/stylesheets/.empty_directory
|
152
|
-
- lib/padrino-gen/generators/app/tmp/.empty_directory
|
138
|
+
- lib/padrino-gen/generators/app/app.rb.tt
|
139
|
+
- lib/padrino-gen/generators/app/controllers/.empty_directory
|
140
|
+
- lib/padrino-gen/generators/app/helpers/.empty_directory
|
141
|
+
- lib/padrino-gen/generators/app/views/.empty_directory
|
153
142
|
- lib/padrino-gen/generators/components/actions.rb
|
154
143
|
- lib/padrino-gen/generators/components/mocks/mocha_gen.rb
|
155
144
|
- lib/padrino-gen/generators/components/mocks/rr_gen.rb
|
@@ -172,6 +161,22 @@ files:
|
|
172
161
|
- lib/padrino-gen/generators/mailer.rb
|
173
162
|
- lib/padrino-gen/generators/migration.rb
|
174
163
|
- lib/padrino-gen/generators/model.rb
|
164
|
+
- lib/padrino-gen/generators/project.rb
|
165
|
+
- lib/padrino-gen/generators/project/.gitignore
|
166
|
+
- lib/padrino-gen/generators/project/app/.empty_directory
|
167
|
+
- lib/padrino-gen/generators/project/app/app.rb.tt
|
168
|
+
- lib/padrino-gen/generators/project/app/controllers/.empty_directory
|
169
|
+
- lib/padrino-gen/generators/project/app/helpers/.empty_directory
|
170
|
+
- lib/padrino-gen/generators/project/app/views/.empty_directory
|
171
|
+
- lib/padrino-gen/generators/project/config.ru
|
172
|
+
- lib/padrino-gen/generators/project/config/apps.rb.tt
|
173
|
+
- lib/padrino-gen/generators/project/config/boot.rb
|
174
|
+
- lib/padrino-gen/generators/project/config/initializers/.empty_directory
|
175
|
+
- lib/padrino-gen/generators/project/config/initializers/example.rb
|
176
|
+
- lib/padrino-gen/generators/project/public/images/.empty_directory
|
177
|
+
- lib/padrino-gen/generators/project/public/javascripts/.empty_directory
|
178
|
+
- lib/padrino-gen/generators/project/public/stylesheets/.empty_directory
|
179
|
+
- lib/padrino-gen/generators/project/tmp/.empty_directory
|
175
180
|
- lib/padrino-gen/generators/templates/Gemfile.tt
|
176
181
|
- lib/padrino-gen/generators/templates/controller.rb.tt
|
177
182
|
- lib/padrino-gen/generators/templates/helper.rb.tt
|
@@ -187,11 +192,13 @@ files:
|
|
187
192
|
- padrino-gen.gemspec
|
188
193
|
- test/helper.rb
|
189
194
|
- test/test_app_generator.rb
|
195
|
+
- test/test_cli.rb
|
190
196
|
- test/test_controller_generator.rb
|
191
197
|
- test/test_generator.rb
|
192
198
|
- test/test_mailer_generator.rb
|
193
199
|
- test/test_migration_generator.rb
|
194
200
|
- test/test_model_generator.rb
|
201
|
+
- test/test_project_generator.rb
|
195
202
|
has_rdoc: true
|
196
203
|
homepage: http://github.com/padrino/padrino-framework/tree/master/padrino-gen
|
197
204
|
licenses: []
|