ass_updater 0.1.1 → 0.1.2

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
  SHA1:
3
- metadata.gz: e0034241f1fb0697994f2b1c81db89bc645aae7e
4
- data.tar.gz: f25a9d22248cd218f570cef410f7569ac8b832f1
3
+ metadata.gz: 66e2b5347a32adb21da2740e46615c28dbfd57cd
4
+ data.tar.gz: 7cc02a7a842aac1a98640cb8d4ef25703ce8263c
5
5
  SHA512:
6
- metadata.gz: 8b6da7b420b4395f0064c9ef8b0d6b956a6094f4e478cb0b5a64daa59166653e96371e386ac22d2e99d2a93722acd6c0afba61abf15969c2122b223fa4a53081
7
- data.tar.gz: 9fc79fa2116717b86d55c3a284cc930e4bf74b67ba062b603977a1813a801183c84996824bfc1488fe2c7d7c86ea252a8e4c63f285a89b01d44a64921530c621
6
+ metadata.gz: a9b9ede3b4dd800209fcc7e7a01490dc479b49967f85c71b685482e6b55363a77ecc01c3d94ac7fdf6ac90985af22803b1992beadfa6b01862d746426cf22d33
7
+ data.tar.gz: 3ba6f052995ba449e1a306d04217d7c5feab517a16297b33e3de8c8c57fc9454b822fed66fab54258641c4a2abadbd56d3a3c29832f25829cc807a5212891156
@@ -66,16 +66,15 @@ class AssUpdater
66
66
  end
67
67
 
68
68
  def unzip_all(zip_f)
69
- dest_dir = ''
70
69
  Zip::File.open(zip_f.path) do |zf|
71
- dest_dir = FileUtils.mkdir_p(local_path)[0]
72
70
  zf.each do |entry|
73
- dest_file = File.join(dest_dir, entry.name.encode('UTF-8', 'cp866'))
71
+ dest_file = File.join(local_path, entry.name.encode('UTF-8', 'cp866'))
72
+ FileUtils.mkdir_p(File.dirname(dest_file))
74
73
  FileUtils.rm_r(dest_file) if File.exist?(dest_file)
75
74
  entry.extract(dest_file)
76
75
  end
77
76
  end
78
- dest_dir
77
+ local_path
79
78
  end
80
79
 
81
80
  def download_distrib(tmp_f, user, password)
@@ -1,4 +1,4 @@
1
1
  #--
2
2
  class AssUpdater
3
- VERSION = '0.1.1'
3
+ VERSION = '0.1.2'
4
4
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ass_updater
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Leonid Vlasov