vraptor-scaffold 1.1.0 → 1.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (170) hide show
  1. data/.travis.yml +7 -0
  2. data/CHANGELOG.rdoc +164 -0
  3. data/Gemfile.lock +5 -8
  4. data/README.textile +20 -7
  5. data/bin/vraptor +1 -1
  6. data/index.sample.html +169 -0
  7. data/lib/vraptor-scaffold.rb +10 -29
  8. data/lib/vraptor-scaffold/configuration.rb +27 -4
  9. data/lib/vraptor-scaffold/execution.rb +24 -0
  10. data/lib/vraptor-scaffold/generators/app/app_generator.rb +196 -0
  11. data/lib/vraptor-scaffold/generators/{app_generator → app}/dependency.rb +0 -0
  12. data/lib/vraptor-scaffold/generators/app/dependency_manager.rb +53 -0
  13. data/lib/vraptor-scaffold/generators/{app_generator → app}/freemarker_template_engine.rb +0 -0
  14. data/lib/vraptor-scaffold/generators/{app_generator → app}/jsp_template_engine.rb +0 -0
  15. data/lib/vraptor-scaffold/generators/{app_generator → app}/templates/build.gradle.erb +19 -1
  16. data/lib/vraptor-scaffold/generators/{app_generator → app}/templates/build.properties.erb +0 -0
  17. data/lib/vraptor-scaffold/generators/{app_generator → app}/templates/build.xml +6 -2
  18. data/lib/vraptor-scaffold/generators/{app_generator → app}/templates/decorators.erb +0 -0
  19. data/lib/vraptor-scaffold/generators/{app_generator → app}/templates/eclipse/classpath.erb +0 -5
  20. data/lib/vraptor-scaffold/generators/{app_generator → app}/templates/eclipse/project.erb +0 -0
  21. data/lib/vraptor-scaffold/generators/{app_generator → app}/templates/eclipse/settings/org.eclipse.jdt.core.prefs +0 -0
  22. data/lib/vraptor-scaffold/generators/{app_generator → app}/templates/eclipse/settings/org.eclipse.wst.common.component.tt +0 -0
  23. data/lib/vraptor-scaffold/generators/{app_generator → app}/templates/eclipse/settings/org.eclipse.wst.common.project.facet.core.xml +0 -0
  24. data/lib/vraptor-scaffold/generators/{app_generator → app}/templates/eclipse/settings/org.eclipse.wst.jsdt.ui.superType.container +0 -0
  25. data/lib/vraptor-scaffold/generators/{app_generator → app}/templates/eclipse/settings/org.eclipse.wst.jsdt.ui.superType.name +0 -0
  26. data/lib/vraptor-scaffold/generators/{app_generator → app}/templates/freemarker/freemarker-web.xml +0 -0
  27. data/lib/vraptor-scaffold/generators/{app_generator → app}/templates/freemarker/infrastructure/FreemarkerPathResolver.java.tt +0 -0
  28. data/lib/vraptor-scaffold/generators/{app_generator → app}/templates/freemarker/macros/html.ftl +0 -0
  29. data/lib/vraptor-scaffold/generators/{app_generator → app}/templates/freemarker/main.ftl +0 -0
  30. data/lib/vraptor-scaffold/generators/app/templates/heroku/Main.java +21 -0
  31. data/lib/vraptor-scaffold/generators/app/templates/heroku/Procfile +1 -0
  32. data/lib/vraptor-scaffold/generators/{app_generator → app}/templates/ivy-2.2.0.jar +0 -0
  33. data/lib/vraptor-scaffold/generators/{app_generator → app}/templates/ivy.erb +1 -1
  34. data/lib/vraptor-scaffold/generators/{app_generator → app}/templates/jsp/jsp-web.xml +0 -0
  35. data/lib/vraptor-scaffold/generators/{app_generator → app}/templates/jsp/main.jsp +2 -2
  36. data/lib/vraptor-scaffold/generators/{app_generator → app}/templates/jsp/prelude.jspf +0 -0
  37. data/lib/vraptor-scaffold/generators/{app_generator/templates/src/models/Entity.java.tt → app/templates/models/Entity.erb} +1 -1
  38. data/lib/vraptor-scaffold/generators/app/templates/orm/Repository-hibernate.java.tt +50 -0
  39. data/lib/vraptor-scaffold/generators/{app_generator/templates/src/repositories/Repository.java.tt → app/templates/orm/Repository-jpa.java.tt} +3 -3
  40. data/lib/vraptor-scaffold/generators/app/templates/orm/hibernate.cfg.xml +7 -0
  41. data/lib/vraptor-scaffold/generators/app/templates/orm/persistence.xml +10 -0
  42. data/lib/vraptor-scaffold/generators/{app_generator → app}/templates/pom.erb +29 -13
  43. data/lib/vraptor-scaffold/generators/{app_generator → app}/templates/resources-test/.empty_directory +0 -0
  44. data/lib/vraptor-scaffold/generators/app/templates/resources/hibernate.properties +16 -0
  45. data/lib/vraptor-scaffold/generators/app/templates/resources/log4j.properties +4 -0
  46. data/lib/vraptor-scaffold/generators/{app_generator → app}/templates/resources/messages.properties +0 -0
  47. data/lib/vraptor-scaffold/generators/app/templates/vraptor-scaffold.erb +7 -0
  48. data/lib/vraptor-scaffold/generators/{app_generator/templates/webapp/WEB-INF/web.xml → app/templates/webapp/WEB-INF/web.xml.tt} +2 -2
  49. data/lib/vraptor-scaffold/generators/{app_generator/templates/src-test/controllers → app/templates/webapp/images}/.empty_directory +0 -0
  50. data/lib/vraptor-scaffold/generators/{app_generator → app}/templates/webapp/index.jsp +0 -0
  51. data/lib/vraptor-scaffold/generators/{app_generator → app}/templates/webapp/stylesheets/common.css +0 -0
  52. data/lib/vraptor-scaffold/generators/{app_generator → app}/templates/webapp/stylesheets/scaffold.css +0 -0
  53. data/lib/vraptor-scaffold/generators/{app_generator → app}/templates/webapp/stylesheets/stylesheets.css +0 -0
  54. data/lib/vraptor-scaffold/generators/plugin/plugin_generator.rb +42 -0
  55. data/lib/vraptor-scaffold/generators/plugin/vraptor_gem.rb +36 -0
  56. data/lib/vraptor-scaffold/generators/{scaffold_generator → scaffold}/attribute.rb +1 -1
  57. data/lib/vraptor-scaffold/generators/{scaffold_generator → scaffold}/base_scaffold.rb +6 -2
  58. data/lib/vraptor-scaffold/generators/{scaffold_generator → scaffold}/controller_generator/controller_generator.rb +3 -3
  59. data/lib/vraptor-scaffold/generators/{scaffold_generator → scaffold}/controller_generator/templates/controller.erb +3 -3
  60. data/lib/vraptor-scaffold/generators/{scaffold_generator → scaffold}/controller_generator/templates/controller_test.erb +1 -1
  61. data/lib/vraptor-scaffold/generators/scaffold/model_generator/model_generator.rb +20 -0
  62. data/lib/vraptor-scaffold/generators/{scaffold_generator → scaffold}/model_generator/templates/model.erb +3 -3
  63. data/lib/vraptor-scaffold/generators/{scaffold_generator → scaffold}/model_generator/templates/model_test.erb +1 -1
  64. data/lib/vraptor-scaffold/generators/scaffold/repository_generator/repository_generator.rb +27 -0
  65. data/lib/vraptor-scaffold/generators/{scaffold_generator → scaffold}/repository_generator/templates/repository.erb +3 -3
  66. data/lib/vraptor-scaffold/generators/scaffold/repository_generator/templates/repository_impl.erb +16 -0
  67. data/lib/vraptor-scaffold/generators/{scaffold_generator → scaffold}/repository_generator/templates/repository_test.erb +1 -1
  68. data/lib/vraptor-scaffold/generators/{scaffold_generator → scaffold}/scaffold_generator.rb +0 -0
  69. data/lib/vraptor-scaffold/generators/scaffold/template_engine_generator/freemarker_generator/freemarker_generator.rb +18 -0
  70. data/lib/vraptor-scaffold/generators/{scaffold_generator → scaffold/template_engine_generator}/freemarker_generator/templates/edit.erb +0 -0
  71. data/lib/vraptor-scaffold/generators/{scaffold_generator → scaffold/template_engine_generator}/freemarker_generator/templates/form.erb +4 -4
  72. data/lib/vraptor-scaffold/generators/scaffold/template_engine_generator/freemarker_generator/templates/index.erb +36 -0
  73. data/lib/vraptor-scaffold/generators/{scaffold_generator → scaffold/template_engine_generator}/freemarker_generator/templates/new.erb +0 -0
  74. data/lib/vraptor-scaffold/generators/scaffold/template_engine_generator/freemarker_generator/templates/show.erb +14 -0
  75. data/lib/vraptor-scaffold/generators/scaffold/template_engine_generator/jsp_generator/jsp_generator.rb +18 -0
  76. data/lib/vraptor-scaffold/generators/{scaffold_generator → scaffold/template_engine_generator}/jsp_generator/templates/edit.erb +0 -0
  77. data/lib/vraptor-scaffold/generators/{scaffold_generator → scaffold/template_engine_generator}/jsp_generator/templates/form.erb +4 -4
  78. data/lib/vraptor-scaffold/generators/{scaffold_generator → scaffold/template_engine_generator}/jsp_generator/templates/index.erb +6 -6
  79. data/lib/vraptor-scaffold/generators/{scaffold_generator → scaffold/template_engine_generator}/jsp_generator/templates/new.erb +0 -0
  80. data/lib/vraptor-scaffold/generators/scaffold/template_engine_generator/jsp_generator/templates/show.erb +14 -0
  81. data/lib/vraptor-scaffold/generators/scaffold/template_engine_generator/template_engine_generator.rb +21 -0
  82. data/lib/vraptor-scaffold/load_paths.rb +13 -21
  83. data/lib/vraptor-scaffold/runner.rb +11 -0
  84. data/lib/vraptor-scaffold/runner/commands_help.rb +13 -0
  85. data/lib/vraptor-scaffold/runner/configure.rb +21 -0
  86. data/lib/vraptor-scaffold/runner/generator.rb +15 -0
  87. data/lib/vraptor-scaffold/runner/help.rb +12 -0
  88. data/lib/vraptor-scaffold/runner/plugin.rb +19 -0
  89. data/lib/vraptor-scaffold/runner/scaffold.rb +16 -0
  90. data/lib/vraptor-scaffold/version.rb +1 -1
  91. data/spec/resources/vraptor-scaffold.properties +5 -0
  92. data/spec/simple_custom_plugin.rb +10 -0
  93. data/spec/spec_helper.rb +5 -6
  94. data/spec/vraptor-scaffold/configuration_spec.rb +88 -4
  95. data/spec/vraptor-scaffold/execution_spec.rb +47 -0
  96. data/spec/vraptor-scaffold/generators/{app_generator → app}/app_generator_spec.rb +136 -54
  97. data/spec/vraptor-scaffold/generators/{app_generator → app}/dependency_manager_spec.rb +1 -1
  98. data/spec/vraptor-scaffold/generators/{app_generator → app}/dependency_spec.rb +0 -0
  99. data/spec/vraptor-scaffold/generators/{app_generator → app}/freemarker_template_engine_spec.rb +1 -1
  100. data/spec/vraptor-scaffold/generators/{app_generator → app}/jsp_template_engine_spec.rb +0 -0
  101. data/spec/vraptor-scaffold/generators/{app_generator → app}/templates/Entity.java +1 -1
  102. data/spec/vraptor-scaffold/generators/{app_generator → app}/templates/FreemarkerPathResolver.java +0 -0
  103. data/spec/vraptor-scaffold/generators/{app_generator → app}/templates/Repository.java +3 -3
  104. data/spec/vraptor-scaffold/generators/{app_generator → app}/templates/build.gradle +24 -5
  105. data/spec/vraptor-scaffold/generators/{app_generator → app}/templates/build.properties +0 -0
  106. data/spec/vraptor-scaffold/generators/{app_generator → app}/templates/decorators-jsp.xml +0 -0
  107. data/spec/vraptor-scaffold/generators/{app_generator → app}/templates/decorators.xml +0 -0
  108. data/spec/vraptor-scaffold/generators/{app_generator → app}/templates/freemarker-web.xml +2 -2
  109. data/spec/vraptor-scaffold/generators/{app_generator → app}/templates/ivy.xml +6 -5
  110. data/spec/vraptor-scaffold/generators/{app_generator → app}/templates/jsp-web.xml +1 -1
  111. data/spec/vraptor-scaffold/generators/app/templates/pom-heroku.xml +168 -0
  112. data/spec/vraptor-scaffold/generators/{app_generator → app}/templates/pom.xml +11 -14
  113. data/spec/vraptor-scaffold/generators/app/templates/vraptor-scaffold.properties +7 -0
  114. data/spec/vraptor-scaffold/generators/plugin/expected_configs/build.gradle +61 -0
  115. data/spec/vraptor-scaffold/generators/plugin/expected_configs/default_org_build.gradle +61 -0
  116. data/spec/vraptor-scaffold/generators/plugin/expected_configs/default_org_ivy.xml +40 -0
  117. data/spec/vraptor-scaffold/generators/plugin/expected_configs/default_org_pom.xml +147 -0
  118. data/spec/vraptor-scaffold/generators/plugin/expected_configs/ivy.xml +40 -0
  119. data/spec/vraptor-scaffold/generators/plugin/expected_configs/pom.xml +147 -0
  120. data/spec/vraptor-scaffold/generators/plugin/plugin_generator_spec.rb +130 -0
  121. data/spec/vraptor-scaffold/generators/{scaffold_generator → scaffold}/attribute_spec.rb +13 -9
  122. data/spec/vraptor-scaffold/generators/scaffold/base_scaffold_spec.rb +73 -0
  123. data/spec/vraptor-scaffold/generators/{scaffold_generator → scaffold}/controller_generator/controller_generator_spec.rb +18 -9
  124. data/spec/vraptor-scaffold/generators/{scaffold_generator → scaffold}/controller_generator/templates/ProductController.java +3 -3
  125. data/spec/vraptor-scaffold/generators/scaffold/freemarker_generator/freemarker_generator_spec.rb +74 -0
  126. data/spec/vraptor-scaffold/generators/scaffold/jsp_generator/jsp_generator_spec.rb +75 -0
  127. data/spec/vraptor-scaffold/generators/scaffold/model_generator/model_generator_spec.rb +50 -0
  128. data/spec/vraptor-scaffold/generators/{scaffold_generator → scaffold}/model_generator/templates/Product.java +6 -6
  129. data/spec/vraptor-scaffold/generators/scaffold/model_generator/templates/hibernate.cfg.xml +8 -0
  130. data/spec/vraptor-scaffold/generators/scaffold/repository_generator/repository_generator_spec.rb +60 -0
  131. data/spec/vraptor-scaffold/generators/scaffold/repository_generator/templates/ClientRepository.java +22 -0
  132. data/spec/vraptor-scaffold/generators/scaffold/repository_generator/templates/ClientRepositoryImpl.java +16 -0
  133. data/spec/vraptor-scaffold/generators/{scaffold_generator → scaffold}/repository_generator/templates/ProductRepository.java +3 -3
  134. data/spec/vraptor-scaffold/generators/{scaffold_generator → scaffold}/repository_generator/templates/ProductRepositoryImpl.java +3 -3
  135. data/spec/vraptor-scaffold/generators/{scaffold_generator → scaffold}/scaffold_generator_spec.rb +0 -0
  136. data/spec/vraptor-scaffold/runner/commands_help_spec.rb +12 -0
  137. data/spec/vraptor-scaffold/runner/configure_spec.rb +12 -0
  138. data/spec/vraptor-scaffold/runner/generator_spec.rb +31 -0
  139. data/spec/vraptor-scaffold/runner/help_spec.rb +29 -0
  140. data/spec/vraptor-scaffold/runner/plugin_spec.rb +45 -0
  141. data/spec/vraptor-scaffold/runner/scaffold_spec.rb +35 -0
  142. data/spec/vraptor-scaffold_spec.rb +1 -94
  143. data/vraptor-scaffold.gemspec +3 -3
  144. metadata +137 -140
  145. data/History.txt +0 -128
  146. data/lib/vraptor-scaffold/generators/app_generator/app_generator.rb +0 -102
  147. data/lib/vraptor-scaffold/generators/app_generator/dependency_manager.rb +0 -37
  148. data/lib/vraptor-scaffold/generators/app_generator/templates/ivysettings.xml +0 -9
  149. data/lib/vraptor-scaffold/generators/app_generator/templates/resources/META-INF/persistence.xml +0 -20
  150. data/lib/vraptor-scaffold/generators/app_generator/templates/resources/log4j.properties +0 -4
  151. data/lib/vraptor-scaffold/generators/app_generator/templates/src-test/models/.empty_directory +0 -0
  152. data/lib/vraptor-scaffold/generators/app_generator/templates/src-test/repositories/.empty_directory +0 -0
  153. data/lib/vraptor-scaffold/generators/app_generator/templates/src/controllers/.empty_directory +0 -0
  154. data/lib/vraptor-scaffold/generators/app_generator/templates/vraptor-scaffold.erb +0 -2
  155. data/lib/vraptor-scaffold/generators/app_generator/templates/webapp/images/.empty_directory +0 -0
  156. data/lib/vraptor-scaffold/generators/app_generator/templates/webapp/javascripts/application.js +0 -0
  157. data/lib/vraptor-scaffold/generators/app_generator/templates/webapp/javascripts/jquery.min.js +0 -16
  158. data/lib/vraptor-scaffold/generators/scaffold_generator/freemarker_generator/freemarker_generator.rb +0 -22
  159. data/lib/vraptor-scaffold/generators/scaffold_generator/freemarker_generator/templates/index.erb +0 -36
  160. data/lib/vraptor-scaffold/generators/scaffold_generator/freemarker_generator/templates/show.erb +0 -14
  161. data/lib/vraptor-scaffold/generators/scaffold_generator/jsp_generator/jsp_generator.rb +0 -22
  162. data/lib/vraptor-scaffold/generators/scaffold_generator/jsp_generator/templates/show.erb +0 -14
  163. data/lib/vraptor-scaffold/generators/scaffold_generator/model_generator/model_generator.rb +0 -11
  164. data/lib/vraptor-scaffold/generators/scaffold_generator/repository_generator/repository_generator.rb +0 -12
  165. data/lib/vraptor-scaffold/generators/scaffold_generator/repository_generator/templates/repository_impl.erb +0 -16
  166. data/spec/vraptor-scaffold/generators/scaffold_generator/base_scaffold_spec.rb +0 -41
  167. data/spec/vraptor-scaffold/generators/scaffold_generator/freemarker_generator/freemarker_generator_spec.rb +0 -36
  168. data/spec/vraptor-scaffold/generators/scaffold_generator/jsp_generator/jsp_generator_spec.rb +0 -34
  169. data/spec/vraptor-scaffold/generators/scaffold_generator/model_generator/model_generator_spec.rb +0 -25
  170. data/spec/vraptor-scaffold/generators/scaffold_generator/repository_generator/repository_generator_spec.rb +0 -31
@@ -0,0 +1,7 @@
1
+ notifications:
2
+ recipients:
3
+ - rodolfo.liviero@gmail.com
4
+
5
+ rvm:
6
+ - 1.8.7
7
+ - 1.9.2
@@ -0,0 +1,164 @@
1
+ == 1.2.0 / 2011-09-10
2
+
3
+ * New Features
4
+ * heroku support (vraptor new app --heroku).
5
+ * option to choose between JPA(default) or Hibernate (vraptor new app -o hibernate).
6
+ * option to override models package (Use -m).
7
+ * option to override controllers package (Use Use -c).
8
+ * option to override repositories package (Use -r).
9
+ * get always latest jquery version (Use - j to choose another one).
10
+ * added c3p0 pool configurations.
11
+
12
+ * Improvements
13
+ * removed unnecessary EJB provider configuration.
14
+ * moving hibernate configurations to hibernate.properties.
15
+ * update method on generic repository nows return the updated entity.
16
+ * better log4j pattern.
17
+ * removing the hibernate configuration repositories from build tools.
18
+ * better helps commands.
19
+ * removing jre classpath entry making eclipse use default.
20
+ * updated hsqldb to 2.2.4.
21
+ * updated freemarker to 2.3.18.
22
+ * updated hibernate to 3.6.7.Final.
23
+ * updated hibernate validator to 4.2.0.Final.
24
+ * updated joda time to 2.0.
25
+ * updated maven war plugin to 2.1.1.
26
+ * updated maven cobertura plugin to 2.5.1.
27
+
28
+ * Bugfixes
29
+ * jetty hot deploy on ant projects.
30
+ * script tag in main.jsp was closing twice.
31
+ * gradle does not load test classpath correctly.
32
+ * scaffold models with compound names.
33
+ * does not create new project if a folder with the project name exists.
34
+
35
+ == 1.1.0 / 2011-03-02
36
+
37
+ * New Features
38
+ * JPA 2 support using hibernate 3.6.1.Final. (Issue 13)
39
+ * ant task to minify js and css. (Issue 27)
40
+ * created prelude to automatic import taglibs in jsp.
41
+
42
+ * Improvements
43
+ * updated hibernate validator to 4.1.0.Final.
44
+ * updated vraptor to 3.3.1.
45
+ * updated jquery to 1.5.1.
46
+ * added head with title tag for sitemesh capture it in jsp views.
47
+ * changed html DTD to XHTML.
48
+ * declared css encoding (UTF-8).
49
+ * created application.js.
50
+ * better repository and controller encapsulation.
51
+ * better controller template.
52
+ * specified the exact location of SuppressWarnings, like Clean Code technique.
53
+ * changed jeweler to bundler. (Issue 26)
54
+
55
+ == 1.0.0 / 2011-02-04
56
+
57
+ * Improvements
58
+ * updated vraptor to 3.3.0
59
+ * updated jquery to 1.5
60
+ * decorators folder inside WEB-INF (Issue 24)
61
+ * removed spring 3 option.
62
+
63
+ == 0.0.4 / 2010-11-20
64
+
65
+ * Improvements
66
+ * changed decorators encoding to UTF-8
67
+ * updated jquery to 1.4.4
68
+ * updated joda-time to 1.6.2
69
+ * added jsp-api 2.1 dependency as provided scope.
70
+
71
+ * Bugfixes
72
+ * Fixed scaffolding with uppercase model and attributes(Issue 19).
73
+ * Fixed activesupport version cause version 3.0.3 break new instalations(Issue 22).
74
+ * Generate correct getter for boolean attributes(Issue 21).
75
+
76
+ == 0.0.3 / 2010-11-04
77
+
78
+ * New Features
79
+ * works with gradle
80
+ * works with spring 3
81
+
82
+ * Improvements
83
+ * bumped ivy version to 2.2.0
84
+ * updated maven plugins
85
+ * validate users action when create app
86
+ * update hsqldb
87
+ * update junit
88
+ * better build.xml
89
+
90
+ == 0.0.2 / 2010-10-08
91
+
92
+ * Improvements
93
+ * bumped vraptor version to 3.2.0
94
+
95
+ == 0.0.1 / 2010-10-05
96
+
97
+ * New Features
98
+ * jsp support
99
+ * base package
100
+ * works with ant + ivy
101
+ * help command
102
+
103
+ * Improvements
104
+ * Better use of Generics.
105
+ * Update Hibernate
106
+
107
+ == 0.0.1.rc / 2010-08-24
108
+
109
+ * New Features
110
+ * Added Hamcrest 1.1
111
+ * Added text support(textarea).
112
+
113
+ * Improvements
114
+ * Create folder to put images.
115
+
116
+ * Bugfixes
117
+ * Works on windows OS.
118
+
119
+ == 0.0.1.beta5 / 2010-08-04
120
+
121
+ * New Features
122
+ * Added generic repository.
123
+ * Scaffold repository to each model.
124
+ * Now controllers use repository instead entity manager.
125
+ * Generated models come with hashCode and equals.
126
+ * Generating fake tests to models, controllers and repositories.
127
+
128
+ * Improvements
129
+ * Better freemarker views.
130
+ * UTF-8 default enconding.
131
+ * Update jetty maven plugin version(6 to 7).
132
+
133
+ == 0.0.1.beta4 / 2010-07-16
134
+
135
+ * New Features
136
+ * Added validator support with hibernate-validator.
137
+ * Error Messages.
138
+ * Redirect to form when occur validation erros.
139
+ * Added joda time dependency.
140
+ * Create messages.properties(i18n).
141
+
142
+ * Bugfixes
143
+ * Fixed i.e problems.
144
+
145
+ == 0.0.1.beta3 / 2010-07-11
146
+
147
+ * New Features
148
+ * Added command to start web server(jetty).
149
+ * Added boolean support.
150
+
151
+ * Improvements
152
+ * Bumped vraptor version to 3.1.3.
153
+ * Change log4j.xml to log4j.properties.
154
+ * Change views directory from WEB-INF/freemarker to WEB-INF/views.
155
+ * Change hsqldb to use file instead of memory.
156
+
157
+ * Bugfixes
158
+ * Fixed pom when creating project with path like /home/rodolfo/project.
159
+ * Fixed runtime dependencies.
160
+
161
+ == 0.0.1.beta2 / 2010-07-07
162
+
163
+ * First version
164
+ * Crud with vraptor 3, maven 2, jpa, freemarker and jquery.
@@ -1,9 +1,9 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- vraptor-scaffold (1.1.0)
4
+ vraptor-scaffold (1.2.0)
5
5
  activesupport (= 3.0.1)
6
- rake (= 0.8.7)
6
+ rake (= 0.9.2)
7
7
  thor (= 0.14.6)
8
8
 
9
9
  GEM
@@ -11,9 +11,9 @@ GEM
11
11
  specs:
12
12
  ZenTest (4.4.0)
13
13
  activesupport (3.0.1)
14
- rake (0.8.7)
14
+ rake (0.9.2)
15
15
  rcov (0.9.9)
16
- rspec (1.3.1)
16
+ rspec (1.3.2)
17
17
  thor (0.14.6)
18
18
 
19
19
  PLATFORMS
@@ -21,9 +21,6 @@ PLATFORMS
21
21
 
22
22
  DEPENDENCIES
23
23
  ZenTest (= 4.4.0)
24
- activesupport (= 3.0.1)
25
- rake (= 0.8.7)
26
24
  rcov (= 0.9.9)
27
- rspec (= 1.3.1)
28
- thor (= 0.14.6)
25
+ rspec (= 1.3.2)
29
26
  vraptor-scaffold!
@@ -11,11 +11,12 @@ h1. Getting Started
11
11
 
12
12
  At the command line client:
13
13
 
14
- * vraptor new myapp
15
- * Change directory into myapp
16
- * vraptor scaffold product name:string value:double
17
- * ant jetty.run
18
- * Go http://localhost:8080/products
14
+ vraptor new myapp
15
+ cd myapp
16
+ vraptor scaffold product name:string value:double
17
+ ant jetty.run
18
+
19
+ open http://localhost:8080/products
19
20
 
20
21
  h2. Note on Patches/Pull Requests
21
22
 
@@ -27,6 +28,18 @@ h2. Note on Patches/Pull Requests
27
28
  (if you want to have your own version, that is fine but bump version in a commit by itself I can ignore when I pull)
28
29
  * Send me a pull request. Bonus points for topic branches.
29
30
 
30
- h2. Authors
31
+ h2. Author
31
32
 
32
- Vraptor Scaffold was created by Rodolfo Liviero and is maintained by Rodolfo Liviero and "Caelum":http://www.caelum.com.br/
33
+ Vraptor Scaffold was created and is maintained by "Rodolfo Liviero":http://rodolfoliviero.com.br.
34
+
35
+ h2. Contributors
36
+
37
+ * Adriano Almeida
38
+ * Edgar Latorre
39
+ * Felipe Fontoura
40
+ * Guilherme Silveira
41
+ * José Guilherme Camara Ribeiro
42
+ * Lucas Cavalcanti
43
+ * Luiz Fernando Signorelli
44
+ * Toshi Kurauchi
45
+ * Washington Botelho
@@ -3,5 +3,5 @@
3
3
  require File.dirname(__FILE__) + '/../lib/vraptor-scaffold'
4
4
 
5
5
  begin
6
- VraptorScaffold.execute(ARGV.dup)
6
+ VraptorScaffold::Execution.new.run(ARGV.dup)
7
7
  end
@@ -0,0 +1,169 @@
1
+ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
2
+ <html xmlns="http://www.w3.org/1999/xhtml">
3
+ <head>
4
+ <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
5
+ <title>VRaptor Scaffold</title>
6
+ <style type="text/css" media="screen">
7
+
8
+ /*reset.css*/
9
+ html, body, div, span, applet, object, iframe,
10
+ h1, h2, h3, h4, h5, h6, p, blockquote, pre,
11
+ a, abbr, acronym, address, big, cite, code,
12
+ del, dfn, em, img, ins, kbd, q, s, samp,
13
+ small, strike, strong, sub, sup, tt, var,
14
+ b, u, i, center,
15
+ dl, dt, dd, ol, ul, li,
16
+ fieldset, form, label, legend,
17
+ table, caption, tbody, tfoot, thead, tr, th, td,
18
+ article, aside, canvas, details, embed,
19
+ figure, figcaption, footer, header, hgroup,
20
+ menu, nav, output, ruby, section, summary,
21
+ time, mark, audio, video {
22
+ margin: 0;
23
+ padding: 0;
24
+ border: 0;
25
+ font-size: 100%;
26
+ font: inherit;
27
+ vertical-align: baseline;
28
+ }
29
+
30
+ article, aside, details, figcaption, figure,
31
+ footer, header, hgroup, menu, nav, section {
32
+ display: block;
33
+ }
34
+
35
+ body {
36
+ line-height: 1;
37
+ }
38
+
39
+ ol, ul {
40
+ list-style: none;
41
+ }
42
+
43
+ blockquote, q {
44
+ quotes: none;
45
+ }
46
+
47
+ blockquote:before, blockquote:after,
48
+ q:before, q:after {
49
+ content: '';
50
+ content: none;
51
+ }
52
+
53
+ table {
54
+ border-collapse: collapse;
55
+ border-spacing: 0;
56
+ }
57
+
58
+ /*main.css*/
59
+ body {
60
+ font-family: Arial, Helvetica, sans-serif;
61
+ }
62
+
63
+ h1 {
64
+ padding: 10px;
65
+ background: #7D44D6;
66
+ font-size: 3em;
67
+ color: #fff;
68
+ font-weight: bold;
69
+ }
70
+
71
+ h2 {
72
+ padding: 30px;
73
+ font-size: 2em;
74
+ color: #7D44D6;
75
+ }
76
+
77
+ h3 {
78
+ padding: 10px;
79
+ margin: 0 10px;
80
+ background: #956BD6;
81
+ color: #fff;
82
+ font-size: 1em;
83
+ font-weight: bold;
84
+ margin-bottom: 5px;
85
+ }
86
+
87
+ div {
88
+ padding: 10px;
89
+ margin: 0 10px;
90
+ color: #666;
91
+ line-height: 1.4em;
92
+ }
93
+
94
+ h3 img {
95
+ float: left;
96
+ margin: 0 5px 0 0;
97
+ }
98
+
99
+ div label {
100
+ font-weight: bold;
101
+ }
102
+
103
+ li {
104
+ list-style: inside;
105
+ }
106
+
107
+ div #footer {
108
+ position: absolute;
109
+ bottom: 0;
110
+ }
111
+
112
+ </style>
113
+ </head>
114
+ <body>
115
+ <h1>VRaptor Scaffold</h1>
116
+ <h2>VRaptor Scaffold project.</h2>
117
+
118
+ <div>
119
+ <ul>
120
+ <li><a href="#about">About</a></li>
121
+ <li><a href="#vraptor">Vraptor 3</a></li>
122
+ <li><a href="#hibernate">Hibernate</a></li>
123
+ <li><a href="#hibernate-validator">Hibernate Validator</a></li>
124
+ <li><a href="#c3p0">C3P0</a></li>
125
+ <li><a href="#hsqldb">HSQLDB</a></li>
126
+ <li><a href="#sitemesh">SiteMesh</a></li>
127
+ <li><a href="#jsp">Jsp</a></li>
128
+ <li><a href="#freemarker">Freemarker</a></li>
129
+ <li><a href="#jodatime">Joda Time</a></li>
130
+ <li><a href="#jquery">jQuery</a></li>
131
+ <li><a href="#mockito">Mockito</a></li>
132
+ <li><a href="#junit">JUnit</a></li>
133
+ <li><a href="#hamcrest">Hamcrest</a></li>
134
+ </ul>
135
+ </div>
136
+
137
+ <h3><a id="about">About</a></h3>
138
+
139
+ <div>
140
+ <label>Source:</label> <a href="https://github.com/caelum/vraptor-scaffold" target="_blank">https://github.com/caelum/vraptor-scaffold</a><br />
141
+ <label>Issues:</label> <a href="https://github.com/caelum/vraptor-scaffold/issues" target="_blank">https://github.com/caelum/vraptor-scaffold/issues</a><br />
142
+ <label>Documentation (en):</label> <a href="http://vraptor.caelum.com.br/documentation/vraptor-scaffold/" target="_blank">http://vraptor.caelum.com.br/documentation/vraptor-scaffold</a><br />
143
+ <label>Documentation (pt):</label> <a href="http://vraptor.caelum.com.br/documentacao/vraptor-scaffold/" target="_blank">http://vraptor.caelum.com.br/documentacao/vraptor-scaffold</a>
144
+ </div>
145
+
146
+ <h3><a id="hibernate">Hibernate</a></h3>
147
+
148
+ <div>
149
+ <label>Version:</label> 3.6.2.Final<br/>
150
+ <label>Site:</label> <a href="http://www.hibernate.org" target="_blank">http://www.hibernate.org</a><br/>
151
+ <label>Info:</label>
152
+ An open source Java persistence framework project. Perform powerful object relational mapping and query databases
153
+ using HQL and SQL.
154
+ </div>
155
+
156
+ <h3><a id="jquery">jQuery</a></h3>
157
+
158
+ <div>
159
+ <label>Version:</label> 1.5.1<br/>
160
+ <label>Site:</label> <a href="http://jquery.com" target="_blank">http://jquery.com</a><br/>
161
+ <label>Info:</label>
162
+ jQuery is a fast and concise JavaScript Library that
163
+ simplifies HTML document traversing, event handling, animating, and Ajax interactions for rapid web development.
164
+ jQuery is designed to change the way that you write JavaScript.
165
+ </div>
166
+ <div id="footer">footer goes here</div>
167
+ </body>
168
+ </html>
169
+
@@ -1,33 +1,14 @@
1
- require File.dirname(__FILE__) + '/vraptor-scaffold/load_paths'
2
-
3
1
  module VraptorScaffold
4
- def self.execute(args)
5
- action = args.shift
6
- print_help(AppGenerator) if help? action
7
- run_app_generator(args.shift, args) if action == "new"
8
- run_scaffold_generator(args) if action == "scaffold"
9
- end
10
-
11
- def self.run_app_generator(project_path, args)
12
- print_help(AppGenerator) if help? project_path
13
- AppGenerator.new(project_path, args).invoke_all
14
- end
2
+ end
15
3
 
16
- def self.run_scaffold_generator(args)
17
- print_help(ScaffoldGenerator) if help? args.first
18
- unless File.exist?("src")
19
- puts "To run vraptor scaffold please go to the project root folder."
20
- Kernel::exit
21
- end
22
- ScaffoldGenerator.new(args).invoke_all
23
- end
4
+ require 'rubygems'
24
5
 
25
- def self.print_help(generator)
26
- generator.start(["-h"])
27
- Kernel::exit
28
- end
6
+ require 'thor/actions'
7
+ require 'thor/group'
8
+ require 'active_support/inflector'
9
+ require 'yaml'
29
10
 
30
- def self.help?(command)
31
- [nil, "-h", "--help"].include?(command)
32
- end
33
- end
11
+ require 'vraptor-scaffold/configuration'
12
+ require 'vraptor-scaffold/runner'
13
+ require 'vraptor-scaffold/execution'
14
+ require 'vraptor-scaffold/load_paths'