gta 0.4.3 → 0.4.4
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/hotfix.rb +1 -1
- data/lib/gta/version.rb +1 -1
- data/spec/hotfix_spec.rb +3 -4
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 412c6b09369d1e8d0f64fad8ee1d3f4f7e7bd944
|
|
4
|
+
data.tar.gz: 3b5d7a3f4d678fff71466e86bda6250e84f53f31
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 91eaaa13b461e049acd9515619eebd1b75640909bc1394e4c030bb684a714d948742ad7cfea87756195b6f5aefa7d7f6047d6bf0e2e51eda341244868e9cdd18
|
|
7
|
+
data.tar.gz: ba1ab8956cec694dccf952272bbd8c0dde3c43e2e509abfd6447c815b8965816ca38b55dfa57e40c901568dd3e9440e9136273053bb50773e8030453ae1e627d
|
data/lib/gta/hotfix.rb
CHANGED
data/lib/gta/version.rb
CHANGED
data/spec/hotfix_spec.rb
CHANGED
|
@@ -4,20 +4,20 @@ describe GTA::Hotfix do
|
|
|
4
4
|
let(:gta_config_path) { File.dirname(__FILE__) + "/fixtures/config/gta.yml" }
|
|
5
5
|
let(:hotfix) { GTA::Hotfix.new(gta_config_path) }
|
|
6
6
|
let(:manager) { hotfix.manager }
|
|
7
|
-
let(:stage) { double(checkout: true) }
|
|
7
|
+
let(:stage) { double(checkout: true, name: 'staging') }
|
|
8
8
|
|
|
9
9
|
describe '#checkout' do
|
|
10
10
|
context "no stage provided" do
|
|
11
11
|
|
|
12
12
|
it "gets the first hotfixable stage" do
|
|
13
|
-
hotfix.should_receive(:sh!).with("git fetch ")
|
|
13
|
+
hotfix.should_receive(:sh!).with("git fetch #{stage.name}")
|
|
14
14
|
manager.should_receive(:hotfixer)
|
|
15
15
|
.and_return(stage)
|
|
16
16
|
hotfix.checkout
|
|
17
17
|
end
|
|
18
18
|
|
|
19
19
|
it "finds and checks out the first hotfixable stage" do
|
|
20
|
-
hotfix.
|
|
20
|
+
hotfix.stub(:sh!)
|
|
21
21
|
manager.should_receive(:hotfixer).with(nil).and_return(stage)
|
|
22
22
|
stage.should_receive(:checkout)
|
|
23
23
|
hotfix.checkout
|
|
@@ -26,7 +26,6 @@ describe GTA::Hotfix do
|
|
|
26
26
|
|
|
27
27
|
context "stage is not hotfixable" do
|
|
28
28
|
it "raises an error" do
|
|
29
|
-
hotfix.should_receive(:sh!).with("git fetch production")
|
|
30
29
|
expect {
|
|
31
30
|
hotfix.checkout('production')
|
|
32
31
|
}.to raise_error
|
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.4
|
|
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-
|
|
13
|
+
date: 2013-09-10 00:00:00.000000000 Z
|
|
14
14
|
dependencies:
|
|
15
15
|
- !ruby/object:Gem::Dependency
|
|
16
16
|
name: ansi
|
|
@@ -140,7 +140,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
140
140
|
version: '0'
|
|
141
141
|
requirements: []
|
|
142
142
|
rubyforge_project:
|
|
143
|
-
rubygems_version: 2.0.
|
|
143
|
+
rubygems_version: 2.0.5
|
|
144
144
|
signing_key:
|
|
145
145
|
specification_version: 4
|
|
146
146
|
summary: 'GTA: the Git Transit Authority - A git based deploy tool for moving code
|