capistrano-git-copy 0.8.1 → 1.0.0

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: 9afd2d0018849fd7b3a619058fe5cf603b4d6289
4
- data.tar.gz: d46c4b40eb59565298217ee8f53f0a89dc042b68
3
+ metadata.gz: fe22bff4249501fad615b44c807017ac710441c7
4
+ data.tar.gz: 7349dd2312fe912edcfd51ef53722a358aafca62
5
5
  SHA512:
6
- metadata.gz: 8b5907b676c0a39405caccc1967e0c86f24e9aaa20883866f943f8a65c8a8bcaba32aeec53a934d5c1b4e629e67b3e78b8ad5f70b15543d6ae563fd887b9e443
7
- data.tar.gz: 5339034c55bd577ee7ae64e8635ea887247481f754a62651c66d4bb86e1fe7fcda1fa41e9246ad6095db8c4e9f33323895940aa4c1ad74e0ce0050fd136dafdb
6
+ metadata.gz: f453b502f27a7b6d9937d766ded5904204cb6e0931417318c892dfde74c27fbd533ecfbffd2a2b957b9e85d39e2acb32a571aece49a4b7cf8b6a81179d7ac655
7
+ data.tar.gz: bc2b6b09aa257671b4acca13cb455dba60a3b7fff1b44e87ed15a7995ee23ebc1f091e8967519f115b133e33c590db8f22431b84b93e9a048b6835e25abd1dec
data/CHANGELOG.md CHANGED
@@ -1,6 +1,11 @@
1
1
  # Change Log
2
2
 
3
- ## 0.810 (2015-04-11)
3
+ ## 1.0.0 (2015-04-22)
4
+ ### Fixed
5
+ - support application names with whitespaces and other non-path-friendly characters
6
+ - executing deploy/scm task twice
7
+
8
+ ## 0.8.1 (2015-04-11)
4
9
  ### Fixed
5
10
  - strip branch name only if it is a string
6
11
 
@@ -1 +0,0 @@
1
- require 'capistrano/git_copy'
@@ -145,8 +145,9 @@ module Capistrano
145
145
  [
146
146
  fetch(:application),
147
147
  fetch(:stage),
148
- Digest::MD5.hexdigest(fetch(:repo_url))[0..7]
149
- ].compact.join('_')
148
+ Digest::MD5.hexdigest(fetch(:repo_url))[0..7],
149
+ Digest::MD5.hexdigest(Dir.getwd)[0..7]
150
+ ].compact.join('_').gsub(/[^\w]/, '')
150
151
  end
151
152
 
152
153
  def commit_hash
@@ -3,6 +3,6 @@ module Capistrano
3
3
  # GitCopy
4
4
  module GitCopy
5
5
  # gem version
6
- VERSION = '0.8.1'
6
+ VERSION = '1.0.0'
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.1
4
+ version: 1.0.0
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-11 00:00:00.000000000 Z
11
+ date: 2015-04-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: capistrano
@@ -88,7 +88,6 @@ files:
88
88
  - Rakefile
89
89
  - capistrano-git-copy.gemspec
90
90
  - lib/capistrano/git/copy.rb
91
- - lib/capistrano/git/copy/tasks/deploy.cap
92
91
  - lib/capistrano/git_copy.rb
93
92
  - lib/capistrano/git_copy/tasks/deploy.cap
94
93
  - lib/capistrano/git_copy/utility.rb
@@ -1,61 +0,0 @@
1
- namespace :git_copy do
2
- def git_copy_utility
3
- @git_copy_utility ||= Capistrano::GitCopy::Utility.new(self)
4
- end
5
-
6
- task :wrapper do; end
7
-
8
- desc 'Check that the repository is reachable'
9
- task check: :'git_copy:wrapper' do
10
- run_locally do
11
- git_copy_utility.check
12
- end
13
- end
14
-
15
- desc 'Clone the repo to the cache'
16
- task clone: :'git_copy:wrapper' do
17
- run_locally do
18
- if git_copy_utility.test
19
- info t(:mirror_exists, at: git_copy_utility.repo_path)
20
- else
21
- git_copy_utility.clone
22
- end
23
- end
24
- end
25
-
26
- desc 'Update the repo mirror to reflect the origin state'
27
- task update: :'git_copy:clone' do
28
- run_locally do
29
- within git_copy_utility.repo_path do
30
- git_copy_utility.update
31
- end
32
- end
33
- end
34
-
35
- desc 'Copy repo to releases'
36
- task create_release: :'git_copy:update' do
37
- run_locally do
38
- within git_copy_utility.repo_path do
39
- git_copy_utility.prepare_release
40
- end
41
- end
42
-
43
- on release_roles :all do
44
- git_copy_utility.release
45
- end
46
- end
47
-
48
- desc 'Determine the revision that will be deployed'
49
- task :set_current_revision do
50
- run_locally do
51
- set :current_revision, git_copy_utility.fetch_revision
52
- end
53
- end
54
-
55
- desc 'Clean repo cache'
56
- task :cleanup do
57
- run_locally do
58
- git_copy_utility.cleanup
59
- end
60
- end
61
- end