rar 0.1.2 → 0.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: cf4ff5a475450c3779eabbf3f30aee661548013e
4
- data.tar.gz: 28162dc0426f41726506b64dc0b239bc670cc1f0
3
+ metadata.gz: 9464122a55876b24ff51081b1c6ee6d7a9b10bb2
4
+ data.tar.gz: 0647226362f220579df29a6f592b3d86fd453789
5
5
  SHA512:
6
- metadata.gz: b28958a77264e6f189b7a38d47a70ab8932eb78dfdc8739be13035de1ffdd309a2b7c97e38dc382e5d52c63ecd017724918aebc29e09e8b32781335a0702aef2
7
- data.tar.gz: dde0b24a7b35be5f73a53cd0cb156fa2d068c9c30a814e2565736d615dbb0cc236ffc72df825ec826d0fcd4518b8146d4068ba9133f08693ed5e90cf0d448253
6
+ metadata.gz: e07445d80a39982063931b21bf3f2b64293f933daa2b8be7a168e8e57a2b08b390dfc10ab6c0dc1016098af9eb95d8e406c9d0157a337908a58cff6080455f98
7
+ data.tar.gz: bb1b2e7297b89bacaab3a802a3c81b3bb088fcb05bf83d18364cb5c20c137f68da6091a83aa1f3faa6e07b597d2d899e63b2479b7a6c7b0e379d88ae858c0d36
@@ -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
- _, exit_status = Process.wait2 rar_process.pid
56
+ _, status = Process.wait2 rar_process.pid
57
57
 
58
- if exit_status.to_i > 1
59
- if message = ExitCodeMessages[exit_status.to_i]
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: #{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.
@@ -2,7 +2,7 @@
2
2
 
3
3
  module RAR
4
4
  # The library version constant.
5
- Version = "0.1.2"
5
+ Version = "0.1.3"
6
6
 
7
7
  # Returns the current library version number.
8
8
  #
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.2
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-04 00:00:00.000000000 Z
11
+ date: 2014-08-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec