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.
- data/.travis.yml +7 -0
- data/CHANGELOG.rdoc +164 -0
- data/Gemfile.lock +5 -8
- data/README.textile +20 -7
- data/bin/vraptor +1 -1
- data/index.sample.html +169 -0
- data/lib/vraptor-scaffold.rb +10 -29
- data/lib/vraptor-scaffold/configuration.rb +27 -4
- data/lib/vraptor-scaffold/execution.rb +24 -0
- data/lib/vraptor-scaffold/generators/app/app_generator.rb +196 -0
- data/lib/vraptor-scaffold/generators/{app_generator → app}/dependency.rb +0 -0
- data/lib/vraptor-scaffold/generators/app/dependency_manager.rb +53 -0
- data/lib/vraptor-scaffold/generators/{app_generator → app}/freemarker_template_engine.rb +0 -0
- data/lib/vraptor-scaffold/generators/{app_generator → app}/jsp_template_engine.rb +0 -0
- data/lib/vraptor-scaffold/generators/{app_generator → app}/templates/build.gradle.erb +19 -1
- data/lib/vraptor-scaffold/generators/{app_generator → app}/templates/build.properties.erb +0 -0
- data/lib/vraptor-scaffold/generators/{app_generator → app}/templates/build.xml +6 -2
- data/lib/vraptor-scaffold/generators/{app_generator → app}/templates/decorators.erb +0 -0
- data/lib/vraptor-scaffold/generators/{app_generator → app}/templates/eclipse/classpath.erb +0 -5
- data/lib/vraptor-scaffold/generators/{app_generator → app}/templates/eclipse/project.erb +0 -0
- data/lib/vraptor-scaffold/generators/{app_generator → app}/templates/eclipse/settings/org.eclipse.jdt.core.prefs +0 -0
- data/lib/vraptor-scaffold/generators/{app_generator → app}/templates/eclipse/settings/org.eclipse.wst.common.component.tt +0 -0
- data/lib/vraptor-scaffold/generators/{app_generator → app}/templates/eclipse/settings/org.eclipse.wst.common.project.facet.core.xml +0 -0
- data/lib/vraptor-scaffold/generators/{app_generator → app}/templates/eclipse/settings/org.eclipse.wst.jsdt.ui.superType.container +0 -0
- data/lib/vraptor-scaffold/generators/{app_generator → app}/templates/eclipse/settings/org.eclipse.wst.jsdt.ui.superType.name +0 -0
- data/lib/vraptor-scaffold/generators/{app_generator → app}/templates/freemarker/freemarker-web.xml +0 -0
- data/lib/vraptor-scaffold/generators/{app_generator → app}/templates/freemarker/infrastructure/FreemarkerPathResolver.java.tt +0 -0
- data/lib/vraptor-scaffold/generators/{app_generator → app}/templates/freemarker/macros/html.ftl +0 -0
- data/lib/vraptor-scaffold/generators/{app_generator → app}/templates/freemarker/main.ftl +0 -0
- data/lib/vraptor-scaffold/generators/app/templates/heroku/Main.java +21 -0
- data/lib/vraptor-scaffold/generators/app/templates/heroku/Procfile +1 -0
- data/lib/vraptor-scaffold/generators/{app_generator → app}/templates/ivy-2.2.0.jar +0 -0
- data/lib/vraptor-scaffold/generators/{app_generator → app}/templates/ivy.erb +1 -1
- data/lib/vraptor-scaffold/generators/{app_generator → app}/templates/jsp/jsp-web.xml +0 -0
- data/lib/vraptor-scaffold/generators/{app_generator → app}/templates/jsp/main.jsp +2 -2
- data/lib/vraptor-scaffold/generators/{app_generator → app}/templates/jsp/prelude.jspf +0 -0
- data/lib/vraptor-scaffold/generators/{app_generator/templates/src/models/Entity.java.tt → app/templates/models/Entity.erb} +1 -1
- data/lib/vraptor-scaffold/generators/app/templates/orm/Repository-hibernate.java.tt +50 -0
- data/lib/vraptor-scaffold/generators/{app_generator/templates/src/repositories/Repository.java.tt → app/templates/orm/Repository-jpa.java.tt} +3 -3
- data/lib/vraptor-scaffold/generators/app/templates/orm/hibernate.cfg.xml +7 -0
- data/lib/vraptor-scaffold/generators/app/templates/orm/persistence.xml +10 -0
- data/lib/vraptor-scaffold/generators/{app_generator → app}/templates/pom.erb +29 -13
- data/lib/vraptor-scaffold/generators/{app_generator → app}/templates/resources-test/.empty_directory +0 -0
- data/lib/vraptor-scaffold/generators/app/templates/resources/hibernate.properties +16 -0
- data/lib/vraptor-scaffold/generators/app/templates/resources/log4j.properties +4 -0
- data/lib/vraptor-scaffold/generators/{app_generator → app}/templates/resources/messages.properties +0 -0
- data/lib/vraptor-scaffold/generators/app/templates/vraptor-scaffold.erb +7 -0
- data/lib/vraptor-scaffold/generators/{app_generator/templates/webapp/WEB-INF/web.xml → app/templates/webapp/WEB-INF/web.xml.tt} +2 -2
- data/lib/vraptor-scaffold/generators/{app_generator/templates/src-test/controllers → app/templates/webapp/images}/.empty_directory +0 -0
- data/lib/vraptor-scaffold/generators/{app_generator → app}/templates/webapp/index.jsp +0 -0
- data/lib/vraptor-scaffold/generators/{app_generator → app}/templates/webapp/stylesheets/common.css +0 -0
- data/lib/vraptor-scaffold/generators/{app_generator → app}/templates/webapp/stylesheets/scaffold.css +0 -0
- data/lib/vraptor-scaffold/generators/{app_generator → app}/templates/webapp/stylesheets/stylesheets.css +0 -0
- data/lib/vraptor-scaffold/generators/plugin/plugin_generator.rb +42 -0
- data/lib/vraptor-scaffold/generators/plugin/vraptor_gem.rb +36 -0
- data/lib/vraptor-scaffold/generators/{scaffold_generator → scaffold}/attribute.rb +1 -1
- data/lib/vraptor-scaffold/generators/{scaffold_generator → scaffold}/base_scaffold.rb +6 -2
- data/lib/vraptor-scaffold/generators/{scaffold_generator → scaffold}/controller_generator/controller_generator.rb +3 -3
- data/lib/vraptor-scaffold/generators/{scaffold_generator → scaffold}/controller_generator/templates/controller.erb +3 -3
- data/lib/vraptor-scaffold/generators/{scaffold_generator → scaffold}/controller_generator/templates/controller_test.erb +1 -1
- data/lib/vraptor-scaffold/generators/scaffold/model_generator/model_generator.rb +20 -0
- data/lib/vraptor-scaffold/generators/{scaffold_generator → scaffold}/model_generator/templates/model.erb +3 -3
- data/lib/vraptor-scaffold/generators/{scaffold_generator → scaffold}/model_generator/templates/model_test.erb +1 -1
- data/lib/vraptor-scaffold/generators/scaffold/repository_generator/repository_generator.rb +27 -0
- data/lib/vraptor-scaffold/generators/{scaffold_generator → scaffold}/repository_generator/templates/repository.erb +3 -3
- data/lib/vraptor-scaffold/generators/scaffold/repository_generator/templates/repository_impl.erb +16 -0
- data/lib/vraptor-scaffold/generators/{scaffold_generator → scaffold}/repository_generator/templates/repository_test.erb +1 -1
- data/lib/vraptor-scaffold/generators/{scaffold_generator → scaffold}/scaffold_generator.rb +0 -0
- data/lib/vraptor-scaffold/generators/scaffold/template_engine_generator/freemarker_generator/freemarker_generator.rb +18 -0
- data/lib/vraptor-scaffold/generators/{scaffold_generator → scaffold/template_engine_generator}/freemarker_generator/templates/edit.erb +0 -0
- data/lib/vraptor-scaffold/generators/{scaffold_generator → scaffold/template_engine_generator}/freemarker_generator/templates/form.erb +4 -4
- data/lib/vraptor-scaffold/generators/scaffold/template_engine_generator/freemarker_generator/templates/index.erb +36 -0
- data/lib/vraptor-scaffold/generators/{scaffold_generator → scaffold/template_engine_generator}/freemarker_generator/templates/new.erb +0 -0
- data/lib/vraptor-scaffold/generators/scaffold/template_engine_generator/freemarker_generator/templates/show.erb +14 -0
- data/lib/vraptor-scaffold/generators/scaffold/template_engine_generator/jsp_generator/jsp_generator.rb +18 -0
- data/lib/vraptor-scaffold/generators/{scaffold_generator → scaffold/template_engine_generator}/jsp_generator/templates/edit.erb +0 -0
- data/lib/vraptor-scaffold/generators/{scaffold_generator → scaffold/template_engine_generator}/jsp_generator/templates/form.erb +4 -4
- data/lib/vraptor-scaffold/generators/{scaffold_generator → scaffold/template_engine_generator}/jsp_generator/templates/index.erb +6 -6
- data/lib/vraptor-scaffold/generators/{scaffold_generator → scaffold/template_engine_generator}/jsp_generator/templates/new.erb +0 -0
- data/lib/vraptor-scaffold/generators/scaffold/template_engine_generator/jsp_generator/templates/show.erb +14 -0
- data/lib/vraptor-scaffold/generators/scaffold/template_engine_generator/template_engine_generator.rb +21 -0
- data/lib/vraptor-scaffold/load_paths.rb +13 -21
- data/lib/vraptor-scaffold/runner.rb +11 -0
- data/lib/vraptor-scaffold/runner/commands_help.rb +13 -0
- data/lib/vraptor-scaffold/runner/configure.rb +21 -0
- data/lib/vraptor-scaffold/runner/generator.rb +15 -0
- data/lib/vraptor-scaffold/runner/help.rb +12 -0
- data/lib/vraptor-scaffold/runner/plugin.rb +19 -0
- data/lib/vraptor-scaffold/runner/scaffold.rb +16 -0
- data/lib/vraptor-scaffold/version.rb +1 -1
- data/spec/resources/vraptor-scaffold.properties +5 -0
- data/spec/simple_custom_plugin.rb +10 -0
- data/spec/spec_helper.rb +5 -6
- data/spec/vraptor-scaffold/configuration_spec.rb +88 -4
- data/spec/vraptor-scaffold/execution_spec.rb +47 -0
- data/spec/vraptor-scaffold/generators/{app_generator → app}/app_generator_spec.rb +136 -54
- data/spec/vraptor-scaffold/generators/{app_generator → app}/dependency_manager_spec.rb +1 -1
- data/spec/vraptor-scaffold/generators/{app_generator → app}/dependency_spec.rb +0 -0
- data/spec/vraptor-scaffold/generators/{app_generator → app}/freemarker_template_engine_spec.rb +1 -1
- data/spec/vraptor-scaffold/generators/{app_generator → app}/jsp_template_engine_spec.rb +0 -0
- data/spec/vraptor-scaffold/generators/{app_generator → app}/templates/Entity.java +1 -1
- data/spec/vraptor-scaffold/generators/{app_generator → app}/templates/FreemarkerPathResolver.java +0 -0
- data/spec/vraptor-scaffold/generators/{app_generator → app}/templates/Repository.java +3 -3
- data/spec/vraptor-scaffold/generators/{app_generator → app}/templates/build.gradle +24 -5
- data/spec/vraptor-scaffold/generators/{app_generator → app}/templates/build.properties +0 -0
- data/spec/vraptor-scaffold/generators/{app_generator → app}/templates/decorators-jsp.xml +0 -0
- data/spec/vraptor-scaffold/generators/{app_generator → app}/templates/decorators.xml +0 -0
- data/spec/vraptor-scaffold/generators/{app_generator → app}/templates/freemarker-web.xml +2 -2
- data/spec/vraptor-scaffold/generators/{app_generator → app}/templates/ivy.xml +6 -5
- data/spec/vraptor-scaffold/generators/{app_generator → app}/templates/jsp-web.xml +1 -1
- data/spec/vraptor-scaffold/generators/app/templates/pom-heroku.xml +168 -0
- data/spec/vraptor-scaffold/generators/{app_generator → app}/templates/pom.xml +11 -14
- data/spec/vraptor-scaffold/generators/app/templates/vraptor-scaffold.properties +7 -0
- data/spec/vraptor-scaffold/generators/plugin/expected_configs/build.gradle +61 -0
- data/spec/vraptor-scaffold/generators/plugin/expected_configs/default_org_build.gradle +61 -0
- data/spec/vraptor-scaffold/generators/plugin/expected_configs/default_org_ivy.xml +40 -0
- data/spec/vraptor-scaffold/generators/plugin/expected_configs/default_org_pom.xml +147 -0
- data/spec/vraptor-scaffold/generators/plugin/expected_configs/ivy.xml +40 -0
- data/spec/vraptor-scaffold/generators/plugin/expected_configs/pom.xml +147 -0
- data/spec/vraptor-scaffold/generators/plugin/plugin_generator_spec.rb +130 -0
- data/spec/vraptor-scaffold/generators/{scaffold_generator → scaffold}/attribute_spec.rb +13 -9
- data/spec/vraptor-scaffold/generators/scaffold/base_scaffold_spec.rb +73 -0
- data/spec/vraptor-scaffold/generators/{scaffold_generator → scaffold}/controller_generator/controller_generator_spec.rb +18 -9
- data/spec/vraptor-scaffold/generators/{scaffold_generator → scaffold}/controller_generator/templates/ProductController.java +3 -3
- data/spec/vraptor-scaffold/generators/scaffold/freemarker_generator/freemarker_generator_spec.rb +74 -0
- data/spec/vraptor-scaffold/generators/scaffold/jsp_generator/jsp_generator_spec.rb +75 -0
- data/spec/vraptor-scaffold/generators/scaffold/model_generator/model_generator_spec.rb +50 -0
- data/spec/vraptor-scaffold/generators/{scaffold_generator → scaffold}/model_generator/templates/Product.java +6 -6
- data/spec/vraptor-scaffold/generators/scaffold/model_generator/templates/hibernate.cfg.xml +8 -0
- data/spec/vraptor-scaffold/generators/scaffold/repository_generator/repository_generator_spec.rb +60 -0
- data/spec/vraptor-scaffold/generators/scaffold/repository_generator/templates/ClientRepository.java +22 -0
- data/spec/vraptor-scaffold/generators/scaffold/repository_generator/templates/ClientRepositoryImpl.java +16 -0
- data/spec/vraptor-scaffold/generators/{scaffold_generator → scaffold}/repository_generator/templates/ProductRepository.java +3 -3
- data/spec/vraptor-scaffold/generators/{scaffold_generator → scaffold}/repository_generator/templates/ProductRepositoryImpl.java +3 -3
- data/spec/vraptor-scaffold/generators/{scaffold_generator → scaffold}/scaffold_generator_spec.rb +0 -0
- data/spec/vraptor-scaffold/runner/commands_help_spec.rb +12 -0
- data/spec/vraptor-scaffold/runner/configure_spec.rb +12 -0
- data/spec/vraptor-scaffold/runner/generator_spec.rb +31 -0
- data/spec/vraptor-scaffold/runner/help_spec.rb +29 -0
- data/spec/vraptor-scaffold/runner/plugin_spec.rb +45 -0
- data/spec/vraptor-scaffold/runner/scaffold_spec.rb +35 -0
- data/spec/vraptor-scaffold_spec.rb +1 -94
- data/vraptor-scaffold.gemspec +3 -3
- metadata +137 -140
- data/History.txt +0 -128
- data/lib/vraptor-scaffold/generators/app_generator/app_generator.rb +0 -102
- data/lib/vraptor-scaffold/generators/app_generator/dependency_manager.rb +0 -37
- data/lib/vraptor-scaffold/generators/app_generator/templates/ivysettings.xml +0 -9
- data/lib/vraptor-scaffold/generators/app_generator/templates/resources/META-INF/persistence.xml +0 -20
- data/lib/vraptor-scaffold/generators/app_generator/templates/resources/log4j.properties +0 -4
- data/lib/vraptor-scaffold/generators/app_generator/templates/src-test/models/.empty_directory +0 -0
- data/lib/vraptor-scaffold/generators/app_generator/templates/src-test/repositories/.empty_directory +0 -0
- data/lib/vraptor-scaffold/generators/app_generator/templates/src/controllers/.empty_directory +0 -0
- data/lib/vraptor-scaffold/generators/app_generator/templates/vraptor-scaffold.erb +0 -2
- data/lib/vraptor-scaffold/generators/app_generator/templates/webapp/images/.empty_directory +0 -0
- data/lib/vraptor-scaffold/generators/app_generator/templates/webapp/javascripts/application.js +0 -0
- data/lib/vraptor-scaffold/generators/app_generator/templates/webapp/javascripts/jquery.min.js +0 -16
- data/lib/vraptor-scaffold/generators/scaffold_generator/freemarker_generator/freemarker_generator.rb +0 -22
- data/lib/vraptor-scaffold/generators/scaffold_generator/freemarker_generator/templates/index.erb +0 -36
- data/lib/vraptor-scaffold/generators/scaffold_generator/freemarker_generator/templates/show.erb +0 -14
- data/lib/vraptor-scaffold/generators/scaffold_generator/jsp_generator/jsp_generator.rb +0 -22
- data/lib/vraptor-scaffold/generators/scaffold_generator/jsp_generator/templates/show.erb +0 -14
- data/lib/vraptor-scaffold/generators/scaffold_generator/model_generator/model_generator.rb +0 -11
- data/lib/vraptor-scaffold/generators/scaffold_generator/repository_generator/repository_generator.rb +0 -12
- data/lib/vraptor-scaffold/generators/scaffold_generator/repository_generator/templates/repository_impl.erb +0 -16
- data/spec/vraptor-scaffold/generators/scaffold_generator/base_scaffold_spec.rb +0 -41
- data/spec/vraptor-scaffold/generators/scaffold_generator/freemarker_generator/freemarker_generator_spec.rb +0 -36
- data/spec/vraptor-scaffold/generators/scaffold_generator/jsp_generator/jsp_generator_spec.rb +0 -34
- data/spec/vraptor-scaffold/generators/scaffold_generator/model_generator/model_generator_spec.rb +0 -25
- data/spec/vraptor-scaffold/generators/scaffold_generator/repository_generator/repository_generator_spec.rb +0 -31
data/.travis.yml
ADDED
data/CHANGELOG.rdoc
ADDED
@@ -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.
|
data/Gemfile.lock
CHANGED
@@ -1,9 +1,9 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
vraptor-scaffold (1.
|
4
|
+
vraptor-scaffold (1.2.0)
|
5
5
|
activesupport (= 3.0.1)
|
6
|
-
rake (= 0.
|
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.
|
14
|
+
rake (0.9.2)
|
15
15
|
rcov (0.9.9)
|
16
|
-
rspec (1.3.
|
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.
|
28
|
-
thor (= 0.14.6)
|
25
|
+
rspec (= 1.3.2)
|
29
26
|
vraptor-scaffold!
|
data/README.textile
CHANGED
@@ -11,11 +11,12 @@ h1. Getting Started
|
|
11
11
|
|
12
12
|
At the command line client:
|
13
13
|
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
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.
|
31
|
+
h2. Author
|
31
32
|
|
32
|
-
Vraptor Scaffold was created
|
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
|
data/bin/vraptor
CHANGED
data/index.sample.html
ADDED
@@ -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
|
+
|
data/lib/vraptor-scaffold.rb
CHANGED
@@ -1,33 +1,14 @@
|
|
1
|
-
require File.dirname(__FILE__) + '/vraptor-scaffold/load_paths'
|
2
|
-
|
3
1
|
module VraptorScaffold
|
4
|
-
|
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
|
-
|
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
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
6
|
+
require 'thor/actions'
|
7
|
+
require 'thor/group'
|
8
|
+
require 'active_support/inflector'
|
9
|
+
require 'yaml'
|
29
10
|
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
11
|
+
require 'vraptor-scaffold/configuration'
|
12
|
+
require 'vraptor-scaffold/runner'
|
13
|
+
require 'vraptor-scaffold/execution'
|
14
|
+
require 'vraptor-scaffold/load_paths'
|