heroku-vraptor-scaffold 0.9.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (148) hide show
  1. data/.gitignore +10 -0
  2. data/.travis.yml +6 -0
  3. data/CHANGELOG.rdoc +188 -0
  4. data/Gemfile +2 -0
  5. data/Gemfile.lock +30 -0
  6. data/LICENSE +22 -0
  7. data/README.md +23 -0
  8. data/README.textile +51 -0
  9. data/Rakefile +20 -0
  10. data/bin/heroku-vraptor +8 -0
  11. data/heroku-vraptor-scaffold.gemspec +28 -0
  12. data/index.sample.html +169 -0
  13. data/lib/vraptor-scaffold.rb +14 -0
  14. data/lib/vraptor-scaffold/configuration.rb +54 -0
  15. data/lib/vraptor-scaffold/execution.rb +22 -0
  16. data/lib/vraptor-scaffold/generators/app/app_generator.rb +161 -0
  17. data/lib/vraptor-scaffold/generators/app/dependency.rb +15 -0
  18. data/lib/vraptor-scaffold/generators/app/dependency_manager.rb +32 -0
  19. data/lib/vraptor-scaffold/generators/app/templates/angular/angular.js +14327 -0
  20. data/lib/vraptor-scaffold/generators/app/templates/bootstrap/bootstrap-responsive.css +9 -0
  21. data/lib/vraptor-scaffold/generators/app/templates/bootstrap/bootstrap.css +9 -0
  22. data/lib/vraptor-scaffold/generators/app/templates/bootstrap/bootstrap.js +6 -0
  23. data/lib/vraptor-scaffold/generators/app/templates/bootstrap/glyphicons-halflings-white.png +0 -0
  24. data/lib/vraptor-scaffold/generators/app/templates/bootstrap/glyphicons-halflings.png +0 -0
  25. data/lib/vraptor-scaffold/generators/app/templates/eclipse/classpath.erb +18 -0
  26. data/lib/vraptor-scaffold/generators/app/templates/eclipse/project.erb +36 -0
  27. data/lib/vraptor-scaffold/generators/app/templates/eclipse/settings/org.eclipse.jdt.core.prefs +8 -0
  28. data/lib/vraptor-scaffold/generators/app/templates/eclipse/settings/org.eclipse.wst.common.component.tt +10 -0
  29. data/lib/vraptor-scaffold/generators/app/templates/eclipse/settings/org.eclipse.wst.common.project.facet.core.xml +10 -0
  30. data/lib/vraptor-scaffold/generators/app/templates/eclipse/settings/org.eclipse.wst.jsdt.ui.superType.container +1 -0
  31. data/lib/vraptor-scaffold/generators/app/templates/eclipse/settings/org.eclipse.wst.jsdt.ui.superType.name +1 -0
  32. data/lib/vraptor-scaffold/generators/app/templates/heroku/Main.java +21 -0
  33. data/lib/vraptor-scaffold/generators/app/templates/heroku/Procfile +1 -0
  34. data/lib/vraptor-scaffold/generators/app/templates/jquery/jquery.min.js +4 -0
  35. data/lib/vraptor-scaffold/generators/app/templates/models/Entity.erb +46 -0
  36. data/lib/vraptor-scaffold/generators/app/templates/orm/Repository-hibernate.java.tt +50 -0
  37. data/lib/vraptor-scaffold/generators/app/templates/orm/Repository-jpa.java.tt +48 -0
  38. data/lib/vraptor-scaffold/generators/app/templates/orm/Repository-objectify.java.tt +41 -0
  39. data/lib/vraptor-scaffold/generators/app/templates/orm/hibernate.cfg.xml +7 -0
  40. data/lib/vraptor-scaffold/generators/app/templates/orm/persistence.xml +10 -0
  41. data/lib/vraptor-scaffold/generators/app/templates/pom.erb +110 -0
  42. data/lib/vraptor-scaffold/generators/app/templates/resources-test/.empty_directory +0 -0
  43. data/lib/vraptor-scaffold/generators/app/templates/resources/hibernate.properties +16 -0
  44. data/lib/vraptor-scaffold/generators/app/templates/resources/log4j.properties +4 -0
  45. data/lib/vraptor-scaffold/generators/app/templates/resources/messages.properties +0 -0
  46. data/lib/vraptor-scaffold/generators/app/templates/underscore/underscore.min.js +32 -0
  47. data/lib/vraptor-scaffold/generators/app/templates/vraptor-scaffold.erb +5 -0
  48. data/lib/vraptor-scaffold/generators/app/templates/webapp/WEB-INF/web.xml.tt +33 -0
  49. data/lib/vraptor-scaffold/generators/app/templates/webapp/images/.empty_directory +0 -0
  50. data/lib/vraptor-scaffold/generators/app/templates/webapp/index.html +24 -0
  51. data/lib/vraptor-scaffold/generators/app/templates/webapp/javascripts/utils.js +7 -0
  52. data/lib/vraptor-scaffold/generators/base.rb +16 -0
  53. data/lib/vraptor-scaffold/generators/scaffold/attribute.rb +51 -0
  54. data/lib/vraptor-scaffold/generators/scaffold/base_scaffold.rb +54 -0
  55. data/lib/vraptor-scaffold/generators/scaffold/client_generator/client_generator.rb +41 -0
  56. data/lib/vraptor-scaffold/generators/scaffold/client_generator/templates/controller.erb +75 -0
  57. data/lib/vraptor-scaffold/generators/scaffold/client_generator/templates/details.erb +16 -0
  58. data/lib/vraptor-scaffold/generators/scaffold/client_generator/templates/form.erb +39 -0
  59. data/lib/vraptor-scaffold/generators/scaffold/client_generator/templates/list.erb +40 -0
  60. data/lib/vraptor-scaffold/generators/scaffold/controller_generator/controller_generator.rb +20 -0
  61. data/lib/vraptor-scaffold/generators/scaffold/controller_generator/templates/controller.erb +77 -0
  62. data/lib/vraptor-scaffold/generators/scaffold/controller_generator/templates/controller_test.erb +12 -0
  63. data/lib/vraptor-scaffold/generators/scaffold/model_generator/model_generator.rb +26 -0
  64. data/lib/vraptor-scaffold/generators/scaffold/model_generator/templates/model.erb +32 -0
  65. data/lib/vraptor-scaffold/generators/scaffold/model_generator/templates/model_test.erb +13 -0
  66. data/lib/vraptor-scaffold/generators/scaffold/repository_generator/repository_generator.rb +32 -0
  67. data/lib/vraptor-scaffold/generators/scaffold/repository_generator/templates/repository.erb +22 -0
  68. data/lib/vraptor-scaffold/generators/scaffold/repository_generator/templates/repository_impl.erb +16 -0
  69. data/lib/vraptor-scaffold/generators/scaffold/repository_generator/templates/repository_test.erb +13 -0
  70. data/lib/vraptor-scaffold/generators/scaffold/scaffold_generator.rb +35 -0
  71. data/lib/vraptor-scaffold/runner.rb +9 -0
  72. data/lib/vraptor-scaffold/runner/commands_help.rb +13 -0
  73. data/lib/vraptor-scaffold/runner/generator.rb +15 -0
  74. data/lib/vraptor-scaffold/runner/help.rb +12 -0
  75. data/lib/vraptor-scaffold/runner/scaffold.rb +16 -0
  76. data/lib/vraptor-scaffold/version.rb +3 -0
  77. data/maven/repo/br/com/caelum/vraptor-gae/1.0/vraptor-gae-1.0.jar +0 -0
  78. data/spec/resources/vraptor-scaffold-objectify.properties +7 -0
  79. data/spec/resources/vraptor-scaffold.properties +7 -0
  80. data/spec/spec.opts +4 -0
  81. data/spec/spec_helper.rb +31 -0
  82. data/spec/vraptor-scaffold/configuration_spec.rb +146 -0
  83. data/spec/vraptor-scaffold/execution_spec.rb +51 -0
  84. data/spec/vraptor-scaffold/generators/app/app_generator_spec.rb +557 -0
  85. data/spec/vraptor-scaffold/generators/app/dependency_manager_spec.rb +34 -0
  86. data/spec/vraptor-scaffold/generators/app/dependency_spec.rb +14 -0
  87. data/spec/vraptor-scaffold/generators/app/freemarker_template_engine_spec.rb +80 -0
  88. data/spec/vraptor-scaffold/generators/app/jsp_template_engine_spec.rb +77 -0
  89. data/spec/vraptor-scaffold/generators/app/templates/Entity.java +45 -0
  90. data/spec/vraptor-scaffold/generators/app/templates/FreemarkerPathResolver.java +21 -0
  91. data/spec/vraptor-scaffold/generators/app/templates/ObjectifyFactory.java +30 -0
  92. data/spec/vraptor-scaffold/generators/app/templates/RepositoryJPA.java +48 -0
  93. data/spec/vraptor-scaffold/generators/app/templates/RepositoryObjectify.java +41 -0
  94. data/spec/vraptor-scaffold/generators/app/templates/build.gradle +60 -0
  95. data/spec/vraptor-scaffold/generators/app/templates/build.properties +18 -0
  96. data/spec/vraptor-scaffold/generators/app/templates/build.xml +146 -0
  97. data/spec/vraptor-scaffold/generators/app/templates/classpath-gae +18 -0
  98. data/spec/vraptor-scaffold/generators/app/templates/decorators-jsp.xml +7 -0
  99. data/spec/vraptor-scaffold/generators/app/templates/decorators.xml +7 -0
  100. data/spec/vraptor-scaffold/generators/app/templates/freemarker-web.xml +60 -0
  101. data/spec/vraptor-scaffold/generators/app/templates/gae-jsp-web.xml +45 -0
  102. data/spec/vraptor-scaffold/generators/app/templates/ivy-gae.xml +45 -0
  103. data/spec/vraptor-scaffold/generators/app/templates/ivy.xml +40 -0
  104. data/spec/vraptor-scaffold/generators/app/templates/jsp-web.xml +45 -0
  105. data/spec/vraptor-scaffold/generators/app/templates/pom-heroku.xml +182 -0
  106. data/spec/vraptor-scaffold/generators/app/templates/pom.xml +157 -0
  107. data/spec/vraptor-scaffold/generators/app/templates/project-gae +47 -0
  108. data/spec/vraptor-scaffold/generators/app/templates/vraptor-scaffold.properties +7 -0
  109. data/spec/vraptor-scaffold/generators/plugin/expected_configs/build.gradle +62 -0
  110. data/spec/vraptor-scaffold/generators/plugin/expected_configs/default_org_build.gradle +62 -0
  111. data/spec/vraptor-scaffold/generators/plugin/expected_configs/default_org_ivy.xml +41 -0
  112. data/spec/vraptor-scaffold/generators/plugin/expected_configs/default_org_pom.xml +152 -0
  113. data/spec/vraptor-scaffold/generators/plugin/expected_configs/ivy.xml +42 -0
  114. data/spec/vraptor-scaffold/generators/plugin/expected_configs/pom.xml +182 -0
  115. data/spec/vraptor-scaffold/generators/scaffold/attribute_spec.rb +186 -0
  116. data/spec/vraptor-scaffold/generators/scaffold/base_scaffold_spec.rb +73 -0
  117. data/spec/vraptor-scaffold/generators/scaffold/client_controller_generator/controller_generator_spec.rb +62 -0
  118. data/spec/vraptor-scaffold/generators/scaffold/client_controller_generator/templates/ProductController.java +95 -0
  119. data/spec/vraptor-scaffold/generators/scaffold/controller_generator/controller_generator_spec.rb +62 -0
  120. data/spec/vraptor-scaffold/generators/scaffold/controller_generator/templates/ProductController.java +95 -0
  121. data/spec/vraptor-scaffold/generators/scaffold/freemarker_generator/freemarker_generator_spec.rb +81 -0
  122. data/spec/vraptor-scaffold/generators/scaffold/freemarker_generator/templates/form.ftl +28 -0
  123. data/spec/vraptor-scaffold/generators/scaffold/jsp_generator/jsp_generator_spec.rb +81 -0
  124. data/spec/vraptor-scaffold/generators/scaffold/jsp_generator/templates/form.jsp +61 -0
  125. data/spec/vraptor-scaffold/generators/scaffold/model_generator/model_generator_spec.rb +54 -0
  126. data/spec/vraptor-scaffold/generators/scaffold/model_generator/objectify_model_generator_spec.rb +40 -0
  127. data/spec/vraptor-scaffold/generators/scaffold/model_generator/templates/ObjectifyFactory.java +33 -0
  128. data/spec/vraptor-scaffold/generators/scaffold/model_generator/templates/Objectify_Product.java +38 -0
  129. data/spec/vraptor-scaffold/generators/scaffold/model_generator/templates/Product.java +25 -0
  130. data/spec/vraptor-scaffold/generators/scaffold/model_generator/templates/hibernate.cfg.xml +8 -0
  131. data/spec/vraptor-scaffold/generators/scaffold/repository_generator/objectify_repository_generator_spec.rb +33 -0
  132. data/spec/vraptor-scaffold/generators/scaffold/repository_generator/repository_generator_spec.rb +68 -0
  133. data/spec/vraptor-scaffold/generators/scaffold/repository_generator/templates/ClientRepository.java +22 -0
  134. data/spec/vraptor-scaffold/generators/scaffold/repository_generator/templates/ClientRepositoryImpl.java +16 -0
  135. data/spec/vraptor-scaffold/generators/scaffold/repository_generator/templates/Objectify_ProductRepository.java +22 -0
  136. data/spec/vraptor-scaffold/generators/scaffold/repository_generator/templates/Objectify_ProductRepositoryImpl.java +16 -0
  137. data/spec/vraptor-scaffold/generators/scaffold/repository_generator/templates/ProductRepository.java +22 -0
  138. data/spec/vraptor-scaffold/generators/scaffold/repository_generator/templates/ProductRepositoryImpl.java +16 -0
  139. data/spec/vraptor-scaffold/generators/scaffold/scaffold_generator_spec.rb +79 -0
  140. data/spec/vraptor-scaffold/http_request_spec.rb +40 -0
  141. data/spec/vraptor-scaffold/runner/commands_help_spec.rb +12 -0
  142. data/spec/vraptor-scaffold/runner/configure_spec.rb +12 -0
  143. data/spec/vraptor-scaffold/runner/generator_spec.rb +31 -0
  144. data/spec/vraptor-scaffold/runner/help_spec.rb +29 -0
  145. data/spec/vraptor-scaffold/runner/scaffold_spec.rb +35 -0
  146. data/spec/vraptor-scaffold/runner/start_spec.rb +51 -0
  147. data/spec/vraptor-scaffold_spec.rb +4 -0
  148. metadata +261 -0
@@ -0,0 +1,10 @@
1
+ .bundle
2
+ *.gem
3
+ .rvmrc
4
+ coverage
5
+ pgk
6
+ .idea
7
+ doc
8
+ *.swp
9
+ rdoc
10
+ .DS_Store
@@ -0,0 +1,6 @@
1
+ notifications:
2
+ recipients:
3
+ - rodolfo.liviero@gmail.com
4
+
5
+ rvm:
6
+ - 1.9.2
@@ -0,0 +1,188 @@
1
+ == 1.3.0 / 2012-??-??
2
+
3
+ * New Features
4
+ * GAE support (vraptor new app --gae).
5
+ * Customizing templates.
6
+ * Added start command (vraptor start).
7
+
8
+ * Improvements
9
+ * updated mockito to 1.9.0.
10
+ * updated hibernte to 4.0.1.Final.
11
+ * updated hsqldb to 2.2.8.
12
+
13
+ == 1.2.3 / 2011-11-15
14
+
15
+ * Bugfixes
16
+ * Run scaffold commands behind proxy.
17
+ * Humanizing html labels.
18
+ * Heroku deploy.
19
+
20
+ == 1.2.2 / 2011-11-15 (Yanked)
21
+
22
+ == 1.2.1 / 2011-10-18
23
+
24
+ * New Features
25
+ * heroku support (vraptor new app --heroku).
26
+ * option to choose between JPA(default) or Hibernate (vraptor new app -o hibernate).
27
+ * option to override models package (Use -m).
28
+ * option to override controllers package (Use Use -c).
29
+ * option to override repositories package (Use -r).
30
+ * get always latest jquery version (Use - j to choose another one).
31
+ * added c3p0 pool configurations.
32
+ * plugin install. (vraptor plugin install simple-mail -v 1.0.0)
33
+
34
+ * Improvements
35
+ * removed unnecessary EJB provider configuration.
36
+ * moving hibernate configurations to hibernate.properties.
37
+ * update method on generic repository nows return the updated entity.
38
+ * better log4j pattern.
39
+ * removing the hibernate configuration repositories from build tools.
40
+ * better helps commands.
41
+ * removing jre classpath entry making eclipse use default.
42
+ * updated vraptor to 3.4.0.
43
+ * updated junit to 4.10.
44
+ * updated hsqldb to 2.2.4.
45
+ * updated freemarker to 2.3.18.
46
+ * updated hibernate to 3.6.7.Final.
47
+ * updated hibernate validator to 4.2.0.Final.
48
+ * updated joda time to 2.0.
49
+ * updated maven war plugin to 2.1.1.
50
+ * updated maven cobertura plugin to 2.5.1.
51
+
52
+ * Bugfixes
53
+ * jetty hot deploy on ant projects.
54
+ * script tag in main.jsp was closing twice.
55
+ * gradle does not load test classpath correctly.
56
+ * scaffold models with compound names.
57
+ * does not create new project if a folder with the project name exists.
58
+
59
+ == 1.1.0 / 2011-03-02
60
+
61
+ * New Features
62
+ * JPA 2 support using hibernate 3.6.1.Final. (Issue 13)
63
+ * ant task to minify js and css. (Issue 27)
64
+ * created prelude to automatic import taglibs in jsp.
65
+
66
+ * Improvements
67
+ * updated hibernate validator to 4.1.0.Final.
68
+ * updated vraptor to 3.3.1.
69
+ * updated jquery to 1.5.1.
70
+ * added head with title tag for sitemesh capture it in jsp views.
71
+ * changed html DTD to XHTML.
72
+ * declared css encoding (UTF-8).
73
+ * created application.js.
74
+ * better repository and controller encapsulation.
75
+ * better controller template.
76
+ * specified the exact location of SuppressWarnings, like Clean Code technique.
77
+ * changed jeweler to bundler. (Issue 26)
78
+
79
+ == 1.0.0 / 2011-02-04
80
+
81
+ * Improvements
82
+ * updated vraptor to 3.3.0
83
+ * updated jquery to 1.5
84
+ * decorators folder inside WEB-INF (Issue 24)
85
+ * removed spring 3 option.
86
+
87
+ == 0.0.4 / 2010-11-20
88
+
89
+ * Improvements
90
+ * changed decorators encoding to UTF-8
91
+ * updated jquery to 1.4.4
92
+ * updated joda-time to 1.6.2
93
+ * added jsp-api 2.1 dependency as provided scope.
94
+
95
+ * Bugfixes
96
+ * Fixed scaffolding with uppercase model and attributes(Issue 19).
97
+ * Fixed activesupport version cause version 3.0.3 break new instalations(Issue 22).
98
+ * Generate correct getter for boolean attributes(Issue 21).
99
+
100
+ == 0.0.3 / 2010-11-04
101
+
102
+ * New Features
103
+ * works with gradle
104
+ * works with spring 3
105
+
106
+ * Improvements
107
+ * bumped ivy version to 2.2.0
108
+ * updated maven plugins
109
+ * validate users action when create app
110
+ * update hsqldb
111
+ * update junit
112
+ * better build.xml
113
+
114
+ == 0.0.2 / 2010-10-08
115
+
116
+ * Improvements
117
+ * bumped vraptor version to 3.2.0
118
+
119
+ == 0.0.1 / 2010-10-05
120
+
121
+ * New Features
122
+ * jsp support
123
+ * base package
124
+ * works with ant + ivy
125
+ * help command
126
+
127
+ * Improvements
128
+ * Better use of Generics.
129
+ * Update Hibernate
130
+
131
+ == 0.0.1.rc / 2010-08-24
132
+
133
+ * New Features
134
+ * Added Hamcrest 1.1
135
+ * Added text support(textarea).
136
+
137
+ * Improvements
138
+ * Create folder to put images.
139
+
140
+ * Bugfixes
141
+ * Works on windows OS.
142
+
143
+ == 0.0.1.beta5 / 2010-08-04
144
+
145
+ * New Features
146
+ * Added generic repository.
147
+ * Scaffold repository to each model.
148
+ * Now controllers use repository instead entity manager.
149
+ * Generated models come with hashCode and equals.
150
+ * Generating fake tests to models, controllers and repositories.
151
+
152
+ * Improvements
153
+ * Better freemarker views.
154
+ * UTF-8 default enconding.
155
+ * Update jetty maven plugin version(6 to 7).
156
+
157
+ == 0.0.1.beta4 / 2010-07-16
158
+
159
+ * New Features
160
+ * Added validator support with hibernate-validator.
161
+ * Error Messages.
162
+ * Redirect to form when occur validation erros.
163
+ * Added joda time dependency.
164
+ * Create messages.properties(i18n).
165
+
166
+ * Bugfixes
167
+ * Fixed i.e problems.
168
+
169
+ == 0.0.1.beta3 / 2010-07-11
170
+
171
+ * New Features
172
+ * Added command to start web server(jetty).
173
+ * Added boolean support.
174
+
175
+ * Improvements
176
+ * Bumped vraptor version to 3.1.3.
177
+ * Change log4j.xml to log4j.properties.
178
+ * Change views directory from WEB-INF/freemarker to WEB-INF/views.
179
+ * Change hsqldb to use file instead of memory.
180
+
181
+ * Bugfixes
182
+ * Fixed pom when creating project with path like /home/rodolfo/project.
183
+ * Fixed runtime dependencies.
184
+
185
+ == 0.0.1.beta2 / 2010-07-07
186
+
187
+ * First version
188
+ * Crud with vraptor 3, maven 2, jpa, freemarker and jquery.
data/Gemfile ADDED
@@ -0,0 +1,2 @@
1
+ source "http://rubygems.org"
2
+ gemspec
@@ -0,0 +1,30 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ vraptor-scaffold (1.3.0)
5
+ activesupport (= 3.0.1)
6
+ rake (= 0.9.2)
7
+ thor (= 0.14.6)
8
+
9
+ GEM
10
+ remote: http://rubygems.org/
11
+ specs:
12
+ ZenTest (4.4.0)
13
+ activesupport (3.0.1)
14
+ multi_json (1.0.4)
15
+ rake (0.9.2)
16
+ rspec (1.3.2)
17
+ simplecov (0.5.4)
18
+ multi_json (~> 1.0.3)
19
+ simplecov-html (~> 0.5.3)
20
+ simplecov-html (0.5.3)
21
+ thor (0.14.6)
22
+
23
+ PLATFORMS
24
+ ruby
25
+
26
+ DEPENDENCIES
27
+ ZenTest (= 4.4.0)
28
+ rspec (= 1.3.2)
29
+ simplecov (= 0.5.4)
30
+ vraptor-scaffold!
data/LICENSE ADDED
@@ -0,0 +1,22 @@
1
+ The MIT License
2
+
3
+ Copyright (c) 2010 Rodolfo Liviero
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining
6
+ a copy of this software and associated documentation files (the
7
+ "Software"), to deal in the Software without restriction, including
8
+ without limitation the rights to use, copy, modify, merge, publish,
9
+ distribute, sublicense, and/or sell copies of the Software, and to
10
+ permit persons to whom the Software is furnished to do so, subject to
11
+ the following conditions:
12
+
13
+ The above copyright notice and this permission notice shall be
14
+ included in all copies or substantial portions of the Software.
15
+
16
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
19
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
20
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
21
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
22
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@@ -0,0 +1,23 @@
1
+ #### This is a fork project
2
+ Check the original from at: http://github.com/caelum/vraptor-scaffold
3
+
4
+ ### What's on this fork?
5
+ * AngularJS
6
+ * BootstrapJS
7
+ * vraptor-hypermedia-enhacement plugin
8
+
9
+ ### Usage
10
+
11
+ ```shell
12
+ rm -rf appName #(optional)
13
+ vraptor new appName --heroku
14
+ cd appName
15
+ vraptor scaffold User name:string desc:text
16
+ mvn clean
17
+ mvn package
18
+ sh target/bin/webapp
19
+ open http://localhost:8080/users
20
+ ```
21
+
22
+
23
+ Testing...
@@ -0,0 +1,51 @@
1
+ h1. VRaptor Scaffold "!https://secure.travis-ci.org/caelum/vraptor-scaffold.png!":http://travis-ci.org/caelum/vraptor-scaffold
2
+
3
+ VRaptor Scaffold extension to make it easier configuring new projects and plugins.
4
+
5
+ h1. Documentation
6
+
7
+ Vraptor Scaffold website can be found at "http://vraptor.org":http://vraptor.org
8
+ RDocs can be found at "http://rdoc.info":http://rubydoc.info/gems/vraptor-scaffold
9
+
10
+ h1. Installation
11
+
12
+ gem install vraptor-scaffold
13
+
14
+ h1. Getting Started
15
+
16
+ At the command line client:
17
+
18
+ vraptor new myapp
19
+ cd myapp
20
+ vraptor scaffold product name:string value:double
21
+ ant jetty.run
22
+
23
+ open http://localhost:8080/products
24
+
25
+ h2. Note on Patches/Pull Requests
26
+
27
+ * Fork the project.
28
+ * Make your feature addition or bug fix.
29
+ * Add tests for it. This is important so I don't break it in a
30
+ future version unintentionally.
31
+ * Commit, do not mess with rakefile, version, or history.
32
+ (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)
33
+ * Send me a pull request. Bonus points for topic branches.
34
+
35
+ h2. Author
36
+
37
+ Vraptor Scaffold was created and is maintained by "Rodolfo Liviero":http://rodolfoliviero.com.br.
38
+
39
+ h2. Contributors
40
+
41
+ * Adriano Almeida
42
+ * Arthur Moura Carvalho
43
+ * Edgar Latorre
44
+ * Felipe Fontoura
45
+ * Guilherme Silveira
46
+ * José Guilherme Camara Ribeiro
47
+ * Laécio Freitas
48
+ * Lucas Cavalcanti
49
+ * Luiz Fernando Signorelli
50
+ * Toshi Kurauchi
51
+ * Washington Botelho
@@ -0,0 +1,20 @@
1
+ #!/usr/bin/env rake
2
+ require "bundler/gem_tasks"
3
+
4
+ require 'spec/rake/spectask'
5
+ Spec::Rake::SpecTask.new(:spec) do |spec|
6
+ spec.libs << 'lib' << 'spec'
7
+ spec.spec_files = FileList['spec/**/*_spec.rb']
8
+ end
9
+
10
+ require 'rake/rdoctask'
11
+ Rake::RDocTask.new do |rdoc|
12
+ version = VraptorScaffold::VERSION
13
+
14
+ rdoc.rdoc_dir = 'rdoc'
15
+ rdoc.title = "vraptor-scaffold #{version}"
16
+ rdoc.rdoc_files.include('README*')
17
+ rdoc.rdoc_files.include('lib/**/*.rb')
18
+ end
19
+
20
+ task :default => [:spec]
@@ -0,0 +1,8 @@
1
+ #!/usr/bin/env ruby
2
+ $LOAD_PATH << File.dirname(__FILE__) + '/../lib'
3
+ $LOAD_PATH << File.dirname(__FILE__) + '/../lib/vraptor-scaffold'
4
+ require File.dirname(__FILE__) + '/../lib/vraptor-scaffold'
5
+
6
+ begin
7
+ VraptorScaffold::Execution.new.run(ARGV.dup)
8
+ end
@@ -0,0 +1,28 @@
1
+ # -*- encoding: utf-8 -*-
2
+ $:.push File.expand_path("../lib", __FILE__)
3
+ require "vraptor-scaffold/version"
4
+
5
+ Gem::Specification.new do |s|
6
+ s.name = "heroku-vraptor-scaffold"
7
+ s.version = VraptorScaffold::VERSION
8
+ s.platform = Gem::Platform::RUBY
9
+ s.authors = ["Filipe Esperandio", "Rodolfo Liviero"]
10
+ s.email = "filipesperandio@gmail.com"
11
+ s.homepage = "http://github.com/filipesperandio/vraptor-scaffold"
12
+ s.summary = "Heroku Ready VRaptor Scaffold + Angular + Bootstrap"
13
+ s.description = "Extending VRaptor's default scaffold to make it easier configuring new projects for heroku deployment using Angular+Bootstrap in the fron end"
14
+ s.post_install_message = "Thank you for installing vraptor-scaffold. Please read http://github.com/caelum/vraptor-scaffold/blob/master/README.textile for more information."
15
+
16
+ s.add_dependency('thor', '0.14.6')
17
+ s.add_dependency('activesupport', "3.0.1")
18
+ s.add_dependency('rake', '0.9.2')
19
+
20
+ s.add_development_dependency('rspec', '1.3.2')
21
+ s.add_development_dependency('ZenTest', '4.4.0')
22
+ s.add_development_dependency('simplecov', '0.5.4')
23
+
24
+ s.files = `git ls-files`.split("\n")
25
+ s.test_files = `git ls-files -- {spec}/*`.split("\n")
26
+ s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
27
+ s.require_paths = ["lib"]
28
+ 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
+