vraptor-scaffold 0.0.1.rc → 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (103) hide show
  1. data/.document +1 -1
  2. data/.gitignore +1 -0
  3. data/Gemfile +3 -3
  4. data/History.txt +10 -0
  5. data/README.textile +32 -0
  6. data/Rakefile +6 -7
  7. data/VERSION.yml +1 -1
  8. data/bin/vraptor +1 -1
  9. data/lib/configuration.rb +31 -0
  10. data/lib/generators/app_generator/app_generator.rb +75 -126
  11. data/lib/generators/app_generator/freemarker_template_engine.rb +50 -0
  12. data/lib/generators/app_generator/jsp_template_engine.rb +21 -0
  13. data/lib/generators/app_generator/templates/build.properties.erb +16 -0
  14. data/lib/generators/app_generator/templates/build.xml +109 -0
  15. data/lib/generators/app_generator/templates/decorators.erb +7 -0
  16. data/lib/generators/app_generator/templates/eclipse/classpath +23 -0
  17. data/lib/generators/app_generator/templates/eclipse/project.erb +36 -0
  18. data/lib/generators/app_generator/templates/eclipse/settings/org.eclipse.jdt.core.prefs +8 -0
  19. data/lib/generators/app_generator/templates/eclipse/settings/org.eclipse.wst.common.component.tt +10 -0
  20. data/lib/generators/app_generator/templates/eclipse/settings/org.eclipse.wst.common.project.facet.core.xml +10 -0
  21. data/lib/generators/app_generator/templates/eclipse/settings/org.eclipse.wst.jsdt.ui.superType.container +1 -0
  22. data/lib/generators/app_generator/templates/eclipse/settings/org.eclipse.wst.jsdt.ui.superType.name +1 -0
  23. data/lib/generators/app_generator/templates/freemarker/freemarker-ivy.xml +2 -0
  24. data/lib/generators/app_generator/templates/freemarker/freemarker-pom.xml +6 -0
  25. data/lib/generators/app_generator/templates/freemarker/freemarker-web.xml +23 -0
  26. data/lib/generators/app_generator/templates/freemarker/infrastructure/FreemarkerPathResolver.java.tt +21 -0
  27. data/lib/generators/app_generator/templates/{macros → freemarker/macros}/html.ftl +0 -0
  28. data/lib/generators/app_generator/templates/freemarker/main.ftl +14 -0
  29. data/lib/generators/app_generator/templates/ivy-2.2.0-rc1.jar +0 -0
  30. data/lib/generators/app_generator/templates/ivy.erb +35 -0
  31. data/lib/generators/app_generator/templates/jsp/main.jsp +16 -0
  32. data/lib/generators/app_generator/templates/pom.erb +24 -3
  33. data/lib/generators/app_generator/templates/{messages.properties → resources-test/.empty_directory} +0 -0
  34. data/lib/generators/app_generator/templates/{persistence.xml → resources/META-INF/persistence.xml} +0 -0
  35. data/lib/generators/app_generator/templates/{log4j.properties → resources/log4j.properties} +0 -0
  36. data/lib/generators/app_generator/templates/resources/messages.properties +0 -0
  37. data/lib/generators/app_generator/templates/src-test/controllers/.empty_directory +0 -0
  38. data/lib/generators/app_generator/templates/src-test/models/.empty_directory +0 -0
  39. data/lib/generators/app_generator/templates/src-test/repositories/.empty_directory +0 -0
  40. data/lib/generators/app_generator/templates/src/controllers/.empty_directory +0 -0
  41. data/lib/generators/app_generator/templates/src/models/Entity.java.tt +45 -0
  42. data/lib/generators/app_generator/templates/src/repositories/Repository.java.tt +43 -0
  43. data/lib/generators/app_generator/templates/vraptor-scaffold.erb +2 -0
  44. data/lib/generators/app_generator/templates/webapp/WEB-INF/web.xml +38 -0
  45. data/lib/generators/app_generator/templates/webapp/images/.empty_directory +0 -0
  46. data/lib/generators/app_generator/templates/{index.jsp → webapp/index.jsp} +0 -0
  47. data/lib/generators/app_generator/templates/{javascripts → webapp/javascripts}/jquery-1.4.2.min.js +0 -0
  48. data/lib/generators/app_generator/templates/{stylesheets → webapp/stylesheets}/scaffold.css +0 -0
  49. data/lib/generators/scaffold_generator/attribute.rb +14 -6
  50. data/lib/generators/scaffold_generator/base_scaffold.rb +14 -10
  51. data/lib/generators/scaffold_generator/controller_generator/controller_generator.rb +6 -6
  52. data/lib/generators/scaffold_generator/controller_generator/templates/controller.erb +7 -7
  53. data/lib/generators/scaffold_generator/controller_generator/templates/controller_test.erb +1 -1
  54. data/lib/generators/scaffold_generator/freemarker_generator/freemarker_generator.rb +5 -5
  55. data/lib/generators/scaffold_generator/freemarker_generator/templates/index.erb +2 -3
  56. data/lib/generators/scaffold_generator/jsp_generator/jsp_generator.rb +22 -0
  57. data/lib/generators/scaffold_generator/jsp_generator/templates/edit.erb +3 -0
  58. data/lib/generators/scaffold_generator/jsp_generator/templates/form.erb +27 -0
  59. data/lib/generators/scaffold_generator/jsp_generator/templates/index.erb +36 -0
  60. data/lib/generators/scaffold_generator/jsp_generator/templates/new.erb +3 -0
  61. data/lib/generators/scaffold_generator/jsp_generator/templates/show.erb +14 -0
  62. data/lib/generators/scaffold_generator/model_generator/model_generator.rb +5 -5
  63. data/lib/generators/scaffold_generator/model_generator/templates/model.erb +1 -1
  64. data/lib/generators/scaffold_generator/model_generator/templates/model_test.erb +1 -1
  65. data/lib/generators/scaffold_generator/repository_generator/repository_generator.rb +6 -5
  66. data/lib/generators/scaffold_generator/repository_generator/templates/repository.erb +17 -9
  67. data/lib/generators/scaffold_generator/repository_generator/templates/repository_impl.erb +16 -0
  68. data/lib/generators/scaffold_generator/repository_generator/templates/repository_test.erb +2 -2
  69. data/lib/generators/scaffold_generator/scaffold_generator.rb +31 -38
  70. data/lib/load_paths.rb +6 -2
  71. data/lib/vraptor-scaffold.rb +29 -5
  72. data/spec/lib/configuration_spec.rb +60 -0
  73. data/spec/lib/generators/app_generator/app_generator_spec.rb +237 -116
  74. data/spec/lib/generators/app_generator/freemarker_template_engine_spec.rb +92 -0
  75. data/spec/lib/generators/app_generator/jsp_template_engine_spec.rb +44 -0
  76. data/{lib → spec/lib}/generators/app_generator/templates/Entity.java +5 -2
  77. data/{lib → spec/lib}/generators/app_generator/templates/FreemarkerPathResolver.java +1 -1
  78. data/{lib → spec/lib}/generators/app_generator/templates/Repository.java +6 -6
  79. data/spec/lib/generators/app_generator/templates/build.properties +16 -0
  80. data/spec/lib/generators/app_generator/templates/decorators-jsp.xml +7 -0
  81. data/{lib → spec/lib}/generators/app_generator/templates/decorators.xml +2 -2
  82. data/spec/lib/generators/app_generator/templates/ivy.xml +35 -0
  83. data/spec/lib/generators/app_generator/templates/pom.xml +24 -3
  84. data/spec/lib/generators/scaffold_generator/attribute_spec.rb +47 -27
  85. data/spec/lib/generators/scaffold_generator/base_scaffold_spec.rb +31 -27
  86. data/spec/lib/generators/scaffold_generator/controller_generator/controller_generator_spec.rb +11 -9
  87. data/spec/lib/generators/scaffold_generator/controller_generator/templates/ProductController.java +2 -2
  88. data/spec/lib/generators/scaffold_generator/freemarker_generator/freemarker_generator_spec.rb +16 -14
  89. data/spec/lib/generators/scaffold_generator/jsp_generator/jsp_generator_spec.rb +34 -0
  90. data/spec/lib/generators/scaffold_generator/model_generator/model_generator_spec.rb +11 -9
  91. data/spec/lib/generators/scaffold_generator/repository_generator/repository_generator_spec.rb +17 -9
  92. data/spec/lib/generators/scaffold_generator/repository_generator/templates/ProductRepository.java +15 -7
  93. data/spec/lib/generators/scaffold_generator/repository_generator/templates/ProductRepositoryImpl.java +16 -0
  94. data/spec/lib/generators/scaffold_generator/scaffold_generator_spec.rb +55 -57
  95. data/spec/lib/vraptor-scaffold_spec.rb +77 -24
  96. data/spec/resources/vraptor-scaffold.properties +2 -0
  97. data/spec/spec_helper.rb +13 -1
  98. data/vraptor-scaffold.gemspec +82 -34
  99. metadata +86 -42
  100. data/README.rdoc +0 -104
  101. data/TODO.txt +0 -17
  102. data/lib/generators/app_generator/templates/main.ftl +0 -14
  103. data/lib/generators/app_generator/templates/web.xml +0 -61
@@ -1,44 +1,97 @@
1
1
  require File.expand_path(File.dirname(__FILE__) + "/../spec_helper")
2
2
 
3
3
  describe VraptorScaffold::Main do
4
-
5
- context "new application" do
4
+
5
+ context "app generator help" do
6
+ before(:each) do
7
+ generator = mock(AppGenerator)
8
+ generator.stub!(:invoke_all)
9
+ AppGenerator.stub!(:new).and_return(generator)
10
+ AppGenerator.should_receive(:start).with(["-h"])
11
+ Kernel.should_receive(:exit)
12
+ end
13
+
14
+ it "should print help when vraptor" do
15
+ VraptorScaffold::Main.execute([])
16
+ end
17
+
18
+ it "should print help when vraptor -h" do
19
+ VraptorScaffold::Main.execute(["-h"])
20
+ end
21
+
22
+ it "should print help when vraptor --help" do
23
+ VraptorScaffold::Main.execute(["--help"])
24
+ end
25
+
26
+ it "should print help when vraptor new" do
27
+ VraptorScaffold::Main.execute(["new"])
28
+ end
29
+
30
+ it "should print help when vraptor new -h" do
31
+ VraptorScaffold::Main.execute(["new", "-h"])
32
+ end
33
+
34
+ it "should print help when vraptor new --help" do
35
+ VraptorScaffold::Main.execute(["new", "--help"])
36
+ end
37
+ end
38
+
39
+ context "app generator" do
6
40
  before(:each) do
7
- @project_name = "vraptor-scaffold"
8
41
  @generator = mock(AppGenerator)
9
- AppGenerator.stub!(:new).and_return(@generator)
10
- @args = ["new", @project_name]
42
+ project_name = "vraptor-scaffold"
43
+ option = "--package=br.com.caelum"
44
+ @args = ["new", project_name, option]
45
+ AppGenerator.stub!(:new).with(project_name, [option]).and_return(@generator)
11
46
  end
12
-
13
- it "should call app generator when typed new" do
14
- @generator.should_receive(:build).with(@project_name)
47
+
48
+ it "should invoke all app generator tasks when typed new" do
49
+ @generator.should_receive(:invoke_all)
15
50
  VraptorScaffold::Main.execute(@args)
16
51
  end
17
-
18
- it "cannot call app generator when not typed new" do
19
- @args.shift
20
- @generator.should_not_receive(:build)
21
- VraptorScaffold::Main.execute(@args)
52
+ end
53
+
54
+ context "scaffold generator help" do
55
+ before(:each) do
56
+ File.stub!(:exist?).and_return(true)
57
+ generator = mock(ScaffoldGenerator)
58
+ generator.stub!(:invoke_all)
59
+ ScaffoldGenerator.stub!(:new).and_return(generator)
60
+ ScaffoldGenerator.should_receive(:start).with(["-h"])
61
+ Kernel.should_receive(:exit)
62
+ end
63
+
64
+ it "should print help when vraptor scaffold" do
65
+ VraptorScaffold::Main.execute(["scaffold"])
66
+ end
67
+
68
+ it "should print help when vraptor scaffold -h" do
69
+ VraptorScaffold::Main.execute(["scaffold", "-h"])
70
+ end
71
+
72
+ it "should print help when vraptor scaffold --help" do
73
+ VraptorScaffold::Main.execute(["scaffold", "--help"])
22
74
  end
23
75
  end
24
-
25
- context "scaffold" do
76
+
77
+ context "scaffold generator" do
26
78
  before(:each) do
27
79
  @generator = mock(ScaffoldGenerator)
28
80
  @args = ["scaffold", "product", "name:string", "value:doulbe"]
29
81
  ScaffoldGenerator.stub!(:new).with(@args).and_return(@generator)
30
82
  end
31
-
32
- it "should call scaffold generator" do
33
- @generator.should_receive(:build)
83
+
84
+ it "should invoke all scaffold generator tasks" do
85
+ File.stub!(:exist?).and_return(true)
86
+ @generator.should_receive(:invoke_all)
34
87
  VraptorScaffold::Main.execute(@args)
35
88
  end
36
- end
37
-
38
- context "web server" do
39
- it "should start server when typed start" do
40
- VraptorScaffold::Main.should_receive(:exec).with("mvn compile war:inplace jetty:run")
41
- VraptorScaffold::Main.execute(["start"])
89
+
90
+ it "cannot invoke scaffold generator outsite root folder" do
91
+ File.stub!(:exist?).and_return(false)
92
+ Kernel.should_receive(:exit)
93
+ @generator.stub!(:invoke_all)
94
+ VraptorScaffold::Main.execute(@args)
42
95
  end
43
96
  end
44
97
  end
@@ -0,0 +1,2 @@
1
+ package: app
2
+ template_engine: jsp
@@ -3,5 +3,17 @@ require 'spec/autorun'
3
3
  require File.dirname(__FILE__) + '/../lib/vraptor-scaffold'
4
4
 
5
5
  def build_attributes
6
- [Attribute.new("name", "string"), Attribute.new("flag", "boolean")]
6
+ [Attribute.new("name", "string"), Attribute.new("flag", "boolean")]
7
7
  end
8
+
9
+ def mock_config_file
10
+ file = YAML.load_file File.join( File.dirname(__FILE__), "resources", "vraptor-scaffold.properties")
11
+ Configuration.stub!(:config).and_return(file)
12
+ end
13
+
14
+ def exists_and_identical?(source, destination)
15
+ File.exists?(destination).should be_true
16
+ FileUtils.should be_identical(source, destination)
17
+ end
18
+
19
+
@@ -5,18 +5,18 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{vraptor-scaffold}
8
- s.version = "0.0.1.rc"
8
+ s.version = "0.0.1"
9
9
 
10
- s.required_rubygems_version = Gem::Requirement.new("> 1.3.1") if s.respond_to? :required_rubygems_version=
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-08-24}
12
+ s.date = %q{2010-10-05}
13
13
  s.default_executable = %q{vraptor}
14
- s.description = %q{Scaffold for vraptor 3 with jpa, freemarker, maven, mockito, junit and jquery.}
14
+ s.description = %q{VRaptor scaffold extension to make it easier configuring new projects and plugins.}
15
15
  s.email = %q{rodolfoliviero@gmail.com}
16
16
  s.executables = ["vraptor"]
17
17
  s.extra_rdoc_files = [
18
18
  "LICENSE",
19
- "README.rdoc"
19
+ "README.textile"
20
20
  ]
21
21
  s.files = [
22
22
  ".document",
@@ -24,26 +24,50 @@ Gem::Specification.new do |s|
24
24
  "Gemfile",
25
25
  "History.txt",
26
26
  "LICENSE",
27
- "README.rdoc",
27
+ "README.textile",
28
28
  "Rakefile",
29
- "TODO.txt",
30
29
  "VERSION.yml",
31
30
  "bin/vraptor",
31
+ "lib/configuration.rb",
32
32
  "lib/generators/app_generator/app_generator.rb",
33
- "lib/generators/app_generator/templates/Entity.java",
34
- "lib/generators/app_generator/templates/FreemarkerPathResolver.java",
35
- "lib/generators/app_generator/templates/Repository.java",
36
- "lib/generators/app_generator/templates/decorators.xml",
37
- "lib/generators/app_generator/templates/index.jsp",
38
- "lib/generators/app_generator/templates/javascripts/jquery-1.4.2.min.js",
39
- "lib/generators/app_generator/templates/log4j.properties",
40
- "lib/generators/app_generator/templates/macros/html.ftl",
41
- "lib/generators/app_generator/templates/main.ftl",
42
- "lib/generators/app_generator/templates/messages.properties",
43
- "lib/generators/app_generator/templates/persistence.xml",
33
+ "lib/generators/app_generator/freemarker_template_engine.rb",
34
+ "lib/generators/app_generator/jsp_template_engine.rb",
35
+ "lib/generators/app_generator/templates/build.properties.erb",
36
+ "lib/generators/app_generator/templates/build.xml",
37
+ "lib/generators/app_generator/templates/decorators.erb",
38
+ "lib/generators/app_generator/templates/eclipse/classpath",
39
+ "lib/generators/app_generator/templates/eclipse/project.erb",
40
+ "lib/generators/app_generator/templates/eclipse/settings/org.eclipse.jdt.core.prefs",
41
+ "lib/generators/app_generator/templates/eclipse/settings/org.eclipse.wst.common.component.tt",
42
+ "lib/generators/app_generator/templates/eclipse/settings/org.eclipse.wst.common.project.facet.core.xml",
43
+ "lib/generators/app_generator/templates/eclipse/settings/org.eclipse.wst.jsdt.ui.superType.container",
44
+ "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
+ "lib/generators/app_generator/templates/freemarker/freemarker-web.xml",
48
+ "lib/generators/app_generator/templates/freemarker/infrastructure/FreemarkerPathResolver.java.tt",
49
+ "lib/generators/app_generator/templates/freemarker/macros/html.ftl",
50
+ "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.erb",
53
+ "lib/generators/app_generator/templates/jsp/main.jsp",
44
54
  "lib/generators/app_generator/templates/pom.erb",
45
- "lib/generators/app_generator/templates/stylesheets/scaffold.css",
46
- "lib/generators/app_generator/templates/web.xml",
55
+ "lib/generators/app_generator/templates/resources-test/.empty_directory",
56
+ "lib/generators/app_generator/templates/resources/META-INF/persistence.xml",
57
+ "lib/generators/app_generator/templates/resources/log4j.properties",
58
+ "lib/generators/app_generator/templates/resources/messages.properties",
59
+ "lib/generators/app_generator/templates/src-test/controllers/.empty_directory",
60
+ "lib/generators/app_generator/templates/src-test/models/.empty_directory",
61
+ "lib/generators/app_generator/templates/src-test/repositories/.empty_directory",
62
+ "lib/generators/app_generator/templates/src/controllers/.empty_directory",
63
+ "lib/generators/app_generator/templates/src/models/Entity.java.tt",
64
+ "lib/generators/app_generator/templates/src/repositories/Repository.java.tt",
65
+ "lib/generators/app_generator/templates/vraptor-scaffold.erb",
66
+ "lib/generators/app_generator/templates/webapp/WEB-INF/web.xml",
67
+ "lib/generators/app_generator/templates/webapp/images/.empty_directory",
68
+ "lib/generators/app_generator/templates/webapp/index.jsp",
69
+ "lib/generators/app_generator/templates/webapp/javascripts/jquery-1.4.2.min.js",
70
+ "lib/generators/app_generator/templates/webapp/stylesheets/scaffold.css",
47
71
  "lib/generators/base.rb",
48
72
  "lib/generators/scaffold_generator/attribute.rb",
49
73
  "lib/generators/scaffold_generator/base_scaffold.rb",
@@ -56,49 +80,73 @@ Gem::Specification.new do |s|
56
80
  "lib/generators/scaffold_generator/freemarker_generator/templates/index.erb",
57
81
  "lib/generators/scaffold_generator/freemarker_generator/templates/new.erb",
58
82
  "lib/generators/scaffold_generator/freemarker_generator/templates/show.erb",
83
+ "lib/generators/scaffold_generator/jsp_generator/jsp_generator.rb",
84
+ "lib/generators/scaffold_generator/jsp_generator/templates/edit.erb",
85
+ "lib/generators/scaffold_generator/jsp_generator/templates/form.erb",
86
+ "lib/generators/scaffold_generator/jsp_generator/templates/index.erb",
87
+ "lib/generators/scaffold_generator/jsp_generator/templates/new.erb",
88
+ "lib/generators/scaffold_generator/jsp_generator/templates/show.erb",
59
89
  "lib/generators/scaffold_generator/model_generator/model_generator.rb",
60
90
  "lib/generators/scaffold_generator/model_generator/templates/model.erb",
61
91
  "lib/generators/scaffold_generator/model_generator/templates/model_test.erb",
62
92
  "lib/generators/scaffold_generator/repository_generator/repository_generator.rb",
63
93
  "lib/generators/scaffold_generator/repository_generator/templates/repository.erb",
94
+ "lib/generators/scaffold_generator/repository_generator/templates/repository_impl.erb",
64
95
  "lib/generators/scaffold_generator/repository_generator/templates/repository_test.erb",
65
96
  "lib/generators/scaffold_generator/scaffold_generator.rb",
66
97
  "lib/load_paths.rb",
67
98
  "lib/vraptor-scaffold.rb",
99
+ "spec/lib/configuration_spec.rb",
68
100
  "spec/lib/generators/app_generator/app_generator_spec.rb",
101
+ "spec/lib/generators/app_generator/freemarker_template_engine_spec.rb",
102
+ "spec/lib/generators/app_generator/jsp_template_engine_spec.rb",
103
+ "spec/lib/generators/app_generator/templates/Entity.java",
104
+ "spec/lib/generators/app_generator/templates/FreemarkerPathResolver.java",
105
+ "spec/lib/generators/app_generator/templates/Repository.java",
106
+ "spec/lib/generators/app_generator/templates/build.properties",
107
+ "spec/lib/generators/app_generator/templates/decorators-jsp.xml",
108
+ "spec/lib/generators/app_generator/templates/decorators.xml",
109
+ "spec/lib/generators/app_generator/templates/ivy.xml",
69
110
  "spec/lib/generators/app_generator/templates/pom.xml",
70
111
  "spec/lib/generators/scaffold_generator/attribute_spec.rb",
71
112
  "spec/lib/generators/scaffold_generator/base_scaffold_spec.rb",
72
113
  "spec/lib/generators/scaffold_generator/controller_generator/controller_generator_spec.rb",
73
114
  "spec/lib/generators/scaffold_generator/controller_generator/templates/ProductController.java",
74
115
  "spec/lib/generators/scaffold_generator/freemarker_generator/freemarker_generator_spec.rb",
116
+ "spec/lib/generators/scaffold_generator/jsp_generator/jsp_generator_spec.rb",
75
117
  "spec/lib/generators/scaffold_generator/model_generator/model_generator_spec.rb",
76
118
  "spec/lib/generators/scaffold_generator/model_generator/templates/Product.java",
77
119
  "spec/lib/generators/scaffold_generator/repository_generator/repository_generator_spec.rb",
78
120
  "spec/lib/generators/scaffold_generator/repository_generator/templates/ProductRepository.java",
121
+ "spec/lib/generators/scaffold_generator/repository_generator/templates/ProductRepositoryImpl.java",
79
122
  "spec/lib/generators/scaffold_generator/scaffold_generator_spec.rb",
80
123
  "spec/lib/vraptor-scaffold_spec.rb",
124
+ "spec/resources/vraptor-scaffold.properties",
81
125
  "spec/spec.opts",
82
126
  "spec/spec_helper.rb",
83
127
  "vraptor-scaffold.gemspec"
84
128
  ]
85
- s.homepage = %q{http://github.com/rodolfoliviero/vraptor-scaffold}
86
- s.post_install_message = %q{Thank you for installing vraptor-scaffold. Please read http://github.com/rodolfoliviero/vraptor-scaffold/blob/master/README.rdoc for more information.}
129
+ 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.}
87
131
  s.rdoc_options = ["--charset=UTF-8"]
88
132
  s.require_paths = ["lib"]
89
133
  s.rubygems_version = %q{1.3.7}
90
- s.summary = %q{Scaffold for vraptor 3.}
134
+ s.summary = %q{VRaptor Scaffold.}
91
135
  s.test_files = [
92
- "spec/spec_helper.rb",
136
+ "spec/lib/vraptor-scaffold_spec.rb",
93
137
  "spec/lib/generators/app_generator/app_generator_spec.rb",
138
+ "spec/lib/generators/app_generator/jsp_template_engine_spec.rb",
139
+ "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",
94
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",
95
145
  "spec/lib/generators/scaffold_generator/model_generator/model_generator_spec.rb",
96
146
  "spec/lib/generators/scaffold_generator/freemarker_generator/freemarker_generator_spec.rb",
97
147
  "spec/lib/generators/scaffold_generator/attribute_spec.rb",
98
- "spec/lib/generators/scaffold_generator/scaffold_generator_spec.rb",
99
- "spec/lib/generators/scaffold_generator/base_scaffold_spec.rb",
100
- "spec/lib/generators/scaffold_generator/controller_generator/controller_generator_spec.rb",
101
- "spec/lib/vraptor-scaffold_spec.rb"
148
+ "spec/lib/configuration_spec.rb",
149
+ "spec/spec_helper.rb"
102
150
  ]
103
151
 
104
152
  if s.respond_to? :specification_version then
@@ -106,18 +154,18 @@ Gem::Specification.new do |s|
106
154
  s.specification_version = 3
107
155
 
108
156
  if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
109
- s.add_runtime_dependency(%q<thor>, [">= 0.14.0"])
157
+ s.add_runtime_dependency(%q<thor>, [">= 0.14.3"])
110
158
  s.add_runtime_dependency(%q<rake>, [">= 0.8.7"])
111
- s.add_runtime_dependency(%q<activesupport>, [">= 3.0.0.rc"])
159
+ s.add_runtime_dependency(%q<activesupport>, [">= 3.0.0"])
112
160
  else
113
- s.add_dependency(%q<thor>, [">= 0.14.0"])
161
+ s.add_dependency(%q<thor>, [">= 0.14.3"])
114
162
  s.add_dependency(%q<rake>, [">= 0.8.7"])
115
- s.add_dependency(%q<activesupport>, [">= 3.0.0.rc"])
163
+ s.add_dependency(%q<activesupport>, [">= 3.0.0"])
116
164
  end
117
165
  else
118
- s.add_dependency(%q<thor>, [">= 0.14.0"])
166
+ s.add_dependency(%q<thor>, [">= 0.14.3"])
119
167
  s.add_dependency(%q<rake>, [">= 0.8.7"])
120
- s.add_dependency(%q<activesupport>, [">= 3.0.0.rc"])
168
+ s.add_dependency(%q<activesupport>, [">= 3.0.0"])
121
169
  end
122
170
  end
123
171
 
metadata CHANGED
@@ -1,14 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vraptor-scaffold
3
3
  version: !ruby/object:Gem::Version
4
- hash: 7712030
5
- prerelease: true
4
+ hash: 29
5
+ prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
9
  - 1
10
- - rc
11
- version: 0.0.1.rc
10
+ version: 0.0.1
12
11
  platform: ruby
13
12
  authors:
14
13
  - Rodolfo Liviero
@@ -16,7 +15,7 @@ autorequire:
16
15
  bindir: bin
17
16
  cert_chain: []
18
17
 
19
- date: 2010-08-24 00:00:00 -03:00
18
+ date: 2010-10-05 00:00:00 -03:00
20
19
  default_executable: vraptor
21
20
  dependencies:
22
21
  - !ruby/object:Gem::Dependency
@@ -27,12 +26,12 @@ dependencies:
27
26
  requirements:
28
27
  - - ">="
29
28
  - !ruby/object:Gem::Version
30
- hash: 39
29
+ hash: 33
31
30
  segments:
32
31
  - 0
33
32
  - 14
34
- - 0
35
- version: 0.14.0
33
+ - 3
34
+ version: 0.14.3
36
35
  type: :runtime
37
36
  version_requirements: *id001
38
37
  - !ruby/object:Gem::Dependency
@@ -59,16 +58,15 @@ dependencies:
59
58
  requirements:
60
59
  - - ">="
61
60
  - !ruby/object:Gem::Version
62
- hash: 7712042
61
+ hash: 7
63
62
  segments:
64
63
  - 3
65
64
  - 0
66
65
  - 0
67
- - rc
68
- version: 3.0.0.rc
66
+ version: 3.0.0
69
67
  type: :runtime
70
68
  version_requirements: *id003
71
- description: Scaffold for vraptor 3 with jpa, freemarker, maven, mockito, junit and jquery.
69
+ description: VRaptor scaffold extension to make it easier configuring new projects and plugins.
72
70
  email: rodolfoliviero@gmail.com
73
71
  executables:
74
72
  - vraptor
@@ -76,33 +74,57 @@ extensions: []
76
74
 
77
75
  extra_rdoc_files:
78
76
  - LICENSE
79
- - README.rdoc
77
+ - README.textile
80
78
  files:
81
79
  - .document
82
80
  - .gitignore
83
81
  - Gemfile
84
82
  - History.txt
85
83
  - LICENSE
86
- - README.rdoc
84
+ - README.textile
87
85
  - Rakefile
88
- - TODO.txt
89
86
  - VERSION.yml
90
87
  - bin/vraptor
88
+ - lib/configuration.rb
91
89
  - lib/generators/app_generator/app_generator.rb
92
- - lib/generators/app_generator/templates/Entity.java
93
- - lib/generators/app_generator/templates/FreemarkerPathResolver.java
94
- - lib/generators/app_generator/templates/Repository.java
95
- - lib/generators/app_generator/templates/decorators.xml
96
- - lib/generators/app_generator/templates/index.jsp
97
- - lib/generators/app_generator/templates/javascripts/jquery-1.4.2.min.js
98
- - lib/generators/app_generator/templates/log4j.properties
99
- - lib/generators/app_generator/templates/macros/html.ftl
100
- - lib/generators/app_generator/templates/main.ftl
101
- - lib/generators/app_generator/templates/messages.properties
102
- - lib/generators/app_generator/templates/persistence.xml
90
+ - lib/generators/app_generator/freemarker_template_engine.rb
91
+ - lib/generators/app_generator/jsp_template_engine.rb
92
+ - lib/generators/app_generator/templates/build.properties.erb
93
+ - lib/generators/app_generator/templates/build.xml
94
+ - lib/generators/app_generator/templates/decorators.erb
95
+ - lib/generators/app_generator/templates/eclipse/classpath
96
+ - lib/generators/app_generator/templates/eclipse/project.erb
97
+ - lib/generators/app_generator/templates/eclipse/settings/org.eclipse.jdt.core.prefs
98
+ - lib/generators/app_generator/templates/eclipse/settings/org.eclipse.wst.common.component.tt
99
+ - lib/generators/app_generator/templates/eclipse/settings/org.eclipse.wst.common.project.facet.core.xml
100
+ - lib/generators/app_generator/templates/eclipse/settings/org.eclipse.wst.jsdt.ui.superType.container
101
+ - 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
+ - lib/generators/app_generator/templates/freemarker/freemarker-web.xml
105
+ - lib/generators/app_generator/templates/freemarker/infrastructure/FreemarkerPathResolver.java.tt
106
+ - lib/generators/app_generator/templates/freemarker/macros/html.ftl
107
+ - 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.erb
110
+ - lib/generators/app_generator/templates/jsp/main.jsp
103
111
  - lib/generators/app_generator/templates/pom.erb
104
- - lib/generators/app_generator/templates/stylesheets/scaffold.css
105
- - lib/generators/app_generator/templates/web.xml
112
+ - lib/generators/app_generator/templates/resources-test/.empty_directory
113
+ - lib/generators/app_generator/templates/resources/META-INF/persistence.xml
114
+ - lib/generators/app_generator/templates/resources/log4j.properties
115
+ - lib/generators/app_generator/templates/resources/messages.properties
116
+ - lib/generators/app_generator/templates/src-test/controllers/.empty_directory
117
+ - lib/generators/app_generator/templates/src-test/models/.empty_directory
118
+ - lib/generators/app_generator/templates/src-test/repositories/.empty_directory
119
+ - lib/generators/app_generator/templates/src/controllers/.empty_directory
120
+ - lib/generators/app_generator/templates/src/models/Entity.java.tt
121
+ - lib/generators/app_generator/templates/src/repositories/Repository.java.tt
122
+ - lib/generators/app_generator/templates/vraptor-scaffold.erb
123
+ - lib/generators/app_generator/templates/webapp/WEB-INF/web.xml
124
+ - lib/generators/app_generator/templates/webapp/images/.empty_directory
125
+ - lib/generators/app_generator/templates/webapp/index.jsp
126
+ - lib/generators/app_generator/templates/webapp/javascripts/jquery-1.4.2.min.js
127
+ - lib/generators/app_generator/templates/webapp/stylesheets/scaffold.css
106
128
  - lib/generators/base.rb
107
129
  - lib/generators/scaffold_generator/attribute.rb
108
130
  - lib/generators/scaffold_generator/base_scaffold.rb
@@ -115,36 +137,56 @@ files:
115
137
  - lib/generators/scaffold_generator/freemarker_generator/templates/index.erb
116
138
  - lib/generators/scaffold_generator/freemarker_generator/templates/new.erb
117
139
  - lib/generators/scaffold_generator/freemarker_generator/templates/show.erb
140
+ - lib/generators/scaffold_generator/jsp_generator/jsp_generator.rb
141
+ - lib/generators/scaffold_generator/jsp_generator/templates/edit.erb
142
+ - lib/generators/scaffold_generator/jsp_generator/templates/form.erb
143
+ - lib/generators/scaffold_generator/jsp_generator/templates/index.erb
144
+ - lib/generators/scaffold_generator/jsp_generator/templates/new.erb
145
+ - lib/generators/scaffold_generator/jsp_generator/templates/show.erb
118
146
  - lib/generators/scaffold_generator/model_generator/model_generator.rb
119
147
  - lib/generators/scaffold_generator/model_generator/templates/model.erb
120
148
  - lib/generators/scaffold_generator/model_generator/templates/model_test.erb
121
149
  - lib/generators/scaffold_generator/repository_generator/repository_generator.rb
122
150
  - lib/generators/scaffold_generator/repository_generator/templates/repository.erb
151
+ - lib/generators/scaffold_generator/repository_generator/templates/repository_impl.erb
123
152
  - lib/generators/scaffold_generator/repository_generator/templates/repository_test.erb
124
153
  - lib/generators/scaffold_generator/scaffold_generator.rb
125
154
  - lib/load_paths.rb
126
155
  - lib/vraptor-scaffold.rb
156
+ - spec/lib/configuration_spec.rb
127
157
  - spec/lib/generators/app_generator/app_generator_spec.rb
158
+ - spec/lib/generators/app_generator/freemarker_template_engine_spec.rb
159
+ - spec/lib/generators/app_generator/jsp_template_engine_spec.rb
160
+ - spec/lib/generators/app_generator/templates/Entity.java
161
+ - spec/lib/generators/app_generator/templates/FreemarkerPathResolver.java
162
+ - spec/lib/generators/app_generator/templates/Repository.java
163
+ - spec/lib/generators/app_generator/templates/build.properties
164
+ - spec/lib/generators/app_generator/templates/decorators-jsp.xml
165
+ - spec/lib/generators/app_generator/templates/decorators.xml
166
+ - spec/lib/generators/app_generator/templates/ivy.xml
128
167
  - spec/lib/generators/app_generator/templates/pom.xml
129
168
  - spec/lib/generators/scaffold_generator/attribute_spec.rb
130
169
  - spec/lib/generators/scaffold_generator/base_scaffold_spec.rb
131
170
  - spec/lib/generators/scaffold_generator/controller_generator/controller_generator_spec.rb
132
171
  - spec/lib/generators/scaffold_generator/controller_generator/templates/ProductController.java
133
172
  - spec/lib/generators/scaffold_generator/freemarker_generator/freemarker_generator_spec.rb
173
+ - spec/lib/generators/scaffold_generator/jsp_generator/jsp_generator_spec.rb
134
174
  - spec/lib/generators/scaffold_generator/model_generator/model_generator_spec.rb
135
175
  - spec/lib/generators/scaffold_generator/model_generator/templates/Product.java
136
176
  - spec/lib/generators/scaffold_generator/repository_generator/repository_generator_spec.rb
137
177
  - spec/lib/generators/scaffold_generator/repository_generator/templates/ProductRepository.java
178
+ - spec/lib/generators/scaffold_generator/repository_generator/templates/ProductRepositoryImpl.java
138
179
  - spec/lib/generators/scaffold_generator/scaffold_generator_spec.rb
139
180
  - spec/lib/vraptor-scaffold_spec.rb
181
+ - spec/resources/vraptor-scaffold.properties
140
182
  - spec/spec.opts
141
183
  - spec/spec_helper.rb
142
184
  - vraptor-scaffold.gemspec
143
185
  has_rdoc: true
144
- homepage: http://github.com/rodolfoliviero/vraptor-scaffold
186
+ homepage: http://github.com/caelum/vraptor-scaffold
145
187
  licenses: []
146
188
 
147
- post_install_message: Thank you for installing vraptor-scaffold. Please read http://github.com/rodolfoliviero/vraptor-scaffold/blob/master/README.rdoc for more information.
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.
148
190
  rdoc_options:
149
191
  - --charset=UTF-8
150
192
  require_paths:
@@ -161,29 +203,31 @@ required_ruby_version: !ruby/object:Gem::Requirement
161
203
  required_rubygems_version: !ruby/object:Gem::Requirement
162
204
  none: false
163
205
  requirements:
164
- - - ">"
206
+ - - ">="
165
207
  - !ruby/object:Gem::Version
166
- hash: 25
208
+ hash: 3
167
209
  segments:
168
- - 1
169
- - 3
170
- - 1
171
- version: 1.3.1
210
+ - 0
211
+ version: "0"
172
212
  requirements: []
173
213
 
174
214
  rubyforge_project:
175
215
  rubygems_version: 1.3.7
176
216
  signing_key:
177
217
  specification_version: 3
178
- summary: Scaffold for vraptor 3.
218
+ summary: VRaptor Scaffold.
179
219
  test_files:
180
- - spec/spec_helper.rb
220
+ - spec/lib/vraptor-scaffold_spec.rb
181
221
  - spec/lib/generators/app_generator/app_generator_spec.rb
222
+ - spec/lib/generators/app_generator/jsp_template_engine_spec.rb
223
+ - 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
182
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
183
229
  - spec/lib/generators/scaffold_generator/model_generator/model_generator_spec.rb
184
230
  - spec/lib/generators/scaffold_generator/freemarker_generator/freemarker_generator_spec.rb
185
231
  - spec/lib/generators/scaffold_generator/attribute_spec.rb
186
- - spec/lib/generators/scaffold_generator/scaffold_generator_spec.rb
187
- - spec/lib/generators/scaffold_generator/base_scaffold_spec.rb
188
- - spec/lib/generators/scaffold_generator/controller_generator/controller_generator_spec.rb
189
- - spec/lib/vraptor-scaffold_spec.rb
232
+ - spec/lib/configuration_spec.rb
233
+ - spec/spec_helper.rb