mvlc 0.0.5 → 0.0.6

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: b3b50cbc04c3dc896d543ef8b3955ed7e7e4c9db
4
- data.tar.gz: 397fae78ab04c1d54943e1c01f06c44c27997a7e
3
+ metadata.gz: 939e7ec0d16bd28e2531dfaff5cbc81e8c751cbb
4
+ data.tar.gz: 90d863526d598844f312d14c8fe1e93469940ace
5
5
  SHA512:
6
- metadata.gz: 1fdc637da1c7805f98dabd99fe005d0041a2cd2031ac541acfae2e9f26a8e4db939fa82747342856e67dddb0dcbc91137111c5765bfb5d5465a8dab297c64a24
7
- data.tar.gz: c4e8bf3931fcca5b673d551f887e76527ce22c36b8e9374479fad4c265743d65af13749d81cf2520754554fb568a462550153df8d31b28ab12143c38ddd2d4a6
6
+ metadata.gz: 5c9b32d5b7a5cfdd1434610a84148faa5548ae4e01564298ba2d495456fd3c0d15c611be75f467cadb991b89336a9c90b6bbe92b266c6cdd8d02038af7e86ccd
7
+ data.tar.gz: '08482fa28f8df3e522ba6e88a3c79515950158ba312e7a6f9272ab43f8a37943ce6a9119ab4d23a5e8034c21ee602e26284f2aa4ac8b9374fc10a914558f73f3'
@@ -24,7 +24,7 @@ require "mvlc/context"
24
24
 
25
25
  module MVLC
26
26
 
27
- VERSION = "0.0.5"
27
+ VERSION = "0.0.6"
28
28
 
29
29
  # Shortcut to Context constructor
30
30
  def self.new(*args, &block)
@@ -9,7 +9,7 @@ module MVLC
9
9
 
10
10
  extend Forwardable
11
11
 
12
- attr_reader :state, :player
12
+ attr_reader :state, :pid, :player
13
13
 
14
14
  # @param [Hash] options
15
15
  def initialize(options = {})
@@ -143,9 +143,12 @@ module MVLC
143
143
  # Kill the VLC player instance
144
144
  # @return [Boolean]
145
145
  def kill_player
146
- @player.connection.write("quit")
146
+ begin
147
+ @player.connection.write("quit")
148
+ rescue Errno::EBADF
149
+ end
147
150
  # TODO: Process.kill not working here
148
- `kill -9 #{@pid}`
151
+ `kill -9 #{@pid}` unless @pid.nil?
149
152
  @player.server.stop
150
153
  true
151
154
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mvlc
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ari Russo