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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 01d8ddb4baa4b3aefe2beac70b063aef83aed202
4
- data.tar.gz: 1b297e1ddeaafefd97509fd6db3ea7f557a411ca
3
+ metadata.gz: 412c6b09369d1e8d0f64fad8ee1d3f4f7e7bd944
4
+ data.tar.gz: 3b5d7a3f4d678fff71466e86bda6250e84f53f31
5
5
  SHA512:
6
- metadata.gz: 6195b3e19d3b80165221c2507470c701e376b4fee130ac09db9c314758efb45a8b33737f3c28c2712e81b3c768462cf039a4f9ac275b2f10157ec26fc4aff965
7
- data.tar.gz: a73e28ee70ba056c0d3ad37d8f98dd4c67171810d82a282d1c4fb82d81b3cab006390fca6340d061f0be7803826958d333eb49125157b960f0c36bb0a3fb03df
6
+ metadata.gz: 91eaaa13b461e049acd9515619eebd1b75640909bc1394e4c030bb684a714d948742ad7cfea87756195b6f5aefa7d7f6047d6bf0e2e51eda341244868e9cdd18
7
+ data.tar.gz: ba1ab8956cec694dccf952272bbd8c0dde3c43e2e509abfd6447c815b8965816ca38b55dfa57e40c901568dd3e9440e9136273053bb50773e8030453ae1e627d
@@ -9,8 +9,8 @@ module GTA
9
9
  end
10
10
 
11
11
  def checkout(stage_name=nil)
12
- sh!("git fetch #{stage_name}")
13
12
  stage = stage_for(stage_name)
13
+ sh!("git fetch #{stage.name}")
14
14
  not_hotfixable!(stage_name) unless stage
15
15
  stage.checkout
16
16
  end
@@ -1,3 +1,3 @@
1
1
  module GTA
2
- VERSION = "0.4.3"
2
+ VERSION = "0.4.4"
3
3
  end
@@ -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.should_receive(:sh!).with("git fetch ")
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.3
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-08-28 00:00:00.000000000 Z
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.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