egads 3.0.0 → 3.1.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -47,7 +47,7 @@ module Egads
47
47
  run_with_code "git archive #{build_sha} --output #{tarball.local_tar_path}"
48
48
  else
49
49
  # Patch tarball
50
- seed_ref = "refs/tags/#{Config.seed_tag}"
50
+ seed_ref = "refs/remotes/origin/#{Config.seed_branch}"
51
51
  # NB: the seed tarball is named after the parent of seed tag
52
52
  seed_parent = run_with_code("git rev-parse --verify #{seed_ref}^").strip
53
53
  File.open('egads-seed', 'w') {|f| f << seed_parent + "\n" }
@@ -67,9 +67,9 @@ module Egads
67
67
  invoke(Egads::Upload, [sha], force: options[:force], seed: options[:seed]) unless options['no-upload']
68
68
  end
69
69
 
70
- def tag_seed
70
+ def push_seed
71
71
  if options[:seed]
72
- run_with_code "git tag -f -a -m 'egads seed' #{Config.seed_tag} #{build_sha} && git push -f origin tag #{Config.seed_tag}"
72
+ run_with_code "git push -f origin #{build_sha}:refs/heads/#{Config.seed_branch}"
73
73
  end
74
74
  end
75
75
 
data/lib/egads/config.rb CHANGED
@@ -43,8 +43,8 @@ module Egads
43
43
  config['build'] && Array(config['build']['extra_paths'])
44
44
  end
45
45
 
46
- def self.seed_tag
47
- config['seed_tag'] || "egads-seed"
46
+ def self.seed_branch
47
+ config['seed_branch'] || "egads-seed"
48
48
  end
49
49
  end
50
50
 
data/lib/egads/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Egads
2
- VERSION = '3.0.0'
2
+ VERSION = '3.1.0'
3
3
  end
@@ -5,7 +5,7 @@ describe "Egads::Build" do
5
5
  subject { Egads::Build }
6
6
 
7
7
  it 'should run the correct tasks' do
8
- subject.commands.keys.must_equal %w(check_build run_before_build_hooks write_revision_file commit_extra_paths make_tarball run_after_build_hooks upload tag_seed)
8
+ subject.commands.keys.must_equal %w(check_build run_before_build_hooks write_revision_file commit_extra_paths make_tarball run_after_build_hooks upload push_seed)
9
9
  end
10
10
 
11
11
  it 'takes one argument' do
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: egads
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.0
4
+ version: 3.1.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-08-11 00:00:00.000000000 Z
12
+ date: 2013-08-13 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: fog
16
- requirement: !ruby/object:Gem::Requirement
16
+ requirement: &1 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - '>='
@@ -21,15 +21,10 @@ dependencies:
21
21
  version: '0'
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
- requirements:
27
- - - '>='
28
- - !ruby/object:Gem::Version
29
- version: '0'
24
+ version_requirements: *1
30
25
  - !ruby/object:Gem::Dependency
31
26
  name: thor
32
- requirement: !ruby/object:Gem::Requirement
27
+ requirement: &2 !ruby/object:Gem::Requirement
33
28
  none: false
34
29
  requirements:
35
30
  - - '>='
@@ -37,15 +32,10 @@ dependencies:
37
32
  version: '0'
38
33
  type: :runtime
39
34
  prerelease: false
40
- version_requirements: !ruby/object:Gem::Requirement
41
- none: false
42
- requirements:
43
- - - '>='
44
- - !ruby/object:Gem::Version
45
- version: '0'
35
+ version_requirements: *2
46
36
  - !ruby/object:Gem::Dependency
47
37
  name: rake
48
- requirement: !ruby/object:Gem::Requirement
38
+ requirement: &3 !ruby/object:Gem::Requirement
49
39
  none: false
50
40
  requirements:
51
41
  - - '>='
@@ -53,15 +43,10 @@ dependencies:
53
43
  version: '0'
54
44
  type: :development
55
45
  prerelease: false
56
- version_requirements: !ruby/object:Gem::Requirement
57
- none: false
58
- requirements:
59
- - - '>='
60
- - !ruby/object:Gem::Version
61
- version: '0'
46
+ version_requirements: *3
62
47
  - !ruby/object:Gem::Dependency
63
48
  name: minitest
64
- requirement: !ruby/object:Gem::Requirement
49
+ requirement: &4 !ruby/object:Gem::Requirement
65
50
  none: false
66
51
  requirements:
67
52
  - - '>='
@@ -69,12 +54,7 @@ dependencies:
69
54
  version: '0'
70
55
  type: :development
71
56
  prerelease: false
72
- version_requirements: !ruby/object:Gem::Requirement
73
- none: false
74
- requirements:
75
- - - '>='
76
- - !ruby/object:Gem::Version
77
- version: '0'
57
+ version_requirements: *4
78
58
  description: |2-
79
59
 
80
60
  A collection of scripts for making a deployable tarball of a git commit,
@@ -144,7 +124,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
144
124
  version: '0'
145
125
  requirements: []
146
126
  rubyforge_project:
147
- rubygems_version: 1.8.25
127
+ rubygems_version: 1.8.3
148
128
  signing_key:
149
129
  specification_version: 3
150
130
  summary: Extensible Git Archive Deploy Strategy