cbr2cbz 0.1.3 → 0.1.4
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/cbr2cbz/converter.rb +5 -1
- metadata +2 -2
data/lib/cbr2cbz/converter.rb
CHANGED
@@ -43,7 +43,7 @@ module Cbr2cbz
|
|
43
43
|
$stderr.puts "Warning -- #{new_filename} already exists! Skipping."
|
44
44
|
else
|
45
45
|
# Unrar CBR
|
46
|
-
|
46
|
+
unrar filename, filename_without_ext
|
47
47
|
|
48
48
|
# Create CBZ
|
49
49
|
Zip::ZipFile.open(new_filename, 'w') do |zipfile|
|
@@ -61,5 +61,9 @@ module Cbr2cbz
|
|
61
61
|
end
|
62
62
|
end
|
63
63
|
end
|
64
|
+
|
65
|
+
def unrar(filename, folder)
|
66
|
+
`unrar e "#{filename}" "#{folder}"/`
|
67
|
+
end
|
64
68
|
end
|
65
69
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cbr2cbz
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.4
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-11-
|
12
|
+
date: 2012-11-24 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rubyzip
|