gta 0.4.2 → 0.4.3
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.
- checksums.yaml +4 -4
- data/lib/gta.rb +1 -0
- data/lib/gta/hotfix.rb +1 -0
- data/lib/gta/manager.rb +1 -0
- data/lib/gta/version.rb +1 -1
- data/spec/hotfix_spec.rb +5 -0
- metadata +3 -4
- data/lib/gta/tasks/commander.rb +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 01d8ddb4baa4b3aefe2beac70b063aef83aed202
|
4
|
+
data.tar.gz: 1b297e1ddeaafefd97509fd6db3ea7f557a411ca
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6195b3e19d3b80165221c2507470c701e376b4fee130ac09db9c314758efb45a8b33737f3c28c2712e81b3c768462cf039a4f9ac275b2f10157ec26fc4aff965
|
7
|
+
data.tar.gz: a73e28ee70ba056c0d3ad37d8f98dd4c67171810d82a282d1c4fb82d81b3cab006390fca6340d061f0be7803826958d333eb49125157b960f0c36bb0a3fb03df
|
data/lib/gta.rb
CHANGED
data/lib/gta/hotfix.rb
CHANGED
data/lib/gta/manager.rb
CHANGED
data/lib/gta/version.rb
CHANGED
data/spec/hotfix_spec.rb
CHANGED
@@ -8,13 +8,16 @@ describe GTA::Hotfix do
|
|
8
8
|
|
9
9
|
describe '#checkout' do
|
10
10
|
context "no stage provided" do
|
11
|
+
|
11
12
|
it "gets the first hotfixable stage" do
|
13
|
+
hotfix.should_receive(:sh!).with("git fetch ")
|
12
14
|
manager.should_receive(:hotfixer)
|
13
15
|
.and_return(stage)
|
14
16
|
hotfix.checkout
|
15
17
|
end
|
16
18
|
|
17
19
|
it "finds and checks out the first hotfixable stage" do
|
20
|
+
hotfix.should_receive(:sh!).with("git fetch ")
|
18
21
|
manager.should_receive(:hotfixer).with(nil).and_return(stage)
|
19
22
|
stage.should_receive(:checkout)
|
20
23
|
hotfix.checkout
|
@@ -23,6 +26,7 @@ describe GTA::Hotfix do
|
|
23
26
|
|
24
27
|
context "stage is not hotfixable" do
|
25
28
|
it "raises an error" do
|
29
|
+
hotfix.should_receive(:sh!).with("git fetch production")
|
26
30
|
expect {
|
27
31
|
hotfix.checkout('production')
|
28
32
|
}.to raise_error
|
@@ -31,6 +35,7 @@ describe GTA::Hotfix do
|
|
31
35
|
|
32
36
|
context "stage is hotfixable" do
|
33
37
|
it "checks out that stage" do
|
38
|
+
hotfix.should_receive(:sh!).with("git fetch staging")
|
34
39
|
manager.should_receive(:hotfixer)
|
35
40
|
.with('staging')
|
36
41
|
.and_return(stage)
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gta
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- socialchorus
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2013-08-
|
13
|
+
date: 2013-08-28 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: ansi
|
@@ -98,7 +98,6 @@ files:
|
|
98
98
|
- lib/gta/stage.rb
|
99
99
|
- lib/gta/tag_finder.rb
|
100
100
|
- lib/gta/tasks.rb
|
101
|
-
- lib/gta/tasks/commander.rb
|
102
101
|
- lib/gta/tasks/deploy.rake
|
103
102
|
- lib/gta/tasks/diff.rb
|
104
103
|
- lib/gta/tasks/gta.rake
|
@@ -141,7 +140,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
141
140
|
version: '0'
|
142
141
|
requirements: []
|
143
142
|
rubyforge_project:
|
144
|
-
rubygems_version: 2.0.
|
143
|
+
rubygems_version: 2.0.0
|
145
144
|
signing_key:
|
146
145
|
specification_version: 4
|
147
146
|
summary: 'GTA: the Git Transit Authority - A git based deploy tool for moving code
|
data/lib/gta/tasks/commander.rb
DELETED
File without changes
|