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.
- data/.travis.yml +7 -0
- data/CHANGELOG.rdoc +164 -0
- data/Gemfile.lock +5 -8
- data/README.textile +20 -7
- data/bin/vraptor +1 -1
- data/index.sample.html +169 -0
- data/lib/vraptor-scaffold.rb +10 -29
- data/lib/vraptor-scaffold/configuration.rb +27 -4
- data/lib/vraptor-scaffold/execution.rb +24 -0
- data/lib/vraptor-scaffold/generators/app/app_generator.rb +196 -0
- data/lib/vraptor-scaffold/generators/{app_generator → app}/dependency.rb +0 -0
- data/lib/vraptor-scaffold/generators/app/dependency_manager.rb +53 -0
- data/lib/vraptor-scaffold/generators/{app_generator → app}/freemarker_template_engine.rb +0 -0
- data/lib/vraptor-scaffold/generators/{app_generator → app}/jsp_template_engine.rb +0 -0
- data/lib/vraptor-scaffold/generators/{app_generator → app}/templates/build.gradle.erb +19 -1
- data/lib/vraptor-scaffold/generators/{app_generator → app}/templates/build.properties.erb +0 -0
- data/lib/vraptor-scaffold/generators/{app_generator → app}/templates/build.xml +6 -2
- data/lib/vraptor-scaffold/generators/{app_generator → app}/templates/decorators.erb +0 -0
- data/lib/vraptor-scaffold/generators/{app_generator → app}/templates/eclipse/classpath.erb +0 -5
- data/lib/vraptor-scaffold/generators/{app_generator → app}/templates/eclipse/project.erb +0 -0
- data/lib/vraptor-scaffold/generators/{app_generator → app}/templates/eclipse/settings/org.eclipse.jdt.core.prefs +0 -0
- data/lib/vraptor-scaffold/generators/{app_generator → app}/templates/eclipse/settings/org.eclipse.wst.common.component.tt +0 -0
- data/lib/vraptor-scaffold/generators/{app_generator → app}/templates/eclipse/settings/org.eclipse.wst.common.project.facet.core.xml +0 -0
- data/lib/vraptor-scaffold/generators/{app_generator → app}/templates/eclipse/settings/org.eclipse.wst.jsdt.ui.superType.container +0 -0
- data/lib/vraptor-scaffold/generators/{app_generator → app}/templates/eclipse/settings/org.eclipse.wst.jsdt.ui.superType.name +0 -0
- data/lib/vraptor-scaffold/generators/{app_generator → app}/templates/freemarker/freemarker-web.xml +0 -0
- data/lib/vraptor-scaffold/generators/{app_generator → app}/templates/freemarker/infrastructure/FreemarkerPathResolver.java.tt +0 -0
- data/lib/vraptor-scaffold/generators/{app_generator → app}/templates/freemarker/macros/html.ftl +0 -0
- data/lib/vraptor-scaffold/generators/{app_generator → app}/templates/freemarker/main.ftl +0 -0
- data/lib/vraptor-scaffold/generators/app/templates/heroku/Main.java +21 -0
- data/lib/vraptor-scaffold/generators/app/templates/heroku/Procfile +1 -0
- data/lib/vraptor-scaffold/generators/{app_generator → app}/templates/ivy-2.2.0.jar +0 -0
- data/lib/vraptor-scaffold/generators/{app_generator → app}/templates/ivy.erb +1 -1
- data/lib/vraptor-scaffold/generators/{app_generator → app}/templates/jsp/jsp-web.xml +0 -0
- data/lib/vraptor-scaffold/generators/{app_generator → app}/templates/jsp/main.jsp +2 -2
- data/lib/vraptor-scaffold/generators/{app_generator → app}/templates/jsp/prelude.jspf +0 -0
- data/lib/vraptor-scaffold/generators/{app_generator/templates/src/models/Entity.java.tt → app/templates/models/Entity.erb} +1 -1
- data/lib/vraptor-scaffold/generators/app/templates/orm/Repository-hibernate.java.tt +50 -0
- data/lib/vraptor-scaffold/generators/{app_generator/templates/src/repositories/Repository.java.tt → app/templates/orm/Repository-jpa.java.tt} +3 -3
- data/lib/vraptor-scaffold/generators/app/templates/orm/hibernate.cfg.xml +7 -0
- data/lib/vraptor-scaffold/generators/app/templates/orm/persistence.xml +10 -0
- data/lib/vraptor-scaffold/generators/{app_generator → app}/templates/pom.erb +29 -13
- data/lib/vraptor-scaffold/generators/{app_generator → app}/templates/resources-test/.empty_directory +0 -0
- data/lib/vraptor-scaffold/generators/app/templates/resources/hibernate.properties +16 -0
- data/lib/vraptor-scaffold/generators/app/templates/resources/log4j.properties +4 -0
- data/lib/vraptor-scaffold/generators/{app_generator → app}/templates/resources/messages.properties +0 -0
- data/lib/vraptor-scaffold/generators/app/templates/vraptor-scaffold.erb +7 -0
- data/lib/vraptor-scaffold/generators/{app_generator/templates/webapp/WEB-INF/web.xml → app/templates/webapp/WEB-INF/web.xml.tt} +2 -2
- data/lib/vraptor-scaffold/generators/{app_generator/templates/src-test/controllers → app/templates/webapp/images}/.empty_directory +0 -0
- data/lib/vraptor-scaffold/generators/{app_generator → app}/templates/webapp/index.jsp +0 -0
- data/lib/vraptor-scaffold/generators/{app_generator → app}/templates/webapp/stylesheets/common.css +0 -0
- data/lib/vraptor-scaffold/generators/{app_generator → app}/templates/webapp/stylesheets/scaffold.css +0 -0
- data/lib/vraptor-scaffold/generators/{app_generator → app}/templates/webapp/stylesheets/stylesheets.css +0 -0
- data/lib/vraptor-scaffold/generators/plugin/plugin_generator.rb +42 -0
- data/lib/vraptor-scaffold/generators/plugin/vraptor_gem.rb +36 -0
- data/lib/vraptor-scaffold/generators/{scaffold_generator → scaffold}/attribute.rb +1 -1
- data/lib/vraptor-scaffold/generators/{scaffold_generator → scaffold}/base_scaffold.rb +6 -2
- data/lib/vraptor-scaffold/generators/{scaffold_generator → scaffold}/controller_generator/controller_generator.rb +3 -3
- data/lib/vraptor-scaffold/generators/{scaffold_generator → scaffold}/controller_generator/templates/controller.erb +3 -3
- data/lib/vraptor-scaffold/generators/{scaffold_generator → scaffold}/controller_generator/templates/controller_test.erb +1 -1
- data/lib/vraptor-scaffold/generators/scaffold/model_generator/model_generator.rb +20 -0
- data/lib/vraptor-scaffold/generators/{scaffold_generator → scaffold}/model_generator/templates/model.erb +3 -3
- data/lib/vraptor-scaffold/generators/{scaffold_generator → scaffold}/model_generator/templates/model_test.erb +1 -1
- data/lib/vraptor-scaffold/generators/scaffold/repository_generator/repository_generator.rb +27 -0
- data/lib/vraptor-scaffold/generators/{scaffold_generator → scaffold}/repository_generator/templates/repository.erb +3 -3
- data/lib/vraptor-scaffold/generators/scaffold/repository_generator/templates/repository_impl.erb +16 -0
- data/lib/vraptor-scaffold/generators/{scaffold_generator → scaffold}/repository_generator/templates/repository_test.erb +1 -1
- data/lib/vraptor-scaffold/generators/{scaffold_generator → scaffold}/scaffold_generator.rb +0 -0
- data/lib/vraptor-scaffold/generators/scaffold/template_engine_generator/freemarker_generator/freemarker_generator.rb +18 -0
- data/lib/vraptor-scaffold/generators/{scaffold_generator → scaffold/template_engine_generator}/freemarker_generator/templates/edit.erb +0 -0
- data/lib/vraptor-scaffold/generators/{scaffold_generator → scaffold/template_engine_generator}/freemarker_generator/templates/form.erb +4 -4
- data/lib/vraptor-scaffold/generators/scaffold/template_engine_generator/freemarker_generator/templates/index.erb +36 -0
- data/lib/vraptor-scaffold/generators/{scaffold_generator → scaffold/template_engine_generator}/freemarker_generator/templates/new.erb +0 -0
- data/lib/vraptor-scaffold/generators/scaffold/template_engine_generator/freemarker_generator/templates/show.erb +14 -0
- data/lib/vraptor-scaffold/generators/scaffold/template_engine_generator/jsp_generator/jsp_generator.rb +18 -0
- data/lib/vraptor-scaffold/generators/{scaffold_generator → scaffold/template_engine_generator}/jsp_generator/templates/edit.erb +0 -0
- data/lib/vraptor-scaffold/generators/{scaffold_generator → scaffold/template_engine_generator}/jsp_generator/templates/form.erb +4 -4
- data/lib/vraptor-scaffold/generators/{scaffold_generator → scaffold/template_engine_generator}/jsp_generator/templates/index.erb +6 -6
- data/lib/vraptor-scaffold/generators/{scaffold_generator → scaffold/template_engine_generator}/jsp_generator/templates/new.erb +0 -0
- data/lib/vraptor-scaffold/generators/scaffold/template_engine_generator/jsp_generator/templates/show.erb +14 -0
- data/lib/vraptor-scaffold/generators/scaffold/template_engine_generator/template_engine_generator.rb +21 -0
- data/lib/vraptor-scaffold/load_paths.rb +13 -21
- data/lib/vraptor-scaffold/runner.rb +11 -0
- data/lib/vraptor-scaffold/runner/commands_help.rb +13 -0
- data/lib/vraptor-scaffold/runner/configure.rb +21 -0
- data/lib/vraptor-scaffold/runner/generator.rb +15 -0
- data/lib/vraptor-scaffold/runner/help.rb +12 -0
- data/lib/vraptor-scaffold/runner/plugin.rb +19 -0
- data/lib/vraptor-scaffold/runner/scaffold.rb +16 -0
- data/lib/vraptor-scaffold/version.rb +1 -1
- data/spec/resources/vraptor-scaffold.properties +5 -0
- data/spec/simple_custom_plugin.rb +10 -0
- data/spec/spec_helper.rb +5 -6
- data/spec/vraptor-scaffold/configuration_spec.rb +88 -4
- data/spec/vraptor-scaffold/execution_spec.rb +47 -0
- data/spec/vraptor-scaffold/generators/{app_generator → app}/app_generator_spec.rb +136 -54
- data/spec/vraptor-scaffold/generators/{app_generator → app}/dependency_manager_spec.rb +1 -1
- data/spec/vraptor-scaffold/generators/{app_generator → app}/dependency_spec.rb +0 -0
- data/spec/vraptor-scaffold/generators/{app_generator → app}/freemarker_template_engine_spec.rb +1 -1
- data/spec/vraptor-scaffold/generators/{app_generator → app}/jsp_template_engine_spec.rb +0 -0
- data/spec/vraptor-scaffold/generators/{app_generator → app}/templates/Entity.java +1 -1
- data/spec/vraptor-scaffold/generators/{app_generator → app}/templates/FreemarkerPathResolver.java +0 -0
- data/spec/vraptor-scaffold/generators/{app_generator → app}/templates/Repository.java +3 -3
- data/spec/vraptor-scaffold/generators/{app_generator → app}/templates/build.gradle +24 -5
- data/spec/vraptor-scaffold/generators/{app_generator → app}/templates/build.properties +0 -0
- data/spec/vraptor-scaffold/generators/{app_generator → app}/templates/decorators-jsp.xml +0 -0
- data/spec/vraptor-scaffold/generators/{app_generator → app}/templates/decorators.xml +0 -0
- data/spec/vraptor-scaffold/generators/{app_generator → app}/templates/freemarker-web.xml +2 -2
- data/spec/vraptor-scaffold/generators/{app_generator → app}/templates/ivy.xml +6 -5
- data/spec/vraptor-scaffold/generators/{app_generator → app}/templates/jsp-web.xml +1 -1
- data/spec/vraptor-scaffold/generators/app/templates/pom-heroku.xml +168 -0
- data/spec/vraptor-scaffold/generators/{app_generator → app}/templates/pom.xml +11 -14
- data/spec/vraptor-scaffold/generators/app/templates/vraptor-scaffold.properties +7 -0
- data/spec/vraptor-scaffold/generators/plugin/expected_configs/build.gradle +61 -0
- data/spec/vraptor-scaffold/generators/plugin/expected_configs/default_org_build.gradle +61 -0
- data/spec/vraptor-scaffold/generators/plugin/expected_configs/default_org_ivy.xml +40 -0
- data/spec/vraptor-scaffold/generators/plugin/expected_configs/default_org_pom.xml +147 -0
- data/spec/vraptor-scaffold/generators/plugin/expected_configs/ivy.xml +40 -0
- data/spec/vraptor-scaffold/generators/plugin/expected_configs/pom.xml +147 -0
- data/spec/vraptor-scaffold/generators/plugin/plugin_generator_spec.rb +130 -0
- data/spec/vraptor-scaffold/generators/{scaffold_generator → scaffold}/attribute_spec.rb +13 -9
- data/spec/vraptor-scaffold/generators/scaffold/base_scaffold_spec.rb +73 -0
- data/spec/vraptor-scaffold/generators/{scaffold_generator → scaffold}/controller_generator/controller_generator_spec.rb +18 -9
- data/spec/vraptor-scaffold/generators/{scaffold_generator → scaffold}/controller_generator/templates/ProductController.java +3 -3
- data/spec/vraptor-scaffold/generators/scaffold/freemarker_generator/freemarker_generator_spec.rb +74 -0
- data/spec/vraptor-scaffold/generators/scaffold/jsp_generator/jsp_generator_spec.rb +75 -0
- data/spec/vraptor-scaffold/generators/scaffold/model_generator/model_generator_spec.rb +50 -0
- data/spec/vraptor-scaffold/generators/{scaffold_generator → scaffold}/model_generator/templates/Product.java +6 -6
- data/spec/vraptor-scaffold/generators/scaffold/model_generator/templates/hibernate.cfg.xml +8 -0
- data/spec/vraptor-scaffold/generators/scaffold/repository_generator/repository_generator_spec.rb +60 -0
- data/spec/vraptor-scaffold/generators/scaffold/repository_generator/templates/ClientRepository.java +22 -0
- data/spec/vraptor-scaffold/generators/scaffold/repository_generator/templates/ClientRepositoryImpl.java +16 -0
- data/spec/vraptor-scaffold/generators/{scaffold_generator → scaffold}/repository_generator/templates/ProductRepository.java +3 -3
- data/spec/vraptor-scaffold/generators/{scaffold_generator → scaffold}/repository_generator/templates/ProductRepositoryImpl.java +3 -3
- data/spec/vraptor-scaffold/generators/{scaffold_generator → scaffold}/scaffold_generator_spec.rb +0 -0
- data/spec/vraptor-scaffold/runner/commands_help_spec.rb +12 -0
- data/spec/vraptor-scaffold/runner/configure_spec.rb +12 -0
- data/spec/vraptor-scaffold/runner/generator_spec.rb +31 -0
- data/spec/vraptor-scaffold/runner/help_spec.rb +29 -0
- data/spec/vraptor-scaffold/runner/plugin_spec.rb +45 -0
- data/spec/vraptor-scaffold/runner/scaffold_spec.rb +35 -0
- data/spec/vraptor-scaffold_spec.rb +1 -94
- data/vraptor-scaffold.gemspec +3 -3
- metadata +137 -140
- data/History.txt +0 -128
- data/lib/vraptor-scaffold/generators/app_generator/app_generator.rb +0 -102
- data/lib/vraptor-scaffold/generators/app_generator/dependency_manager.rb +0 -37
- data/lib/vraptor-scaffold/generators/app_generator/templates/ivysettings.xml +0 -9
- data/lib/vraptor-scaffold/generators/app_generator/templates/resources/META-INF/persistence.xml +0 -20
- data/lib/vraptor-scaffold/generators/app_generator/templates/resources/log4j.properties +0 -4
- data/lib/vraptor-scaffold/generators/app_generator/templates/src-test/models/.empty_directory +0 -0
- data/lib/vraptor-scaffold/generators/app_generator/templates/src-test/repositories/.empty_directory +0 -0
- data/lib/vraptor-scaffold/generators/app_generator/templates/src/controllers/.empty_directory +0 -0
- data/lib/vraptor-scaffold/generators/app_generator/templates/vraptor-scaffold.erb +0 -2
- data/lib/vraptor-scaffold/generators/app_generator/templates/webapp/images/.empty_directory +0 -0
- data/lib/vraptor-scaffold/generators/app_generator/templates/webapp/javascripts/application.js +0 -0
- data/lib/vraptor-scaffold/generators/app_generator/templates/webapp/javascripts/jquery.min.js +0 -16
- data/lib/vraptor-scaffold/generators/scaffold_generator/freemarker_generator/freemarker_generator.rb +0 -22
- data/lib/vraptor-scaffold/generators/scaffold_generator/freemarker_generator/templates/index.erb +0 -36
- data/lib/vraptor-scaffold/generators/scaffold_generator/freemarker_generator/templates/show.erb +0 -14
- data/lib/vraptor-scaffold/generators/scaffold_generator/jsp_generator/jsp_generator.rb +0 -22
- data/lib/vraptor-scaffold/generators/scaffold_generator/jsp_generator/templates/show.erb +0 -14
- data/lib/vraptor-scaffold/generators/scaffold_generator/model_generator/model_generator.rb +0 -11
- data/lib/vraptor-scaffold/generators/scaffold_generator/repository_generator/repository_generator.rb +0 -12
- data/lib/vraptor-scaffold/generators/scaffold_generator/repository_generator/templates/repository_impl.erb +0 -16
- data/spec/vraptor-scaffold/generators/scaffold_generator/base_scaffold_spec.rb +0 -41
- data/spec/vraptor-scaffold/generators/scaffold_generator/freemarker_generator/freemarker_generator_spec.rb +0 -36
- data/spec/vraptor-scaffold/generators/scaffold_generator/jsp_generator/jsp_generator_spec.rb +0 -34
- data/spec/vraptor-scaffold/generators/scaffold_generator/model_generator/model_generator_spec.rb +0 -25
- data/spec/vraptor-scaffold/generators/scaffold_generator/repository_generator/repository_generator_spec.rb +0 -31
data/spec/vraptor-scaffold/generators/scaffold/repository_generator/repository_generator_spec.rb
ADDED
@@ -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
|
data/spec/vraptor-scaffold/generators/scaffold/repository_generator/templates/ClientRepository.java
ADDED
@@ -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.
|
1
|
+
package app.repository;
|
2
2
|
|
3
3
|
import java.util.List;
|
4
4
|
|
5
|
-
import app.
|
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
|
-
|
14
|
+
Product update(Product entity);
|
15
15
|
|
16
16
|
void destroy(Product entity);
|
17
17
|
|
@@ -1,12 +1,12 @@
|
|
1
|
-
package app.
|
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.
|
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
|
|
data/spec/vraptor-scaffold/generators/{scaffold_generator → scaffold}/scaffold_generator_spec.rb
RENAMED
File without changes
|
@@ -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
|
data/vraptor-scaffold.gemspec
CHANGED
@@ -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.
|
18
|
+
s.add_dependency('rake', '0.9.2')
|
19
19
|
|
20
|
-
s.add_development_dependency('rspec', '1.3.
|
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:
|
5
|
-
|
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-
|
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
|
-
|
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
|
-
|
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/
|
130
|
-
- lib/vraptor-scaffold/generators/app_generator
|
131
|
-
- lib/vraptor-scaffold/generators/
|
132
|
-
- lib/vraptor-scaffold/generators/
|
133
|
-
- lib/vraptor-scaffold/generators/
|
134
|
-
- lib/vraptor-scaffold/generators/
|
135
|
-
- lib/vraptor-scaffold/generators/
|
136
|
-
- lib/vraptor-scaffold/generators/
|
137
|
-
- lib/vraptor-scaffold/generators/
|
138
|
-
- lib/vraptor-scaffold/generators/
|
139
|
-
- lib/vraptor-scaffold/generators/
|
140
|
-
- lib/vraptor-scaffold/generators/
|
141
|
-
- lib/vraptor-scaffold/generators/
|
142
|
-
- lib/vraptor-scaffold/generators/
|
143
|
-
- lib/vraptor-scaffold/generators/
|
144
|
-
- lib/vraptor-scaffold/generators/
|
145
|
-
- lib/vraptor-scaffold/generators/
|
146
|
-
- lib/vraptor-scaffold/generators/
|
147
|
-
- lib/vraptor-scaffold/generators/
|
148
|
-
- lib/vraptor-scaffold/generators/
|
149
|
-
- lib/vraptor-scaffold/generators/
|
150
|
-
- lib/vraptor-scaffold/generators/
|
151
|
-
- lib/vraptor-scaffold/generators/
|
152
|
-
- lib/vraptor-scaffold/generators/
|
153
|
-
- lib/vraptor-scaffold/generators/
|
154
|
-
- lib/vraptor-scaffold/generators/
|
155
|
-
- lib/vraptor-scaffold/generators/
|
156
|
-
- lib/vraptor-scaffold/generators/
|
157
|
-
- lib/vraptor-scaffold/generators/
|
158
|
-
- lib/vraptor-scaffold/generators/
|
159
|
-
- lib/vraptor-scaffold/generators/
|
160
|
-
- lib/vraptor-scaffold/generators/
|
161
|
-
- lib/vraptor-scaffold/generators/
|
162
|
-
- lib/vraptor-scaffold/generators/
|
163
|
-
- lib/vraptor-scaffold/generators/
|
164
|
-
- lib/vraptor-scaffold/generators/
|
165
|
-
- lib/vraptor-scaffold/generators/
|
166
|
-
- lib/vraptor-scaffold/generators/
|
167
|
-
- lib/vraptor-scaffold/generators/
|
168
|
-
- lib/vraptor-scaffold/generators/
|
169
|
-
- lib/vraptor-scaffold/generators/
|
170
|
-
- lib/vraptor-scaffold/generators/
|
171
|
-
- lib/vraptor-scaffold/generators/
|
172
|
-
- lib/vraptor-scaffold/generators/
|
173
|
-
- lib/vraptor-scaffold/generators/
|
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/
|
177
|
-
- lib/vraptor-scaffold/generators/
|
178
|
-
- lib/vraptor-scaffold/generators/
|
179
|
-
- lib/vraptor-scaffold/generators/
|
180
|
-
- lib/vraptor-scaffold/generators/
|
181
|
-
- lib/vraptor-scaffold/generators/
|
182
|
-
- lib/vraptor-scaffold/generators/
|
183
|
-
- lib/vraptor-scaffold/generators/
|
184
|
-
- lib/vraptor-scaffold/generators/
|
185
|
-
- lib/vraptor-scaffold/generators/
|
186
|
-
- lib/vraptor-scaffold/generators/
|
187
|
-
- lib/vraptor-scaffold/generators/
|
188
|
-
- lib/vraptor-scaffold/generators/
|
189
|
-
- lib/vraptor-scaffold/generators/
|
190
|
-
- lib/vraptor-scaffold/generators/scaffold_generator
|
191
|
-
- lib/vraptor-scaffold/generators/
|
192
|
-
- lib/vraptor-scaffold/generators/
|
193
|
-
- lib/vraptor-scaffold/generators/
|
194
|
-
- lib/vraptor-scaffold/generators/
|
195
|
-
- lib/vraptor-scaffold/generators/
|
196
|
-
- lib/vraptor-scaffold/generators/
|
197
|
-
- lib/vraptor-scaffold/generators/
|
198
|
-
- lib/vraptor-scaffold/generators/
|
199
|
-
- lib/vraptor-scaffold/generators/
|
200
|
-
- lib/vraptor-scaffold/generators/
|
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/
|
208
|
-
- spec/vraptor-scaffold/generators/
|
209
|
-
- spec/vraptor-scaffold/generators/
|
210
|
-
- spec/vraptor-scaffold/generators/
|
211
|
-
- spec/vraptor-scaffold/generators/
|
212
|
-
- spec/vraptor-scaffold/generators/
|
213
|
-
- spec/vraptor-scaffold/generators/
|
214
|
-
- spec/vraptor-scaffold/generators/
|
215
|
-
- spec/vraptor-scaffold/generators/
|
216
|
-
- spec/vraptor-scaffold/generators/
|
217
|
-
- spec/vraptor-scaffold/generators/
|
218
|
-
- spec/vraptor-scaffold/generators/
|
219
|
-
- spec/vraptor-scaffold/generators/
|
220
|
-
- spec/vraptor-scaffold/generators/
|
221
|
-
- spec/vraptor-scaffold/generators/
|
222
|
-
- spec/vraptor-scaffold/generators/
|
223
|
-
- spec/vraptor-scaffold/generators/
|
224
|
-
- spec/vraptor-scaffold/generators/
|
225
|
-
- spec/vraptor-scaffold/generators/
|
226
|
-
- spec/vraptor-scaffold/generators/
|
227
|
-
- spec/vraptor-scaffold/generators/
|
228
|
-
- spec/vraptor-scaffold/generators/
|
229
|
-
- spec/vraptor-scaffold/generators/
|
230
|
-
- spec/vraptor-scaffold/generators/
|
231
|
-
- spec/vraptor-scaffold/generators/
|
232
|
-
- spec/vraptor-scaffold/generators/
|
233
|
-
- spec/vraptor-scaffold/generators/
|
234
|
-
- spec/vraptor-scaffold/generators/
|
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.
|
262
|
+
rubygems_version: 1.8.8
|
266
263
|
signing_key:
|
267
264
|
specification_version: 3
|
268
265
|
summary: VRaptor Scaffold.
|