dapp 0.31.16 → 0.31.17

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: 006840d395cb3bbe50c14ed013d13900d248b792a47a736225c4c76cad7cbf89
4
- data.tar.gz: b2b562cd536848897deb0a4a5ee5e52dd39eac404f69a2446137d50354624489
3
+ metadata.gz: 56078669b17f0c4c260030c78d1e5bab8d685932b57dda8dbcbb846e3dd713c1
4
+ data.tar.gz: 1ced7dac48869994788448b826a6cb6dd19e032f617b023bc27d8e28bf7d4298
5
5
  SHA512:
6
- metadata.gz: 4fafadbb602e99b7a0d3bafb6f01baa5735e244326d113fce719da93f092b33e787581f8844fe3c81b44dc397fba9d0b4b02a7ea5fb809834b106dafcbd2bf42
7
- data.tar.gz: babf779c57652dfc0e1b632e093674b555520fb4b9ced2ff9131ea65045db4f666a3e60a22b48c4c3e168bab7d87989c97790c0097f524540af5f56761bd8e9d
6
+ metadata.gz: 937f880fdccf900637b9b2e008fbc3822c3411f082739863d40cd123736a91dfefa254d952602778a2ea95856cd8872f122e96540167811cd2b5ad4e88f998ce
7
+ data.tar.gz: 1c07196e67f4e0e5ee3917f8d2742df31e81d04fefeeba9fe2873071b1e4e188e8d9c7bb4ff6a81774cc364e6480d0a10078a2ff03d293b99ede4a1b3b5b65ce
@@ -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,18 @@ 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 || File.fnmatch(File.join(test_path, '**', '*'), embedded_rel_path, File::FNM_PATHNAME|File::FNM_DOTMATCH)
134
134
 
135
135
  any = (current_path_part == '**')
136
136
 
137
137
  if any
138
138
  inherited_paths << [current_path_part, path_parts].flatten.join('/')
139
139
  inherited_paths << path_parts.join('/') unless path_parts.empty?
140
- elsif match
141
- inherited_paths << (path_parts.empty? ? '**' : path_parts.join('/'))
140
+ elsif match && !path_parts.empty?
141
+ inherited_paths << path_parts.join('/')
142
+ break
143
+ elsif path_parts.empty?
144
+ inherited_paths << '**'
142
145
  break
143
146
  end
144
147
  end
@@ -305,9 +308,9 @@ module Dapp
305
308
  else
306
309
  repo.head_commit
307
310
  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
311
  end
312
+ end.tap do |c|
313
+ repo.dapp.log_info("Repository `#{repo.name}`: latest commit `#{c}` to `#{to}`") unless ignore_signature_auto_calculation
311
314
  end
312
315
  end
313
316
 
@@ -369,7 +372,7 @@ module Dapp
369
372
  def archive_file_with_tar_writer(stage, commit)
370
373
  tar_write(dimg.tmp_path('archives', archive_file_name(commit))) do |tar|
371
374
  each_archive_entry(stage, commit) do |path, content, mode|
372
- relative_path = path[1..-1]
375
+ relative_path = path.reverse.chomp('/').reverse
373
376
  if mode == 0o120000 # symlink
374
377
  tar.add_symlink relative_path, content, mode
375
378
  else
@@ -1,4 +1,4 @@
1
1
  module Dapp
2
- VERSION = "0.31.16"
3
- BUILD_CACHE_VERSION = 30
2
+ VERSION = "0.31.17"
3
+ BUILD_CACHE_VERSION = 31
4
4
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dapp
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.31.16
4
+ version: 0.31.17
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dmitry Stolyarov