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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 093d6a1fbd07d5b20659ce86fed7c7963054178c
4
- data.tar.gz: 4b9274f3debfacc84bfb401616da12e804b973bf
3
+ metadata.gz: 01d8ddb4baa4b3aefe2beac70b063aef83aed202
4
+ data.tar.gz: 1b297e1ddeaafefd97509fd6db3ea7f557a411ca
5
5
  SHA512:
6
- metadata.gz: 4dba86bb31b251c7a8f2abc670412d1b9576b5c9f0ff1a88ec5292ea0c9060376d1e944af2c156ee08007b3076a7db4a81f02a005a58a9e2c2d1156b8c58a1da
7
- data.tar.gz: a79e1a1c20300dba478d7be8d37458c06c61e6036f3faf1fceab8c8128744a12293f056044897c2d60f0dc6498f56c14ed7c2569e50344f8cc163f8cc47e8a76
6
+ metadata.gz: 6195b3e19d3b80165221c2507470c701e376b4fee130ac09db9c314758efb45a8b33737f3c28c2712e81b3c768462cf039a4f9ac275b2f10157ec26fc4aff965
7
+ data.tar.gz: a73e28ee70ba056c0d3ad37d8f98dd4c67171810d82a282d1c4fb82d81b3cab006390fca6340d061f0be7803826958d333eb49125157b960f0c36bb0a3fb03df
data/lib/gta.rb CHANGED
@@ -1,6 +1,7 @@
1
1
  require 'open3'
2
2
  require 'ansi/code'
3
3
  require 'json'
4
+ require 'yaml'
4
5
 
5
6
  require "gta/version"
6
7
  require "gta/sh"
@@ -9,6 +9,7 @@ module GTA
9
9
  end
10
10
 
11
11
  def checkout(stage_name=nil)
12
+ sh!("git fetch #{stage_name}")
12
13
  stage = stage_for(stage_name)
13
14
  not_hotfixable!(stage_name) unless stage
14
15
  stage.checkout
@@ -25,6 +25,7 @@ module GTA
25
25
  end
26
26
 
27
27
  def checkout(name)
28
+ stage!(name).fetch
28
29
  stage!(name).checkout
29
30
  end
30
31
 
@@ -1,3 +1,3 @@
1
1
  module GTA
2
- VERSION = "0.4.2"
2
+ VERSION = "0.4.3"
3
3
  end
@@ -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.2
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-03 00:00:00.000000000 Z
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.3
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
File without changes