merb-gen 0.9.3 → 0.9.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (164) hide show
  1. data/README +14 -2
  2. data/Rakefile +43 -27
  3. data/TODO +13 -0
  4. data/bin/merb-gen +5 -93
  5. data/lib/generators/controller.rb +44 -0
  6. data/lib/generators/freezer.rb +19 -0
  7. data/lib/generators/helper.rb +31 -0
  8. data/lib/generators/layout.rb +27 -0
  9. data/lib/generators/merb.rb +24 -0
  10. data/lib/generators/merb/merb_flat.rb +27 -0
  11. data/lib/generators/merb/merb_full.rb +35 -0
  12. data/lib/generators/merb/merb_very_flat.rb +29 -0
  13. data/lib/generators/merb_plugin.rb +29 -0
  14. data/lib/generators/migration.rb +54 -0
  15. data/lib/generators/model.rb +47 -0
  16. data/lib/generators/part_controller.rb +33 -0
  17. data/lib/generators/resource.rb +32 -0
  18. data/lib/generators/resource_controller.rb +78 -0
  19. data/lib/generators/session_migration.rb +34 -0
  20. data/lib/generators/templates/application/merb/Rakefile +75 -0
  21. data/{app_generators/merb/templates → lib/generators/templates/application/merb}/app/controllers/application.rb +0 -0
  22. data/{app_generators/merb/templates → lib/generators/templates/application/merb}/app/controllers/exceptions.rb +0 -0
  23. data/{app_generators/merb/templates → lib/generators/templates/application/merb}/app/helpers/global_helpers.rb +0 -0
  24. data/{app_generators/merb/templates → lib/generators/templates/application/merb}/app/views/exceptions/internal_server_error.html.erb +1 -1
  25. data/{app_generators/merb/templates → lib/generators/templates/application/merb}/app/views/exceptions/not_acceptable.html.erb +0 -0
  26. data/{app_generators/merb/templates → lib/generators/templates/application/merb}/app/views/exceptions/not_found.html.erb +0 -0
  27. data/{app_generators/merb/templates → lib/generators/templates/application/merb}/autotest/discover.rb +0 -0
  28. data/{app_generators/merb/templates → lib/generators/templates/application/merb}/autotest/merb.rb +2 -2
  29. data/lib/generators/templates/application/merb/autotest/merb_rspec.rb +166 -0
  30. data/{app_generators/merb/templates → lib/generators/templates/application/merb}/config/environments/development.rb +0 -0
  31. data/{app_generators/merb/templates → lib/generators/templates/application/merb}/config/environments/production.rb +0 -0
  32. data/{app_generators/merb/templates → lib/generators/templates/application/merb}/config/environments/rake.rb +0 -0
  33. data/{app_generators/merb/templates → lib/generators/templates/application/merb}/config/environments/test.rb +0 -0
  34. data/{app_generators/merb/templates → lib/generators/templates/application/merb}/config/init.rb +38 -27
  35. data/lib/generators/templates/application/merb/config/rack.rb +12 -0
  36. data/{app_generators/merb/templates → lib/generators/templates/application/merb}/config/router.rb +0 -0
  37. data/{app_generators/merb/templates → lib/generators/templates/application/merb}/public/images/merb.jpg +0 -0
  38. data/{app_generators/merb/templates → lib/generators/templates/application/merb}/public/merb.fcgi +0 -0
  39. data/{app_generators/merb/templates → lib/generators/templates/application/merb}/public/stylesheets/master.css +0 -0
  40. data/{app_generators/merb/templates → lib/generators/templates/application/merb}/spec/spec.opts +0 -0
  41. data/{app_generators/merb/templates → lib/generators/templates/application/merb}/spec/spec_helper.rb +3 -1
  42. data/{app_generators/merb/templates → lib/generators/templates/application/merb}/test/test_helper.rb +0 -0
  43. data/{app_generators/merb_flat/templates → lib/generators/templates/application/merb_flat}/README.txt +0 -0
  44. data/{app_generators/merb_flat/templates → lib/generators/templates/application/merb_flat}/application.rb +0 -0
  45. data/lib/generators/templates/application/merb_flat/config/framework.rb +7 -0
  46. data/{app_generators/merb_flat/templates → lib/generators/templates/application/merb_flat}/config/init.rb +0 -1
  47. data/{app_generators/merb_flat/templates → lib/generators/templates/application/merb_flat}/views/foo.html.erb +0 -0
  48. data/{app_generators/merb_plugin/templates → lib/generators/templates/application/merb_plugin}/LICENSE +0 -0
  49. data/{app_generators/merb_plugin/templates → lib/generators/templates/application/merb_plugin}/README +0 -0
  50. data/lib/generators/templates/application/merb_plugin/Rakefile +59 -0
  51. data/{app_generators/merb_plugin/templates → lib/generators/templates/application/merb_plugin}/TODO +0 -0
  52. data/{app_generators/merb_plugin/templates → lib/generators/templates/application/merb_plugin}/lib/%base_name%.rb +1 -1
  53. data/{app_generators/merb_plugin/templates → lib/generators/templates/application/merb_plugin}/lib/%base_name%/merbtasks.rb +1 -1
  54. data/{app_generators/merb_plugin/templates → lib/generators/templates/application/merb_plugin}/spec/%base_name%_spec.rb +0 -0
  55. data/{app_generators/merb_plugin/templates → lib/generators/templates/application/merb_plugin}/spec/spec_helper.rb +0 -0
  56. data/{app_generators/merb_plugin/templates → lib/generators/templates/application/merb_plugin}/test/%base_name%_test.rb +0 -0
  57. data/{app_generators/merb_plugin/templates → lib/generators/templates/application/merb_plugin}/test/test_helper.rb +0 -0
  58. data/lib/generators/templates/application/merb_very_flat/application.rbt +17 -0
  59. data/lib/generators/templates/component/controller/app/controllers/%file_name%.rb +11 -0
  60. data/lib/generators/templates/component/controller/app/views/%file_name%/index.html.erb +1 -0
  61. data/lib/generators/templates/component/controller/spec/controllers/%file_name%_spec.rb +7 -0
  62. data/lib/generators/templates/component/controller/test/controllers/%file_name%_test.rb +17 -0
  63. data/lib/generators/templates/component/freezer/script/frozen_merb +43 -0
  64. data/lib/generators/templates/component/helper/app/helpers/%file_name%_helper.rb +7 -0
  65. data/lib/generators/templates/component/helper/spec/helpers/%file_name%_helper_spec.rb +5 -0
  66. data/{app_generators/merb/templates/app/views/layout/application.html.erb → lib/generators/templates/component/layout/app/views/layout/%file_name%.html.erb} +0 -0
  67. data/lib/generators/templates/component/layout/spec/views/layout/%file_name%.html.erb_spec.rb +1 -0
  68. data/lib/generators/templates/component/model/app/models/%file_name%.rb +7 -0
  69. data/lib/generators/templates/component/model/spec/models/%file_name%_spec.rb +7 -0
  70. data/lib/generators/templates/component/model/test/models/%file_name%_test.rb +9 -0
  71. data/lib/generators/templates/component/part_controller/app/parts/%file_name%_part.rb +9 -0
  72. data/lib/generators/templates/component/part_controller/app/parts/views/%file_name%_part/index.html.erb +3 -0
  73. data/lib/generators/templates/component/resource_controller/app/controllers/%file_name%.rb +44 -0
  74. data/lib/generators/templates/component/resource_controller/app/views/%file_name%/edit.html.erb +3 -0
  75. data/lib/generators/templates/component/resource_controller/app/views/%file_name%/index.html.erb +3 -0
  76. data/lib/generators/templates/component/resource_controller/app/views/%file_name%/new.html.erb +3 -0
  77. data/lib/generators/templates/component/resource_controller/app/views/%file_name%/show.html.erb +3 -0
  78. data/lib/generators/templates/component/resource_controller/spec/controllers/%file_name%_spec.rb +7 -0
  79. data/lib/generators/templates/component/resource_controller/test/controllers/%file_name%_test.rb +17 -0
  80. data/lib/merb-gen.rb +34 -36
  81. data/lib/merb-gen/generator.rb +54 -0
  82. data/lib/merb-gen/named_generator.rb +33 -0
  83. data/lib/merb-gen/namespaced_generator.rb +47 -0
  84. data/lib/merb-gen/spec_helper.rb +65 -0
  85. data/spec/controller_spec.rb +106 -0
  86. data/spec/fixtures/results/no_modules.test +1 -0
  87. data/spec/fixtures/results/some_modules.test +5 -0
  88. data/spec/fixtures/templates/no_modules.test +3 -0
  89. data/spec/fixtures/templates/some_modules.test +3 -0
  90. data/spec/freezer_spec.rb +17 -0
  91. data/spec/generator_spec.rb +51 -0
  92. data/spec/helper_spec.rb +43 -0
  93. data/spec/layout_spec.rb +25 -0
  94. data/spec/merb_flat_spec.rb +21 -0
  95. data/spec/merb_full_spec.rb +31 -0
  96. data/spec/merb_plugin_spec.rb +21 -0
  97. data/spec/merb_spec.rb +20 -0
  98. data/spec/merb_very_flat_spec.rb +19 -0
  99. data/spec/migration_spec.rb +47 -0
  100. data/spec/model_spec.rb +66 -0
  101. data/spec/named_generator_spec.rb +11 -0
  102. data/spec/namespaced_generator_spec.rb +11 -0
  103. data/spec/part_controller_spec.rb +74 -0
  104. data/spec/resource_controller_spec.rb +102 -0
  105. data/spec/resource_spec.rb +18 -0
  106. data/spec/session_migration_spec.rb +15 -0
  107. data/spec/spec_helper.rb +271 -0
  108. metadata +246 -181
  109. data/app_generators/merb/USAGE +0 -0
  110. data/app_generators/merb/merb_generator.rb +0 -40
  111. data/app_generators/merb/templates/Rakefile +0 -34
  112. data/app_generators/merb/templates/autotest/merb_rspec.rb +0 -223
  113. data/app_generators/merb/templates/config/rack.rb +0 -1
  114. data/app_generators/merb_flat/merb_flat_generator.rb +0 -22
  115. data/app_generators/merb_flat/templates/config/framework.rb +0 -5
  116. data/app_generators/merb_plugin/merb_plugin_generator.rb +0 -22
  117. data/app_generators/merb_plugin/templates/Rakefile +0 -44
  118. data/app_generators/merb_very_flat/merb_very_flat_generator.rb +0 -37
  119. data/app_generators/merb_very_flat/templates/%app_file_name%.rb +0 -15
  120. data/app_generators/merb_very_flat/templates/README.txt +0 -9
  121. data/lib/merb-gen/base.rb +0 -66
  122. data/lib/merb-gen/helpers.rb +0 -108
  123. data/merb_default_generators/model/USAGE +0 -0
  124. data/merb_default_generators/model/model_generator.rb +0 -40
  125. data/merb_default_generators/model/templates/app/models/%model_file_name%.rb +0 -5
  126. data/merb_default_generators/resource_controller/USAGE +0 -0
  127. data/merb_default_generators/resource_controller/resource_controller_generator.rb +0 -74
  128. data/merb_default_generators/resource_controller/templates/app/controllers/%controller_file_name%.rb +0 -46
  129. data/merb_default_generators/resource_controller/templates/app/helpers/%controller_file_name%_helper.rb +0 -16
  130. data/merb_default_generators/resource_controller/templates/app/views/%controller_file_name%/delete.html.erb +0 -3
  131. data/merb_default_generators/resource_controller/templates/app/views/%controller_file_name%/edit.html.erb +0 -3
  132. data/merb_default_generators/resource_controller/templates/app/views/%controller_file_name%/index.html.erb +0 -3
  133. data/merb_default_generators/resource_controller/templates/app/views/%controller_file_name%/new.html.erb +0 -3
  134. data/merb_default_generators/resource_controller/templates/app/views/%controller_file_name%/show.html.erb +0 -3
  135. data/merb_generators/controller/USAGE +0 -0
  136. data/merb_generators/controller/controller_generator.rb +0 -59
  137. data/merb_generators/controller/templates/app/controllers/%controller_file_name%.rb +0 -18
  138. data/merb_generators/controller/templates/app/helpers/%controller_file_name%_helper.rb +0 -16
  139. data/merb_generators/controller/templates/app/views/%controller_file_name%/index.html.erb +0 -1
  140. data/merb_generators/part_controller/USAGE +0 -0
  141. data/merb_generators/part_controller/part_controller_generator.rb +0 -58
  142. data/merb_generators/part_controller/templates/app/helpers/%controller_file_name%_part_helper.rb +0 -16
  143. data/merb_generators/part_controller/templates/app/parts/%controller_file_name%_part.rb +0 -18
  144. data/merb_generators/part_controller/templates/app/parts/views/%controller_file_name%_part/index.html.erb +0 -3
  145. data/merb_generators/resource/USAGE +0 -0
  146. data/merb_generators/resource/resource_generator.rb +0 -48
  147. data/rspec_generators/merb_controller_test/merb_controller_test_generator.rb +0 -49
  148. data/rspec_generators/merb_controller_test/templates/spec/controllers/%controller_full_file_path%_spec.rb +0 -7
  149. data/rspec_generators/merb_controller_test/templates/spec/helpers/%controller_full_file_path%_helper_spec.rb +0 -5
  150. data/rspec_generators/merb_model_test/merb_model_test_generator.rb +0 -35
  151. data/rspec_generators/merb_model_test/templates/spec/models/%model_file_name%_spec.rb +0 -7
  152. data/rspec_generators/merb_resource_controller_test/merb_resource_controller_test_generator.rb +0 -49
  153. data/rspec_generators/merb_resource_controller_test/templates/spec/controllers/%controller_full_file_path%_spec.rb +0 -7
  154. data/rspec_generators/merb_resource_controller_test/templates/spec/helpers/%controller_full_file_path%_helpers.rb +0 -5
  155. data/rspec_generators/merb_resource_controller_test/templates/spec/views/%controller_full_file_path%/delete.html.erb_spec.rb +0 -1
  156. data/rspec_generators/merb_resource_controller_test/templates/spec/views/%controller_full_file_path%/edit.html.erb_spec.rb +0 -1
  157. data/rspec_generators/merb_resource_controller_test/templates/spec/views/%controller_full_file_path%/index.html.erb_spec.rb +0 -1
  158. data/rspec_generators/merb_resource_controller_test/templates/spec/views/%controller_full_file_path%/new.html.erb_spec.rb +0 -1
  159. data/rspec_generators/merb_resource_controller_test/templates/spec/views/%controller_full_file_path%/show.html.erb_spec.rb +0 -1
  160. data/test_unit_generators/merb_controller_test/merb_controller_test_generator.rb +0 -47
  161. data/test_unit_generators/merb_controller_test/templates/test/functional/%controller_full_file_path%_test.rb +0 -17
  162. data/test_unit_generators/merb_model_test/merb_model_test_generator.rb +0 -34
  163. data/test_unit_generators/merb_model_test/templates/test/unit/%model_file_name%_test.rb +0 -9
  164. data/test_unit_generators/merb_resource_controller_test/merb_resource_controller_test_generator.rb +0 -31
metadata CHANGED
@@ -1,37 +1,39 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: merb-gen
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.3
4
+ version: 0.9.4
5
5
  platform: ruby
6
6
  authors:
7
- - Yehuda Katz
7
+ - Jonas Nicklas
8
8
  autorequire: merb-gen
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2008-05-04 00:00:00 -05:00
12
+ date: 2008-08-13 00:00:00 +03:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: merb-core
17
+ type: :runtime
17
18
  version_requirement:
18
19
  version_requirements: !ruby/object:Gem::Requirement
19
20
  requirements:
20
21
  - - ">="
21
22
  - !ruby/object:Gem::Version
22
- version: 0.9.3
23
+ version: 0.9.4
23
24
  version:
24
25
  - !ruby/object:Gem::Dependency
25
- name: rubigen
26
+ name: templater
27
+ type: :runtime
26
28
  version_requirement:
27
29
  version_requirements: !ruby/object:Gem::Requirement
28
30
  requirements:
29
31
  - - ">="
30
32
  - !ruby/object:Gem::Version
31
- version: 1.2.4
33
+ version: 0.1.4
32
34
  version:
33
- description: "Merb More: Merb's Application and Plugin Generators"
34
- email: wycats@gmail.com
35
+ description: Generators suite for Merb.
36
+ email: jonas.nicklas@gmail.com
35
37
  executables:
36
38
  - merb-gen
37
39
  extensions: []
@@ -45,180 +47,243 @@ files:
45
47
  - README
46
48
  - Rakefile
47
49
  - TODO
50
+ - lib/generators
51
+ - lib/generators/controller.rb
52
+ - lib/generators/freezer.rb
53
+ - lib/generators/helper.rb
54
+ - lib/generators/layout.rb
55
+ - lib/generators/merb
56
+ - lib/generators/merb/merb_flat.rb
57
+ - lib/generators/merb/merb_full.rb
58
+ - lib/generators/merb/merb_very_flat.rb
59
+ - lib/generators/merb.rb
60
+ - lib/generators/merb_plugin.rb
61
+ - lib/generators/migration.rb
62
+ - lib/generators/model.rb
63
+ - lib/generators/part_controller.rb
64
+ - lib/generators/resource.rb
65
+ - lib/generators/resource_controller.rb
66
+ - lib/generators/session_migration.rb
67
+ - lib/generators/templates
68
+ - lib/generators/templates/application
69
+ - lib/generators/templates/application/merb
70
+ - lib/generators/templates/application/merb/app
71
+ - lib/generators/templates/application/merb/app/controllers
72
+ - lib/generators/templates/application/merb/app/controllers/application.rb
73
+ - lib/generators/templates/application/merb/app/controllers/exceptions.rb
74
+ - lib/generators/templates/application/merb/app/helpers
75
+ - lib/generators/templates/application/merb/app/helpers/global_helpers.rb
76
+ - lib/generators/templates/application/merb/app/views
77
+ - lib/generators/templates/application/merb/app/views/exceptions
78
+ - lib/generators/templates/application/merb/app/views/exceptions/internal_server_error.html.erb
79
+ - lib/generators/templates/application/merb/app/views/exceptions/not_acceptable.html.erb
80
+ - lib/generators/templates/application/merb/app/views/exceptions/not_found.html.erb
81
+ - lib/generators/templates/application/merb/autotest
82
+ - lib/generators/templates/application/merb/autotest/discover.rb
83
+ - lib/generators/templates/application/merb/autotest/merb.rb
84
+ - lib/generators/templates/application/merb/autotest/merb_rspec.rb
85
+ - lib/generators/templates/application/merb/config
86
+ - lib/generators/templates/application/merb/config/environments
87
+ - lib/generators/templates/application/merb/config/environments/development.rb
88
+ - lib/generators/templates/application/merb/config/environments/production.rb
89
+ - lib/generators/templates/application/merb/config/environments/rake.rb
90
+ - lib/generators/templates/application/merb/config/environments/test.rb
91
+ - lib/generators/templates/application/merb/config/init.rb
92
+ - lib/generators/templates/application/merb/config/rack.rb
93
+ - lib/generators/templates/application/merb/config/router.rb
94
+ - lib/generators/templates/application/merb/public
95
+ - lib/generators/templates/application/merb/public/images
96
+ - lib/generators/templates/application/merb/public/images/merb.jpg
97
+ - lib/generators/templates/application/merb/public/merb.fcgi
98
+ - lib/generators/templates/application/merb/public/stylesheets
99
+ - lib/generators/templates/application/merb/public/stylesheets/master.css
100
+ - lib/generators/templates/application/merb/Rakefile
101
+ - lib/generators/templates/application/merb/spec
102
+ - lib/generators/templates/application/merb/spec/spec.opts
103
+ - lib/generators/templates/application/merb/spec/spec_helper.rb
104
+ - lib/generators/templates/application/merb/test
105
+ - lib/generators/templates/application/merb/test/test_helper.rb
106
+ - lib/generators/templates/application/merb_flat
107
+ - lib/generators/templates/application/merb_flat/application.rb
108
+ - lib/generators/templates/application/merb_flat/config
109
+ - lib/generators/templates/application/merb_flat/config/framework.rb
110
+ - lib/generators/templates/application/merb_flat/config/init.rb
111
+ - lib/generators/templates/application/merb_flat/README.txt
112
+ - lib/generators/templates/application/merb_flat/views
113
+ - lib/generators/templates/application/merb_flat/views/foo.html.erb
114
+ - lib/generators/templates/application/merb_plugin
115
+ - lib/generators/templates/application/merb_plugin/lib
116
+ - lib/generators/templates/application/merb_plugin/lib/%base_name%
117
+ - lib/generators/templates/application/merb_plugin/lib/%base_name%/merbtasks.rb
118
+ - lib/generators/templates/application/merb_plugin/lib/%base_name%.rb
119
+ - lib/generators/templates/application/merb_plugin/LICENSE
120
+ - lib/generators/templates/application/merb_plugin/Rakefile
121
+ - lib/generators/templates/application/merb_plugin/README
122
+ - lib/generators/templates/application/merb_plugin/spec
123
+ - lib/generators/templates/application/merb_plugin/spec/%base_name%_spec.rb
124
+ - lib/generators/templates/application/merb_plugin/spec/spec_helper.rb
125
+ - lib/generators/templates/application/merb_plugin/test
126
+ - lib/generators/templates/application/merb_plugin/test/%base_name%_test.rb
127
+ - lib/generators/templates/application/merb_plugin/test/test_helper.rb
128
+ - lib/generators/templates/application/merb_plugin/TODO
129
+ - lib/generators/templates/application/merb_very_flat
130
+ - lib/generators/templates/application/merb_very_flat/application.rbt
131
+ - lib/generators/templates/component
132
+ - lib/generators/templates/component/controller
133
+ - lib/generators/templates/component/controller/app
134
+ - lib/generators/templates/component/controller/app/controllers
135
+ - lib/generators/templates/component/controller/app/controllers/%file_name%.rb
136
+ - lib/generators/templates/component/controller/app/views
137
+ - lib/generators/templates/component/controller/app/views/%file_name%
138
+ - lib/generators/templates/component/controller/app/views/%file_name%/index.html.erb
139
+ - lib/generators/templates/component/controller/spec
140
+ - lib/generators/templates/component/controller/spec/controllers
141
+ - lib/generators/templates/component/controller/spec/controllers/%file_name%_spec.rb
142
+ - lib/generators/templates/component/controller/test
143
+ - lib/generators/templates/component/controller/test/controllers
144
+ - lib/generators/templates/component/controller/test/controllers/%file_name%_test.rb
145
+ - lib/generators/templates/component/freezer
146
+ - lib/generators/templates/component/freezer/script
147
+ - lib/generators/templates/component/freezer/script/frozen_merb
148
+ - lib/generators/templates/component/helper
149
+ - lib/generators/templates/component/helper/app
150
+ - lib/generators/templates/component/helper/app/helpers
151
+ - lib/generators/templates/component/helper/app/helpers/%file_name%_helper.rb
152
+ - lib/generators/templates/component/helper/spec
153
+ - lib/generators/templates/component/helper/spec/helpers
154
+ - lib/generators/templates/component/helper/spec/helpers/%file_name%_helper_spec.rb
155
+ - lib/generators/templates/component/layout
156
+ - lib/generators/templates/component/layout/app
157
+ - lib/generators/templates/component/layout/app/views
158
+ - lib/generators/templates/component/layout/app/views/layout
159
+ - lib/generators/templates/component/layout/app/views/layout/%file_name%.html.erb
160
+ - lib/generators/templates/component/layout/spec
161
+ - lib/generators/templates/component/layout/spec/views
162
+ - lib/generators/templates/component/layout/spec/views/layout
163
+ - lib/generators/templates/component/layout/spec/views/layout/%file_name%.html.erb_spec.rb
164
+ - lib/generators/templates/component/migration
165
+ - lib/generators/templates/component/migration/activerecord
166
+ - lib/generators/templates/component/migration/activerecord/schema
167
+ - lib/generators/templates/component/migration/activerecord/schema/migrations
168
+ - lib/generators/templates/component/migration/datamapper
169
+ - lib/generators/templates/component/migration/datamapper/schema
170
+ - lib/generators/templates/component/migration/datamapper/schema/migrations
171
+ - lib/generators/templates/component/migration/sequel
172
+ - lib/generators/templates/component/migration/sequel/schema
173
+ - lib/generators/templates/component/migration/sequel/schema/migrations
174
+ - lib/generators/templates/component/model
175
+ - lib/generators/templates/component/model/activerecord
176
+ - lib/generators/templates/component/model/activerecord/app
177
+ - lib/generators/templates/component/model/activerecord/app/models
178
+ - lib/generators/templates/component/model/app
179
+ - lib/generators/templates/component/model/app/models
180
+ - lib/generators/templates/component/model/app/models/%file_name%.rb
181
+ - lib/generators/templates/component/model/datamapper
182
+ - lib/generators/templates/component/model/datamapper/app
183
+ - lib/generators/templates/component/model/datamapper/app/models
184
+ - lib/generators/templates/component/model/none
185
+ - lib/generators/templates/component/model/none/app
186
+ - lib/generators/templates/component/model/none/app/models
187
+ - lib/generators/templates/component/model/rspec
188
+ - lib/generators/templates/component/model/rspec/spec
189
+ - lib/generators/templates/component/model/rspec/spec/models
190
+ - lib/generators/templates/component/model/sequel
191
+ - lib/generators/templates/component/model/sequel/app
192
+ - lib/generators/templates/component/model/sequel/app/models
193
+ - lib/generators/templates/component/model/spec
194
+ - lib/generators/templates/component/model/spec/models
195
+ - lib/generators/templates/component/model/spec/models/%file_name%_spec.rb
196
+ - lib/generators/templates/component/model/test
197
+ - lib/generators/templates/component/model/test/models
198
+ - lib/generators/templates/component/model/test/models/%file_name%_test.rb
199
+ - lib/generators/templates/component/model/test_unit
200
+ - lib/generators/templates/component/model/test_unit/test
201
+ - lib/generators/templates/component/model/test_unit/test/models
202
+ - lib/generators/templates/component/part_controller
203
+ - lib/generators/templates/component/part_controller/app
204
+ - lib/generators/templates/component/part_controller/app/parts
205
+ - lib/generators/templates/component/part_controller/app/parts/%file_name%_part.rb
206
+ - lib/generators/templates/component/part_controller/app/parts/views
207
+ - lib/generators/templates/component/part_controller/app/parts/views/%file_name%_part
208
+ - lib/generators/templates/component/part_controller/app/parts/views/%file_name%_part/index.html.erb
209
+ - lib/generators/templates/component/resource_controller
210
+ - lib/generators/templates/component/resource_controller/activerecord
211
+ - lib/generators/templates/component/resource_controller/activerecord/app
212
+ - lib/generators/templates/component/resource_controller/activerecord/app/controllers
213
+ - lib/generators/templates/component/resource_controller/activerecord/app/views
214
+ - lib/generators/templates/component/resource_controller/activerecord/app/views/%file_name%
215
+ - lib/generators/templates/component/resource_controller/app
216
+ - lib/generators/templates/component/resource_controller/app/controllers
217
+ - lib/generators/templates/component/resource_controller/app/controllers/%file_name%.rb
218
+ - lib/generators/templates/component/resource_controller/app/views
219
+ - lib/generators/templates/component/resource_controller/app/views/%file_name%
220
+ - lib/generators/templates/component/resource_controller/app/views/%file_name%/edit.html.erb
221
+ - lib/generators/templates/component/resource_controller/app/views/%file_name%/index.html.erb
222
+ - lib/generators/templates/component/resource_controller/app/views/%file_name%/new.html.erb
223
+ - lib/generators/templates/component/resource_controller/app/views/%file_name%/show.html.erb
224
+ - lib/generators/templates/component/resource_controller/datamapper
225
+ - lib/generators/templates/component/resource_controller/datamapper/app
226
+ - lib/generators/templates/component/resource_controller/datamapper/app/controllers
227
+ - lib/generators/templates/component/resource_controller/datamapper/app/views
228
+ - lib/generators/templates/component/resource_controller/datamapper/app/views/%file_name%
229
+ - lib/generators/templates/component/resource_controller/none
230
+ - lib/generators/templates/component/resource_controller/none/app
231
+ - lib/generators/templates/component/resource_controller/none/app/controllers
232
+ - lib/generators/templates/component/resource_controller/none/app/views
233
+ - lib/generators/templates/component/resource_controller/none/app/views/%file_name%
234
+ - lib/generators/templates/component/resource_controller/sequel
235
+ - lib/generators/templates/component/resource_controller/sequel/app
236
+ - lib/generators/templates/component/resource_controller/sequel/app/controllers
237
+ - lib/generators/templates/component/resource_controller/sequel/app/views
238
+ - lib/generators/templates/component/resource_controller/sequel/app/views/%file_name%
239
+ - lib/generators/templates/component/resource_controller/spec
240
+ - lib/generators/templates/component/resource_controller/spec/controllers
241
+ - lib/generators/templates/component/resource_controller/spec/controllers/%file_name%_spec.rb
242
+ - lib/generators/templates/component/resource_controller/test
243
+ - lib/generators/templates/component/resource_controller/test/controllers
244
+ - lib/generators/templates/component/resource_controller/test/controllers/%file_name%_test.rb
245
+ - lib/generators/templates/component/session_migration
246
+ - lib/generators/templates/component/session_migration/activerecord
247
+ - lib/generators/templates/component/session_migration/activerecord/schema
248
+ - lib/generators/templates/component/session_migration/activerecord/schema/migrations
249
+ - lib/generators/templates/component/session_migration/sequel
250
+ - lib/generators/templates/component/session_migration/sequel/schema
251
+ - lib/generators/templates/component/session_migration/sequel/schema/migrations
48
252
  - lib/merb-gen
49
- - lib/merb-gen/base.rb
50
- - lib/merb-gen/helpers.rb
253
+ - lib/merb-gen/generator.rb
254
+ - lib/merb-gen/named_generator.rb
255
+ - lib/merb-gen/namespaced_generator.rb
256
+ - lib/merb-gen/spec_helper.rb
51
257
  - lib/merb-gen.rb
52
258
  - bin/merb-gen
53
- - app_generators/merb
54
- - app_generators/merb/merb_generator.rb
55
- - app_generators/merb/templates
56
- - app_generators/merb/templates/app
57
- - app_generators/merb/templates/app/controllers
58
- - app_generators/merb/templates/app/controllers/application.rb
59
- - app_generators/merb/templates/app/controllers/exceptions.rb
60
- - app_generators/merb/templates/app/helpers
61
- - app_generators/merb/templates/app/helpers/global_helpers.rb
62
- - app_generators/merb/templates/app/views
63
- - app_generators/merb/templates/app/views/exceptions
64
- - app_generators/merb/templates/app/views/exceptions/internal_server_error.html.erb
65
- - app_generators/merb/templates/app/views/exceptions/not_acceptable.html.erb
66
- - app_generators/merb/templates/app/views/exceptions/not_found.html.erb
67
- - app_generators/merb/templates/app/views/layout
68
- - app_generators/merb/templates/app/views/layout/application.html.erb
69
- - app_generators/merb/templates/autotest
70
- - app_generators/merb/templates/autotest/discover.rb
71
- - app_generators/merb/templates/autotest/merb.rb
72
- - app_generators/merb/templates/autotest/merb_rspec.rb
73
- - app_generators/merb/templates/config
74
- - app_generators/merb/templates/config/environments
75
- - app_generators/merb/templates/config/environments/development.rb
76
- - app_generators/merb/templates/config/environments/production.rb
77
- - app_generators/merb/templates/config/environments/rake.rb
78
- - app_generators/merb/templates/config/environments/test.rb
79
- - app_generators/merb/templates/config/init.rb
80
- - app_generators/merb/templates/config/rack.rb
81
- - app_generators/merb/templates/config/router.rb
82
- - app_generators/merb/templates/public
83
- - app_generators/merb/templates/public/images
84
- - app_generators/merb/templates/public/images/merb.jpg
85
- - app_generators/merb/templates/public/merb.fcgi
86
- - app_generators/merb/templates/public/stylesheets
87
- - app_generators/merb/templates/public/stylesheets/master.css
88
- - app_generators/merb/templates/Rakefile
89
- - app_generators/merb/templates/spec
90
- - app_generators/merb/templates/spec/spec.opts
91
- - app_generators/merb/templates/spec/spec_helper.rb
92
- - app_generators/merb/templates/test
93
- - app_generators/merb/templates/test/test_helper.rb
94
- - app_generators/merb/USAGE
95
- - app_generators/merb_flat
96
- - app_generators/merb_flat/merb_flat_generator.rb
97
- - app_generators/merb_flat/templates
98
- - app_generators/merb_flat/templates/application.rb
99
- - app_generators/merb_flat/templates/config
100
- - app_generators/merb_flat/templates/config/framework.rb
101
- - app_generators/merb_flat/templates/config/init.rb
102
- - app_generators/merb_flat/templates/README.txt
103
- - app_generators/merb_flat/templates/views
104
- - app_generators/merb_flat/templates/views/foo.html.erb
105
- - app_generators/merb_plugin
106
- - app_generators/merb_plugin/merb_plugin_generator.rb
107
- - app_generators/merb_plugin/templates
108
- - app_generators/merb_plugin/templates/lib
109
- - app_generators/merb_plugin/templates/lib/%base_name%
110
- - app_generators/merb_plugin/templates/lib/%base_name%/merbtasks.rb
111
- - app_generators/merb_plugin/templates/lib/%base_name%.rb
112
- - app_generators/merb_plugin/templates/LICENSE
113
- - app_generators/merb_plugin/templates/Rakefile
114
- - app_generators/merb_plugin/templates/README
115
- - app_generators/merb_plugin/templates/spec
116
- - app_generators/merb_plugin/templates/spec/%base_name%_spec.rb
117
- - app_generators/merb_plugin/templates/spec/spec_helper.rb
118
- - app_generators/merb_plugin/templates/test
119
- - app_generators/merb_plugin/templates/test/%base_name%_test.rb
120
- - app_generators/merb_plugin/templates/test/test_helper.rb
121
- - app_generators/merb_plugin/templates/TODO
122
- - app_generators/merb_very_flat
123
- - app_generators/merb_very_flat/merb_very_flat_generator.rb
124
- - app_generators/merb_very_flat/templates
125
- - app_generators/merb_very_flat/templates/%app_file_name%.rb
126
- - app_generators/merb_very_flat/templates/README.txt
127
- - merb_default_generators/model
128
- - merb_default_generators/model/model_generator.rb
129
- - merb_default_generators/model/templates
130
- - merb_default_generators/model/templates/app
131
- - merb_default_generators/model/templates/app/models
132
- - merb_default_generators/model/templates/app/models/%model_file_name%.rb
133
- - merb_default_generators/model/USAGE
134
- - merb_default_generators/resource_controller
135
- - merb_default_generators/resource_controller/resource_controller_generator.rb
136
- - merb_default_generators/resource_controller/templates
137
- - merb_default_generators/resource_controller/templates/app
138
- - merb_default_generators/resource_controller/templates/app/controllers
139
- - merb_default_generators/resource_controller/templates/app/controllers/%controller_file_name%.rb
140
- - merb_default_generators/resource_controller/templates/app/helpers
141
- - merb_default_generators/resource_controller/templates/app/helpers/%controller_file_name%_helper.rb
142
- - merb_default_generators/resource_controller/templates/app/views
143
- - merb_default_generators/resource_controller/templates/app/views/%controller_file_name%
144
- - merb_default_generators/resource_controller/templates/app/views/%controller_file_name%/delete.html.erb
145
- - merb_default_generators/resource_controller/templates/app/views/%controller_file_name%/edit.html.erb
146
- - merb_default_generators/resource_controller/templates/app/views/%controller_file_name%/index.html.erb
147
- - merb_default_generators/resource_controller/templates/app/views/%controller_file_name%/new.html.erb
148
- - merb_default_generators/resource_controller/templates/app/views/%controller_file_name%/show.html.erb
149
- - merb_default_generators/resource_controller/USAGE
150
- - merb_generators/controller
151
- - merb_generators/controller/controller_generator.rb
152
- - merb_generators/controller/templates
153
- - merb_generators/controller/templates/app
154
- - merb_generators/controller/templates/app/controllers
155
- - merb_generators/controller/templates/app/controllers/%controller_file_name%.rb
156
- - merb_generators/controller/templates/app/helpers
157
- - merb_generators/controller/templates/app/helpers/%controller_file_name%_helper.rb
158
- - merb_generators/controller/templates/app/views
159
- - merb_generators/controller/templates/app/views/%controller_file_name%
160
- - merb_generators/controller/templates/app/views/%controller_file_name%/index.html.erb
161
- - merb_generators/controller/USAGE
162
- - merb_generators/part_controller
163
- - merb_generators/part_controller/part_controller_generator.rb
164
- - merb_generators/part_controller/templates
165
- - merb_generators/part_controller/templates/app
166
- - merb_generators/part_controller/templates/app/helpers
167
- - merb_generators/part_controller/templates/app/helpers/%controller_file_name%_part_helper.rb
168
- - merb_generators/part_controller/templates/app/parts
169
- - merb_generators/part_controller/templates/app/parts/%controller_file_name%_part.rb
170
- - merb_generators/part_controller/templates/app/parts/views
171
- - merb_generators/part_controller/templates/app/parts/views/%controller_file_name%_part
172
- - merb_generators/part_controller/templates/app/parts/views/%controller_file_name%_part/index.html.erb
173
- - merb_generators/part_controller/USAGE
174
- - merb_generators/resource
175
- - merb_generators/resource/resource_generator.rb
176
- - merb_generators/resource/USAGE
177
- - rspec_generators/merb_controller_test
178
- - rspec_generators/merb_controller_test/merb_controller_test_generator.rb
179
- - rspec_generators/merb_controller_test/templates
180
- - rspec_generators/merb_controller_test/templates/spec
181
- - rspec_generators/merb_controller_test/templates/spec/controllers
182
- - rspec_generators/merb_controller_test/templates/spec/controllers/%controller_full_file_path%_spec.rb
183
- - rspec_generators/merb_controller_test/templates/spec/helpers
184
- - rspec_generators/merb_controller_test/templates/spec/helpers/%controller_full_file_path%_helper_spec.rb
185
- - rspec_generators/merb_model_test
186
- - rspec_generators/merb_model_test/merb_model_test_generator.rb
187
- - rspec_generators/merb_model_test/templates
188
- - rspec_generators/merb_model_test/templates/spec
189
- - rspec_generators/merb_model_test/templates/spec/models
190
- - rspec_generators/merb_model_test/templates/spec/models/%model_file_name%_spec.rb
191
- - rspec_generators/merb_resource_controller_test
192
- - rspec_generators/merb_resource_controller_test/merb_resource_controller_test_generator.rb
193
- - rspec_generators/merb_resource_controller_test/templates
194
- - rspec_generators/merb_resource_controller_test/templates/spec
195
- - rspec_generators/merb_resource_controller_test/templates/spec/controllers
196
- - rspec_generators/merb_resource_controller_test/templates/spec/controllers/%controller_full_file_path%_spec.rb
197
- - rspec_generators/merb_resource_controller_test/templates/spec/helpers
198
- - rspec_generators/merb_resource_controller_test/templates/spec/helpers/%controller_full_file_path%_helpers.rb
199
- - rspec_generators/merb_resource_controller_test/templates/spec/views
200
- - rspec_generators/merb_resource_controller_test/templates/spec/views/%controller_full_file_path%
201
- - rspec_generators/merb_resource_controller_test/templates/spec/views/%controller_full_file_path%/delete.html.erb_spec.rb
202
- - rspec_generators/merb_resource_controller_test/templates/spec/views/%controller_full_file_path%/edit.html.erb_spec.rb
203
- - rspec_generators/merb_resource_controller_test/templates/spec/views/%controller_full_file_path%/index.html.erb_spec.rb
204
- - rspec_generators/merb_resource_controller_test/templates/spec/views/%controller_full_file_path%/new.html.erb_spec.rb
205
- - rspec_generators/merb_resource_controller_test/templates/spec/views/%controller_full_file_path%/show.html.erb_spec.rb
206
- - test_unit_generators/merb_controller_test
207
- - test_unit_generators/merb_controller_test/merb_controller_test_generator.rb
208
- - test_unit_generators/merb_controller_test/templates
209
- - test_unit_generators/merb_controller_test/templates/test
210
- - test_unit_generators/merb_controller_test/templates/test/functional
211
- - test_unit_generators/merb_controller_test/templates/test/functional/%controller_full_file_path%_test.rb
212
- - test_unit_generators/merb_model_test
213
- - test_unit_generators/merb_model_test/merb_model_test_generator.rb
214
- - test_unit_generators/merb_model_test/templates
215
- - test_unit_generators/merb_model_test/templates/test
216
- - test_unit_generators/merb_model_test/templates/test/unit
217
- - test_unit_generators/merb_model_test/templates/test/unit/%model_file_name%_test.rb
218
- - test_unit_generators/merb_resource_controller_test
219
- - test_unit_generators/merb_resource_controller_test/merb_resource_controller_test_generator.rb
259
+ - spec/controller_spec.rb
260
+ - spec/fixtures
261
+ - spec/fixtures/results
262
+ - spec/fixtures/results/no_modules.test
263
+ - spec/fixtures/results/some_modules.test
264
+ - spec/fixtures/templates
265
+ - spec/fixtures/templates/no_modules.test
266
+ - spec/fixtures/templates/some_modules.test
267
+ - spec/freezer_spec.rb
268
+ - spec/generator_spec.rb
269
+ - spec/helper_spec.rb
270
+ - spec/layout_spec.rb
271
+ - spec/merb_flat_spec.rb
272
+ - spec/merb_full_spec.rb
273
+ - spec/merb_plugin_spec.rb
274
+ - spec/merb_spec.rb
275
+ - spec/merb_very_flat_spec.rb
276
+ - spec/migration_spec.rb
277
+ - spec/model_spec.rb
278
+ - spec/named_generator_spec.rb
279
+ - spec/namespaced_generator_spec.rb
280
+ - spec/part_controller_spec.rb
281
+ - spec/resource_controller_spec.rb
282
+ - spec/resource_spec.rb
283
+ - spec/session_migration_spec.rb
284
+ - spec/spec_helper.rb
220
285
  has_rdoc: true
221
- homepage: http://www.merbivore.com
286
+ homepage: http://merbivore.com
222
287
  post_install_message:
223
288
  rdoc_options: []
224
289
 
@@ -238,10 +303,10 @@ required_rubygems_version: !ruby/object:Gem::Requirement
238
303
  version:
239
304
  requirements: []
240
305
 
241
- rubyforge_project:
242
- rubygems_version: 1.0.1
306
+ rubyforge_project: merb
307
+ rubygems_version: 1.2.0
243
308
  signing_key:
244
309
  specification_version: 2
245
- summary: "Merb More: Merb's Application and Plugin Generators"
310
+ summary: Generators suite for Merb.
246
311
  test_files: []
247
312