rapid-core 0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/.gitignore +7 -0
- data/.rspec +2 -0
- data/Gemfile +11 -0
- data/Gemfile.lock +53 -0
- data/Rakefile +61 -0
- data/cucumber.yml +3 -0
- data/doc/plan.txt +89 -0
- data/doc/scaffold/controller.rb +83 -0
- data/doc/scaffold/helper.rb +2 -0
- data/doc/scaffold/model.rb +5 -0
- data/doc/scaffold/rapid_scaffold.rb +5 -0
- data/doc/scaffold/views/_form.html.erb +25 -0
- data/doc/scaffold/views/edit.html.erb +6 -0
- data/doc/scaffold/views/index.html.erb +25 -0
- data/doc/scaffold/views/new.html.erb +5 -0
- data/doc/scaffold/views/show.html.erb +15 -0
- data/features/settings/boolean/default.feature +36 -0
- data/features/settings/double-nested/default.feature +50 -0
- data/features/settings/double-nested/if.feature +41 -0
- data/features/settings/double-nested/unless.feature +39 -0
- data/features/settings/double-nested/validates/exclusion_of.feature +30 -0
- data/features/settings/double-nested/validates/format_of.feature +30 -0
- data/features/settings/double-nested/validates/inclusion_of.feature +30 -0
- data/features/settings/double-nested/validates/length_of.feature +30 -0
- data/features/settings/double-nested/validates/presence_of.feature +37 -0
- data/features/settings/double-nested/validates/size_of.feature +30 -0
- data/features/settings/integer/default.feature +49 -0
- data/features/settings/nested/default.feature +50 -0
- data/features/settings/nested/if.feature +53 -0
- data/features/settings/nested/unless.feature +32 -0
- data/features/settings/nested/validates/exclusion_of.feature +30 -0
- data/features/settings/nested/validates/format_of.feature +30 -0
- data/features/settings/nested/validates/inclusion_of.feature +30 -0
- data/features/settings/nested/validates/length_of.feature +30 -0
- data/features/settings/nested/validates/presence_of.feature +37 -0
- data/features/settings/nested/validates/size_of.feature +30 -0
- data/features/settings/not_found.feature +33 -0
- data/features/settings/string/default.feature +36 -0
- data/features/settings/string/validates/exclusion_of.feature +30 -0
- data/features/settings/string/validates/format_of.feature +30 -0
- data/features/settings/string/validates/inclusion_of.feature +30 -0
- data/features/settings/string/validates/length_of.feature +30 -0
- data/features/settings/string/validates/presence_of.feature +37 -0
- data/features/settings/string/validates/size_of.feature +30 -0
- data/features/step_definitions/settings_steps.rb +92 -0
- data/features/step_definitions/skeleton_steps.rb +68 -0
- data/features/step_definitions/template_steps.rb +39 -0
- data/features/support/env.rb +6 -0
- data/features/templates/comment_if.feature +55 -0
- data/features/templates/comment_unless.feature +56 -0
- data/features/templates/for/for.feature +51 -0
- data/features/templates/if/else.feature +60 -0
- data/features/templates/if/elsif.feature +82 -0
- data/features/templates/if/if.feature +55 -0
- data/features/templates/namespaces/exist.feature +54 -0
- data/features/templates/static.feature +37 -0
- data/features/templates/variables.feature +61 -0
- data/lib/rapid/check.rb +162 -0
- data/lib/rapid/core.rb +37 -0
- data/lib/rapid/error.rb +84 -0
- data/lib/rapid/module.rb +35 -0
- data/lib/rapid/railtie.rb +18 -0
- data/lib/rapid/setting/base.rb +35 -0
- data/lib/rapid/setting/boolean_setting.rb +17 -0
- data/lib/rapid/setting/class_hash.rb +34 -0
- data/lib/rapid/setting/comments.rb +25 -0
- data/lib/rapid/setting/definer.rb +151 -0
- data/lib/rapid/setting/instance_hash.rb +132 -0
- data/lib/rapid/setting/instance_root.rb +107 -0
- data/lib/rapid/setting/integer_setting.rb +24 -0
- data/lib/rapid/setting/namespace/base.rb +113 -0
- data/lib/rapid/setting/namespace/instance.rb +84 -0
- data/lib/rapid/setting/nested_validations.rb +86 -0
- data/lib/rapid/setting/string_setting.rb +13 -0
- data/lib/rapid/settings.rb +129 -0
- data/lib/rapid/skeleton/base.rb +164 -0
- data/lib/rapid/skeleton/helpers/directory.rb +53 -0
- data/lib/rapid/skeleton/helpers/gem.rb +133 -0
- data/lib/rapid/skeleton/helpers/migration.rb +46 -0
- data/lib/rapid/skeleton/helpers/route.rb +115 -0
- data/lib/rapid/skeleton/helpers/script.rb +33 -0
- data/lib/rapid/skeleton/helpers/template.rb +73 -0
- data/lib/rapid/skeleton/helpers/view.rb +35 -0
- data/lib/rapid/spec/template.rb +104 -0
- data/lib/rapid/spec.rb +1 -0
- data/lib/rapid/tasks.rb +29 -0
- data/lib/rapid/template/base.rb +49 -0
- data/lib/rapid/template/node/base.rb +43 -0
- data/lib/rapid/template/node/comment_node.rb +42 -0
- data/lib/rapid/template/node/if_node.rb +109 -0
- data/lib/rapid/template/node/root.rb +51 -0
- data/lib/rapid/template/node/static.rb +29 -0
- data/lib/rapid/template/node/variable.rb +86 -0
- data/lib/rapid/template/parser.rb +167 -0
- data/lib/rapid/template/pulling/base.rb +91 -0
- data/lib/rapid/template/pulling/explicit.rb +92 -0
- data/lib/rapid/template/pulling/forgiving.rb +58 -0
- data/lib/rapid/version.rb +3 -0
- data/lib/rapid.rb +37 -0
- data/rapid-core.gemspec +26 -0
- data/spec/rapid/check_spec.rb +119 -0
- data/spec/rapid/error_spec.rb +14 -0
- data/spec/rapid/module_spec.rb +28 -0
- data/spec/rapid/setting/base_spec.rb +17 -0
- data/spec/rapid/setting/definer_spec.rb +318 -0
- data/spec/rapid/setting/instance_root_spec.rb +161 -0
- data/spec/rapid/setting/namespace/base_spec.rb +93 -0
- data/spec/rapid/setting/namespace/instance_spec.rb +12 -0
- data/spec/rapid/setting/nested_validations_spec.rb +72 -0
- data/spec/rapid/settings_spec.rb +51 -0
- data/spec/rapid/skeleton/base_spec.rb +224 -0
- data/spec/rapid/skeleton/helpers/directory_spec.rb +104 -0
- data/spec/rapid/skeleton/helpers/gem_spec.rb +180 -0
- data/spec/rapid/skeleton/helpers/migration_spec.rb +23 -0
- data/spec/rapid/skeleton/helpers/route_spec.rb +120 -0
- data/spec/rapid/skeleton/helpers/script_spec.rb +57 -0
- data/spec/rapid/skeleton/helpers/template_spec.rb +142 -0
- data/spec/rapid/skeleton/helpers/view_spec.rb +54 -0
- data/spec/rapid/spec/template_spec.rb +168 -0
- data/spec/rapid/template/base_spec.rb +290 -0
- data/spec/rapid/template/node/base_spec.rb +9 -0
- data/spec/rapid/template/node/comment_node_spec.rb +46 -0
- data/spec/rapid/template/node/if_node_spec.rb +28 -0
- data/spec/rapid/template/node/root_spec.rb +9 -0
- data/spec/rapid/template/node/static_spec.rb +17 -0
- data/spec/rapid/template/node/variable_spec.rb +87 -0
- data/spec/rapid/template/parser_spec.rb +187 -0
- data/spec/rapid/template/pulling/base_spec.rb +81 -0
- data/spec/rapid/template/pulling/explicit_spec.rb +33 -0
- data/spec/rapid/template/pulling/forgiving_spec.rb +132 -0
- data/spec/spec_helper.rb +10 -0
- metadata +325 -0
@@ -0,0 +1,81 @@
|
|
1
|
+
require File.expand_path(File.dirname(__FILE__) + '/../../../spec_helper')
|
2
|
+
|
3
|
+
describe Rapid::Template::Pulling::Base do
|
4
|
+
|
5
|
+
describe "to_hash" do
|
6
|
+
|
7
|
+
it "should remove covered namespaces" do
|
8
|
+
@pulling = Rapid::Template::Pulling::Base.new "foo"
|
9
|
+
@pulling["app.author"] = true
|
10
|
+
@pulling["app.author.name"] = "Dan"
|
11
|
+
|
12
|
+
@pulling.to_hash.should == {"app.author.name" => "Dan"}
|
13
|
+
end
|
14
|
+
|
15
|
+
it "should not remove uncovered namespaces" do
|
16
|
+
@pulling = Rapid::Template::Pulling::Base.new "foo"
|
17
|
+
@pulling["app.author"] = true
|
18
|
+
@pulling["app_author.name"] = "Dan"
|
19
|
+
|
20
|
+
@pulling.to_hash.should == {"app.author" => true, "app_author.name" => "Dan"}
|
21
|
+
end
|
22
|
+
|
23
|
+
end
|
24
|
+
|
25
|
+
describe "raise_not_matching" do
|
26
|
+
|
27
|
+
it "should match what it can before raising" do
|
28
|
+
@pulling = Rapid::Template::Pulling::Base.new "foo bar"
|
29
|
+
@pulling.should_receive(:content)
|
30
|
+
|
31
|
+
begin
|
32
|
+
@pulling.raise_not_matching "foo Q"
|
33
|
+
rescue Rapid::NotMatchingTemplateError => e
|
34
|
+
e.content.should == nil
|
35
|
+
e.expected_content.should == "foo Q"
|
36
|
+
end
|
37
|
+
end
|
38
|
+
|
39
|
+
end
|
40
|
+
|
41
|
+
describe "not implemented" do
|
42
|
+
|
43
|
+
before do
|
44
|
+
@pulling = Rapid::Template::Pulling::Base.new "foo bar"
|
45
|
+
end
|
46
|
+
|
47
|
+
it "should not implement content" do
|
48
|
+
lambda { @pulling.content }.should raise_error(NotImplementedError)
|
49
|
+
end
|
50
|
+
|
51
|
+
it "should not implement index" do
|
52
|
+
lambda { @pulling.index "" }.should raise_error(NotImplementedError)
|
53
|
+
end
|
54
|
+
|
55
|
+
it "should not implement starts_with?" do
|
56
|
+
lambda { @pulling.starts_with?("") }.should raise_error(NotImplementedError)
|
57
|
+
end
|
58
|
+
|
59
|
+
it "should not implement starts_with" do
|
60
|
+
lambda { @pulling.starts_with "" }.should raise_error(NotImplementedError)
|
61
|
+
end
|
62
|
+
|
63
|
+
it "should not implement move!" do
|
64
|
+
lambda { @pulling.move! 4 }.should raise_error(NotImplementedError)
|
65
|
+
end
|
66
|
+
|
67
|
+
it "should not implement match" do
|
68
|
+
lambda { @pulling.match "" }.should raise_error(NotImplementedError)
|
69
|
+
end
|
70
|
+
|
71
|
+
it "should not implement match!" do
|
72
|
+
lambda { @pulling.match! "" }.should raise_error(NotImplementedError)
|
73
|
+
end
|
74
|
+
|
75
|
+
it "should not implement empty!" do
|
76
|
+
lambda { @pulling.empty! }.should raise_error(NotImplementedError)
|
77
|
+
end
|
78
|
+
|
79
|
+
end
|
80
|
+
|
81
|
+
end
|
@@ -0,0 +1,33 @@
|
|
1
|
+
require File.expand_path(File.dirname(__FILE__) + '/../../../spec_helper')
|
2
|
+
|
3
|
+
describe Rapid::Template::Pulling::Explicit do
|
4
|
+
|
5
|
+
describe "empty!" do
|
6
|
+
|
7
|
+
it "should not raise an error when it's empty" do
|
8
|
+
@pulling = Rapid::Template::Pulling::Explicit.new("")
|
9
|
+
@pulling.empty!
|
10
|
+
end
|
11
|
+
|
12
|
+
it "should raise an error when it's not empty" do
|
13
|
+
@pulling = Rapid::Template::Pulling::Explicit.new("foo bar")
|
14
|
+
lambda { @pulling.empty! }.should raise_error(Rapid::NotMatchingTemplateError)
|
15
|
+
end
|
16
|
+
|
17
|
+
end
|
18
|
+
|
19
|
+
describe "match" do
|
20
|
+
|
21
|
+
it "should be true when good" do
|
22
|
+
@pulling = Rapid::Template::Pulling::Explicit.new("foo bar")
|
23
|
+
@pulling.match("foo").should == [true, 3, 3]
|
24
|
+
end
|
25
|
+
|
26
|
+
it "should be false it doesn't" do
|
27
|
+
@pulling = Rapid::Template::Pulling::Explicit.new("foo bar")
|
28
|
+
@pulling.match("fo2").should == [false, 2, 2]
|
29
|
+
end
|
30
|
+
|
31
|
+
end
|
32
|
+
|
33
|
+
end
|
@@ -0,0 +1,132 @@
|
|
1
|
+
require File.expand_path(File.dirname(__FILE__) + '/../../../spec_helper')
|
2
|
+
|
3
|
+
describe Rapid::Template::Pulling::Forgiving do
|
4
|
+
|
5
|
+
describe "match!" do
|
6
|
+
|
7
|
+
def match! expected, content
|
8
|
+
@pulling = Rapid::Template::Pulling::Forgiving.new expected
|
9
|
+
@pulling.match! content
|
10
|
+
end
|
11
|
+
|
12
|
+
it "shouldn't mind an extra newline at the beginning of expected" do
|
13
|
+
match!(%(\nhi something), "hi something")
|
14
|
+
@pulling.content.should == ""
|
15
|
+
@pulling.previous_content.should == "\nhi something"
|
16
|
+
end
|
17
|
+
|
18
|
+
it "shouldn't mind an extra newline at the beginning of content" do
|
19
|
+
match!(%(hi something), "\nhi something")
|
20
|
+
@pulling.content.should == ""
|
21
|
+
@pulling.previous_content.should == "hi something"
|
22
|
+
end
|
23
|
+
|
24
|
+
it "shouldn't mind extra spaces and newline at the beginning of expected" do
|
25
|
+
match!(%( \nhi something), "hi something")
|
26
|
+
@pulling.content.should == ""
|
27
|
+
@pulling.previous_content.should == " \nhi something"
|
28
|
+
end
|
29
|
+
|
30
|
+
it "shouldn't mind extra spaces and newline at the beginning of content" do
|
31
|
+
match!(%(hi something), " \nhi something")
|
32
|
+
@pulling.content.should == ""
|
33
|
+
@pulling.previous_content.should == "hi something"
|
34
|
+
end
|
35
|
+
|
36
|
+
# it "shouldn't mind empty lines inside the content" do
|
37
|
+
# match! %(hi\n \nsomething), "hi\nsomething"
|
38
|
+
# @pulling.content.should == ""
|
39
|
+
# @pulling.previous_content.should == "hi\n \nsomething"
|
40
|
+
# end
|
41
|
+
#
|
42
|
+
# it "shouldn't mind empty lines inside the expected" do
|
43
|
+
# match! %(hi\nsomething), "hi\n \nsomething"
|
44
|
+
# @pulling.content.should == ""
|
45
|
+
# @pulling.previous_content.should == "hi\nsomething"
|
46
|
+
# end
|
47
|
+
|
48
|
+
it "should mind extra character before the newline" do
|
49
|
+
lambda { match!(%( b \nhi something), "hi something") }.should raise_error(Rapid::NotMatchingTemplateError)
|
50
|
+
lambda { match!(%(hi something), " a \nhi something") }.should raise_error(Rapid::NotMatchingTemplateError)
|
51
|
+
end
|
52
|
+
|
53
|
+
it "should fail with the counts ignoring the whitespace" do
|
54
|
+
lambda { match!(%( \nhi a something), "hi b something") }.should raise_error(Rapid::NotMatchingTemplateError)
|
55
|
+
@pulling.previous_content.should == " \nhi "
|
56
|
+
@pulling.content.should == "a something"
|
57
|
+
|
58
|
+
lambda { match!(%(hi a something), " \nhi b something") }.should raise_error(Rapid::NotMatchingTemplateError)
|
59
|
+
@pulling.previous_content.should == "hi "
|
60
|
+
@pulling.content.should == "a something"
|
61
|
+
end
|
62
|
+
|
63
|
+
end
|
64
|
+
|
65
|
+
describe "match" do
|
66
|
+
|
67
|
+
def match expected, content
|
68
|
+
@pulling = Rapid::Template::Pulling::Forgiving.new expected
|
69
|
+
@pulling.match content
|
70
|
+
end
|
71
|
+
|
72
|
+
it "should work verbatim with double-newlines" do
|
73
|
+
@expect = "::Application.configure do\n# Settings specified here will take precedence over those in config/application.rb\n\n# The production\n"
|
74
|
+
@got = "::Application.configure do\n # Settings specified here will take precedence over those in config/application.rb\n\n # Code is not reloaded between \n"
|
75
|
+
|
76
|
+
match(@expect, @got).should == [false, 27, 27]
|
77
|
+
end
|
78
|
+
|
79
|
+
it "shouldn't mind an extra newline at the beginning of expected" do
|
80
|
+
match(%(\nhi something), "hi something").should == [true, 13, 12]
|
81
|
+
@pulling.content.should == "\nhi something"
|
82
|
+
end
|
83
|
+
|
84
|
+
it "shouldn't mind an extra newline at the beginning of content" do
|
85
|
+
match(%(hi something), "\nhi something").should == [true, 12, 13]
|
86
|
+
@pulling.content.should == "hi something"
|
87
|
+
end
|
88
|
+
|
89
|
+
it "shouldn't mind extra spaces and newline at the beginning of expected" do
|
90
|
+
match(%( \nhi something), "hi something").should == [true, 15, 12]
|
91
|
+
@pulling.content.should == " \nhi something"
|
92
|
+
end
|
93
|
+
|
94
|
+
it "shouldn't mind extra spaces and newline at the beginning of content" do
|
95
|
+
match(%(hi something), " \nhi something").should == [true, 12, 15]
|
96
|
+
@pulling.content.should == "hi something"
|
97
|
+
end
|
98
|
+
|
99
|
+
# it "shouldn't mind empty lines inside the content" do
|
100
|
+
# match("hi\n \nsomething", "hi\nsomething").should == [true, 15, 12]
|
101
|
+
# @pulling.content.should == "hi\n \nsomething"
|
102
|
+
# end
|
103
|
+
#
|
104
|
+
# it "shouldn't mind empty lines inside the expected" do
|
105
|
+
# match("hi\nsomething", "hi\n \nsomething").should == [true, 15, 12]
|
106
|
+
# @pulling.content.should == "hi\nsomething"
|
107
|
+
# end
|
108
|
+
|
109
|
+
it "should fail with the counts ignoring the whitespace" do
|
110
|
+
match(%( \nhi a something), "hi b something").should == [false, 5, 3]
|
111
|
+
match(%(hi a something), " \nhi b something").should == [false, 3, 5]
|
112
|
+
end
|
113
|
+
|
114
|
+
it "should fail when content is longer than the expected" do
|
115
|
+
match("foo", "foo Dan").should == [false, 3, 3]
|
116
|
+
end
|
117
|
+
|
118
|
+
it "should match a partial" do
|
119
|
+
match("foo Dan bar", "foo ").should == [true, 4, 4]
|
120
|
+
end
|
121
|
+
|
122
|
+
it "should match a partial with blank newlines" do
|
123
|
+
match("class Foo\n \nend", "class Foo\n ").should == [true, 12, 12]
|
124
|
+
end
|
125
|
+
|
126
|
+
it "should match only whitespace" do
|
127
|
+
match("\n def baz\n end\n\nend", "\n ").should == [true, 3, 3]
|
128
|
+
end
|
129
|
+
|
130
|
+
end
|
131
|
+
|
132
|
+
end
|
data/spec/spec_helper.rb
ADDED
metadata
ADDED
@@ -0,0 +1,325 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: rapid-core
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
hash: 9
|
5
|
+
prerelease:
|
6
|
+
segments:
|
7
|
+
- 0
|
8
|
+
- 1
|
9
|
+
version: "0.1"
|
10
|
+
platform: ruby
|
11
|
+
authors:
|
12
|
+
- Dan Cunning
|
13
|
+
autorequire:
|
14
|
+
bindir: bin
|
15
|
+
cert_chain: []
|
16
|
+
|
17
|
+
date: 2012-02-15 00:00:00 -05:00
|
18
|
+
default_executable:
|
19
|
+
dependencies:
|
20
|
+
- !ruby/object:Gem::Dependency
|
21
|
+
name: activesupport
|
22
|
+
prerelease: false
|
23
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
24
|
+
none: false
|
25
|
+
requirements:
|
26
|
+
- - ">="
|
27
|
+
- !ruby/object:Gem::Version
|
28
|
+
hash: 7
|
29
|
+
segments:
|
30
|
+
- 3
|
31
|
+
- 0
|
32
|
+
version: "3.0"
|
33
|
+
type: :runtime
|
34
|
+
version_requirements: *id001
|
35
|
+
- !ruby/object:Gem::Dependency
|
36
|
+
name: activemodel
|
37
|
+
prerelease: false
|
38
|
+
requirement: &id002 !ruby/object:Gem::Requirement
|
39
|
+
none: false
|
40
|
+
requirements:
|
41
|
+
- - ">="
|
42
|
+
- !ruby/object:Gem::Version
|
43
|
+
hash: 7
|
44
|
+
segments:
|
45
|
+
- 3
|
46
|
+
- 0
|
47
|
+
version: "3.0"
|
48
|
+
type: :runtime
|
49
|
+
version_requirements: *id002
|
50
|
+
- !ruby/object:Gem::Dependency
|
51
|
+
name: i18n
|
52
|
+
prerelease: false
|
53
|
+
requirement: &id003 !ruby/object:Gem::Requirement
|
54
|
+
none: false
|
55
|
+
requirements:
|
56
|
+
- - ">="
|
57
|
+
- !ruby/object:Gem::Version
|
58
|
+
hash: 3
|
59
|
+
segments:
|
60
|
+
- 0
|
61
|
+
version: "0"
|
62
|
+
type: :runtime
|
63
|
+
version_requirements: *id003
|
64
|
+
- !ruby/object:Gem::Dependency
|
65
|
+
name: erubis
|
66
|
+
prerelease: false
|
67
|
+
requirement: &id004 !ruby/object:Gem::Requirement
|
68
|
+
none: false
|
69
|
+
requirements:
|
70
|
+
- - ">="
|
71
|
+
- !ruby/object:Gem::Version
|
72
|
+
hash: 3
|
73
|
+
segments:
|
74
|
+
- 0
|
75
|
+
version: "0"
|
76
|
+
type: :runtime
|
77
|
+
version_requirements: *id004
|
78
|
+
description: Code that understands code and can change it programmatically
|
79
|
+
email:
|
80
|
+
- dancunning@gmail.com
|
81
|
+
executables: []
|
82
|
+
|
83
|
+
extensions: []
|
84
|
+
|
85
|
+
extra_rdoc_files: []
|
86
|
+
|
87
|
+
files:
|
88
|
+
- .gitignore
|
89
|
+
- .rspec
|
90
|
+
- Gemfile
|
91
|
+
- Gemfile.lock
|
92
|
+
- Rakefile
|
93
|
+
- cucumber.yml
|
94
|
+
- doc/plan.txt
|
95
|
+
- doc/scaffold/controller.rb
|
96
|
+
- doc/scaffold/helper.rb
|
97
|
+
- doc/scaffold/model.rb
|
98
|
+
- doc/scaffold/rapid_scaffold.rb
|
99
|
+
- doc/scaffold/views/_form.html.erb
|
100
|
+
- doc/scaffold/views/edit.html.erb
|
101
|
+
- doc/scaffold/views/index.html.erb
|
102
|
+
- doc/scaffold/views/new.html.erb
|
103
|
+
- doc/scaffold/views/show.html.erb
|
104
|
+
- features/settings/boolean/default.feature
|
105
|
+
- features/settings/double-nested/default.feature
|
106
|
+
- features/settings/double-nested/if.feature
|
107
|
+
- features/settings/double-nested/unless.feature
|
108
|
+
- features/settings/double-nested/validates/exclusion_of.feature
|
109
|
+
- features/settings/double-nested/validates/format_of.feature
|
110
|
+
- features/settings/double-nested/validates/inclusion_of.feature
|
111
|
+
- features/settings/double-nested/validates/length_of.feature
|
112
|
+
- features/settings/double-nested/validates/presence_of.feature
|
113
|
+
- features/settings/double-nested/validates/size_of.feature
|
114
|
+
- features/settings/integer/default.feature
|
115
|
+
- features/settings/nested/default.feature
|
116
|
+
- features/settings/nested/if.feature
|
117
|
+
- features/settings/nested/unless.feature
|
118
|
+
- features/settings/nested/validates/exclusion_of.feature
|
119
|
+
- features/settings/nested/validates/format_of.feature
|
120
|
+
- features/settings/nested/validates/inclusion_of.feature
|
121
|
+
- features/settings/nested/validates/length_of.feature
|
122
|
+
- features/settings/nested/validates/presence_of.feature
|
123
|
+
- features/settings/nested/validates/size_of.feature
|
124
|
+
- features/settings/not_found.feature
|
125
|
+
- features/settings/string/default.feature
|
126
|
+
- features/settings/string/validates/exclusion_of.feature
|
127
|
+
- features/settings/string/validates/format_of.feature
|
128
|
+
- features/settings/string/validates/inclusion_of.feature
|
129
|
+
- features/settings/string/validates/length_of.feature
|
130
|
+
- features/settings/string/validates/presence_of.feature
|
131
|
+
- features/settings/string/validates/size_of.feature
|
132
|
+
- features/step_definitions/settings_steps.rb
|
133
|
+
- features/step_definitions/skeleton_steps.rb
|
134
|
+
- features/step_definitions/template_steps.rb
|
135
|
+
- features/support/env.rb
|
136
|
+
- features/templates/comment_if.feature
|
137
|
+
- features/templates/comment_unless.feature
|
138
|
+
- features/templates/for/for.feature
|
139
|
+
- features/templates/if/else.feature
|
140
|
+
- features/templates/if/elsif.feature
|
141
|
+
- features/templates/if/if.feature
|
142
|
+
- features/templates/namespaces/exist.feature
|
143
|
+
- features/templates/static.feature
|
144
|
+
- features/templates/variables.feature
|
145
|
+
- lib/rapid.rb
|
146
|
+
- lib/rapid/check.rb
|
147
|
+
- lib/rapid/core.rb
|
148
|
+
- lib/rapid/error.rb
|
149
|
+
- lib/rapid/module.rb
|
150
|
+
- lib/rapid/railtie.rb
|
151
|
+
- lib/rapid/setting/base.rb
|
152
|
+
- lib/rapid/setting/boolean_setting.rb
|
153
|
+
- lib/rapid/setting/class_hash.rb
|
154
|
+
- lib/rapid/setting/comments.rb
|
155
|
+
- lib/rapid/setting/definer.rb
|
156
|
+
- lib/rapid/setting/instance_hash.rb
|
157
|
+
- lib/rapid/setting/instance_root.rb
|
158
|
+
- lib/rapid/setting/integer_setting.rb
|
159
|
+
- lib/rapid/setting/namespace/base.rb
|
160
|
+
- lib/rapid/setting/namespace/instance.rb
|
161
|
+
- lib/rapid/setting/nested_validations.rb
|
162
|
+
- lib/rapid/setting/string_setting.rb
|
163
|
+
- lib/rapid/settings.rb
|
164
|
+
- lib/rapid/skeleton/base.rb
|
165
|
+
- lib/rapid/skeleton/helpers/directory.rb
|
166
|
+
- lib/rapid/skeleton/helpers/gem.rb
|
167
|
+
- lib/rapid/skeleton/helpers/migration.rb
|
168
|
+
- lib/rapid/skeleton/helpers/route.rb
|
169
|
+
- lib/rapid/skeleton/helpers/script.rb
|
170
|
+
- lib/rapid/skeleton/helpers/template.rb
|
171
|
+
- lib/rapid/skeleton/helpers/view.rb
|
172
|
+
- lib/rapid/spec.rb
|
173
|
+
- lib/rapid/spec/template.rb
|
174
|
+
- lib/rapid/tasks.rb
|
175
|
+
- lib/rapid/template/base.rb
|
176
|
+
- lib/rapid/template/node/base.rb
|
177
|
+
- lib/rapid/template/node/comment_node.rb
|
178
|
+
- lib/rapid/template/node/if_node.rb
|
179
|
+
- lib/rapid/template/node/root.rb
|
180
|
+
- lib/rapid/template/node/static.rb
|
181
|
+
- lib/rapid/template/node/variable.rb
|
182
|
+
- lib/rapid/template/parser.rb
|
183
|
+
- lib/rapid/template/pulling/base.rb
|
184
|
+
- lib/rapid/template/pulling/explicit.rb
|
185
|
+
- lib/rapid/template/pulling/forgiving.rb
|
186
|
+
- lib/rapid/version.rb
|
187
|
+
- rapid-core.gemspec
|
188
|
+
- spec/rapid/check_spec.rb
|
189
|
+
- spec/rapid/error_spec.rb
|
190
|
+
- spec/rapid/module_spec.rb
|
191
|
+
- spec/rapid/setting/base_spec.rb
|
192
|
+
- spec/rapid/setting/definer_spec.rb
|
193
|
+
- spec/rapid/setting/instance_root_spec.rb
|
194
|
+
- spec/rapid/setting/namespace/base_spec.rb
|
195
|
+
- spec/rapid/setting/namespace/instance_spec.rb
|
196
|
+
- spec/rapid/setting/nested_validations_spec.rb
|
197
|
+
- spec/rapid/settings_spec.rb
|
198
|
+
- spec/rapid/skeleton/base_spec.rb
|
199
|
+
- spec/rapid/skeleton/helpers/directory_spec.rb
|
200
|
+
- spec/rapid/skeleton/helpers/gem_spec.rb
|
201
|
+
- spec/rapid/skeleton/helpers/migration_spec.rb
|
202
|
+
- spec/rapid/skeleton/helpers/route_spec.rb
|
203
|
+
- spec/rapid/skeleton/helpers/script_spec.rb
|
204
|
+
- spec/rapid/skeleton/helpers/template_spec.rb
|
205
|
+
- spec/rapid/skeleton/helpers/view_spec.rb
|
206
|
+
- spec/rapid/spec/template_spec.rb
|
207
|
+
- spec/rapid/template/base_spec.rb
|
208
|
+
- spec/rapid/template/node/base_spec.rb
|
209
|
+
- spec/rapid/template/node/comment_node_spec.rb
|
210
|
+
- spec/rapid/template/node/if_node_spec.rb
|
211
|
+
- spec/rapid/template/node/root_spec.rb
|
212
|
+
- spec/rapid/template/node/static_spec.rb
|
213
|
+
- spec/rapid/template/node/variable_spec.rb
|
214
|
+
- spec/rapid/template/parser_spec.rb
|
215
|
+
- spec/rapid/template/pulling/base_spec.rb
|
216
|
+
- spec/rapid/template/pulling/explicit_spec.rb
|
217
|
+
- spec/rapid/template/pulling/forgiving_spec.rb
|
218
|
+
- spec/spec_helper.rb
|
219
|
+
has_rdoc: true
|
220
|
+
homepage: ""
|
221
|
+
licenses: []
|
222
|
+
|
223
|
+
post_install_message:
|
224
|
+
rdoc_options: []
|
225
|
+
|
226
|
+
require_paths:
|
227
|
+
- lib
|
228
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
229
|
+
none: false
|
230
|
+
requirements:
|
231
|
+
- - ">="
|
232
|
+
- !ruby/object:Gem::Version
|
233
|
+
hash: 3
|
234
|
+
segments:
|
235
|
+
- 0
|
236
|
+
version: "0"
|
237
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
238
|
+
none: false
|
239
|
+
requirements:
|
240
|
+
- - ">="
|
241
|
+
- !ruby/object:Gem::Version
|
242
|
+
hash: 3
|
243
|
+
segments:
|
244
|
+
- 0
|
245
|
+
version: "0"
|
246
|
+
requirements: []
|
247
|
+
|
248
|
+
rubyforge_project: rapid-core
|
249
|
+
rubygems_version: 1.6.2
|
250
|
+
signing_key:
|
251
|
+
specification_version: 3
|
252
|
+
summary: Code that understands code and can change it programmatically
|
253
|
+
test_files:
|
254
|
+
- features/settings/boolean/default.feature
|
255
|
+
- features/settings/double-nested/default.feature
|
256
|
+
- features/settings/double-nested/if.feature
|
257
|
+
- features/settings/double-nested/unless.feature
|
258
|
+
- features/settings/double-nested/validates/exclusion_of.feature
|
259
|
+
- features/settings/double-nested/validates/format_of.feature
|
260
|
+
- features/settings/double-nested/validates/inclusion_of.feature
|
261
|
+
- features/settings/double-nested/validates/length_of.feature
|
262
|
+
- features/settings/double-nested/validates/presence_of.feature
|
263
|
+
- features/settings/double-nested/validates/size_of.feature
|
264
|
+
- features/settings/integer/default.feature
|
265
|
+
- features/settings/nested/default.feature
|
266
|
+
- features/settings/nested/if.feature
|
267
|
+
- features/settings/nested/unless.feature
|
268
|
+
- features/settings/nested/validates/exclusion_of.feature
|
269
|
+
- features/settings/nested/validates/format_of.feature
|
270
|
+
- features/settings/nested/validates/inclusion_of.feature
|
271
|
+
- features/settings/nested/validates/length_of.feature
|
272
|
+
- features/settings/nested/validates/presence_of.feature
|
273
|
+
- features/settings/nested/validates/size_of.feature
|
274
|
+
- features/settings/not_found.feature
|
275
|
+
- features/settings/string/default.feature
|
276
|
+
- features/settings/string/validates/exclusion_of.feature
|
277
|
+
- features/settings/string/validates/format_of.feature
|
278
|
+
- features/settings/string/validates/inclusion_of.feature
|
279
|
+
- features/settings/string/validates/length_of.feature
|
280
|
+
- features/settings/string/validates/presence_of.feature
|
281
|
+
- features/settings/string/validates/size_of.feature
|
282
|
+
- features/step_definitions/settings_steps.rb
|
283
|
+
- features/step_definitions/skeleton_steps.rb
|
284
|
+
- features/step_definitions/template_steps.rb
|
285
|
+
- features/support/env.rb
|
286
|
+
- features/templates/comment_if.feature
|
287
|
+
- features/templates/comment_unless.feature
|
288
|
+
- features/templates/for/for.feature
|
289
|
+
- features/templates/if/else.feature
|
290
|
+
- features/templates/if/elsif.feature
|
291
|
+
- features/templates/if/if.feature
|
292
|
+
- features/templates/namespaces/exist.feature
|
293
|
+
- features/templates/static.feature
|
294
|
+
- features/templates/variables.feature
|
295
|
+
- spec/rapid/check_spec.rb
|
296
|
+
- spec/rapid/error_spec.rb
|
297
|
+
- spec/rapid/module_spec.rb
|
298
|
+
- spec/rapid/setting/base_spec.rb
|
299
|
+
- spec/rapid/setting/definer_spec.rb
|
300
|
+
- spec/rapid/setting/instance_root_spec.rb
|
301
|
+
- spec/rapid/setting/namespace/base_spec.rb
|
302
|
+
- spec/rapid/setting/namespace/instance_spec.rb
|
303
|
+
- spec/rapid/setting/nested_validations_spec.rb
|
304
|
+
- spec/rapid/settings_spec.rb
|
305
|
+
- spec/rapid/skeleton/base_spec.rb
|
306
|
+
- spec/rapid/skeleton/helpers/directory_spec.rb
|
307
|
+
- spec/rapid/skeleton/helpers/gem_spec.rb
|
308
|
+
- spec/rapid/skeleton/helpers/migration_spec.rb
|
309
|
+
- spec/rapid/skeleton/helpers/route_spec.rb
|
310
|
+
- spec/rapid/skeleton/helpers/script_spec.rb
|
311
|
+
- spec/rapid/skeleton/helpers/template_spec.rb
|
312
|
+
- spec/rapid/skeleton/helpers/view_spec.rb
|
313
|
+
- spec/rapid/spec/template_spec.rb
|
314
|
+
- spec/rapid/template/base_spec.rb
|
315
|
+
- spec/rapid/template/node/base_spec.rb
|
316
|
+
- spec/rapid/template/node/comment_node_spec.rb
|
317
|
+
- spec/rapid/template/node/if_node_spec.rb
|
318
|
+
- spec/rapid/template/node/root_spec.rb
|
319
|
+
- spec/rapid/template/node/static_spec.rb
|
320
|
+
- spec/rapid/template/node/variable_spec.rb
|
321
|
+
- spec/rapid/template/parser_spec.rb
|
322
|
+
- spec/rapid/template/pulling/base_spec.rb
|
323
|
+
- spec/rapid/template/pulling/explicit_spec.rb
|
324
|
+
- spec/rapid/template/pulling/forgiving_spec.rb
|
325
|
+
- spec/spec_helper.rb
|