vraptor-scaffold 1.3.0.rc → 1.3.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (89) hide show
  1. data/.rvmrc.example +1 -0
  2. data/.travis.yml +2 -1
  3. data/CHANGELOG.rdoc +22 -3
  4. data/Rakefile +2 -2
  5. data/lib/vraptor-scaffold.rb +1 -1
  6. data/lib/vraptor-scaffold/generators/app/app_generator.rb +23 -56
  7. data/lib/vraptor-scaffold/generators/app/dependency/default_dependencies.rb +44 -0
  8. data/lib/vraptor-scaffold/generators/app/{dependency.rb → dependency/dependency.rb} +0 -0
  9. data/lib/vraptor-scaffold/generators/app/dependency/dependency_manager.rb +25 -0
  10. data/lib/vraptor-scaffold/generators/app/dependency/gae_dependencies.rb +49 -0
  11. data/lib/vraptor-scaffold/generators/app/dependency/heroku_dependencies.rb +48 -0
  12. data/lib/vraptor-scaffold/generators/app/freemarker_template_engine.rb +7 -5
  13. data/lib/vraptor-scaffold/generators/app/gae_app_generator.rb +145 -0
  14. data/lib/vraptor-scaffold/generators/app/jsp_template_engine.rb +6 -5
  15. data/lib/vraptor-scaffold/generators/app/templates/build-gae.xml +144 -0
  16. data/lib/vraptor-scaffold/generators/app/templates/build.gradle.erb +4 -4
  17. data/lib/vraptor-scaffold/generators/app/templates/eclipse/classpath-gae.erb +1 -3
  18. data/lib/vraptor-scaffold/generators/app/templates/eclipse/classpath.erb +1 -1
  19. data/lib/vraptor-scaffold/generators/app/templates/eclipse/project-gae.erb +2 -2
  20. data/lib/vraptor-scaffold/generators/app/templates/eclipse/settings-gae/com.google.appengine.eclipse.core.prefs +4 -0
  21. data/lib/vraptor-scaffold/generators/app/templates/eclipse/settings-gae/com.google.gdt.eclipse.core.prefs +1 -2
  22. data/lib/vraptor-scaffold/generators/app/templates/freemarker/macros/html.ftl +12 -0
  23. data/lib/vraptor-scaffold/generators/app/templates/freemarker/main.ftl.erb +18 -0
  24. data/lib/vraptor-scaffold/generators/app/templates/gae/appengine-web.xml.tt +1 -0
  25. data/lib/vraptor-scaffold/generators/app/templates/gae/ivysettings.xml +1 -1
  26. data/lib/vraptor-scaffold/generators/app/templates/gitignore-gae +4 -0
  27. data/lib/vraptor-scaffold/generators/app/templates/ivy.erb +3 -3
  28. data/lib/vraptor-scaffold/generators/app/templates/jsp/main.jsp.erb +20 -0
  29. data/lib/vraptor-scaffold/generators/app/templates/pom.erb +3 -3
  30. data/lib/vraptor-scaffold/generators/app/templates/vraptor-scaffold-gae.erb +7 -0
  31. data/lib/vraptor-scaffold/generators/base.rb +21 -0
  32. data/lib/vraptor-scaffold/generators/scaffold/attribute.rb +7 -1
  33. data/lib/vraptor-scaffold/generators/scaffold/base_scaffold.rb +18 -0
  34. data/lib/vraptor-scaffold/generators/scaffold/controller_generator/templates/controller.erb +26 -1
  35. data/lib/vraptor-scaffold/generators/scaffold/controller_generator/templates/controller_test.erb +1 -1
  36. data/lib/vraptor-scaffold/generators/scaffold/import_manager.rb +20 -0
  37. data/lib/vraptor-scaffold/generators/scaffold/model_generator/templates/model.erb +7 -4
  38. data/lib/vraptor-scaffold/generators/scaffold/model_generator/templates/objectify_model.erb +3 -3
  39. data/lib/vraptor-scaffold/generators/scaffold/template_engine_generator/freemarker_generator/templates/form.erb +8 -0
  40. data/lib/vraptor-scaffold/generators/scaffold/template_engine_generator/jsp_generator/templates/form.erb +13 -3
  41. data/lib/vraptor-scaffold/load_paths.rb +3 -3
  42. data/lib/vraptor-scaffold/runner/generator.rb +11 -1
  43. data/lib/vraptor-scaffold/runner/start.rb +1 -1
  44. data/lib/vraptor-scaffold/version.rb +1 -1
  45. data/maven/repo/br/com/caelum/vraptor3.4-compatible-gae/1.1/vraptor3.4-compatible-gae-1.1.jar +0 -0
  46. data/spec/spec_helper.rb +9 -1
  47. data/spec/vraptor-scaffold/generators/app/app_generator_spec.rb +47 -99
  48. data/spec/vraptor-scaffold/generators/app/dependency/dependency_manager_spec.rb +21 -0
  49. data/spec/vraptor-scaffold/generators/app/{dependency_spec.rb → dependency/dependency_spec.rb} +4 -4
  50. data/spec/vraptor-scaffold/generators/app/dependency/gae_dependencies_spec.rb +20 -0
  51. data/spec/vraptor-scaffold/generators/app/dependency/heroku_dependencies_spec.rb +20 -0
  52. data/spec/vraptor-scaffold/generators/app/freemarker_template_engine_spec.rb +49 -7
  53. data/spec/vraptor-scaffold/generators/app/gae_app_generator_spec.rb +286 -0
  54. data/spec/vraptor-scaffold/generators/app/jsp_template_engine_spec.rb +49 -7
  55. data/spec/vraptor-scaffold/generators/app/templates/build.gradle +6 -6
  56. data/spec/vraptor-scaffold/generators/app/templates/classpath-gae +1 -3
  57. data/spec/vraptor-scaffold/generators/app/templates/gae-jsp-web.xml +1 -1
  58. data/spec/vraptor-scaffold/generators/app/templates/ivy-gae.xml +8 -6
  59. data/spec/vraptor-scaffold/generators/app/templates/ivy.xml +5 -5
  60. data/{lib/vraptor-scaffold/generators/app/templates/freemarker/main.ftl → spec/vraptor-scaffold/generators/app/templates/main-with-jquery.ftl} +0 -0
  61. data/{lib/vraptor-scaffold/generators/app/templates/jsp/main.jsp → spec/vraptor-scaffold/generators/app/templates/main-with-jquery.jsp} +0 -0
  62. data/spec/vraptor-scaffold/generators/app/templates/main-without-jquery.ftl +14 -0
  63. data/spec/vraptor-scaffold/generators/app/templates/main-without-jquery.jsp +16 -0
  64. data/spec/vraptor-scaffold/generators/app/templates/pom-heroku.xml +5 -5
  65. data/spec/vraptor-scaffold/generators/app/templates/pom.xml +5 -5
  66. data/spec/vraptor-scaffold/generators/app/templates/project-gae +2 -2
  67. data/spec/vraptor-scaffold/generators/app/templates/vraptor-scaffold-gae.properties +7 -0
  68. data/spec/vraptor-scaffold/generators/plugin/expected_configs/build.gradle +7 -7
  69. data/spec/vraptor-scaffold/generators/plugin/expected_configs/default_org_build.gradle +6 -6
  70. data/spec/vraptor-scaffold/generators/plugin/expected_configs/default_org_ivy.xml +5 -5
  71. data/spec/vraptor-scaffold/generators/plugin/expected_configs/default_org_pom.xml +5 -5
  72. data/spec/vraptor-scaffold/generators/plugin/expected_configs/ivy.xml +6 -6
  73. data/spec/vraptor-scaffold/generators/plugin/expected_configs/pom.xml +6 -6
  74. data/spec/vraptor-scaffold/generators/plugin/plugin_generator_spec.rb +7 -7
  75. data/spec/vraptor-scaffold/generators/scaffold/attribute_spec.rb +198 -181
  76. data/spec/vraptor-scaffold/generators/scaffold/base_scaffold_spec.rb +7 -1
  77. data/spec/vraptor-scaffold/generators/scaffold/controller_generator/templates/ProductController.java +9 -1
  78. data/spec/vraptor-scaffold/generators/scaffold/freemarker_generator/templates/form.ftl +15 -0
  79. data/spec/vraptor-scaffold/generators/scaffold/import_manager_spec.rb +9 -0
  80. data/spec/vraptor-scaffold/generators/scaffold/jsp_generator/templates/form.jsp +23 -3
  81. data/spec/vraptor-scaffold/generators/scaffold/model_generator/model_generator_spec.rb +2 -2
  82. data/spec/vraptor-scaffold/generators/scaffold/model_generator/objectify_model_generator_spec.rb +6 -6
  83. data/spec/vraptor-scaffold/generators/scaffold/model_generator/templates/Objectify_Product.java +23 -5
  84. data/spec/vraptor-scaffold/generators/scaffold/model_generator/templates/Product.java +24 -6
  85. data/spec/vraptor-scaffold/http_request_spec.rb +10 -0
  86. data/spec/vraptor-scaffold/runner/generator_spec.rb +18 -2
  87. metadata +86 -30
  88. data/lib/vraptor-scaffold/generators/app/dependency_manager.rb +0 -83
  89. data/spec/vraptor-scaffold/generators/app/dependency_manager_spec.rb +0 -34
@@ -70,4 +70,10 @@ describe BaseScaffold do
70
70
  BaseScaffold.new("OrderItem").base_path.should eql("orderItems")
71
71
  end
72
72
  end
73
- end
73
+
74
+ it "should not allow duplicate import" do
75
+ @base = BaseScaffold.new("person", [Attribute.new("born", "date"), Attribute.new("death", "date")])
76
+ @base.imports.one?.should be_true
77
+ end
78
+
79
+ end
@@ -4,6 +4,7 @@ import java.util.List;
4
4
 
5
5
  import app.model.Product;
6
6
  import app.repository.ProductRepository;
7
+ import app.repositories.CategoryRepository;
7
8
  import br.com.caelum.vraptor.Delete;
8
9
  import br.com.caelum.vraptor.Get;
9
10
  import br.com.caelum.vraptor.Post;
@@ -17,11 +18,15 @@ public class ProductController {
17
18
 
18
19
  private final Result result;
19
20
  private final ProductRepository repository;
21
+ private final CategoryRepository categoryRepository;
22
+
20
23
  private final Validator validator;
21
24
 
22
- ProductController(Result result, ProductRepository repository, Validator validator) {
25
+ public ProductController(Result result, ProductRepository repository,
26
+ CategoryRepository categoryRepository, Validator validator) {
23
27
  this.result = result;
24
28
  this.repository = repository;
29
+ this.categoryRepository = categoryRepository;
25
30
  this.validator = validator;
26
31
  }
27
32
 
@@ -40,6 +45,7 @@ public class ProductController {
40
45
 
41
46
  @Get("/products/new")
42
47
  public Product newProduct() {
48
+ result.include("categoryList", categoryRepository.findAll());
43
49
  return new Product();
44
50
  }
45
51
 
@@ -53,6 +59,8 @@ public class ProductController {
53
59
 
54
60
  @Get("/products/{product.id}/edit")
55
61
  public Product edit(Product product) {
62
+ result.include("categoryList", categoryRepository.findAll());
63
+
56
64
  return repository.find(product.getId());
57
65
  }
58
66
 
@@ -13,12 +13,27 @@
13
13
 
14
14
  <div class="field">
15
15
  Name:<br />
16
+
16
17
  <@html.text "product.name" product.name/>
17
18
  </div>
18
19
  <div class="field">
19
20
  My flag:<br />
21
+
20
22
  <@html.checkbox "product.myFlag" product.myFlag/>
21
23
  </div>
24
+ <div class="field">
25
+ Price:<br />
26
+
27
+ <@html.text "product.price" product.price/>
28
+ </div>
29
+ <div class="field">
30
+ Category:<br />
31
+ <select name="product.category.id">
32
+ <#list categoryList as category>
33
+ <option value="${category.id}" <#if product.category?? && product.category.id == category.id>selected="true"</#if> >${category.id}</option>
34
+ </#list>
35
+ </select>
36
+ </div>
22
37
  <div class="actions">
23
38
  <button type="submit">send</button>
24
39
  </div>
@@ -0,0 +1,9 @@
1
+ require File.expand_path(File.dirname(__FILE__) + "/../../../spec_helper")
2
+
3
+ describe ImportManager do
4
+
5
+ it "should import package when type is Date" do
6
+ ImportManager.new("date").package.include?("java.util.Date").should be_true
7
+ end
8
+
9
+ end
@@ -13,15 +13,35 @@
13
13
 
14
14
  <div class="field">
15
15
  Name:<br />
16
+
16
17
  <input type="text" name="product.name" value="${product.name}"/>
17
18
  </div>
19
+
18
20
  <div class="field">
19
21
  My flag:<br />
22
+
20
23
  <input type="text" name="product.myFlag" value="${product.myFlag}"/>
21
24
  </div>
22
-
23
- <div class="actions">
24
- <button type="submit">send</button>
25
+
26
+ <div class="field">
27
+ Price:<br />
28
+
29
+ <input type="text" name="product.price" value="${product.price}"/>
30
+ </div>
31
+
32
+ <div class="field">
33
+ Category:<br />
34
+ <select name="product.category.id">
35
+ <c:forEach var="category" items="${categoryList}">
36
+ <option value="${category.id}" <c:if test = "${product.category.id == category.id}">selected="true"</c:if>>
37
+ ${category.id}
38
+ </option>
39
+ </c:forEach>
40
+ </select>
41
+ </div>
42
+
43
+ <div class="actions">
44
+ <button type="submit">send</button>
25
45
  </div>
26
46
  </form>
27
47
 
@@ -33,7 +33,7 @@ describe ModelGenerator do
33
33
  before(:each) do
34
34
  config = {"package" => "app", "orm" => "hibernate", "models_package" => "model"}
35
35
  YAML.stub!(:load_file).with(Configuration::FILENAME).and_return(config)
36
- AppGenerator.new("src", ["-o=hibernate"]).configure_orm
36
+ AppGenerator.new("src", ["-o=hibernate", "--skip_jquery"]).configure_orm
37
37
  FileUtils.chdir("src")
38
38
  @generator = ModelGenerator.new("product", build_attributes)
39
39
  @generator.build
@@ -43,7 +43,7 @@ describe ModelGenerator do
43
43
  after(:each) do
44
44
  FileUtils.remove_dir("src")
45
45
  end
46
-
46
+
47
47
  it "should map entity in hibernate.cfg.xml when orm is hibernate" do
48
48
  source = File.join File.dirname(__FILE__), "templates", "hibernate.cfg.xml"
49
49
  destination = File.join "src", Configuration::MAIN_RESOURCES, "hibernate.cfg.xml"
@@ -4,20 +4,20 @@ describe ObjectifyModelGenerator do
4
4
 
5
5
  context "objectify" do
6
6
  before(:all) do
7
- AppGenerator.new("src", ["-o=objectify", "--gae"]).invoke_all
8
- FileUtils.chdir("src")
7
+ GaeAppGenerator.new("gae-project", ["-o=objectify", "--skip_jquery"]).invoke_all
8
+ FileUtils.chdir("gae-project")
9
9
  @generator = ObjectifyModelGenerator.new("product", build_attributes)
10
10
  @generator.build
11
11
  FileUtils.chdir("..")
12
- @project_path = "src"
12
+ @project_path = "gae-project"
13
13
  end
14
14
 
15
- before(:each) do
15
+ before(:each) do
16
16
  mock_objectify_config_file
17
17
  end
18
18
 
19
19
  after(:all) do
20
- FileUtils.remove_dir "src"
20
+ FileUtils.remove_dir "gae-project"
21
21
  end
22
22
 
23
23
  it "should create model" do
@@ -33,7 +33,7 @@ describe ObjectifyModelGenerator do
33
33
 
34
34
  it "should map model in objetify factory" do
35
35
  source = File.join File.dirname(__FILE__), "templates", "ObjectifyFactory.java"
36
- destination = File.join "src", Configuration::MAIN_SRC, "app", "infra", "ObjectifyFactory.java"
36
+ destination = File.join "gae-project", Configuration::MAIN_SRC, "app", "infra", "ObjectifyFactory.java"
37
37
  exists_and_identical?(source, destination)
38
38
  end
39
39
  end
@@ -10,7 +10,9 @@ public class Product {
10
10
  private Long id;
11
11
  private String name;
12
12
  private boolean myFlag;
13
-
13
+ private Double price;
14
+ private Category category;
15
+
14
16
  public void setId(Long id) {
15
17
  this.id = id;
16
18
  }
@@ -22,17 +24,33 @@ public class Product {
22
24
  public void setName(String name) {
23
25
  this.name = name;
24
26
  }
25
-
27
+
26
28
  public String getName() {
27
29
  return name;
28
30
  }
29
-
31
+
30
32
  public void setMyFlag(boolean myFlag) {
31
33
  this.myFlag = myFlag;
32
34
  }
33
-
35
+
34
36
  public boolean isMyFlag() {
35
37
  return myFlag;
36
38
  }
37
-
39
+
40
+ public void setPrice(Double price) {
41
+ this.price = price;
42
+ }
43
+
44
+ public Double getPrice() {
45
+ return price;
46
+ }
47
+
48
+ public void setCategory(Category category) {
49
+ this.category = category;
50
+ }
51
+
52
+ public Category getCategory() {
53
+ return category;
54
+ }
55
+
38
56
  }
@@ -2,24 +2,42 @@ package app.model;
2
2
 
3
3
  @javax.persistence.Entity
4
4
  public class Product extends Entity {
5
-
5
+
6
6
  private String name;
7
7
  private boolean myFlag;
8
-
8
+ private Double price;
9
+ private Category category;
10
+
9
11
  public void setName(String name) {
10
12
  this.name = name;
11
13
  }
12
-
14
+
13
15
  public String getName() {
14
16
  return name;
15
17
  }
16
-
18
+
17
19
  public void setMyFlag(boolean myFlag) {
18
20
  this.myFlag = myFlag;
19
21
  }
20
-
22
+
21
23
  public boolean isMyFlag() {
22
24
  return myFlag;
23
25
  }
24
-
26
+
27
+ public void setPrice(Double price) {
28
+ this.price = price;
29
+ }
30
+
31
+ public Double getPrice() {
32
+ return price;
33
+ }
34
+
35
+ public void setCategory(Category category) {
36
+ this.category = category;
37
+ }
38
+
39
+ public Category getCategory() {
40
+ return category;
41
+ }
42
+
25
43
  }
@@ -37,4 +37,14 @@ describe VraptorScaffold::HttpRequest do
37
37
  end
38
38
  end
39
39
 
40
+ context "open session" do
41
+ it "should open a http session" do
42
+ http_request = mock(Net::HTTP)
43
+ VraptorScaffold::HttpRequest.stub!(:http).and_return(http_request)
44
+ http_request.stub!(:start).and_return(http_request)
45
+
46
+ http = VraptorScaffold::HttpRequest.open_session "http://any_url/here"
47
+ http.should be_true
48
+ end
49
+ end
40
50
  end
@@ -13,7 +13,7 @@ describe VraptorScaffold::Runner::Generator do
13
13
  @generator_runner.new.run(["--help"])
14
14
  end
15
15
 
16
- context "app generator" do
16
+ context "default app generator" do
17
17
  before(:each) do
18
18
  @generator = mock(AppGenerator)
19
19
  project_name = "vraptor-scaffold"
@@ -28,4 +28,20 @@ describe VraptorScaffold::Runner::Generator do
28
28
  @generator_runner.new.run(@args)
29
29
  end
30
30
  end
31
- end
31
+
32
+ context "gae app generator" do
33
+ before(:each) do
34
+ @generator = mock(GaeAppGenerator)
35
+ project_name = "gae-project"
36
+ option = "--gae"
37
+ @args = [project_name, option]
38
+ GaeAppGenerator.stub!(:new).with(project_name, [option]).and_return(@generator)
39
+ end
40
+
41
+ it "should invoke all app generator tasks when typed new" do
42
+ @help.stub!(:help).and_return false
43
+ @generator.should_receive(:invoke_all)
44
+ @generator_runner.new.run(@args)
45
+ end
46
+ end
47
+ end
metadata CHANGED
@@ -1,82 +1,112 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vraptor-scaffold
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.0.rc
5
- prerelease: 6
4
+ version: 1.3.0
5
+ prerelease:
6
6
  platform: ruby
7
7
  authors:
8
8
  - Rodolfo Liviero
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2011-12-12 00:00:00.000000000Z
12
+ date: 2012-10-10 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: thor
16
- requirement: &70109776560460 !ruby/object:Gem::Requirement
16
+ requirement: !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
- - - =
19
+ - - '='
20
20
  - !ruby/object:Gem::Version
21
21
  version: 0.14.6
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *70109776560460
24
+ version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
26
+ requirements:
27
+ - - '='
28
+ - !ruby/object:Gem::Version
29
+ version: 0.14.6
25
30
  - !ruby/object:Gem::Dependency
26
31
  name: activesupport
27
- requirement: &70109776559700 !ruby/object:Gem::Requirement
32
+ requirement: !ruby/object:Gem::Requirement
28
33
  none: false
29
34
  requirements:
30
- - - =
35
+ - - '='
31
36
  - !ruby/object:Gem::Version
32
37
  version: 3.0.1
33
38
  type: :runtime
34
39
  prerelease: false
35
- version_requirements: *70109776559700
40
+ version_requirements: !ruby/object:Gem::Requirement
41
+ none: false
42
+ requirements:
43
+ - - '='
44
+ - !ruby/object:Gem::Version
45
+ version: 3.0.1
36
46
  - !ruby/object:Gem::Dependency
37
47
  name: rake
38
- requirement: &70109776559020 !ruby/object:Gem::Requirement
48
+ requirement: !ruby/object:Gem::Requirement
39
49
  none: false
40
50
  requirements:
41
- - - =
51
+ - - '='
42
52
  - !ruby/object:Gem::Version
43
53
  version: 0.9.2
44
54
  type: :runtime
45
55
  prerelease: false
46
- version_requirements: *70109776559020
56
+ version_requirements: !ruby/object:Gem::Requirement
57
+ none: false
58
+ requirements:
59
+ - - '='
60
+ - !ruby/object:Gem::Version
61
+ version: 0.9.2
47
62
  - !ruby/object:Gem::Dependency
48
63
  name: rspec
49
- requirement: &70109776558260 !ruby/object:Gem::Requirement
64
+ requirement: !ruby/object:Gem::Requirement
50
65
  none: false
51
66
  requirements:
52
- - - =
67
+ - - '='
53
68
  - !ruby/object:Gem::Version
54
69
  version: 1.3.2
55
70
  type: :development
56
71
  prerelease: false
57
- version_requirements: *70109776558260
72
+ version_requirements: !ruby/object:Gem::Requirement
73
+ none: false
74
+ requirements:
75
+ - - '='
76
+ - !ruby/object:Gem::Version
77
+ version: 1.3.2
58
78
  - !ruby/object:Gem::Dependency
59
79
  name: ZenTest
60
- requirement: &70109776557740 !ruby/object:Gem::Requirement
80
+ requirement: !ruby/object:Gem::Requirement
61
81
  none: false
62
82
  requirements:
63
- - - =
83
+ - - '='
64
84
  - !ruby/object:Gem::Version
65
85
  version: 4.4.0
66
86
  type: :development
67
87
  prerelease: false
68
- version_requirements: *70109776557740
88
+ version_requirements: !ruby/object:Gem::Requirement
89
+ none: false
90
+ requirements:
91
+ - - '='
92
+ - !ruby/object:Gem::Version
93
+ version: 4.4.0
69
94
  - !ruby/object:Gem::Dependency
70
95
  name: simplecov
71
- requirement: &70109776557280 !ruby/object:Gem::Requirement
96
+ requirement: !ruby/object:Gem::Requirement
72
97
  none: false
73
98
  requirements:
74
- - - =
99
+ - - '='
75
100
  - !ruby/object:Gem::Version
76
101
  version: 0.5.4
77
102
  type: :development
78
103
  prerelease: false
79
- version_requirements: *70109776557280
104
+ version_requirements: !ruby/object:Gem::Requirement
105
+ none: false
106
+ requirements:
107
+ - - '='
108
+ - !ruby/object:Gem::Version
109
+ version: 0.5.4
80
110
  description: VRaptor scaffold extension to make it easier configuring new projects
81
111
  and plugins.
82
112
  email: rodolfoliviero@gmail.com
@@ -86,6 +116,7 @@ extensions: []
86
116
  extra_rdoc_files: []
87
117
  files:
88
118
  - .gitignore
119
+ - .rvmrc.example
89
120
  - .travis.yml
90
121
  - CHANGELOG.rdoc
91
122
  - Gemfile
@@ -99,10 +130,15 @@ files:
99
130
  - lib/vraptor-scaffold/configuration.rb
100
131
  - lib/vraptor-scaffold/execution.rb
101
132
  - lib/vraptor-scaffold/generators/app/app_generator.rb
102
- - lib/vraptor-scaffold/generators/app/dependency.rb
103
- - lib/vraptor-scaffold/generators/app/dependency_manager.rb
133
+ - lib/vraptor-scaffold/generators/app/dependency/default_dependencies.rb
134
+ - lib/vraptor-scaffold/generators/app/dependency/dependency.rb
135
+ - lib/vraptor-scaffold/generators/app/dependency/dependency_manager.rb
136
+ - lib/vraptor-scaffold/generators/app/dependency/gae_dependencies.rb
137
+ - lib/vraptor-scaffold/generators/app/dependency/heroku_dependencies.rb
104
138
  - lib/vraptor-scaffold/generators/app/freemarker_template_engine.rb
139
+ - lib/vraptor-scaffold/generators/app/gae_app_generator.rb
105
140
  - lib/vraptor-scaffold/generators/app/jsp_template_engine.rb
141
+ - lib/vraptor-scaffold/generators/app/templates/build-gae.xml
106
142
  - lib/vraptor-scaffold/generators/app/templates/build.gradle.erb
107
143
  - lib/vraptor-scaffold/generators/app/templates/build.properties.erb
108
144
  - lib/vraptor-scaffold/generators/app/templates/build.xml
@@ -111,6 +147,7 @@ files:
111
147
  - lib/vraptor-scaffold/generators/app/templates/eclipse/classpath.erb
112
148
  - lib/vraptor-scaffold/generators/app/templates/eclipse/project-gae.erb
113
149
  - lib/vraptor-scaffold/generators/app/templates/eclipse/project.erb
150
+ - lib/vraptor-scaffold/generators/app/templates/eclipse/settings-gae/com.google.appengine.eclipse.core.prefs
114
151
  - lib/vraptor-scaffold/generators/app/templates/eclipse/settings-gae/com.google.gdt.eclipse.core.prefs
115
152
  - lib/vraptor-scaffold/generators/app/templates/eclipse/settings-gae/org.eclipse.jdt.core.prefs
116
153
  - lib/vraptor-scaffold/generators/app/templates/eclipse/settings-gae/org.eclipse.wst.common.component.tt
@@ -125,17 +162,18 @@ files:
125
162
  - lib/vraptor-scaffold/generators/app/templates/freemarker/freemarker-web.xml
126
163
  - lib/vraptor-scaffold/generators/app/templates/freemarker/infrastructure/FreemarkerPathResolver.java.tt
127
164
  - lib/vraptor-scaffold/generators/app/templates/freemarker/macros/html.ftl
128
- - lib/vraptor-scaffold/generators/app/templates/freemarker/main.ftl
165
+ - lib/vraptor-scaffold/generators/app/templates/freemarker/main.ftl.erb
129
166
  - lib/vraptor-scaffold/generators/app/templates/gae/ObjectifyFactory.java.tt
130
167
  - lib/vraptor-scaffold/generators/app/templates/gae/appengine-web.xml.tt
131
168
  - lib/vraptor-scaffold/generators/app/templates/gae/ivysettings.xml
132
169
  - lib/vraptor-scaffold/generators/app/templates/gae/logging.properties
170
+ - lib/vraptor-scaffold/generators/app/templates/gitignore-gae
133
171
  - lib/vraptor-scaffold/generators/app/templates/heroku/Main.java
134
172
  - lib/vraptor-scaffold/generators/app/templates/heroku/Procfile
135
173
  - lib/vraptor-scaffold/generators/app/templates/ivy-2.2.0.jar
136
174
  - lib/vraptor-scaffold/generators/app/templates/ivy.erb
137
175
  - lib/vraptor-scaffold/generators/app/templates/jsp/jsp-web.xml
138
- - lib/vraptor-scaffold/generators/app/templates/jsp/main.jsp
176
+ - lib/vraptor-scaffold/generators/app/templates/jsp/main.jsp.erb
139
177
  - lib/vraptor-scaffold/generators/app/templates/jsp/prelude.jspf
140
178
  - lib/vraptor-scaffold/generators/app/templates/models/Entity.erb
141
179
  - lib/vraptor-scaffold/generators/app/templates/orm/Repository-hibernate.java.tt
@@ -148,6 +186,7 @@ files:
148
186
  - lib/vraptor-scaffold/generators/app/templates/resources/hibernate.properties
149
187
  - lib/vraptor-scaffold/generators/app/templates/resources/log4j.properties
150
188
  - lib/vraptor-scaffold/generators/app/templates/resources/messages.properties
189
+ - lib/vraptor-scaffold/generators/app/templates/vraptor-scaffold-gae.erb
151
190
  - lib/vraptor-scaffold/generators/app/templates/vraptor-scaffold.erb
152
191
  - lib/vraptor-scaffold/generators/app/templates/webapp/WEB-INF/web.xml.tt
153
192
  - lib/vraptor-scaffold/generators/app/templates/webapp/images/.empty_directory
@@ -162,6 +201,7 @@ files:
162
201
  - lib/vraptor-scaffold/generators/scaffold/controller_generator/controller_generator.rb
163
202
  - lib/vraptor-scaffold/generators/scaffold/controller_generator/templates/controller.erb
164
203
  - lib/vraptor-scaffold/generators/scaffold/controller_generator/templates/controller_test.erb
204
+ - lib/vraptor-scaffold/generators/scaffold/import_manager.rb
165
205
  - lib/vraptor-scaffold/generators/scaffold/model_generator/model_generator.rb
166
206
  - lib/vraptor-scaffold/generators/scaffold/model_generator/objectify_model_generator.rb
167
207
  - lib/vraptor-scaffold/generators/scaffold/model_generator/templates/model.erb
@@ -200,6 +240,7 @@ files:
200
240
  - lib/vraptor-scaffold/runner/start.rb
201
241
  - lib/vraptor-scaffold/version.rb
202
242
  - maven/repo/br/com/caelum/vraptor-gae/1.0/vraptor-gae-1.0.jar
243
+ - maven/repo/br/com/caelum/vraptor3.4-compatible-gae/1.1/vraptor3.4-compatible-gae-1.1.jar
203
244
  - spec/resources/vraptor-scaffold-objectify.properties
204
245
  - spec/resources/vraptor-scaffold.properties
205
246
  - spec/simple_custom_plugin.rb
@@ -208,9 +249,12 @@ files:
208
249
  - spec/vraptor-scaffold/configuration_spec.rb
209
250
  - spec/vraptor-scaffold/execution_spec.rb
210
251
  - spec/vraptor-scaffold/generators/app/app_generator_spec.rb
211
- - spec/vraptor-scaffold/generators/app/dependency_manager_spec.rb
212
- - spec/vraptor-scaffold/generators/app/dependency_spec.rb
252
+ - spec/vraptor-scaffold/generators/app/dependency/dependency_manager_spec.rb
253
+ - spec/vraptor-scaffold/generators/app/dependency/dependency_spec.rb
254
+ - spec/vraptor-scaffold/generators/app/dependency/gae_dependencies_spec.rb
255
+ - spec/vraptor-scaffold/generators/app/dependency/heroku_dependencies_spec.rb
213
256
  - spec/vraptor-scaffold/generators/app/freemarker_template_engine_spec.rb
257
+ - spec/vraptor-scaffold/generators/app/gae_app_generator_spec.rb
214
258
  - spec/vraptor-scaffold/generators/app/jsp_template_engine_spec.rb
215
259
  - spec/vraptor-scaffold/generators/app/templates/Entity.java
216
260
  - spec/vraptor-scaffold/generators/app/templates/FreemarkerPathResolver.java
@@ -228,9 +272,14 @@ files:
228
272
  - spec/vraptor-scaffold/generators/app/templates/ivy-gae.xml
229
273
  - spec/vraptor-scaffold/generators/app/templates/ivy.xml
230
274
  - spec/vraptor-scaffold/generators/app/templates/jsp-web.xml
275
+ - spec/vraptor-scaffold/generators/app/templates/main-with-jquery.ftl
276
+ - spec/vraptor-scaffold/generators/app/templates/main-with-jquery.jsp
277
+ - spec/vraptor-scaffold/generators/app/templates/main-without-jquery.ftl
278
+ - spec/vraptor-scaffold/generators/app/templates/main-without-jquery.jsp
231
279
  - spec/vraptor-scaffold/generators/app/templates/pom-heroku.xml
232
280
  - spec/vraptor-scaffold/generators/app/templates/pom.xml
233
281
  - spec/vraptor-scaffold/generators/app/templates/project-gae
282
+ - spec/vraptor-scaffold/generators/app/templates/vraptor-scaffold-gae.properties
234
283
  - spec/vraptor-scaffold/generators/app/templates/vraptor-scaffold.properties
235
284
  - spec/vraptor-scaffold/generators/plugin/expected_configs/build.gradle
236
285
  - spec/vraptor-scaffold/generators/plugin/expected_configs/default_org_build.gradle
@@ -245,6 +294,7 @@ files:
245
294
  - spec/vraptor-scaffold/generators/scaffold/controller_generator/templates/ProductController.java
246
295
  - spec/vraptor-scaffold/generators/scaffold/freemarker_generator/freemarker_generator_spec.rb
247
296
  - spec/vraptor-scaffold/generators/scaffold/freemarker_generator/templates/form.ftl
297
+ - spec/vraptor-scaffold/generators/scaffold/import_manager_spec.rb
248
298
  - spec/vraptor-scaffold/generators/scaffold/jsp_generator/jsp_generator_spec.rb
249
299
  - spec/vraptor-scaffold/generators/scaffold/jsp_generator/templates/form.jsp
250
300
  - spec/vraptor-scaffold/generators/scaffold/model_generator/model_generator_spec.rb
@@ -285,15 +335,21 @@ required_ruby_version: !ruby/object:Gem::Requirement
285
335
  - - ! '>='
286
336
  - !ruby/object:Gem::Version
287
337
  version: '0'
338
+ segments:
339
+ - 0
340
+ hash: -3171756196067631773
288
341
  required_rubygems_version: !ruby/object:Gem::Requirement
289
342
  none: false
290
343
  requirements:
291
- - - ! '>'
344
+ - - ! '>='
292
345
  - !ruby/object:Gem::Version
293
- version: 1.3.1
346
+ version: '0'
347
+ segments:
348
+ - 0
349
+ hash: -3171756196067631773
294
350
  requirements: []
295
351
  rubyforge_project:
296
- rubygems_version: 1.8.12
352
+ rubygems_version: 1.8.24
297
353
  signing_key:
298
354
  specification_version: 3
299
355
  summary: VRaptor Scaffold.