docker-sync 1.0.1 → 1.0.2

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
  SHA256:
3
- metadata.gz: 440a1277f902234557ce07713930f28cf69e95fa6ff77ee095128fe407b2a6da
4
- data.tar.gz: 65643b530ee3cfa703fa03140d07545a459f0e6414ccc4ef1fbb4bcc9485bb79
3
+ metadata.gz: 99de3e53b469050cd1cf2afd597aa4fabcc23338e4d6d5cd67ebb833fa1ff184
4
+ data.tar.gz: 4aadccbadd4ebeade4b3b5d214a900a411198c74aff3e813f71c9a6c4f297aaa
5
5
  SHA512:
6
- metadata.gz: 1bd8e762ee2d4eaff553501371169439c5fb511670a4a6937110d16965c9da0bfdac7ec0298a8b2dc2f8548333fd120c1174986320ce314dcfcd86ffc03b3329
7
- data.tar.gz: f8528c8f0747cafb57ae66f638e78128ee561adeb77b7c9d3f8cf439fb0324f5637cca4dd48d6916952bc27baa35e6fcf9e14a7da7ac888211d3670dd31cf1c0
6
+ metadata.gz: df858a48916d036de531a04ad6707cb71e5212f9883c0df2f6ad8d326ecf349b64c4f4d859794ccc2afc35d2fd9fba31c17afaeebcb395df2cf1c91b548d617b
7
+ data.tar.gz: 311975e4eacca8e19f2d5a3dc1f707850b5719e5ddb02d6f5250b777a5f738214534d691f54338d171f8e4a84d3d025e81a4a39b276758bdc2fc20c39caf4591
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.1
1
+ 1.0.2
@@ -61,10 +61,9 @@ module DockerSync
61
61
 
62
62
  def sync_options
63
63
  args = []
64
- excludes_list = @options['sync_excludes'].append(Environment.default_ignores).flatten!
65
64
 
66
- unless excludes_list.nil?
67
- args = excludes_list.map { |pattern| "--exclude='#{pattern}'" } + args
65
+ unless @options['sync_excludes'].nil?
66
+ args = excludes_list.append(Environment.default_ignores).flatten!.map { |pattern| "--exclude='#{pattern}'" } + args
68
67
  end
69
68
  args.push('-ap')
70
69
  args.push(@options['sync_args']) if @options.key?('sync_args')
@@ -101,8 +101,16 @@ module DockerSync
101
101
  exclude_type = 'Name'
102
102
  exclude_type = @options['sync_excludes_type'] unless @options['sync_excludes_type'].nil?
103
103
 
104
+ # use the 'Name' exclude type for all default ignores
105
+ # to prevent conflicts with the sync_excludes_type settings
106
+ unless Environment.default_ignores.nil?
107
+ expanded_ignore_strings = Environment.default_ignores.map do |pattern|
108
+ "-ignore='Name #{pattern}'"
109
+ end
110
+ end
111
+
104
112
  unless @options['sync_excludes'].nil?
105
- expanded_ignore_strings = @options['sync_excludes'].append(Environment.default_ignores).flatten!.map do |pattern|
113
+ expanded_ignore_strings = @options['sync_excludes'].map do |pattern|
106
114
  ignore_string = if exclude_type == 'none'
107
115
  # the ignore type like Name / Path are part of the pattern
108
116
  pattern.to_s
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: docker-sync
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Eugen Mayer
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-09-12 00:00:00.000000000 Z
11
+ date: 2022-09-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor