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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/workspace-archive.rb +3 -2
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c9cafc792e7c9b1f4f2abefab134000d7816bf61
4
- data.tar.gz: 37bab581365788c630ab0169e71ba386d4131a0b
3
+ metadata.gz: 480cfcb2f8b6a17ace501505b52cd720ddf3b102
4
+ data.tar.gz: 16c9b371d61a3bd4a77932847651c8e77938e9d3
5
5
  SHA512:
6
- metadata.gz: 44d6e60460918686513c646bc56d293d18f6decc8757bbdf5fcaa1090aa42916fe7784b6db9643dbbd2e9cedb8e6ca118294c692b5bf94e3c438187f337d7155
7
- data.tar.gz: c5bab876577ea6fc9c34dc1b83d0e2185f78964f09db3343ff70e1e85bee3fc6e519646a4b02134cf86134fe99ab7a423921ee150201d3bf7b7475cb92e83b07
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
- extract_dir = target_dir.file(entry.name).dir
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, entry.name))
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.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-08-10 00:00:00.000000000 Z
11
+ date: 2017-10-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: workspace