vraptor-scaffold 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (33) hide show
  1. data/Gemfile +1 -1
  2. data/History.txt +24 -3
  3. data/README.textile +1 -1
  4. data/Rakefile +1 -1
  5. data/VERSION.yml +1 -1
  6. data/lib/generators/app_generator/app_generator.rb +36 -15
  7. data/lib/generators/app_generator/dependency.rb +15 -0
  8. data/lib/generators/app_generator/dependency_manager.rb +57 -0
  9. data/lib/generators/app_generator/freemarker_template_engine.rb +0 -8
  10. data/lib/generators/app_generator/templates/build.gradle.erb +38 -0
  11. data/lib/generators/app_generator/templates/build.xml +2 -1
  12. data/lib/generators/app_generator/templates/eclipse/{classpath → classpath.erb} +3 -3
  13. data/lib/generators/app_generator/templates/{ivy-2.2.0-rc1.jar → ivy-2.2.0.jar} +0 -0
  14. data/lib/generators/app_generator/templates/ivy.erb +12 -20
  15. data/lib/generators/app_generator/templates/pom.erb +30 -97
  16. data/lib/load_paths.rb +2 -0
  17. data/spec/lib/configuration_spec.rb +0 -1
  18. data/spec/lib/generators/app_generator/app_generator_spec.rb +113 -3
  19. data/spec/lib/generators/app_generator/dependency_manager_spec.rb +25 -0
  20. data/spec/lib/generators/app_generator/dependency_spec.rb +14 -0
  21. data/spec/lib/generators/app_generator/freemarker_template_engine_spec.rb +1 -33
  22. data/spec/lib/generators/app_generator/jsp_template_engine_spec.rb +1 -1
  23. data/spec/lib/generators/app_generator/templates/build.gradle +40 -0
  24. data/spec/lib/generators/app_generator/templates/build.properties +1 -1
  25. data/spec/lib/generators/app_generator/templates/build_spring3.gradle +44 -0
  26. data/spec/lib/generators/app_generator/templates/ivy.xml +6 -6
  27. data/spec/lib/generators/app_generator/templates/ivy_spring3.xml +39 -0
  28. data/spec/lib/generators/app_generator/templates/pom.xml +34 -55
  29. data/spec/lib/generators/app_generator/templates/pom_spring3.xml +157 -0
  30. data/vraptor-scaffold.gemspec +25 -16
  31. metadata +25 -16
  32. data/lib/generators/app_generator/templates/freemarker/freemarker-ivy.xml +0 -2
  33. data/lib/generators/app_generator/templates/freemarker/freemarker-pom.xml +0 -6
@@ -0,0 +1,157 @@
1
+ <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
2
+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
3
+ <modelVersion>4.0.0</modelVersion>
4
+ <groupId>vraptor-scaffold</groupId>
5
+ <artifactId>vraptor-scaffold</artifactId>
6
+ <packaging>war</packaging>
7
+ <version>0.0.1-SNAPSHOT</version>
8
+ <name>vraptor-scaffold</name>
9
+
10
+ <properties>
11
+ <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
12
+ </properties>
13
+
14
+ <build>
15
+ <outputDirectory>${basedir}/src/main/webapp/WEB-INF/classes</outputDirectory>
16
+ <plugins>
17
+ <plugin>
18
+ <artifactId>maven-compiler-plugin</artifactId>
19
+ <version>2.3.2</version>
20
+ <configuration>
21
+ <source>1.6</source>
22
+ <target>1.6</target>
23
+ <encoding>UTF-8</encoding>
24
+ </configuration>
25
+ </plugin>
26
+ <plugin>
27
+ <artifactId>maven-eclipse-plugin</artifactId>
28
+ <version>2.8</version>
29
+ <configuration>
30
+ <downloadSources>true</downloadSources>
31
+ <downloadJavadocs>true</downloadJavadocs>
32
+ <wtpversion>2.0</wtpversion>
33
+ </configuration>
34
+ </plugin>
35
+ <plugin>
36
+ <groupId>org.apache.maven.plugins</groupId>
37
+ <artifactId>maven-war-plugin</artifactId>
38
+ <version>2.1</version>
39
+ </plugin>
40
+ <plugin>
41
+ <groupId>org.mortbay.jetty</groupId>
42
+ <artifactId>maven-jetty-plugin</artifactId>
43
+ <version>6.1.14</version>
44
+ <configuration>
45
+ <scanIntervalSeconds>3</scanIntervalSeconds>
46
+ <stopKey>foo</stopKey>
47
+ <stopPort>9999</stopPort>
48
+ <webAppConfig>
49
+ <contextPath>/</contextPath>
50
+ </webAppConfig>
51
+ </configuration>
52
+ </plugin>
53
+ </plugins>
54
+ </build>
55
+
56
+ <dependencies>
57
+ <dependency>
58
+ <groupId>br.com.caelum</groupId>
59
+ <artifactId>vraptor</artifactId>
60
+ <version>3.2.0</version>
61
+ <exclusions>
62
+ <exclusion>
63
+ <groupId>org.springframework</groupId>
64
+ <artifactId>spring</artifactId>
65
+ </exclusion>
66
+ </exclusions>
67
+ </dependency>
68
+ <dependency>
69
+ <groupId>org.springframework</groupId>
70
+ <artifactId>spring-web</artifactId>
71
+ <version>3.0.4.RELEASE</version>
72
+ </dependency>
73
+ <dependency>
74
+ <groupId>com.thoughtworks.xstream</groupId>
75
+ <artifactId>xstream</artifactId>
76
+ <version>1.3.1</version>
77
+ </dependency>
78
+ <dependency>
79
+ <groupId>org.hsqldb</groupId>
80
+ <artifactId>hsqldb</artifactId>
81
+ <version>2.0.0</version>
82
+ </dependency>
83
+ <dependency>
84
+ <groupId>opensymphony</groupId>
85
+ <artifactId>sitemesh</artifactId>
86
+ <version>2.4.2</version>
87
+ </dependency>
88
+ <dependency>
89
+ <groupId>javax.servlet</groupId>
90
+ <artifactId>jstl</artifactId>
91
+ <version>1.2</version>
92
+ </dependency>
93
+ <dependency>
94
+ <groupId>javax.persistence</groupId>
95
+ <artifactId>persistence-api</artifactId>
96
+ <version>1.0</version>
97
+ </dependency>
98
+ <dependency>
99
+ <groupId>org.hibernate</groupId>
100
+ <artifactId>hibernate-entitymanager</artifactId>
101
+ <version>3.4.0.GA</version>
102
+ </dependency>
103
+ <dependency>
104
+ <groupId>org.hibernate</groupId>
105
+ <artifactId>hibernate-core</artifactId>
106
+ <version>3.3.2.GA</version>
107
+ </dependency>
108
+ <dependency>
109
+ <groupId>org.hibernate</groupId>
110
+ <artifactId>hibernate-validator</artifactId>
111
+ <version>3.1.0.GA</version>
112
+ </dependency>
113
+ <dependency>
114
+ <groupId>joda-time</groupId>
115
+ <artifactId>joda-time</artifactId>
116
+ <version>1.6</version>
117
+ </dependency>
118
+
119
+ <!-- Test dependencies -->
120
+ <dependency>
121
+ <groupId>junit</groupId>
122
+ <artifactId>junit</artifactId>
123
+ <version>4.8.2</version>
124
+ <scope>test</scope>
125
+ </dependency>
126
+ <dependency>
127
+ <groupId>org.hamcrest</groupId>
128
+ <artifactId>hamcrest-all</artifactId>
129
+ <version>1.1</version>
130
+ <scope>test</scope>
131
+ </dependency>
132
+ <dependency>
133
+ <groupId>org.mockito</groupId>
134
+ <artifactId>mockito-all</artifactId>
135
+ <version>1.8.5</version>
136
+ <scope>test</scope>
137
+ </dependency>
138
+
139
+ <!-- Provided dependencies -->
140
+ <dependency>
141
+ <groupId>javax.servlet</groupId>
142
+ <artifactId>servlet-api</artifactId>
143
+ <version>2.5</version>
144
+ <scope>provided</scope>
145
+ </dependency>
146
+ </dependencies>
147
+
148
+ <reporting>
149
+ <plugins>
150
+ <plugin>
151
+ <groupId>org.codehaus.mojo</groupId>
152
+ <artifactId>cobertura-maven-plugin</artifactId>
153
+ <version>2.4</version>
154
+ </plugin>
155
+ </plugins>
156
+ </reporting>
157
+ </project>
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{vraptor-scaffold}
8
- s.version = "0.0.2"
8
+ s.version = "0.0.3"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Rodolfo Liviero"]
12
- s.date = %q{2010-10-08}
12
+ s.date = %q{2010-11-04}
13
13
  s.default_executable = %q{vraptor}
14
14
  s.description = %q{VRaptor scaffold extension to make it easier configuring new projects and plugins.}
15
15
  s.email = %q{rodolfoliviero@gmail.com}
@@ -30,25 +30,26 @@ Gem::Specification.new do |s|
30
30
  "bin/vraptor",
31
31
  "lib/configuration.rb",
32
32
  "lib/generators/app_generator/app_generator.rb",
33
+ "lib/generators/app_generator/dependency.rb",
34
+ "lib/generators/app_generator/dependency_manager.rb",
33
35
  "lib/generators/app_generator/freemarker_template_engine.rb",
34
36
  "lib/generators/app_generator/jsp_template_engine.rb",
37
+ "lib/generators/app_generator/templates/build.gradle.erb",
35
38
  "lib/generators/app_generator/templates/build.properties.erb",
36
39
  "lib/generators/app_generator/templates/build.xml",
37
40
  "lib/generators/app_generator/templates/decorators.erb",
38
- "lib/generators/app_generator/templates/eclipse/classpath",
41
+ "lib/generators/app_generator/templates/eclipse/classpath.erb",
39
42
  "lib/generators/app_generator/templates/eclipse/project.erb",
40
43
  "lib/generators/app_generator/templates/eclipse/settings/org.eclipse.jdt.core.prefs",
41
44
  "lib/generators/app_generator/templates/eclipse/settings/org.eclipse.wst.common.component.tt",
42
45
  "lib/generators/app_generator/templates/eclipse/settings/org.eclipse.wst.common.project.facet.core.xml",
43
46
  "lib/generators/app_generator/templates/eclipse/settings/org.eclipse.wst.jsdt.ui.superType.container",
44
47
  "lib/generators/app_generator/templates/eclipse/settings/org.eclipse.wst.jsdt.ui.superType.name",
45
- "lib/generators/app_generator/templates/freemarker/freemarker-ivy.xml",
46
- "lib/generators/app_generator/templates/freemarker/freemarker-pom.xml",
47
48
  "lib/generators/app_generator/templates/freemarker/freemarker-web.xml",
48
49
  "lib/generators/app_generator/templates/freemarker/infrastructure/FreemarkerPathResolver.java.tt",
49
50
  "lib/generators/app_generator/templates/freemarker/macros/html.ftl",
50
51
  "lib/generators/app_generator/templates/freemarker/main.ftl",
51
- "lib/generators/app_generator/templates/ivy-2.2.0-rc1.jar",
52
+ "lib/generators/app_generator/templates/ivy-2.2.0.jar",
52
53
  "lib/generators/app_generator/templates/ivy.erb",
53
54
  "lib/generators/app_generator/templates/jsp/main.jsp",
54
55
  "lib/generators/app_generator/templates/pom.erb",
@@ -98,16 +99,22 @@ Gem::Specification.new do |s|
98
99
  "lib/vraptor-scaffold.rb",
99
100
  "spec/lib/configuration_spec.rb",
100
101
  "spec/lib/generators/app_generator/app_generator_spec.rb",
102
+ "spec/lib/generators/app_generator/dependency_manager_spec.rb",
103
+ "spec/lib/generators/app_generator/dependency_spec.rb",
101
104
  "spec/lib/generators/app_generator/freemarker_template_engine_spec.rb",
102
105
  "spec/lib/generators/app_generator/jsp_template_engine_spec.rb",
103
106
  "spec/lib/generators/app_generator/templates/Entity.java",
104
107
  "spec/lib/generators/app_generator/templates/FreemarkerPathResolver.java",
105
108
  "spec/lib/generators/app_generator/templates/Repository.java",
109
+ "spec/lib/generators/app_generator/templates/build.gradle",
106
110
  "spec/lib/generators/app_generator/templates/build.properties",
111
+ "spec/lib/generators/app_generator/templates/build_spring3.gradle",
107
112
  "spec/lib/generators/app_generator/templates/decorators-jsp.xml",
108
113
  "spec/lib/generators/app_generator/templates/decorators.xml",
109
114
  "spec/lib/generators/app_generator/templates/ivy.xml",
115
+ "spec/lib/generators/app_generator/templates/ivy_spring3.xml",
110
116
  "spec/lib/generators/app_generator/templates/pom.xml",
117
+ "spec/lib/generators/app_generator/templates/pom_spring3.xml",
111
118
  "spec/lib/generators/scaffold_generator/attribute_spec.rb",
112
119
  "spec/lib/generators/scaffold_generator/base_scaffold_spec.rb",
113
120
  "spec/lib/generators/scaffold_generator/controller_generator/controller_generator_spec.rb",
@@ -127,26 +134,28 @@ Gem::Specification.new do |s|
127
134
  "vraptor-scaffold.gemspec"
128
135
  ]
129
136
  s.homepage = %q{http://github.com/caelum/vraptor-scaffold}
130
- s.post_install_message = %q{Thank you for installing vraptor-scaffold. Please read http://github.com/caelum/vraptor-scaffold/blob/master/README.rdoc for more information.}
137
+ s.post_install_message = %q{Thank you for installing vraptor-scaffold. Please read http://github.com/caelum/vraptor-scaffold/blob/master/README.textile for more information.}
131
138
  s.rdoc_options = ["--charset=UTF-8"]
132
139
  s.require_paths = ["lib"]
133
140
  s.rubygems_version = %q{1.3.7}
134
141
  s.summary = %q{VRaptor Scaffold.}
135
142
  s.test_files = [
136
- "spec/lib/vraptor-scaffold_spec.rb",
143
+ "spec/spec_helper.rb",
144
+ "spec/lib/vraptor-scaffold_spec.rb",
137
145
  "spec/lib/generators/app_generator/app_generator_spec.rb",
138
- "spec/lib/generators/app_generator/jsp_template_engine_spec.rb",
146
+ "spec/lib/generators/app_generator/dependency_manager_spec.rb",
139
147
  "spec/lib/generators/app_generator/freemarker_template_engine_spec.rb",
140
- "spec/lib/generators/scaffold_generator/jsp_generator/jsp_generator_spec.rb",
141
- "spec/lib/generators/scaffold_generator/controller_generator/controller_generator_spec.rb",
142
- "spec/lib/generators/scaffold_generator/repository_generator/repository_generator_spec.rb",
143
- "spec/lib/generators/scaffold_generator/base_scaffold_spec.rb",
144
- "spec/lib/generators/scaffold_generator/scaffold_generator_spec.rb",
148
+ "spec/lib/generators/app_generator/jsp_template_engine_spec.rb",
149
+ "spec/lib/generators/app_generator/dependency_spec.rb",
145
150
  "spec/lib/generators/scaffold_generator/model_generator/model_generator_spec.rb",
146
151
  "spec/lib/generators/scaffold_generator/freemarker_generator/freemarker_generator_spec.rb",
152
+ "spec/lib/generators/scaffold_generator/repository_generator/repository_generator_spec.rb",
147
153
  "spec/lib/generators/scaffold_generator/attribute_spec.rb",
148
- "spec/lib/configuration_spec.rb",
149
- "spec/spec_helper.rb"
154
+ "spec/lib/generators/scaffold_generator/base_scaffold_spec.rb",
155
+ "spec/lib/generators/scaffold_generator/jsp_generator/jsp_generator_spec.rb",
156
+ "spec/lib/generators/scaffold_generator/scaffold_generator_spec.rb",
157
+ "spec/lib/generators/scaffold_generator/controller_generator/controller_generator_spec.rb",
158
+ "spec/lib/configuration_spec.rb"
150
159
  ]
151
160
 
152
161
  if s.respond_to? :specification_version then
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vraptor-scaffold
3
3
  version: !ruby/object:Gem::Version
4
- hash: 27
4
+ hash: 25
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 2
10
- version: 0.0.2
9
+ - 3
10
+ version: 0.0.3
11
11
  platform: ruby
12
12
  authors:
13
13
  - Rodolfo Liviero
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2010-10-08 00:00:00 -03:00
18
+ date: 2010-11-04 00:00:00 -02:00
19
19
  default_executable: vraptor
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency
@@ -87,25 +87,26 @@ files:
87
87
  - bin/vraptor
88
88
  - lib/configuration.rb
89
89
  - lib/generators/app_generator/app_generator.rb
90
+ - lib/generators/app_generator/dependency.rb
91
+ - lib/generators/app_generator/dependency_manager.rb
90
92
  - lib/generators/app_generator/freemarker_template_engine.rb
91
93
  - lib/generators/app_generator/jsp_template_engine.rb
94
+ - lib/generators/app_generator/templates/build.gradle.erb
92
95
  - lib/generators/app_generator/templates/build.properties.erb
93
96
  - lib/generators/app_generator/templates/build.xml
94
97
  - lib/generators/app_generator/templates/decorators.erb
95
- - lib/generators/app_generator/templates/eclipse/classpath
98
+ - lib/generators/app_generator/templates/eclipse/classpath.erb
96
99
  - lib/generators/app_generator/templates/eclipse/project.erb
97
100
  - lib/generators/app_generator/templates/eclipse/settings/org.eclipse.jdt.core.prefs
98
101
  - lib/generators/app_generator/templates/eclipse/settings/org.eclipse.wst.common.component.tt
99
102
  - lib/generators/app_generator/templates/eclipse/settings/org.eclipse.wst.common.project.facet.core.xml
100
103
  - lib/generators/app_generator/templates/eclipse/settings/org.eclipse.wst.jsdt.ui.superType.container
101
104
  - lib/generators/app_generator/templates/eclipse/settings/org.eclipse.wst.jsdt.ui.superType.name
102
- - lib/generators/app_generator/templates/freemarker/freemarker-ivy.xml
103
- - lib/generators/app_generator/templates/freemarker/freemarker-pom.xml
104
105
  - lib/generators/app_generator/templates/freemarker/freemarker-web.xml
105
106
  - lib/generators/app_generator/templates/freemarker/infrastructure/FreemarkerPathResolver.java.tt
106
107
  - lib/generators/app_generator/templates/freemarker/macros/html.ftl
107
108
  - lib/generators/app_generator/templates/freemarker/main.ftl
108
- - lib/generators/app_generator/templates/ivy-2.2.0-rc1.jar
109
+ - lib/generators/app_generator/templates/ivy-2.2.0.jar
109
110
  - lib/generators/app_generator/templates/ivy.erb
110
111
  - lib/generators/app_generator/templates/jsp/main.jsp
111
112
  - lib/generators/app_generator/templates/pom.erb
@@ -155,16 +156,22 @@ files:
155
156
  - lib/vraptor-scaffold.rb
156
157
  - spec/lib/configuration_spec.rb
157
158
  - spec/lib/generators/app_generator/app_generator_spec.rb
159
+ - spec/lib/generators/app_generator/dependency_manager_spec.rb
160
+ - spec/lib/generators/app_generator/dependency_spec.rb
158
161
  - spec/lib/generators/app_generator/freemarker_template_engine_spec.rb
159
162
  - spec/lib/generators/app_generator/jsp_template_engine_spec.rb
160
163
  - spec/lib/generators/app_generator/templates/Entity.java
161
164
  - spec/lib/generators/app_generator/templates/FreemarkerPathResolver.java
162
165
  - spec/lib/generators/app_generator/templates/Repository.java
166
+ - spec/lib/generators/app_generator/templates/build.gradle
163
167
  - spec/lib/generators/app_generator/templates/build.properties
168
+ - spec/lib/generators/app_generator/templates/build_spring3.gradle
164
169
  - spec/lib/generators/app_generator/templates/decorators-jsp.xml
165
170
  - spec/lib/generators/app_generator/templates/decorators.xml
166
171
  - spec/lib/generators/app_generator/templates/ivy.xml
172
+ - spec/lib/generators/app_generator/templates/ivy_spring3.xml
167
173
  - spec/lib/generators/app_generator/templates/pom.xml
174
+ - spec/lib/generators/app_generator/templates/pom_spring3.xml
168
175
  - spec/lib/generators/scaffold_generator/attribute_spec.rb
169
176
  - spec/lib/generators/scaffold_generator/base_scaffold_spec.rb
170
177
  - spec/lib/generators/scaffold_generator/controller_generator/controller_generator_spec.rb
@@ -186,7 +193,7 @@ has_rdoc: true
186
193
  homepage: http://github.com/caelum/vraptor-scaffold
187
194
  licenses: []
188
195
 
189
- post_install_message: Thank you for installing vraptor-scaffold. Please read http://github.com/caelum/vraptor-scaffold/blob/master/README.rdoc for more information.
196
+ post_install_message: Thank you for installing vraptor-scaffold. Please read http://github.com/caelum/vraptor-scaffold/blob/master/README.textile for more information.
190
197
  rdoc_options:
191
198
  - --charset=UTF-8
192
199
  require_paths:
@@ -217,17 +224,19 @@ signing_key:
217
224
  specification_version: 3
218
225
  summary: VRaptor Scaffold.
219
226
  test_files:
227
+ - spec/spec_helper.rb
220
228
  - spec/lib/vraptor-scaffold_spec.rb
221
229
  - spec/lib/generators/app_generator/app_generator_spec.rb
222
- - spec/lib/generators/app_generator/jsp_template_engine_spec.rb
230
+ - spec/lib/generators/app_generator/dependency_manager_spec.rb
223
231
  - spec/lib/generators/app_generator/freemarker_template_engine_spec.rb
224
- - spec/lib/generators/scaffold_generator/jsp_generator/jsp_generator_spec.rb
225
- - spec/lib/generators/scaffold_generator/controller_generator/controller_generator_spec.rb
226
- - spec/lib/generators/scaffold_generator/repository_generator/repository_generator_spec.rb
227
- - spec/lib/generators/scaffold_generator/base_scaffold_spec.rb
228
- - spec/lib/generators/scaffold_generator/scaffold_generator_spec.rb
232
+ - spec/lib/generators/app_generator/jsp_template_engine_spec.rb
233
+ - spec/lib/generators/app_generator/dependency_spec.rb
229
234
  - spec/lib/generators/scaffold_generator/model_generator/model_generator_spec.rb
230
235
  - spec/lib/generators/scaffold_generator/freemarker_generator/freemarker_generator_spec.rb
236
+ - spec/lib/generators/scaffold_generator/repository_generator/repository_generator_spec.rb
231
237
  - spec/lib/generators/scaffold_generator/attribute_spec.rb
238
+ - spec/lib/generators/scaffold_generator/base_scaffold_spec.rb
239
+ - spec/lib/generators/scaffold_generator/jsp_generator/jsp_generator_spec.rb
240
+ - spec/lib/generators/scaffold_generator/scaffold_generator_spec.rb
241
+ - spec/lib/generators/scaffold_generator/controller_generator/controller_generator_spec.rb
232
242
  - spec/lib/configuration_spec.rb
233
- - spec/spec_helper.rb
@@ -1,2 +0,0 @@
1
-
2
- <dependency org="org.freemarker" name="freemarker" rev="2.3.16" conf="default"/>
@@ -1,6 +0,0 @@
1
-
2
- <dependency>
3
- <groupId>org.freemarker</groupId>
4
- <artifactId>freemarker</artifactId>
5
- <version>2.3.16</version>
6
- </dependency>