capistrano-git-copy 1.4.0 → 1.5.0

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
- SHA1:
3
- metadata.gz: 025c8ab7ba62a08ce7aafd9ba3acd35a9ca0df58
4
- data.tar.gz: c434d3eb0fb1d4ca524b8238710e68f4e493f13f
2
+ SHA256:
3
+ metadata.gz: 07c610ece9909effffdeee0113bf361c64c88039fafff39564e9a2742e862d8c
4
+ data.tar.gz: 90046d84e5b763fc5bf6c947433813934c12f9e16c86b4a082883ab6f89c1fec
5
5
  SHA512:
6
- metadata.gz: 6db2be56e86f392f15e80d5d9d94b748b34215b0885b10c453aa8cf1b1a9b56d82f40d4631d10ccfcfe97933fc4e71a6ea8896c21465852708d9b64f20335592
7
- data.tar.gz: 03ed553534d07288c570ecc654d447cc884993b779bb8189183505a19ae8b92648d9969bf1b4d17fab61ef53b23de369258003669d80c57d1fc38be500b48813
6
+ metadata.gz: 91c2cc32118c9ac4fbe1d941c3c9bfd1b60d63e98b68bb487abc2171e58582cc218a39c0893b21e591b7e41c12ded879e431abe2d85a1c848aa0547b94e43b48
7
+ data.tar.gz: 62ac5254df68295657e40ba341a2a4eee4d6a3be37e38bfa5f58f8996c5d70cd2042cefc173198435a38bd941c64c6b4b4204ffec67d644289a9b817360fe975
@@ -1,5 +1,12 @@
1
1
  # Change Log
2
2
 
3
+ ## 1.5.0 (2018-05-24)
4
+ ### Feature
5
+ - add option to switch off running git clean (#25)
6
+ ### Changes
7
+ - updated _git-archive-all_ to 1.17.1
8
+ - add support for .gitattributes and export-ignore (#23)
9
+
3
10
  ## 1.4.0 (2017-05-31)
4
11
  ### Feature
5
12
  - deploy subdirectory
@@ -8,6 +8,7 @@ module Capistrano
8
8
  class SCM < ::Capistrano::SCM::Plugin
9
9
  # set default values
10
10
  def set_defaults
11
+ set_if_empty :with_clean, true
11
12
  set_if_empty :with_submodules, true
12
13
  set_if_empty :git_excludes, []
13
14
  set_if_empty :upload_path, '.'
@@ -75,7 +76,9 @@ module Capistrano
75
76
  end
76
77
 
77
78
  # cleanup
78
- git(:clean, '-d', '-f')
79
+ if fetch(:with_clean)
80
+ git(:clean, '-d', '-f')
81
+ end
79
82
 
80
83
  if fetch(:with_submodules)
81
84
  git(:submodule, :foreach, '--recursive', :git, :clean, '-d', '-f')
@@ -3,6 +3,6 @@ module Capistrano
3
3
  # GitCopy
4
4
  module GitCopy
5
5
  # gem version
6
- VERSION = '1.4.0'
6
+ VERSION = '1.5.0'
7
7
  end
8
8
  end
@@ -34,7 +34,7 @@ import tarfile
34
34
  from zipfile import ZipFile, ZipInfo, ZIP_DEFLATED
35
35
  import re
36
36
 
37
- __version__ = "1.16.4"
37
+ __version__ = "1.17.1"
38
38
 
39
39
 
40
40
  class GitArchiver(object):
@@ -328,7 +328,13 @@ class GitArchiver(object):
328
328
  submodule_path = m.group(1)
329
329
  submodule_path = path.join(repo_path, submodule_path)
330
330
 
331
+ if self.is_file_excluded(repo_abspath, submodule_path, exclude_patterns):
332
+ continue
333
+
331
334
  for submodule_file_path in self.walk_git_files(submodule_path):
335
+ if self.is_file_excluded(repo_abspath, submodule_file_path, exclude_patterns):
336
+ continue
337
+
332
338
  yield submodule_file_path
333
339
  except IOError:
334
340
  pass
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: 1.4.0
4
+ version: 1.5.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: 2017-05-31 00:00:00.000000000 Z
11
+ date: 2018-05-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: capistrano
@@ -112,7 +112,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
112
112
  version: '0'
113
113
  requirements: []
114
114
  rubyforge_project:
115
- rubygems_version: 2.6.11
115
+ rubygems_version: 2.7.6
116
116
  signing_key:
117
117
  specification_version: 4
118
118
  summary: Copy local git repository deploy strategy for capistrano.