redmine-installer 2.2.0 → 2.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/redmine-installer/package.rb +21 -0
- data/lib/redmine-installer/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9eb5beee6b15eaff2e6c89cc50e66dbf9e61ff3542f7dad9ea39e5b0061e2d72
|
4
|
+
data.tar.gz: 04e1ea4364cc395e147878e4183cbcafc80ad5b7ca868e6c15a7defb8b901857
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cb72e15a861289e668671a9272b6de9e7f193e573421ba277870b3c1292b820c6482321d1dd416648cf90f496c4e81b9647572e4c5d691128f0fc43c3d99168f
|
7
|
+
data.tar.gz: '041896a2d7f18755ea57876b527e8b6b5a566f0dcae6c2c99bdb0b9ad19711436a109ae7b1207c94d6a832aa69cdf3342530a1d33e32c56606cde221406c33ef'
|
@@ -164,10 +164,31 @@ module RedmineInstaller
|
|
164
164
|
|
165
165
|
dest_file = nil
|
166
166
|
tar.each do |entry|
|
167
|
+
|
167
168
|
if entry.full_name == TAR_LONGLINK
|
168
169
|
dest_file = File.join(@temp_dir, entry.read.strip)
|
169
170
|
next
|
170
171
|
end
|
172
|
+
|
173
|
+
# Pax header
|
174
|
+
# "%d %s=%s\n", <length>, <keyword>, <value>
|
175
|
+
if entry.header.typeflag == 'x'
|
176
|
+
|
177
|
+
pax_headers = entry.read.split("\n")
|
178
|
+
pax_headers.each do |header|
|
179
|
+
meta, value = header.split('=', 2)
|
180
|
+
length, keyword = meta.split(' ', 2)
|
181
|
+
|
182
|
+
if keyword == 'path'
|
183
|
+
dest_file = File.join(@temp_dir, value)
|
184
|
+
next
|
185
|
+
end
|
186
|
+
end
|
187
|
+
|
188
|
+
# If there is no header with keyword "path"
|
189
|
+
next
|
190
|
+
end
|
191
|
+
|
171
192
|
dest_file ||= File.join(@temp_dir, entry.full_name)
|
172
193
|
if entry.directory?
|
173
194
|
FileUtils.rm_rf(dest_file) unless File.directory?(dest_file)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: redmine-installer
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.2.
|
4
|
+
version: 2.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ondřej Moravčík
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-09-
|
11
|
+
date: 2018-09-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: commander
|