rar 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/library/rar/archive.rb +4 -4
- data/library/rar/command_line_options.rb +1 -1
- data/library/rar/version.rb +1 -1
- 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: 9464122a55876b24ff51081b1c6ee6d7a9b10bb2
|
4
|
+
data.tar.gz: 0647226362f220579df29a6f592b3d86fd453789
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e07445d80a39982063931b21bf3f2b64293f933daa2b8be7a168e8e57a2b08b390dfc10ab6c0dc1016098af9eb95d8e406c9d0157a337908a58cff6080455f98
|
7
|
+
data.tar.gz: bb1b2e7297b89bacaab3a802a3c81b3bb088fcb05bf83d18364cb5c20c137f68da6091a83aa1f3faa6e07b597d2d899e63b2479b7a6c7b0e379d88ae858c0d36
|
data/library/rar/archive.rb
CHANGED
@@ -53,13 +53,13 @@ module RAR
|
|
53
53
|
rar_process = IO.popen command_line
|
54
54
|
|
55
55
|
# Wait for the child rar process to finish.
|
56
|
-
_,
|
56
|
+
_, status = Process.wait2 rar_process.pid
|
57
57
|
|
58
|
-
if
|
59
|
-
if message = ExitCodeMessages[
|
58
|
+
if status.exitstatus > 1
|
59
|
+
if message = ExitCodeMessages[status.exitstatus]
|
60
60
|
raise CommandLineError, message
|
61
61
|
else
|
62
|
-
raise CommandLineError, "Unknown exit status: #{
|
62
|
+
raise CommandLineError, "Unknown exit status: #{status}"
|
63
63
|
end
|
64
64
|
else
|
65
65
|
true
|
@@ -11,7 +11,7 @@ module RAR
|
|
11
11
|
old_format: ->(old_format) { '-vn' if old_format },
|
12
12
|
volume_size: ->(volume_size) { "-v#{volume_size}" },
|
13
13
|
compression: ->(compression = 0) { "-m#{compression}" },
|
14
|
-
exclude_path: ->(exclude_path) { 'ep' },
|
14
|
+
exclude_path: ->(exclude_path) { '-ep' },
|
15
15
|
}
|
16
16
|
|
17
17
|
# @return [Array] the list of command line options.
|
data/library/rar/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rar
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Mikkel Kroman
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-07
|
11
|
+
date: 2014-08-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rspec
|