gem_publisher 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -13,7 +13,7 @@ module GemPublisher
13
13
  end
14
14
 
15
15
  def add_tag(tag_name, commit_ish = "HEAD")
16
- sha1 = git("rev-parse", commit_ish)
16
+ sha1 = git("rev-parse", commit_ish).chomp
17
17
  git "update-ref", "refs/tags/#{tag_name}", sha1
18
18
  git "push", @remote_name, "tag", tag_name
19
19
  end
@@ -1,3 +1,3 @@
1
1
  module GemPublisher
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  end
@@ -19,7 +19,7 @@ module GemPublisher
19
19
  sha1 = "5294fac0c70956209494b69bc1a8c38192f6a931"
20
20
  cli_facade.stubs(:execute).
21
21
  with("git", "rev-parse", "HEAD").
22
- returns(sha1)
22
+ returns("#{sha1}\n")
23
23
  cli_facade.expects(:execute).
24
24
  with("git", "update-ref", "refs/tags/nameoftag", sha1)
25
25
  cli_facade.expects(:execute).
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: gem_publisher
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.0.2
5
+ version: 0.0.3
6
6
  platform: ruby
7
7
  authors:
8
8
  - Paul Battley
@@ -71,7 +71,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
71
71
  requirements:
72
72
  - - ">="
73
73
  - !ruby/object:Gem::Version
74
- hash: 1427601280392416500
74
+ hash: -2618561868502119280
75
75
  segments:
76
76
  - 0
77
77
  version: "0"
@@ -80,7 +80,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
80
80
  requirements:
81
81
  - - ">="
82
82
  - !ruby/object:Gem::Version
83
- hash: 1427601280392416500
83
+ hash: -2618561868502119280
84
84
  segments:
85
85
  - 0
86
86
  version: "0"