contao 0.5.1 → 0.5.2
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.
|
@@ -11,7 +11,6 @@ module TechnoGate
|
|
|
11
11
|
clone_template
|
|
12
12
|
rename_project
|
|
13
13
|
run_bundle_install
|
|
14
|
-
run_cap_multistage_setup
|
|
15
14
|
commit_everything
|
|
16
15
|
replace_origin_with_template
|
|
17
16
|
end
|
|
@@ -35,12 +34,6 @@ module TechnoGate
|
|
|
35
34
|
end
|
|
36
35
|
end
|
|
37
36
|
|
|
38
|
-
def run_cap_multistage_setup
|
|
39
|
-
Dir.chdir project_path do
|
|
40
|
-
Contao::System.safe_system 'bundle', 'exec', 'cap', 'multistage:setup'
|
|
41
|
-
end
|
|
42
|
-
end
|
|
43
|
-
|
|
44
37
|
def commit_everything
|
|
45
38
|
Dir.chdir project_path do
|
|
46
39
|
Contao::System.safe_system('git', 'add', '-A', '.')
|
|
@@ -48,7 +41,7 @@ module TechnoGate
|
|
|
48
41
|
'git',
|
|
49
42
|
'commit',
|
|
50
43
|
'-m',
|
|
51
|
-
'
|
|
44
|
+
'Freshly generated project'
|
|
52
45
|
)
|
|
53
46
|
end
|
|
54
47
|
end
|
data/lib/contao/version.rb
CHANGED
|
@@ -21,7 +21,6 @@ module TechnoGate
|
|
|
21
21
|
klass.any_instance.stub :clone_template
|
|
22
22
|
klass.any_instance.stub :rename_project
|
|
23
23
|
klass.any_instance.stub :run_bundle_install
|
|
24
|
-
klass.any_instance.stub :run_cap_multistage_setup
|
|
25
24
|
klass.any_instance.stub :commit_everything
|
|
26
25
|
klass.any_instance.stub :replace_origin_with_template
|
|
27
26
|
System.stub(:system)
|
|
@@ -31,7 +30,6 @@ module TechnoGate
|
|
|
31
30
|
subject.should_receive(:clone_template).once.ordered
|
|
32
31
|
subject.should_receive(:rename_project).once.ordered
|
|
33
32
|
subject.should_receive(:run_bundle_install).once.ordered
|
|
34
|
-
subject.should_receive(:run_cap_multistage_setup).once.ordered
|
|
35
33
|
subject.should_receive(:commit_everything).once.ordered
|
|
36
34
|
subject.should_receive(:replace_origin_with_template).once.ordered
|
|
37
35
|
|
|
@@ -90,31 +88,6 @@ module TechnoGate
|
|
|
90
88
|
end
|
|
91
89
|
end
|
|
92
90
|
|
|
93
|
-
describe "#run_cap_multistage_setup", :fakefs do
|
|
94
|
-
before :each do
|
|
95
|
-
stub_filesystem!
|
|
96
|
-
end
|
|
97
|
-
|
|
98
|
-
it {should respond_to :run_cap_multistage_setup}
|
|
99
|
-
|
|
100
|
-
it "should change the folder to the path" do
|
|
101
|
-
Dir.should_receive(:chdir).once
|
|
102
|
-
|
|
103
|
-
subject.send :run_cap_multistage_setup
|
|
104
|
-
end
|
|
105
|
-
|
|
106
|
-
it "should run cap multistage:setup" do
|
|
107
|
-
System.should_receive(:system).with(
|
|
108
|
-
'bundle',
|
|
109
|
-
'exec',
|
|
110
|
-
'cap',
|
|
111
|
-
'multistage:setup'
|
|
112
|
-
).once.and_return true
|
|
113
|
-
|
|
114
|
-
subject.send :run_cap_multistage_setup
|
|
115
|
-
end
|
|
116
|
-
end
|
|
117
|
-
|
|
118
91
|
describe "#commit_everything", :fakefs do
|
|
119
92
|
before :each do
|
|
120
93
|
stub_filesystem!
|
|
@@ -134,7 +107,7 @@ module TechnoGate
|
|
|
134
107
|
'git',
|
|
135
108
|
'commit',
|
|
136
109
|
'-m',
|
|
137
|
-
'
|
|
110
|
+
'Freshly generated project'
|
|
138
111
|
).once.ordered.and_return true
|
|
139
112
|
|
|
140
113
|
subject.send :commit_everything
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: contao
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.5.
|
|
4
|
+
version: 0.5.2
|
|
5
5
|
prerelease:
|
|
6
6
|
platform: ruby
|
|
7
7
|
authors:
|
|
@@ -9,7 +9,7 @@ authors:
|
|
|
9
9
|
autorequire:
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date: 2012-07-
|
|
12
|
+
date: 2012-07-02 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: rake
|
|
@@ -171,7 +171,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
171
171
|
version: '0'
|
|
172
172
|
segments:
|
|
173
173
|
- 0
|
|
174
|
-
hash:
|
|
174
|
+
hash: 2068252804482249875
|
|
175
175
|
requirements: []
|
|
176
176
|
rubyforge_project:
|
|
177
177
|
rubygems_version: 1.8.23
|