vraptor-scaffold 1.1.0 → 1.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (170) hide show
  1. data/.travis.yml +7 -0
  2. data/CHANGELOG.rdoc +164 -0
  3. data/Gemfile.lock +5 -8
  4. data/README.textile +20 -7
  5. data/bin/vraptor +1 -1
  6. data/index.sample.html +169 -0
  7. data/lib/vraptor-scaffold.rb +10 -29
  8. data/lib/vraptor-scaffold/configuration.rb +27 -4
  9. data/lib/vraptor-scaffold/execution.rb +24 -0
  10. data/lib/vraptor-scaffold/generators/app/app_generator.rb +196 -0
  11. data/lib/vraptor-scaffold/generators/{app_generator → app}/dependency.rb +0 -0
  12. data/lib/vraptor-scaffold/generators/app/dependency_manager.rb +53 -0
  13. data/lib/vraptor-scaffold/generators/{app_generator → app}/freemarker_template_engine.rb +0 -0
  14. data/lib/vraptor-scaffold/generators/{app_generator → app}/jsp_template_engine.rb +0 -0
  15. data/lib/vraptor-scaffold/generators/{app_generator → app}/templates/build.gradle.erb +19 -1
  16. data/lib/vraptor-scaffold/generators/{app_generator → app}/templates/build.properties.erb +0 -0
  17. data/lib/vraptor-scaffold/generators/{app_generator → app}/templates/build.xml +6 -2
  18. data/lib/vraptor-scaffold/generators/{app_generator → app}/templates/decorators.erb +0 -0
  19. data/lib/vraptor-scaffold/generators/{app_generator → app}/templates/eclipse/classpath.erb +0 -5
  20. data/lib/vraptor-scaffold/generators/{app_generator → app}/templates/eclipse/project.erb +0 -0
  21. data/lib/vraptor-scaffold/generators/{app_generator → app}/templates/eclipse/settings/org.eclipse.jdt.core.prefs +0 -0
  22. data/lib/vraptor-scaffold/generators/{app_generator → app}/templates/eclipse/settings/org.eclipse.wst.common.component.tt +0 -0
  23. data/lib/vraptor-scaffold/generators/{app_generator → app}/templates/eclipse/settings/org.eclipse.wst.common.project.facet.core.xml +0 -0
  24. data/lib/vraptor-scaffold/generators/{app_generator → app}/templates/eclipse/settings/org.eclipse.wst.jsdt.ui.superType.container +0 -0
  25. data/lib/vraptor-scaffold/generators/{app_generator → app}/templates/eclipse/settings/org.eclipse.wst.jsdt.ui.superType.name +0 -0
  26. data/lib/vraptor-scaffold/generators/{app_generator → app}/templates/freemarker/freemarker-web.xml +0 -0
  27. data/lib/vraptor-scaffold/generators/{app_generator → app}/templates/freemarker/infrastructure/FreemarkerPathResolver.java.tt +0 -0
  28. data/lib/vraptor-scaffold/generators/{app_generator → app}/templates/freemarker/macros/html.ftl +0 -0
  29. data/lib/vraptor-scaffold/generators/{app_generator → app}/templates/freemarker/main.ftl +0 -0
  30. data/lib/vraptor-scaffold/generators/app/templates/heroku/Main.java +21 -0
  31. data/lib/vraptor-scaffold/generators/app/templates/heroku/Procfile +1 -0
  32. data/lib/vraptor-scaffold/generators/{app_generator → app}/templates/ivy-2.2.0.jar +0 -0
  33. data/lib/vraptor-scaffold/generators/{app_generator → app}/templates/ivy.erb +1 -1
  34. data/lib/vraptor-scaffold/generators/{app_generator → app}/templates/jsp/jsp-web.xml +0 -0
  35. data/lib/vraptor-scaffold/generators/{app_generator → app}/templates/jsp/main.jsp +2 -2
  36. data/lib/vraptor-scaffold/generators/{app_generator → app}/templates/jsp/prelude.jspf +0 -0
  37. data/lib/vraptor-scaffold/generators/{app_generator/templates/src/models/Entity.java.tt → app/templates/models/Entity.erb} +1 -1
  38. data/lib/vraptor-scaffold/generators/app/templates/orm/Repository-hibernate.java.tt +50 -0
  39. data/lib/vraptor-scaffold/generators/{app_generator/templates/src/repositories/Repository.java.tt → app/templates/orm/Repository-jpa.java.tt} +3 -3
  40. data/lib/vraptor-scaffold/generators/app/templates/orm/hibernate.cfg.xml +7 -0
  41. data/lib/vraptor-scaffold/generators/app/templates/orm/persistence.xml +10 -0
  42. data/lib/vraptor-scaffold/generators/{app_generator → app}/templates/pom.erb +29 -13
  43. data/lib/vraptor-scaffold/generators/{app_generator → app}/templates/resources-test/.empty_directory +0 -0
  44. data/lib/vraptor-scaffold/generators/app/templates/resources/hibernate.properties +16 -0
  45. data/lib/vraptor-scaffold/generators/app/templates/resources/log4j.properties +4 -0
  46. data/lib/vraptor-scaffold/generators/{app_generator → app}/templates/resources/messages.properties +0 -0
  47. data/lib/vraptor-scaffold/generators/app/templates/vraptor-scaffold.erb +7 -0
  48. data/lib/vraptor-scaffold/generators/{app_generator/templates/webapp/WEB-INF/web.xml → app/templates/webapp/WEB-INF/web.xml.tt} +2 -2
  49. data/lib/vraptor-scaffold/generators/{app_generator/templates/src-test/controllers → app/templates/webapp/images}/.empty_directory +0 -0
  50. data/lib/vraptor-scaffold/generators/{app_generator → app}/templates/webapp/index.jsp +0 -0
  51. data/lib/vraptor-scaffold/generators/{app_generator → app}/templates/webapp/stylesheets/common.css +0 -0
  52. data/lib/vraptor-scaffold/generators/{app_generator → app}/templates/webapp/stylesheets/scaffold.css +0 -0
  53. data/lib/vraptor-scaffold/generators/{app_generator → app}/templates/webapp/stylesheets/stylesheets.css +0 -0
  54. data/lib/vraptor-scaffold/generators/plugin/plugin_generator.rb +42 -0
  55. data/lib/vraptor-scaffold/generators/plugin/vraptor_gem.rb +36 -0
  56. data/lib/vraptor-scaffold/generators/{scaffold_generator → scaffold}/attribute.rb +1 -1
  57. data/lib/vraptor-scaffold/generators/{scaffold_generator → scaffold}/base_scaffold.rb +6 -2
  58. data/lib/vraptor-scaffold/generators/{scaffold_generator → scaffold}/controller_generator/controller_generator.rb +3 -3
  59. data/lib/vraptor-scaffold/generators/{scaffold_generator → scaffold}/controller_generator/templates/controller.erb +3 -3
  60. data/lib/vraptor-scaffold/generators/{scaffold_generator → scaffold}/controller_generator/templates/controller_test.erb +1 -1
  61. data/lib/vraptor-scaffold/generators/scaffold/model_generator/model_generator.rb +20 -0
  62. data/lib/vraptor-scaffold/generators/{scaffold_generator → scaffold}/model_generator/templates/model.erb +3 -3
  63. data/lib/vraptor-scaffold/generators/{scaffold_generator → scaffold}/model_generator/templates/model_test.erb +1 -1
  64. data/lib/vraptor-scaffold/generators/scaffold/repository_generator/repository_generator.rb +27 -0
  65. data/lib/vraptor-scaffold/generators/{scaffold_generator → scaffold}/repository_generator/templates/repository.erb +3 -3
  66. data/lib/vraptor-scaffold/generators/scaffold/repository_generator/templates/repository_impl.erb +16 -0
  67. data/lib/vraptor-scaffold/generators/{scaffold_generator → scaffold}/repository_generator/templates/repository_test.erb +1 -1
  68. data/lib/vraptor-scaffold/generators/{scaffold_generator → scaffold}/scaffold_generator.rb +0 -0
  69. data/lib/vraptor-scaffold/generators/scaffold/template_engine_generator/freemarker_generator/freemarker_generator.rb +18 -0
  70. data/lib/vraptor-scaffold/generators/{scaffold_generator → scaffold/template_engine_generator}/freemarker_generator/templates/edit.erb +0 -0
  71. data/lib/vraptor-scaffold/generators/{scaffold_generator → scaffold/template_engine_generator}/freemarker_generator/templates/form.erb +4 -4
  72. data/lib/vraptor-scaffold/generators/scaffold/template_engine_generator/freemarker_generator/templates/index.erb +36 -0
  73. data/lib/vraptor-scaffold/generators/{scaffold_generator → scaffold/template_engine_generator}/freemarker_generator/templates/new.erb +0 -0
  74. data/lib/vraptor-scaffold/generators/scaffold/template_engine_generator/freemarker_generator/templates/show.erb +14 -0
  75. data/lib/vraptor-scaffold/generators/scaffold/template_engine_generator/jsp_generator/jsp_generator.rb +18 -0
  76. data/lib/vraptor-scaffold/generators/{scaffold_generator → scaffold/template_engine_generator}/jsp_generator/templates/edit.erb +0 -0
  77. data/lib/vraptor-scaffold/generators/{scaffold_generator → scaffold/template_engine_generator}/jsp_generator/templates/form.erb +4 -4
  78. data/lib/vraptor-scaffold/generators/{scaffold_generator → scaffold/template_engine_generator}/jsp_generator/templates/index.erb +6 -6
  79. data/lib/vraptor-scaffold/generators/{scaffold_generator → scaffold/template_engine_generator}/jsp_generator/templates/new.erb +0 -0
  80. data/lib/vraptor-scaffold/generators/scaffold/template_engine_generator/jsp_generator/templates/show.erb +14 -0
  81. data/lib/vraptor-scaffold/generators/scaffold/template_engine_generator/template_engine_generator.rb +21 -0
  82. data/lib/vraptor-scaffold/load_paths.rb +13 -21
  83. data/lib/vraptor-scaffold/runner.rb +11 -0
  84. data/lib/vraptor-scaffold/runner/commands_help.rb +13 -0
  85. data/lib/vraptor-scaffold/runner/configure.rb +21 -0
  86. data/lib/vraptor-scaffold/runner/generator.rb +15 -0
  87. data/lib/vraptor-scaffold/runner/help.rb +12 -0
  88. data/lib/vraptor-scaffold/runner/plugin.rb +19 -0
  89. data/lib/vraptor-scaffold/runner/scaffold.rb +16 -0
  90. data/lib/vraptor-scaffold/version.rb +1 -1
  91. data/spec/resources/vraptor-scaffold.properties +5 -0
  92. data/spec/simple_custom_plugin.rb +10 -0
  93. data/spec/spec_helper.rb +5 -6
  94. data/spec/vraptor-scaffold/configuration_spec.rb +88 -4
  95. data/spec/vraptor-scaffold/execution_spec.rb +47 -0
  96. data/spec/vraptor-scaffold/generators/{app_generator → app}/app_generator_spec.rb +136 -54
  97. data/spec/vraptor-scaffold/generators/{app_generator → app}/dependency_manager_spec.rb +1 -1
  98. data/spec/vraptor-scaffold/generators/{app_generator → app}/dependency_spec.rb +0 -0
  99. data/spec/vraptor-scaffold/generators/{app_generator → app}/freemarker_template_engine_spec.rb +1 -1
  100. data/spec/vraptor-scaffold/generators/{app_generator → app}/jsp_template_engine_spec.rb +0 -0
  101. data/spec/vraptor-scaffold/generators/{app_generator → app}/templates/Entity.java +1 -1
  102. data/spec/vraptor-scaffold/generators/{app_generator → app}/templates/FreemarkerPathResolver.java +0 -0
  103. data/spec/vraptor-scaffold/generators/{app_generator → app}/templates/Repository.java +3 -3
  104. data/spec/vraptor-scaffold/generators/{app_generator → app}/templates/build.gradle +24 -5
  105. data/spec/vraptor-scaffold/generators/{app_generator → app}/templates/build.properties +0 -0
  106. data/spec/vraptor-scaffold/generators/{app_generator → app}/templates/decorators-jsp.xml +0 -0
  107. data/spec/vraptor-scaffold/generators/{app_generator → app}/templates/decorators.xml +0 -0
  108. data/spec/vraptor-scaffold/generators/{app_generator → app}/templates/freemarker-web.xml +2 -2
  109. data/spec/vraptor-scaffold/generators/{app_generator → app}/templates/ivy.xml +6 -5
  110. data/spec/vraptor-scaffold/generators/{app_generator → app}/templates/jsp-web.xml +1 -1
  111. data/spec/vraptor-scaffold/generators/app/templates/pom-heroku.xml +168 -0
  112. data/spec/vraptor-scaffold/generators/{app_generator → app}/templates/pom.xml +11 -14
  113. data/spec/vraptor-scaffold/generators/app/templates/vraptor-scaffold.properties +7 -0
  114. data/spec/vraptor-scaffold/generators/plugin/expected_configs/build.gradle +61 -0
  115. data/spec/vraptor-scaffold/generators/plugin/expected_configs/default_org_build.gradle +61 -0
  116. data/spec/vraptor-scaffold/generators/plugin/expected_configs/default_org_ivy.xml +40 -0
  117. data/spec/vraptor-scaffold/generators/plugin/expected_configs/default_org_pom.xml +147 -0
  118. data/spec/vraptor-scaffold/generators/plugin/expected_configs/ivy.xml +40 -0
  119. data/spec/vraptor-scaffold/generators/plugin/expected_configs/pom.xml +147 -0
  120. data/spec/vraptor-scaffold/generators/plugin/plugin_generator_spec.rb +130 -0
  121. data/spec/vraptor-scaffold/generators/{scaffold_generator → scaffold}/attribute_spec.rb +13 -9
  122. data/spec/vraptor-scaffold/generators/scaffold/base_scaffold_spec.rb +73 -0
  123. data/spec/vraptor-scaffold/generators/{scaffold_generator → scaffold}/controller_generator/controller_generator_spec.rb +18 -9
  124. data/spec/vraptor-scaffold/generators/{scaffold_generator → scaffold}/controller_generator/templates/ProductController.java +3 -3
  125. data/spec/vraptor-scaffold/generators/scaffold/freemarker_generator/freemarker_generator_spec.rb +74 -0
  126. data/spec/vraptor-scaffold/generators/scaffold/jsp_generator/jsp_generator_spec.rb +75 -0
  127. data/spec/vraptor-scaffold/generators/scaffold/model_generator/model_generator_spec.rb +50 -0
  128. data/spec/vraptor-scaffold/generators/{scaffold_generator → scaffold}/model_generator/templates/Product.java +6 -6
  129. data/spec/vraptor-scaffold/generators/scaffold/model_generator/templates/hibernate.cfg.xml +8 -0
  130. data/spec/vraptor-scaffold/generators/scaffold/repository_generator/repository_generator_spec.rb +60 -0
  131. data/spec/vraptor-scaffold/generators/scaffold/repository_generator/templates/ClientRepository.java +22 -0
  132. data/spec/vraptor-scaffold/generators/scaffold/repository_generator/templates/ClientRepositoryImpl.java +16 -0
  133. data/spec/vraptor-scaffold/generators/{scaffold_generator → scaffold}/repository_generator/templates/ProductRepository.java +3 -3
  134. data/spec/vraptor-scaffold/generators/{scaffold_generator → scaffold}/repository_generator/templates/ProductRepositoryImpl.java +3 -3
  135. data/spec/vraptor-scaffold/generators/{scaffold_generator → scaffold}/scaffold_generator_spec.rb +0 -0
  136. data/spec/vraptor-scaffold/runner/commands_help_spec.rb +12 -0
  137. data/spec/vraptor-scaffold/runner/configure_spec.rb +12 -0
  138. data/spec/vraptor-scaffold/runner/generator_spec.rb +31 -0
  139. data/spec/vraptor-scaffold/runner/help_spec.rb +29 -0
  140. data/spec/vraptor-scaffold/runner/plugin_spec.rb +45 -0
  141. data/spec/vraptor-scaffold/runner/scaffold_spec.rb +35 -0
  142. data/spec/vraptor-scaffold_spec.rb +1 -94
  143. data/vraptor-scaffold.gemspec +3 -3
  144. metadata +137 -140
  145. data/History.txt +0 -128
  146. data/lib/vraptor-scaffold/generators/app_generator/app_generator.rb +0 -102
  147. data/lib/vraptor-scaffold/generators/app_generator/dependency_manager.rb +0 -37
  148. data/lib/vraptor-scaffold/generators/app_generator/templates/ivysettings.xml +0 -9
  149. data/lib/vraptor-scaffold/generators/app_generator/templates/resources/META-INF/persistence.xml +0 -20
  150. data/lib/vraptor-scaffold/generators/app_generator/templates/resources/log4j.properties +0 -4
  151. data/lib/vraptor-scaffold/generators/app_generator/templates/src-test/models/.empty_directory +0 -0
  152. data/lib/vraptor-scaffold/generators/app_generator/templates/src-test/repositories/.empty_directory +0 -0
  153. data/lib/vraptor-scaffold/generators/app_generator/templates/src/controllers/.empty_directory +0 -0
  154. data/lib/vraptor-scaffold/generators/app_generator/templates/vraptor-scaffold.erb +0 -2
  155. data/lib/vraptor-scaffold/generators/app_generator/templates/webapp/images/.empty_directory +0 -0
  156. data/lib/vraptor-scaffold/generators/app_generator/templates/webapp/javascripts/application.js +0 -0
  157. data/lib/vraptor-scaffold/generators/app_generator/templates/webapp/javascripts/jquery.min.js +0 -16
  158. data/lib/vraptor-scaffold/generators/scaffold_generator/freemarker_generator/freemarker_generator.rb +0 -22
  159. data/lib/vraptor-scaffold/generators/scaffold_generator/freemarker_generator/templates/index.erb +0 -36
  160. data/lib/vraptor-scaffold/generators/scaffold_generator/freemarker_generator/templates/show.erb +0 -14
  161. data/lib/vraptor-scaffold/generators/scaffold_generator/jsp_generator/jsp_generator.rb +0 -22
  162. data/lib/vraptor-scaffold/generators/scaffold_generator/jsp_generator/templates/show.erb +0 -14
  163. data/lib/vraptor-scaffold/generators/scaffold_generator/model_generator/model_generator.rb +0 -11
  164. data/lib/vraptor-scaffold/generators/scaffold_generator/repository_generator/repository_generator.rb +0 -12
  165. data/lib/vraptor-scaffold/generators/scaffold_generator/repository_generator/templates/repository_impl.erb +0 -16
  166. data/spec/vraptor-scaffold/generators/scaffold_generator/base_scaffold_spec.rb +0 -41
  167. data/spec/vraptor-scaffold/generators/scaffold_generator/freemarker_generator/freemarker_generator_spec.rb +0 -36
  168. data/spec/vraptor-scaffold/generators/scaffold_generator/jsp_generator/jsp_generator_spec.rb +0 -34
  169. data/spec/vraptor-scaffold/generators/scaffold_generator/model_generator/model_generator_spec.rb +0 -25
  170. data/spec/vraptor-scaffold/generators/scaffold_generator/repository_generator/repository_generator_spec.rb +0 -31
@@ -0,0 +1,60 @@
1
+ require File.expand_path(File.dirname(__FILE__) + "/../../../../spec_helper")
2
+
3
+ describe RepositoryGenerator do
4
+
5
+ after(:each) do
6
+ FileUtils.remove_dir("src")
7
+ end
8
+
9
+ context "JPA" do
10
+ before(:each) do
11
+ mock_config_file
12
+ @generator = RepositoryGenerator.new("product", build_attributes)
13
+ @generator.build
14
+ end
15
+
16
+ it "should create repository interface" do
17
+ source = File.join File.dirname(__FILE__), "templates", "ProductRepository.java"
18
+ destination = Configuration.main_class_path "repository", "ProductRepository.java"
19
+ exists_and_identical?(source, destination)
20
+ end
21
+
22
+ it "should create repository impl" do
23
+ source = File.join File.dirname(__FILE__), "templates", "ProductRepositoryImpl.java"
24
+ destination = Configuration.main_class_path "repository", "ProductRepositoryImpl.java"
25
+ exists_and_identical?(source, destination)
26
+ end
27
+
28
+ it "should create repository test" do
29
+ test_class = Configuration.test_class_path "repository", "ProductRepositoryImplTest.java"
30
+ File.exist?(test_class).should be_true
31
+ end
32
+ end
33
+
34
+ context "Hibernate" do
35
+ before(:each) do
36
+ config = {"template_engine" => "jsp", "package" => "app", "orm" => "hibernate",
37
+ "repositories_package" => "repository", "models_package" => "models"}
38
+ YAML.stub!(:load_file).with(Configuration::FILENAME).and_return(config)
39
+ @generator = RepositoryGenerator.new("client", build_attributes)
40
+ @generator.build
41
+ end
42
+
43
+ it "should create repository interface" do
44
+ source = File.join File.dirname(__FILE__), "templates", "ClientRepository.java"
45
+ destination = Configuration.main_class_path "repository", "ClientRepository.java"
46
+ exists_and_identical?(source, destination)
47
+ end
48
+
49
+ it "should create repository impl" do
50
+ source = File.join File.dirname(__FILE__), "templates", "ClientRepositoryImpl.java"
51
+ destination = Configuration.main_class_path "repository", "ClientRepositoryImpl.java"
52
+ exists_and_identical?(source, destination)
53
+ end
54
+
55
+ it "should create repository test" do
56
+ test_class = Configuration.test_class_path "repository", "ClientRepositoryImplTest.java"
57
+ File.exist?(test_class).should be_true
58
+ end
59
+ end
60
+ end
@@ -0,0 +1,22 @@
1
+ package app.repository;
2
+
3
+ import java.util.List;
4
+
5
+ import app.models.Client;
6
+
7
+ public interface ClientRepository {
8
+ /*
9
+ * Delete the methods you don't want to expose
10
+ */
11
+
12
+ void create(Client entity);
13
+
14
+ Client update(Client entity);
15
+
16
+ void destroy(Client entity);
17
+
18
+ Client find(Long id);
19
+
20
+ List<Client> findAll();
21
+
22
+ }
@@ -0,0 +1,16 @@
1
+ package app.repository;
2
+
3
+ import org.hibernate.Session;
4
+
5
+ import br.com.caelum.vraptor.ioc.Component;
6
+ import app.models.Client;
7
+
8
+ @Component
9
+ public class ClientRepositoryImpl
10
+ extends Repository<Client, Long>
11
+ implements ClientRepository {
12
+
13
+ ClientRepositoryImpl(Session session) {
14
+ super(session);
15
+ }
16
+ }
@@ -1,8 +1,8 @@
1
- package app.repositories;
1
+ package app.repository;
2
2
 
3
3
  import java.util.List;
4
4
 
5
- import app.models.Product;
5
+ import app.model.Product;
6
6
 
7
7
  public interface ProductRepository {
8
8
  /*
@@ -11,7 +11,7 @@ public interface ProductRepository {
11
11
 
12
12
  void create(Product entity);
13
13
 
14
- void update(Product entity);
14
+ Product update(Product entity);
15
15
 
16
16
  void destroy(Product entity);
17
17
 
@@ -1,12 +1,12 @@
1
- package app.repositories;
1
+ package app.repository;
2
2
 
3
3
  import javax.persistence.EntityManager;
4
4
 
5
5
  import br.com.caelum.vraptor.ioc.Component;
6
- import app.models.Product;
6
+ import app.model.Product;
7
7
 
8
8
  @Component
9
- public class ProductRepositoryImpl
9
+ public class ProductRepositoryImpl
10
10
  extends Repository<Product, Long>
11
11
  implements ProductRepository {
12
12
 
@@ -0,0 +1,12 @@
1
+ require "spec_helper"
2
+
3
+ describe VraptorScaffold::Runner::CommandsHelp do
4
+
5
+ it "should print commands help" do
6
+ Kernel.should_receive(:puts).with("Available runners for vraptor are: #{VraptorScaffold::COMMANDS.keys.join(', ')}")
7
+ Kernel.should_receive(:puts).with("Usage:")
8
+ Kernel.should_receive(:puts).with(" vraptor runner")
9
+ VraptorScaffold::Runner::CommandsHelp.new.run('')
10
+ end
11
+
12
+ end
@@ -0,0 +1,12 @@
1
+ require "spec_helper"
2
+
3
+ describe VraptorScaffold::Runner::Configure do
4
+
5
+ xit "should print commands help" do
6
+ args = ['simple_custom_plugin', 'extra_config']
7
+ plugin = VraptorScaffold::Runner::Configure.new.run(args)
8
+ plugin.invoked.should be == true
9
+ plugin.args.should be == args
10
+ end
11
+
12
+ end
@@ -0,0 +1,31 @@
1
+ require "spec_helper"
2
+
3
+ describe VraptorScaffold::Runner::Generator do
4
+
5
+ before(:all) do
6
+ @help = VraptorScaffold::Runner::Help
7
+ @generator_runner = VraptorScaffold::Runner::Generator
8
+ end
9
+
10
+ it "should print help command" do
11
+ @help.stub!(:help).with("--help").and_return true
12
+ AppGenerator.should_receive(:start).with(["-h"])
13
+ @generator_runner.new.run(["--help"])
14
+ end
15
+
16
+ context "app generator" do
17
+ before(:each) do
18
+ @generator = mock(AppGenerator)
19
+ project_name = "vraptor-scaffold"
20
+ option = "--package=br.com.caelum"
21
+ @args = [project_name, option]
22
+ AppGenerator.stub!(:new).with(project_name, [option]).and_return(@generator)
23
+ end
24
+
25
+ it "should invoke all app generator tasks when typed new" do
26
+ @help.stub!(:help).and_return false
27
+ @generator.should_receive(:invoke_all)
28
+ @generator_runner.new.run(@args)
29
+ end
30
+ end
31
+ end
@@ -0,0 +1,29 @@
1
+ require "spec_helper"
2
+
3
+ describe VraptorScaffold::Runner::Help do
4
+
5
+ before(:all) do
6
+ @help = VraptorScaffold::Runner::Help
7
+ end
8
+
9
+ context "user asking to see vraptor help" do
10
+
11
+ it "should be true when nil" do
12
+ @help.help?(nil).should be_true
13
+ end
14
+
15
+ it "should be true when -h" do
16
+ @help.help?('-h').should be_true
17
+ end
18
+
19
+ it "should be true when --help" do
20
+ @help.help?('--help').should be_true
21
+ end
22
+
23
+ it "should be false otherwise" do
24
+ @help.help?('scaffold').should be_false
25
+ end
26
+
27
+ end
28
+
29
+ end
@@ -0,0 +1,45 @@
1
+ require "spec_helper"
2
+
3
+ describe VraptorScaffold::Runner::Plugin do
4
+
5
+ before(:all) do
6
+ @help = VraptorScaffold::Runner::Help
7
+ @plugin_runner = VraptorScaffold::Runner::Plugin
8
+ end
9
+
10
+ context "help command" do
11
+ before :each do
12
+ @help.stub!(:help).with("--help").and_return true
13
+ PluginGenerator.should_receive(:start).with(["-h"])
14
+ end
15
+
16
+ it "should ptin when options --help" do
17
+ @plugin_runner.new.run(["--help"])
18
+ end
19
+
20
+ it "should print when args is less than 2" do
21
+ @plugin_runner.new.run(["simplemail"])
22
+ end
23
+ end
24
+
25
+ context "plugin generator" do
26
+ before(:each) do
27
+ @generator = mock(PluginGenerator)
28
+ @name = "simplemail"
29
+ @args = [@name, "-v=1.0.0"]
30
+ end
31
+
32
+ it "should invoke plugin tasks" do
33
+ File.stub!(:exist?).and_return(true)
34
+ PluginGenerator.stub!(:new).with(@name, @args).and_return(@generator)
35
+ @generator.should_receive(:invoke_all)
36
+ @plugin_runner.new.run(@args)
37
+ end
38
+
39
+ it "cannot invoke plugin generator outsite root folder" do
40
+ File.stub!(:exist?).and_return(false)
41
+ PluginGenerator.should_not_receive(:new)
42
+ @plugin_runner.new.run(@args)
43
+ end
44
+ end
45
+ end
@@ -0,0 +1,35 @@
1
+ require "spec_helper"
2
+
3
+ describe VraptorScaffold::Runner::Scaffold do
4
+
5
+ before(:all) do
6
+ @help = VraptorScaffold::Runner::Help
7
+ @scaffold_runner = VraptorScaffold::Runner::Scaffold
8
+ end
9
+
10
+ it "should print help command" do
11
+ @help.stub!(:help).with("--help").and_return true
12
+ ScaffoldGenerator.should_receive(:start).with(["-h"])
13
+ @scaffold_runner.new.run(["--help"])
14
+ end
15
+
16
+ context "scaffold generator" do
17
+ before(:each) do
18
+ @generator = mock(ScaffoldGenerator)
19
+ @args = ["product", "name:string", "value:double"]
20
+ end
21
+
22
+ it "should invoke all scaffold generator tasks" do
23
+ File.stub!(:exist?).and_return(true)
24
+ ScaffoldGenerator.stub!(:new).with(@args).and_return(@generator)
25
+ @generator.should_receive(:invoke_all)
26
+ @scaffold_runner.new.run(@args)
27
+ end
28
+
29
+ it "cannot invoke scaffold generator outsite root folder" do
30
+ File.stub!(:exist?).and_return(false)
31
+ ScaffoldGenerator.should_not_receive(:new)
32
+ @scaffold_runner.new.run(@args)
33
+ end
34
+ end
35
+ end
@@ -1,97 +1,4 @@
1
1
  require "spec_helper"
2
2
 
3
3
  describe VraptorScaffold 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.execute([])
16
- end
17
-
18
- it "should print help when vraptor -h" do
19
- VraptorScaffold.execute(["-h"])
20
- end
21
-
22
- it "should print help when vraptor --help" do
23
- VraptorScaffold.execute(["--help"])
24
- end
25
-
26
- it "should print help when vraptor new" do
27
- VraptorScaffold.execute(["new"])
28
- end
29
-
30
- it "should print help when vraptor new -h" do
31
- VraptorScaffold.execute(["new", "-h"])
32
- end
33
-
34
- it "should print help when vraptor new --help" do
35
- VraptorScaffold.execute(["new", "--help"])
36
- end
37
- end
38
-
39
- context "app generator" do
40
- before(:each) do
41
- @generator = mock(AppGenerator)
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)
46
- end
47
-
48
- it "should invoke all app generator tasks when typed new" do
49
- @generator.should_receive(:invoke_all)
50
- VraptorScaffold.execute(@args)
51
- end
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.execute(["scaffold"])
66
- end
67
-
68
- it "should print help when vraptor scaffold -h" do
69
- VraptorScaffold.execute(["scaffold", "-h"])
70
- end
71
-
72
- it "should print help when vraptor scaffold --help" do
73
- VraptorScaffold.execute(["scaffold", "--help"])
74
- end
75
- end
76
-
77
- context "scaffold generator" do
78
- before(:each) do
79
- @generator = mock(ScaffoldGenerator)
80
- @args = ["scaffold", "product", "name:string", "value:doulbe"]
81
- ScaffoldGenerator.stub!(:new).with(@args).and_return(@generator)
82
- end
83
-
84
- it "should invoke all scaffold generator tasks" do
85
- File.stub!(:exist?).and_return(true)
86
- @generator.should_receive(:invoke_all)
87
- VraptorScaffold.execute(@args)
88
- end
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.execute(@args)
95
- end
96
- end
97
- end
4
+ end
@@ -15,9 +15,9 @@ Gem::Specification.new do |s|
15
15
 
16
16
  s.add_dependency('thor', '0.14.6')
17
17
  s.add_dependency('activesupport', "3.0.1")
18
- s.add_dependency('rake', '0.8.7')
18
+ s.add_dependency('rake', '0.9.2')
19
19
 
20
- s.add_development_dependency('rspec', '1.3.1')
20
+ s.add_development_dependency('rspec', '1.3.2')
21
21
  s.add_development_dependency('ZenTest', '4.4.0')
22
22
  s.add_development_dependency('rcov', '0.9.9')
23
23
 
@@ -25,4 +25,4 @@ Gem::Specification.new do |s|
25
25
  s.test_files = `git ls-files -- {spec}/*`.split("\n")
26
26
  s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
27
27
  s.require_paths = ["lib"]
28
- end
28
+ end
metadata CHANGED
@@ -1,12 +1,8 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vraptor-scaffold
3
3
  version: !ruby/object:Gem::Version
4
- prerelease: false
5
- segments:
6
- - 1
7
- - 1
8
- - 0
9
- version: 1.1.0
4
+ prerelease:
5
+ version: 1.2.0
10
6
  platform: ruby
11
7
  authors:
12
8
  - Rodolfo Liviero
@@ -14,8 +10,7 @@ autorequire:
14
10
  bindir: bin
15
11
  cert_chain: []
16
12
 
17
- date: 2011-03-02 00:00:00 -03:00
18
- default_executable:
13
+ date: 2011-09-10 00:00:00 Z
19
14
  dependencies:
20
15
  - !ruby/object:Gem::Dependency
21
16
  name: thor
@@ -25,10 +20,6 @@ dependencies:
25
20
  requirements:
26
21
  - - "="
27
22
  - !ruby/object:Gem::Version
28
- segments:
29
- - 0
30
- - 14
31
- - 6
32
23
  version: 0.14.6
33
24
  type: :runtime
34
25
  version_requirements: *id001
@@ -40,10 +31,6 @@ dependencies:
40
31
  requirements:
41
32
  - - "="
42
33
  - !ruby/object:Gem::Version
43
- segments:
44
- - 3
45
- - 0
46
- - 1
47
34
  version: 3.0.1
48
35
  type: :runtime
49
36
  version_requirements: *id002
@@ -55,11 +42,7 @@ dependencies:
55
42
  requirements:
56
43
  - - "="
57
44
  - !ruby/object:Gem::Version
58
- segments:
59
- - 0
60
- - 8
61
- - 7
62
- version: 0.8.7
45
+ version: 0.9.2
63
46
  type: :runtime
64
47
  version_requirements: *id003
65
48
  - !ruby/object:Gem::Dependency
@@ -70,11 +53,7 @@ dependencies:
70
53
  requirements:
71
54
  - - "="
72
55
  - !ruby/object:Gem::Version
73
- segments:
74
- - 1
75
- - 3
76
- - 1
77
- version: 1.3.1
56
+ version: 1.3.2
78
57
  type: :development
79
58
  version_requirements: *id004
80
59
  - !ruby/object:Gem::Dependency
@@ -85,10 +64,6 @@ dependencies:
85
64
  requirements:
86
65
  - - "="
87
66
  - !ruby/object:Gem::Version
88
- segments:
89
- - 4
90
- - 4
91
- - 0
92
67
  version: 4.4.0
93
68
  type: :development
94
69
  version_requirements: *id005
@@ -100,10 +75,6 @@ dependencies:
100
75
  requirements:
101
76
  - - "="
102
77
  - !ruby/object:Gem::Version
103
- segments:
104
- - 0
105
- - 9
106
- - 9
107
78
  version: 0.9.9
108
79
  type: :development
109
80
  version_requirements: *id006
@@ -117,124 +88,154 @@ extra_rdoc_files: []
117
88
 
118
89
  files:
119
90
  - .gitignore
91
+ - .travis.yml
92
+ - CHANGELOG.rdoc
120
93
  - Gemfile
121
94
  - Gemfile.lock
122
- - History.txt
123
95
  - LICENSE
124
96
  - README.textile
125
97
  - Rakefile
126
98
  - bin/vraptor
99
+ - index.sample.html
127
100
  - lib/vraptor-scaffold.rb
128
101
  - lib/vraptor-scaffold/configuration.rb
129
- - lib/vraptor-scaffold/generators/app_generator/app_generator.rb
130
- - lib/vraptor-scaffold/generators/app_generator/dependency.rb
131
- - lib/vraptor-scaffold/generators/app_generator/dependency_manager.rb
132
- - lib/vraptor-scaffold/generators/app_generator/freemarker_template_engine.rb
133
- - lib/vraptor-scaffold/generators/app_generator/jsp_template_engine.rb
134
- - lib/vraptor-scaffold/generators/app_generator/templates/build.gradle.erb
135
- - lib/vraptor-scaffold/generators/app_generator/templates/build.properties.erb
136
- - lib/vraptor-scaffold/generators/app_generator/templates/build.xml
137
- - lib/vraptor-scaffold/generators/app_generator/templates/decorators.erb
138
- - lib/vraptor-scaffold/generators/app_generator/templates/eclipse/classpath.erb
139
- - lib/vraptor-scaffold/generators/app_generator/templates/eclipse/project.erb
140
- - lib/vraptor-scaffold/generators/app_generator/templates/eclipse/settings/org.eclipse.jdt.core.prefs
141
- - lib/vraptor-scaffold/generators/app_generator/templates/eclipse/settings/org.eclipse.wst.common.component.tt
142
- - lib/vraptor-scaffold/generators/app_generator/templates/eclipse/settings/org.eclipse.wst.common.project.facet.core.xml
143
- - lib/vraptor-scaffold/generators/app_generator/templates/eclipse/settings/org.eclipse.wst.jsdt.ui.superType.container
144
- - lib/vraptor-scaffold/generators/app_generator/templates/eclipse/settings/org.eclipse.wst.jsdt.ui.superType.name
145
- - lib/vraptor-scaffold/generators/app_generator/templates/freemarker/freemarker-web.xml
146
- - lib/vraptor-scaffold/generators/app_generator/templates/freemarker/infrastructure/FreemarkerPathResolver.java.tt
147
- - lib/vraptor-scaffold/generators/app_generator/templates/freemarker/macros/html.ftl
148
- - lib/vraptor-scaffold/generators/app_generator/templates/freemarker/main.ftl
149
- - lib/vraptor-scaffold/generators/app_generator/templates/ivy-2.2.0.jar
150
- - lib/vraptor-scaffold/generators/app_generator/templates/ivy.erb
151
- - lib/vraptor-scaffold/generators/app_generator/templates/ivysettings.xml
152
- - lib/vraptor-scaffold/generators/app_generator/templates/jsp/jsp-web.xml
153
- - lib/vraptor-scaffold/generators/app_generator/templates/jsp/main.jsp
154
- - lib/vraptor-scaffold/generators/app_generator/templates/jsp/prelude.jspf
155
- - lib/vraptor-scaffold/generators/app_generator/templates/pom.erb
156
- - lib/vraptor-scaffold/generators/app_generator/templates/resources-test/.empty_directory
157
- - lib/vraptor-scaffold/generators/app_generator/templates/resources/META-INF/persistence.xml
158
- - lib/vraptor-scaffold/generators/app_generator/templates/resources/log4j.properties
159
- - lib/vraptor-scaffold/generators/app_generator/templates/resources/messages.properties
160
- - lib/vraptor-scaffold/generators/app_generator/templates/src-test/controllers/.empty_directory
161
- - lib/vraptor-scaffold/generators/app_generator/templates/src-test/models/.empty_directory
162
- - lib/vraptor-scaffold/generators/app_generator/templates/src-test/repositories/.empty_directory
163
- - lib/vraptor-scaffold/generators/app_generator/templates/src/controllers/.empty_directory
164
- - lib/vraptor-scaffold/generators/app_generator/templates/src/models/Entity.java.tt
165
- - lib/vraptor-scaffold/generators/app_generator/templates/src/repositories/Repository.java.tt
166
- - lib/vraptor-scaffold/generators/app_generator/templates/vraptor-scaffold.erb
167
- - lib/vraptor-scaffold/generators/app_generator/templates/webapp/WEB-INF/web.xml
168
- - lib/vraptor-scaffold/generators/app_generator/templates/webapp/images/.empty_directory
169
- - lib/vraptor-scaffold/generators/app_generator/templates/webapp/index.jsp
170
- - lib/vraptor-scaffold/generators/app_generator/templates/webapp/javascripts/application.js
171
- - lib/vraptor-scaffold/generators/app_generator/templates/webapp/javascripts/jquery.min.js
172
- - lib/vraptor-scaffold/generators/app_generator/templates/webapp/stylesheets/common.css
173
- - lib/vraptor-scaffold/generators/app_generator/templates/webapp/stylesheets/scaffold.css
174
- - lib/vraptor-scaffold/generators/app_generator/templates/webapp/stylesheets/stylesheets.css
102
+ - lib/vraptor-scaffold/execution.rb
103
+ - lib/vraptor-scaffold/generators/app/app_generator.rb
104
+ - lib/vraptor-scaffold/generators/app/dependency.rb
105
+ - lib/vraptor-scaffold/generators/app/dependency_manager.rb
106
+ - lib/vraptor-scaffold/generators/app/freemarker_template_engine.rb
107
+ - lib/vraptor-scaffold/generators/app/jsp_template_engine.rb
108
+ - lib/vraptor-scaffold/generators/app/templates/build.gradle.erb
109
+ - lib/vraptor-scaffold/generators/app/templates/build.properties.erb
110
+ - lib/vraptor-scaffold/generators/app/templates/build.xml
111
+ - lib/vraptor-scaffold/generators/app/templates/decorators.erb
112
+ - lib/vraptor-scaffold/generators/app/templates/eclipse/classpath.erb
113
+ - lib/vraptor-scaffold/generators/app/templates/eclipse/project.erb
114
+ - lib/vraptor-scaffold/generators/app/templates/eclipse/settings/org.eclipse.jdt.core.prefs
115
+ - lib/vraptor-scaffold/generators/app/templates/eclipse/settings/org.eclipse.wst.common.component.tt
116
+ - lib/vraptor-scaffold/generators/app/templates/eclipse/settings/org.eclipse.wst.common.project.facet.core.xml
117
+ - lib/vraptor-scaffold/generators/app/templates/eclipse/settings/org.eclipse.wst.jsdt.ui.superType.container
118
+ - lib/vraptor-scaffold/generators/app/templates/eclipse/settings/org.eclipse.wst.jsdt.ui.superType.name
119
+ - lib/vraptor-scaffold/generators/app/templates/freemarker/freemarker-web.xml
120
+ - lib/vraptor-scaffold/generators/app/templates/freemarker/infrastructure/FreemarkerPathResolver.java.tt
121
+ - lib/vraptor-scaffold/generators/app/templates/freemarker/macros/html.ftl
122
+ - lib/vraptor-scaffold/generators/app/templates/freemarker/main.ftl
123
+ - lib/vraptor-scaffold/generators/app/templates/heroku/Main.java
124
+ - lib/vraptor-scaffold/generators/app/templates/heroku/Procfile
125
+ - lib/vraptor-scaffold/generators/app/templates/ivy-2.2.0.jar
126
+ - lib/vraptor-scaffold/generators/app/templates/ivy.erb
127
+ - lib/vraptor-scaffold/generators/app/templates/jsp/jsp-web.xml
128
+ - lib/vraptor-scaffold/generators/app/templates/jsp/main.jsp
129
+ - lib/vraptor-scaffold/generators/app/templates/jsp/prelude.jspf
130
+ - lib/vraptor-scaffold/generators/app/templates/models/Entity.erb
131
+ - lib/vraptor-scaffold/generators/app/templates/orm/Repository-hibernate.java.tt
132
+ - lib/vraptor-scaffold/generators/app/templates/orm/Repository-jpa.java.tt
133
+ - lib/vraptor-scaffold/generators/app/templates/orm/hibernate.cfg.xml
134
+ - lib/vraptor-scaffold/generators/app/templates/orm/persistence.xml
135
+ - lib/vraptor-scaffold/generators/app/templates/pom.erb
136
+ - lib/vraptor-scaffold/generators/app/templates/resources-test/.empty_directory
137
+ - lib/vraptor-scaffold/generators/app/templates/resources/hibernate.properties
138
+ - lib/vraptor-scaffold/generators/app/templates/resources/log4j.properties
139
+ - lib/vraptor-scaffold/generators/app/templates/resources/messages.properties
140
+ - lib/vraptor-scaffold/generators/app/templates/vraptor-scaffold.erb
141
+ - lib/vraptor-scaffold/generators/app/templates/webapp/WEB-INF/web.xml.tt
142
+ - lib/vraptor-scaffold/generators/app/templates/webapp/images/.empty_directory
143
+ - lib/vraptor-scaffold/generators/app/templates/webapp/index.jsp
144
+ - lib/vraptor-scaffold/generators/app/templates/webapp/stylesheets/common.css
145
+ - lib/vraptor-scaffold/generators/app/templates/webapp/stylesheets/scaffold.css
146
+ - lib/vraptor-scaffold/generators/app/templates/webapp/stylesheets/stylesheets.css
175
147
  - lib/vraptor-scaffold/generators/base.rb
176
- - lib/vraptor-scaffold/generators/scaffold_generator/attribute.rb
177
- - lib/vraptor-scaffold/generators/scaffold_generator/base_scaffold.rb
178
- - lib/vraptor-scaffold/generators/scaffold_generator/controller_generator/controller_generator.rb
179
- - lib/vraptor-scaffold/generators/scaffold_generator/controller_generator/templates/controller.erb
180
- - lib/vraptor-scaffold/generators/scaffold_generator/controller_generator/templates/controller_test.erb
181
- - lib/vraptor-scaffold/generators/scaffold_generator/freemarker_generator/freemarker_generator.rb
182
- - lib/vraptor-scaffold/generators/scaffold_generator/freemarker_generator/templates/edit.erb
183
- - lib/vraptor-scaffold/generators/scaffold_generator/freemarker_generator/templates/form.erb
184
- - lib/vraptor-scaffold/generators/scaffold_generator/freemarker_generator/templates/index.erb
185
- - lib/vraptor-scaffold/generators/scaffold_generator/freemarker_generator/templates/new.erb
186
- - lib/vraptor-scaffold/generators/scaffold_generator/freemarker_generator/templates/show.erb
187
- - lib/vraptor-scaffold/generators/scaffold_generator/jsp_generator/jsp_generator.rb
188
- - lib/vraptor-scaffold/generators/scaffold_generator/jsp_generator/templates/edit.erb
189
- - lib/vraptor-scaffold/generators/scaffold_generator/jsp_generator/templates/form.erb
190
- - lib/vraptor-scaffold/generators/scaffold_generator/jsp_generator/templates/index.erb
191
- - lib/vraptor-scaffold/generators/scaffold_generator/jsp_generator/templates/new.erb
192
- - lib/vraptor-scaffold/generators/scaffold_generator/jsp_generator/templates/show.erb
193
- - lib/vraptor-scaffold/generators/scaffold_generator/model_generator/model_generator.rb
194
- - lib/vraptor-scaffold/generators/scaffold_generator/model_generator/templates/model.erb
195
- - lib/vraptor-scaffold/generators/scaffold_generator/model_generator/templates/model_test.erb
196
- - lib/vraptor-scaffold/generators/scaffold_generator/repository_generator/repository_generator.rb
197
- - lib/vraptor-scaffold/generators/scaffold_generator/repository_generator/templates/repository.erb
198
- - lib/vraptor-scaffold/generators/scaffold_generator/repository_generator/templates/repository_impl.erb
199
- - lib/vraptor-scaffold/generators/scaffold_generator/repository_generator/templates/repository_test.erb
200
- - lib/vraptor-scaffold/generators/scaffold_generator/scaffold_generator.rb
148
+ - lib/vraptor-scaffold/generators/plugin/plugin_generator.rb
149
+ - lib/vraptor-scaffold/generators/plugin/vraptor_gem.rb
150
+ - lib/vraptor-scaffold/generators/scaffold/attribute.rb
151
+ - lib/vraptor-scaffold/generators/scaffold/base_scaffold.rb
152
+ - lib/vraptor-scaffold/generators/scaffold/controller_generator/controller_generator.rb
153
+ - lib/vraptor-scaffold/generators/scaffold/controller_generator/templates/controller.erb
154
+ - lib/vraptor-scaffold/generators/scaffold/controller_generator/templates/controller_test.erb
155
+ - lib/vraptor-scaffold/generators/scaffold/model_generator/model_generator.rb
156
+ - lib/vraptor-scaffold/generators/scaffold/model_generator/templates/model.erb
157
+ - lib/vraptor-scaffold/generators/scaffold/model_generator/templates/model_test.erb
158
+ - lib/vraptor-scaffold/generators/scaffold/repository_generator/repository_generator.rb
159
+ - lib/vraptor-scaffold/generators/scaffold/repository_generator/templates/repository.erb
160
+ - lib/vraptor-scaffold/generators/scaffold/repository_generator/templates/repository_impl.erb
161
+ - lib/vraptor-scaffold/generators/scaffold/repository_generator/templates/repository_test.erb
162
+ - lib/vraptor-scaffold/generators/scaffold/scaffold_generator.rb
163
+ - lib/vraptor-scaffold/generators/scaffold/template_engine_generator/freemarker_generator/freemarker_generator.rb
164
+ - lib/vraptor-scaffold/generators/scaffold/template_engine_generator/freemarker_generator/templates/edit.erb
165
+ - lib/vraptor-scaffold/generators/scaffold/template_engine_generator/freemarker_generator/templates/form.erb
166
+ - lib/vraptor-scaffold/generators/scaffold/template_engine_generator/freemarker_generator/templates/index.erb
167
+ - lib/vraptor-scaffold/generators/scaffold/template_engine_generator/freemarker_generator/templates/new.erb
168
+ - lib/vraptor-scaffold/generators/scaffold/template_engine_generator/freemarker_generator/templates/show.erb
169
+ - lib/vraptor-scaffold/generators/scaffold/template_engine_generator/jsp_generator/jsp_generator.rb
170
+ - lib/vraptor-scaffold/generators/scaffold/template_engine_generator/jsp_generator/templates/edit.erb
171
+ - lib/vraptor-scaffold/generators/scaffold/template_engine_generator/jsp_generator/templates/form.erb
172
+ - lib/vraptor-scaffold/generators/scaffold/template_engine_generator/jsp_generator/templates/index.erb
173
+ - lib/vraptor-scaffold/generators/scaffold/template_engine_generator/jsp_generator/templates/new.erb
174
+ - lib/vraptor-scaffold/generators/scaffold/template_engine_generator/jsp_generator/templates/show.erb
175
+ - lib/vraptor-scaffold/generators/scaffold/template_engine_generator/template_engine_generator.rb
201
176
  - lib/vraptor-scaffold/load_paths.rb
177
+ - lib/vraptor-scaffold/runner.rb
178
+ - lib/vraptor-scaffold/runner/commands_help.rb
179
+ - lib/vraptor-scaffold/runner/configure.rb
180
+ - lib/vraptor-scaffold/runner/generator.rb
181
+ - lib/vraptor-scaffold/runner/help.rb
182
+ - lib/vraptor-scaffold/runner/plugin.rb
183
+ - lib/vraptor-scaffold/runner/scaffold.rb
202
184
  - lib/vraptor-scaffold/version.rb
203
185
  - spec/resources/vraptor-scaffold.properties
186
+ - spec/simple_custom_plugin.rb
204
187
  - spec/spec.opts
205
188
  - spec/spec_helper.rb
206
189
  - spec/vraptor-scaffold/configuration_spec.rb
207
- - spec/vraptor-scaffold/generators/app_generator/app_generator_spec.rb
208
- - spec/vraptor-scaffold/generators/app_generator/dependency_manager_spec.rb
209
- - spec/vraptor-scaffold/generators/app_generator/dependency_spec.rb
210
- - spec/vraptor-scaffold/generators/app_generator/freemarker_template_engine_spec.rb
211
- - spec/vraptor-scaffold/generators/app_generator/jsp_template_engine_spec.rb
212
- - spec/vraptor-scaffold/generators/app_generator/templates/Entity.java
213
- - spec/vraptor-scaffold/generators/app_generator/templates/FreemarkerPathResolver.java
214
- - spec/vraptor-scaffold/generators/app_generator/templates/Repository.java
215
- - spec/vraptor-scaffold/generators/app_generator/templates/build.gradle
216
- - spec/vraptor-scaffold/generators/app_generator/templates/build.properties
217
- - spec/vraptor-scaffold/generators/app_generator/templates/decorators-jsp.xml
218
- - spec/vraptor-scaffold/generators/app_generator/templates/decorators.xml
219
- - spec/vraptor-scaffold/generators/app_generator/templates/freemarker-web.xml
220
- - spec/vraptor-scaffold/generators/app_generator/templates/ivy.xml
221
- - spec/vraptor-scaffold/generators/app_generator/templates/jsp-web.xml
222
- - spec/vraptor-scaffold/generators/app_generator/templates/pom.xml
223
- - spec/vraptor-scaffold/generators/scaffold_generator/attribute_spec.rb
224
- - spec/vraptor-scaffold/generators/scaffold_generator/base_scaffold_spec.rb
225
- - spec/vraptor-scaffold/generators/scaffold_generator/controller_generator/controller_generator_spec.rb
226
- - spec/vraptor-scaffold/generators/scaffold_generator/controller_generator/templates/ProductController.java
227
- - spec/vraptor-scaffold/generators/scaffold_generator/freemarker_generator/freemarker_generator_spec.rb
228
- - spec/vraptor-scaffold/generators/scaffold_generator/jsp_generator/jsp_generator_spec.rb
229
- - spec/vraptor-scaffold/generators/scaffold_generator/model_generator/model_generator_spec.rb
230
- - spec/vraptor-scaffold/generators/scaffold_generator/model_generator/templates/Product.java
231
- - spec/vraptor-scaffold/generators/scaffold_generator/repository_generator/repository_generator_spec.rb
232
- - spec/vraptor-scaffold/generators/scaffold_generator/repository_generator/templates/ProductRepository.java
233
- - spec/vraptor-scaffold/generators/scaffold_generator/repository_generator/templates/ProductRepositoryImpl.java
234
- - spec/vraptor-scaffold/generators/scaffold_generator/scaffold_generator_spec.rb
190
+ - spec/vraptor-scaffold/execution_spec.rb
191
+ - spec/vraptor-scaffold/generators/app/app_generator_spec.rb
192
+ - spec/vraptor-scaffold/generators/app/dependency_manager_spec.rb
193
+ - spec/vraptor-scaffold/generators/app/dependency_spec.rb
194
+ - spec/vraptor-scaffold/generators/app/freemarker_template_engine_spec.rb
195
+ - spec/vraptor-scaffold/generators/app/jsp_template_engine_spec.rb
196
+ - spec/vraptor-scaffold/generators/app/templates/Entity.java
197
+ - spec/vraptor-scaffold/generators/app/templates/FreemarkerPathResolver.java
198
+ - spec/vraptor-scaffold/generators/app/templates/Repository.java
199
+ - spec/vraptor-scaffold/generators/app/templates/build.gradle
200
+ - spec/vraptor-scaffold/generators/app/templates/build.properties
201
+ - spec/vraptor-scaffold/generators/app/templates/decorators-jsp.xml
202
+ - spec/vraptor-scaffold/generators/app/templates/decorators.xml
203
+ - spec/vraptor-scaffold/generators/app/templates/freemarker-web.xml
204
+ - spec/vraptor-scaffold/generators/app/templates/ivy.xml
205
+ - spec/vraptor-scaffold/generators/app/templates/jsp-web.xml
206
+ - spec/vraptor-scaffold/generators/app/templates/pom-heroku.xml
207
+ - spec/vraptor-scaffold/generators/app/templates/pom.xml
208
+ - spec/vraptor-scaffold/generators/app/templates/vraptor-scaffold.properties
209
+ - spec/vraptor-scaffold/generators/plugin/expected_configs/build.gradle
210
+ - spec/vraptor-scaffold/generators/plugin/expected_configs/default_org_build.gradle
211
+ - spec/vraptor-scaffold/generators/plugin/expected_configs/default_org_ivy.xml
212
+ - spec/vraptor-scaffold/generators/plugin/expected_configs/default_org_pom.xml
213
+ - spec/vraptor-scaffold/generators/plugin/expected_configs/ivy.xml
214
+ - spec/vraptor-scaffold/generators/plugin/expected_configs/pom.xml
215
+ - spec/vraptor-scaffold/generators/plugin/plugin_generator_spec.rb
216
+ - spec/vraptor-scaffold/generators/scaffold/attribute_spec.rb
217
+ - spec/vraptor-scaffold/generators/scaffold/base_scaffold_spec.rb
218
+ - spec/vraptor-scaffold/generators/scaffold/controller_generator/controller_generator_spec.rb
219
+ - spec/vraptor-scaffold/generators/scaffold/controller_generator/templates/ProductController.java
220
+ - spec/vraptor-scaffold/generators/scaffold/freemarker_generator/freemarker_generator_spec.rb
221
+ - spec/vraptor-scaffold/generators/scaffold/jsp_generator/jsp_generator_spec.rb
222
+ - spec/vraptor-scaffold/generators/scaffold/model_generator/model_generator_spec.rb
223
+ - spec/vraptor-scaffold/generators/scaffold/model_generator/templates/Product.java
224
+ - spec/vraptor-scaffold/generators/scaffold/model_generator/templates/hibernate.cfg.xml
225
+ - spec/vraptor-scaffold/generators/scaffold/repository_generator/repository_generator_spec.rb
226
+ - spec/vraptor-scaffold/generators/scaffold/repository_generator/templates/ClientRepository.java
227
+ - spec/vraptor-scaffold/generators/scaffold/repository_generator/templates/ClientRepositoryImpl.java
228
+ - spec/vraptor-scaffold/generators/scaffold/repository_generator/templates/ProductRepository.java
229
+ - spec/vraptor-scaffold/generators/scaffold/repository_generator/templates/ProductRepositoryImpl.java
230
+ - spec/vraptor-scaffold/generators/scaffold/scaffold_generator_spec.rb
231
+ - spec/vraptor-scaffold/runner/commands_help_spec.rb
232
+ - spec/vraptor-scaffold/runner/configure_spec.rb
233
+ - spec/vraptor-scaffold/runner/generator_spec.rb
234
+ - spec/vraptor-scaffold/runner/help_spec.rb
235
+ - spec/vraptor-scaffold/runner/plugin_spec.rb
236
+ - spec/vraptor-scaffold/runner/scaffold_spec.rb
235
237
  - spec/vraptor-scaffold_spec.rb
236
238
  - vraptor-scaffold.gemspec
237
- has_rdoc: true
238
239
  homepage: http://github.com/caelum/vraptor-scaffold
239
240
  licenses: []
240
241
 
@@ -248,21 +249,17 @@ required_ruby_version: !ruby/object:Gem::Requirement
248
249
  requirements:
249
250
  - - ">="
250
251
  - !ruby/object:Gem::Version
251
- segments:
252
- - 0
253
252
  version: "0"
254
253
  required_rubygems_version: !ruby/object:Gem::Requirement
255
254
  none: false
256
255
  requirements:
257
256
  - - ">="
258
257
  - !ruby/object:Gem::Version
259
- segments:
260
- - 0
261
258
  version: "0"
262
259
  requirements: []
263
260
 
264
261
  rubyforge_project:
265
- rubygems_version: 1.3.7
262
+ rubygems_version: 1.8.8
266
263
  signing_key:
267
264
  specification_version: 3
268
265
  summary: VRaptor Scaffold.