dapp 0.31.14 → 0.31.15

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
  SHA256:
3
- metadata.gz: 81e7efe28f6b62a181ec00ce109dd383b8d695ee054dd32945b271682df67284
4
- data.tar.gz: 64d5840ef6985750b91cb1e7849db0d3879910b98bed488dfa4e951c827a4698
3
+ metadata.gz: 7c8038323b15eae4d8ca002fe75314d1ec15c6399af305442e7d8a163a981013
4
+ data.tar.gz: f22e2c78582d721b9b1aec1d1db953d3188c49eaea75d7de6183eccdc24028a6
5
5
  SHA512:
6
- metadata.gz: a404ae91e5b71dfabad3124a60598bd19b2a6f90c764d58b166a6afe9c9831d330f9a674b2601526cd92f77af7cb94682359a2a7474a0f43c83f13aa8cfb3299
7
- data.tar.gz: 4f76565042e428820592f7d7fd017a5a6401a72c70e4dff636cd7da25a52025886c8364e1d711bf56eff37ea90c3a84eed166b0c32eba5d7a5d9b4a129862ce3
6
+ metadata.gz: 5cbdef16dd8859b9b1df96a5b5edb62d561f039515366508ec3ae6e2c333b811ab0e08eda0cb6ed6cb675f30f51485cae754c84dc13f7ca7828ec3ae7e53efbd
7
+ data.tar.gz: eca193fd863de5c8386656c13bcf44f1d5b8c3dc81617c0f8e8fe35621160ba9c96d5eb18514300085c749af127ab4ca4533ba577f2339c6fe5621f314f28f61
@@ -62,10 +62,11 @@ module Dapp
62
62
  stream = Stream.new
63
63
  if verbose && !quiet
64
64
  kwargs[:live_stream] = Proxy::Base.new(stream, STDOUT, with_time: time)
65
+ kwargs[:live_stderr] = Proxy::Error.new(stream, STDERR, with_time: time)
65
66
  else
66
67
  kwargs[:live_stdout] = Proxy::Base.new(stream, with_time: time)
68
+ kwargs[:live_stderr] = Proxy::Error.new(stream, with_time: time)
67
69
  end
68
- kwargs[:live_stderr] = Proxy::Error.new(stream, with_time: time)
69
70
 
70
71
  shellout(*args, **kwargs).tap(&:error!)
71
72
  rescue ::Mixlib::ShellOut::ShellCommandFailed => e
@@ -155,7 +155,6 @@ module Dapp
155
155
  image.add_env('PYTHONPATH', container_workdir.join('lib'))
156
156
  image.add_env('PYTHONIOENCODING', 'utf-8')
157
157
  image.add_env('ANSIBLE_PREPEND_SYSTEM_PATH', dimg.dapp.dappdeps_base_path)
158
- image.add_env('LC_ALL', 'C.UTF-8')
159
158
  image.add_volumes_from("#{ansible_container}:rw")
160
159
  image.add_volume "#{host_workdir(stage)}:#{container_workdir}:ro"
161
160
  image.add_volume "#{host_tmpdir(stage)}:#{container_tmpdir}:rw"
@@ -108,7 +108,7 @@ module Dapp
108
108
  options[:owner] = owner
109
109
  options[:group] = group
110
110
 
111
- options[:ignore_signature_auto_calculation]= ignore_signature_auto_calculation
111
+ options[:ignore_signature_auto_calculation] = ignore_signature_auto_calculation
112
112
  end
113
113
  end
114
114
 
@@ -130,15 +130,20 @@ module Dapp
130
130
  test_path = [test_path, current_path_part].compact.join('/')
131
131
 
132
132
  match = File.fnmatch(test_path, embedded_rel_path, File::FNM_PATHNAME|File::FNM_DOTMATCH)
133
- break unless match || File.fnmatch(File.join(test_path, '**'), embedded_rel_path, File::FNM_PATHNAME|File::FNM_DOTMATCH)
133
+ break unless match ||
134
+ File.fnmatch(File.join(test_path, '**'), embedded_rel_path, File::FNM_PATHNAME|File::FNM_DOTMATCH) ||
135
+ check_subpath?(test_path, embedded_rel_path)
134
136
 
135
137
  any = (current_path_part == '**')
136
138
 
137
139
  if any
138
140
  inherited_paths << [current_path_part, path_parts].flatten.join('/')
139
141
  inherited_paths << path_parts.join('/') unless path_parts.empty?
140
- elsif match
141
- inherited_paths << (path_parts.empty? ? '**' : path_parts.join('/'))
142
+ elsif match && !path_parts.empty?
143
+ inherited_paths << path_parts.join('/')
144
+ break
145
+ elsif path_parts.empty?
146
+ inherited_paths << '**'
142
147
  break
143
148
  end
144
149
  end
@@ -305,9 +310,9 @@ module Dapp
305
310
  else
306
311
  repo.head_commit
307
312
  end
308
- end.tap do |c|
309
- repo.dapp.log_info("Repository `#{repo.name}`: latest commit `#{c}` to `#{to}`") unless ignore_signature_auto_calculation
310
313
  end
314
+ end.tap do |c|
315
+ repo.dapp.log_info("Repository `#{repo.name}`: latest commit `#{c}` to `#{to}`") unless ignore_signature_auto_calculation
311
316
  end
312
317
  end
313
318
 
@@ -369,10 +374,11 @@ module Dapp
369
374
  def archive_file_with_tar_writer(stage, commit)
370
375
  tar_write(dimg.tmp_path('archives', archive_file_name(commit))) do |tar|
371
376
  each_archive_entry(stage, commit) do |path, content, mode|
377
+ relative_path = path[1..-1]
372
378
  if mode == 0o120000 # symlink
373
- tar.add_symlink path, content, mode
379
+ tar.add_symlink relative_path, content, mode
374
380
  else
375
- tar.add_file path, mode do |tf|
381
+ tar.add_file relative_path, mode do |tf|
376
382
  tf.write content
377
383
  end
378
384
  end
@@ -1,4 +1,4 @@
1
1
  module Dapp
2
- VERSION = "0.31.14"
2
+ VERSION = "0.31.15"
3
3
  BUILD_CACHE_VERSION = 30
4
4
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dapp
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.31.14
4
+ version: 0.31.15
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dmitry Stolyarov
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-07-16 00:00:00.000000000 Z
11
+ date: 2018-07-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: mixlib-shellout