workspace-archive 1.0.0 → 1.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/workspace-archive.rb +3 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 480cfcb2f8b6a17ace501505b52cd720ddf3b102
|
4
|
+
data.tar.gz: 16c9b371d61a3bd4a77932847651c8e77938e9d3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 45c35ccf30dcfa746f507a79bc934c329aa9b0d165e8680861b36a576aac5af8eed5f3e8861f9b93ac58424987e4255c2e1b060fdae61284651d2aded270e746
|
7
|
+
data.tar.gz: 4333f9b03028d2bf2fe7a7114a9cfdac4e89de5a0b2f2a0f5674caeaba20c9d0a55423abe8626c06b7a3ed7ccd0afe15dedc8571f56624a7aa8085f03bb8b8f7
|
data/workspace-archive.rb
CHANGED
@@ -69,9 +69,10 @@ module Workspace
|
|
69
69
|
def extract_zip(target_dir)
|
70
70
|
Zip::File.open(to_s) do |archive|
|
71
71
|
archive.each do |entry|
|
72
|
-
|
72
|
+
entry_name = entry.name.force_encoding("UTF-8")
|
73
|
+
extract_dir = target_dir.file(entry_name).dir
|
73
74
|
extract_dir.create unless extract_dir.exists?
|
74
|
-
entry.extract(::File.join(target_dir.to_s,
|
75
|
+
entry.extract(::File.join(target_dir.to_s, entry_name))
|
75
76
|
end
|
76
77
|
end
|
77
78
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: workspace-archive
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tobias Strebitzer
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-10-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: workspace
|