capistrano-git-copy 0.8.0 → 0.8.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: da14278f5b4f4b247cf32afd34a66748b2443cc2
4
- data.tar.gz: 757ddb4c2fa4135242423b66ce9746bfcc0b84f7
3
+ metadata.gz: 9afd2d0018849fd7b3a619058fe5cf603b4d6289
4
+ data.tar.gz: d46c4b40eb59565298217ee8f53f0a89dc042b68
5
5
  SHA512:
6
- metadata.gz: 5b8eaeae3a93a485d221921ec82dcf8095efff3bf076f9746747668c76429ac8fe63178c62cea5a7b37cf0e00a5c72ebd0dc57c91acb7b5176a004bf34145bc8
7
- data.tar.gz: e8bddba412086a66be0152e68fa2839ac62a6ad780335e56fa4df869b0d54e0ce3e19d8cb427ddbd2baf6166ceec611bea40d6e7a43f1192d8ff6c42e7c836bc
6
+ metadata.gz: 8b5907b676c0a39405caccc1967e0c86f24e9aaa20883866f943f8a65c8a8bcaba32aeec53a934d5c1b4e629e67b3e78b8ad5f70b15543d6ae563fd887b9e443
7
+ data.tar.gz: 5339034c55bd577ee7ae64e8635ea887247481f754a62651c66d4bb86e1fe7fcda1fa41e9246ad6095db8c4e9f33323895940aa4c1ad74e0ce0050fd136dafdb
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Change Log
2
2
 
3
+ ## 0.810 (2015-04-11)
4
+ ### Fixed
5
+ - strip branch name only if it is a string
6
+
3
7
  ## 0.8.0 (2015-04-07)
4
8
  ### Changes
5
9
  - changed namespace from Capistrano::Git::Copy to Capistrano::GitCopy to avoid problems when using it in conjunction with build-in git support from capistrano
@@ -152,7 +152,8 @@ module Capistrano
152
152
  def commit_hash
153
153
  return @_commit_hash if @_commit_hash
154
154
 
155
- branch = fetch(:branch, 'master').strip
155
+ branch = fetch(:branch, 'master')
156
+ branch.strip! if branch.is_a?(String)
156
157
 
157
158
  if test! :git, 'rev-parse', "origin/#{branch}", '>/dev/null 2>/dev/null'
158
159
  @_commit_hash = capture(:git, 'rev-parse', "origin/#{branch}").strip
@@ -3,6 +3,6 @@ module Capistrano
3
3
  # GitCopy
4
4
  module GitCopy
5
5
  # gem version
6
- VERSION = '0.8.0'
6
+ VERSION = '0.8.1'
7
7
  end
8
8
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: capistrano-git-copy
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.0
4
+ version: 0.8.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Florian Schwab
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-04-07 00:00:00.000000000 Z
11
+ date: 2015-04-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: capistrano