padrino-gen 0.9.14 → 0.9.15

Sign up to get free protection for your applications and to get access to all the features.
Files changed (50) hide show
  1. data/LICENSE +1 -1
  2. data/README.rdoc +17 -2
  3. data/Rakefile +1 -2
  4. data/bin/padrino-gen +2 -3
  5. data/lib/padrino-gen.rb +2 -2
  6. data/lib/padrino-gen/generators/actions.rb +62 -8
  7. data/lib/padrino-gen/generators/app.rb +2 -1
  8. data/lib/padrino-gen/generators/cli.rb +3 -3
  9. data/lib/padrino-gen/generators/components/orms/activerecord.rb +10 -9
  10. data/lib/padrino-gen/generators/components/orms/couchrest.rb +1 -1
  11. data/lib/padrino-gen/generators/components/orms/datamapper.rb +11 -9
  12. data/lib/padrino-gen/generators/components/orms/mongoid.rb +1 -1
  13. data/lib/padrino-gen/generators/components/orms/mongomapper.rb +1 -1
  14. data/lib/padrino-gen/generators/components/orms/mongomatic.rb +85 -0
  15. data/lib/padrino-gen/generators/components/orms/ohm.rb +72 -0
  16. data/lib/padrino-gen/generators/components/orms/sequel.rb +12 -11
  17. data/lib/padrino-gen/generators/components/renderers/erubis.rb +3 -0
  18. data/lib/padrino-gen/generators/components/renderers/liquid.rb +4 -0
  19. data/lib/padrino-gen/generators/components/stylesheets/compass.rb +3 -3
  20. data/lib/padrino-gen/generators/components/stylesheets/compass/application.scss +1 -1
  21. data/lib/padrino-gen/generators/components/stylesheets/less.rb +12 -23
  22. data/lib/padrino-gen/generators/components/stylesheets/sass.rb +6 -16
  23. data/lib/padrino-gen/generators/components/stylesheets/scss.rb +16 -0
  24. data/lib/padrino-gen/generators/components/tests/riot.rb +5 -23
  25. data/lib/padrino-gen/generators/controller.rb +1 -1
  26. data/lib/padrino-gen/generators/mailer.rb +3 -1
  27. data/lib/padrino-gen/generators/migration.rb +1 -1
  28. data/lib/padrino-gen/generators/model.rb +1 -1
  29. data/lib/padrino-gen/generators/plugin.rb +47 -0
  30. data/lib/padrino-gen/generators/project.rb +39 -22
  31. data/lib/padrino-gen/generators/project/config/boot.rb +12 -0
  32. data/lib/padrino-gen/generators/runner.rb +90 -0
  33. data/lib/padrino-gen/generators/templates/initializer.rb.tt +5 -0
  34. data/lib/padrino-gen/generators/templates/mailer.rb.tt +10 -0
  35. data/lib/padrino-gen/padrino-tasks/datamapper.rb +8 -7
  36. data/padrino-gen.gemspec +11 -12
  37. data/test/fixtures/admin_template.rb +7 -0
  38. data/test/fixtures/example_template.rb +14 -0
  39. data/test/fixtures/git_template.rb +4 -0
  40. data/test/fixtures/plugin_template.rb +13 -0
  41. data/test/fixtures/rake_template.rb +9 -0
  42. data/test/helper.rb +64 -2
  43. data/test/test_app_generator.rb +16 -1
  44. data/test/test_controller_generator.rb +1 -1
  45. data/test/test_generator.rb +1 -1
  46. data/test/test_mailer_generator.rb +11 -1
  47. data/test/test_model_generator.rb +64 -20
  48. data/test/test_plugin_generator.rb +123 -0
  49. data/test/test_project_generator.rb +134 -77
  50. metadata +37 -103
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: padrino-gen
3
3
  version: !ruby/object:Gem::Version
4
- hash: 39
4
+ hash: 37
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 9
9
- - 14
10
- version: 0.9.14
9
+ - 15
10
+ version: 0.9.15
11
11
  platform: ruby
12
12
  authors:
13
13
  - Padrino Team
@@ -18,137 +18,57 @@ autorequire:
18
18
  bindir: bin
19
19
  cert_chain: []
20
20
 
21
- date: 2010-06-30 00:00:00 -07:00
21
+ date: 2010-08-28 00:00:00 +02:00
22
22
  default_executable: padrino-gen
23
23
  dependencies:
24
24
  - !ruby/object:Gem::Dependency
25
+ name: padrino-core
26
+ prerelease: false
25
27
  requirement: &id001 !ruby/object:Gem::Requirement
26
28
  none: false
27
29
  requirements:
28
30
  - - "="
29
31
  - !ruby/object:Gem::Version
30
- hash: 39
32
+ hash: 37
31
33
  segments:
32
34
  - 0
33
35
  - 9
34
- - 14
35
- version: 0.9.14
36
+ - 15
37
+ version: 0.9.15
36
38
  type: :runtime
37
- name: padrino-core
38
- prerelease: false
39
39
  version_requirements: *id001
40
40
  - !ruby/object:Gem::Dependency
41
+ name: bundler
42
+ prerelease: false
41
43
  requirement: &id002 !ruby/object:Gem::Requirement
42
44
  none: false
43
45
  requirements:
44
46
  - - ">="
45
47
  - !ruby/object:Gem::Version
46
- hash: 53
48
+ hash: 15424049
47
49
  segments:
50
+ - 1
48
51
  - 0
49
- - 9
50
- - 7
51
- version: 0.9.7
52
+ - 0
53
+ - rc
54
+ - 2
55
+ version: 1.0.0.rc.2
52
56
  type: :runtime
53
- name: bundler
54
- prerelease: false
55
57
  version_requirements: *id002
56
58
  - !ruby/object:Gem::Dependency
59
+ name: git
60
+ prerelease: false
57
61
  requirement: &id003 !ruby/object:Gem::Requirement
58
62
  none: false
59
63
  requirements:
60
64
  - - ">="
61
65
  - !ruby/object:Gem::Version
62
- hash: 49
66
+ hash: 3
63
67
  segments:
64
68
  - 0
65
- - 8
66
- - 7
67
- version: 0.8.7
68
- type: :development
69
- name: rake
70
- prerelease: false
69
+ version: "0"
70
+ type: :runtime
71
71
  version_requirements: *id003
72
- - !ruby/object:Gem::Dependency
73
- requirement: &id004 !ruby/object:Gem::Requirement
74
- none: false
75
- requirements:
76
- - - ">="
77
- - !ruby/object:Gem::Version
78
- hash: 43
79
- segments:
80
- - 0
81
- - 9
82
- - 8
83
- version: 0.9.8
84
- type: :development
85
- name: mocha
86
- prerelease: false
87
- version_requirements: *id004
88
- - !ruby/object:Gem::Dependency
89
- requirement: &id005 !ruby/object:Gem::Requirement
90
- none: false
91
- requirements:
92
- - - ">="
93
- - !ruby/object:Gem::Version
94
- hash: 11
95
- segments:
96
- - 0
97
- - 5
98
- - 0
99
- version: 0.5.0
100
- type: :development
101
- name: rack-test
102
- prerelease: false
103
- version_requirements: *id005
104
- - !ruby/object:Gem::Dependency
105
- requirement: &id006 !ruby/object:Gem::Requirement
106
- none: false
107
- requirements:
108
- - - ">="
109
- - !ruby/object:Gem::Version
110
- hash: 9
111
- segments:
112
- - 0
113
- - 5
114
- - 1
115
- version: 0.5.1
116
- type: :development
117
- name: webrat
118
- prerelease: false
119
- version_requirements: *id006
120
- - !ruby/object:Gem::Dependency
121
- requirement: &id007 !ruby/object:Gem::Requirement
122
- none: false
123
- requirements:
124
- - - ">="
125
- - !ruby/object:Gem::Version
126
- hash: 43
127
- segments:
128
- - 2
129
- - 2
130
- - 22
131
- version: 2.2.22
132
- type: :development
133
- name: haml
134
- prerelease: false
135
- version_requirements: *id007
136
- - !ruby/object:Gem::Dependency
137
- requirement: &id008 !ruby/object:Gem::Requirement
138
- none: false
139
- requirements:
140
- - - ">="
141
- - !ruby/object:Gem::Version
142
- hash: 33
143
- segments:
144
- - 2
145
- - 10
146
- - 3
147
- version: 2.10.3
148
- type: :development
149
- name: shoulda
150
- prerelease: false
151
- version_requirements: *id008
152
72
  description: Generators for easily creating and building padrino applications from the console
153
73
  email: padrinorb@gmail.com
154
74
  executables:
@@ -178,9 +98,13 @@ files:
178
98
  - lib/padrino-gen/generators/components/orms/datamapper.rb
179
99
  - lib/padrino-gen/generators/components/orms/mongoid.rb
180
100
  - lib/padrino-gen/generators/components/orms/mongomapper.rb
101
+ - lib/padrino-gen/generators/components/orms/mongomatic.rb
102
+ - lib/padrino-gen/generators/components/orms/ohm.rb
181
103
  - lib/padrino-gen/generators/components/orms/sequel.rb
182
104
  - lib/padrino-gen/generators/components/renderers/erb.rb
105
+ - lib/padrino-gen/generators/components/renderers/erubis.rb
183
106
  - lib/padrino-gen/generators/components/renderers/haml.rb
107
+ - lib/padrino-gen/generators/components/renderers/liquid.rb
184
108
  - lib/padrino-gen/generators/components/scripts/dojo.rb
185
109
  - lib/padrino-gen/generators/components/scripts/extcore.rb
186
110
  - lib/padrino-gen/generators/components/scripts/jquery.rb
@@ -192,6 +116,7 @@ files:
192
116
  - lib/padrino-gen/generators/components/stylesheets/compass.rb
193
117
  - lib/padrino-gen/generators/components/stylesheets/less.rb
194
118
  - lib/padrino-gen/generators/components/stylesheets/sass.rb
119
+ - lib/padrino-gen/generators/components/stylesheets/scss.rb
195
120
  - lib/padrino-gen/generators/components/tests/bacon.rb
196
121
  - lib/padrino-gen/generators/components/tests/cucumber.rb
197
122
  - lib/padrino-gen/generators/components/tests/riot.rb
@@ -202,14 +127,17 @@ files:
202
127
  - lib/padrino-gen/generators/mailer.rb
203
128
  - lib/padrino-gen/generators/migration.rb
204
129
  - lib/padrino-gen/generators/model.rb
130
+ - lib/padrino-gen/generators/plugin.rb
205
131
  - lib/padrino-gen/generators/project/config/apps.rb.tt
206
132
  - lib/padrino-gen/generators/project/config/boot.rb
207
133
  - lib/padrino-gen/generators/project/config.ru
208
134
  - lib/padrino-gen/generators/project/public/favicon.ico
209
135
  - lib/padrino-gen/generators/project.rb
136
+ - lib/padrino-gen/generators/runner.rb
210
137
  - lib/padrino-gen/generators/templates/controller.rb.tt
211
138
  - lib/padrino-gen/generators/templates/Gemfile.tt
212
139
  - lib/padrino-gen/generators/templates/helper.rb.tt
140
+ - lib/padrino-gen/generators/templates/initializer.rb.tt
213
141
  - lib/padrino-gen/generators/templates/mailer.rb.tt
214
142
  - lib/padrino-gen/generators/templates/scripts/dojo.js
215
143
  - lib/padrino-gen/generators/templates/scripts/ext-core.js
@@ -224,6 +152,11 @@ files:
224
152
  - lib/padrino-gen/padrino-tasks/seed.rb
225
153
  - lib/padrino-gen/padrino-tasks/sequel.rb
226
154
  - lib/padrino-gen.rb
155
+ - test/fixtures/admin_template.rb
156
+ - test/fixtures/example_template.rb
157
+ - test/fixtures/git_template.rb
158
+ - test/fixtures/plugin_template.rb
159
+ - test/fixtures/rake_template.rb
227
160
  - test/helper.rb
228
161
  - test/test_app_generator.rb
229
162
  - test/test_cli.rb
@@ -232,9 +165,10 @@ files:
232
165
  - test/test_mailer_generator.rb
233
166
  - test/test_migration_generator.rb
234
167
  - test/test_model_generator.rb
168
+ - test/test_plugin_generator.rb
235
169
  - test/test_project_generator.rb
236
170
  has_rdoc: true
237
- homepage: http://github.com/padrino/padrino-framework/tree/master/padrino-gen
171
+ homepage: http://www.padrinorb.com
238
172
  licenses: []
239
173
 
240
174
  post_install_message: