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 +4 -4
- data/lib/ass_updater/update_distrib.rb +3 -4
- data/lib/ass_updater/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 66e2b5347a32adb21da2740e46615c28dbfd57cd
|
4
|
+
data.tar.gz: 7cc02a7a842aac1a98640cb8d4ef25703ce8263c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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(
|
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
|
-
|
77
|
+
local_path
|
79
78
|
end
|
80
79
|
|
81
80
|
def download_distrib(tmp_f, user, password)
|
data/lib/ass_updater/version.rb
CHANGED