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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5bb267b21e7a017379570dc6403992a1c1f24ee5cd99d46e0f804507822eb4ef
4
- data.tar.gz: cc4861e5978b24200309f5752872e6326f98c7e2b9572831ce23dc693239e76c
3
+ metadata.gz: 9eb5beee6b15eaff2e6c89cc50e66dbf9e61ff3542f7dad9ea39e5b0061e2d72
4
+ data.tar.gz: 04e1ea4364cc395e147878e4183cbcafc80ad5b7ca868e6c15a7defb8b901857
5
5
  SHA512:
6
- metadata.gz: 93a5dd5b2c0b11575542071b65cef96ffc5328c239230f506852d163e0708d0b8befcb17ddeb03405975c7f6bb27095cf742991dda7c029fab78c78b5089cdfc
7
- data.tar.gz: 6baab12f21600f53306a3561400893a111bf82863930d7d5109302c99cf14b0c6edcd26c3a4ab198b8022f1cade4fc6d5f926091ee8efb97ba53eb7cc526450e
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)
@@ -1,3 +1,3 @@
1
1
  module RedmineInstaller
2
- VERSION = '2.2.0'
2
+ VERSION = '2.2.1'
3
3
  end
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.0
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-25 00:00:00.000000000 Z
11
+ date: 2018-09-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: commander