dapp 0.31.16 → 0.31.17
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 +4 -4
- data/lib/dapp/dimg/git_artifact.rb +10 -7
- data/lib/dapp/version.rb +2 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 56078669b17f0c4c260030c78d1e5bab8d685932b57dda8dbcbb846e3dd713c1
|
4
|
+
data.tar.gz: 1ced7dac48869994788448b826a6cb6dd19e032f617b023bc27d8e28bf7d4298
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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 <<
|
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
|
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
|
data/lib/dapp/version.rb
CHANGED