vlc-client 0.0.1.beta.3 → 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -14,7 +14,7 @@ And then execute:
14
14
 
15
15
  Or install it yourself as:
16
16
 
17
- $ gem install vlc-client --pre
17
+ $ gem install vlc-client
18
18
 
19
19
  ## Usage
20
20
 
@@ -107,4 +107,4 @@ If you need support for other OS a pull request is welcome.
107
107
  Copyright (c) 2012 Miguel Guinada
108
108
  [LICENSE][] for details.
109
109
 
110
- [license]: https://github.com/mguinada/vlc-client/blob/master/LICENSE
110
+ [license]: https://github.com/mguinada/vlc-client/blob/master/LICENSE
@@ -39,8 +39,7 @@ module VLC
39
39
  # @param [Boolean] detached if true VLC will be started as a deamon process.
40
40
  # Defaults to false.
41
41
  #
42
- # @return [Integer] the subprocess PID or nil if the start command
43
- # as no effect (e.g. VLC already running)
42
+ # @return [Integer] the subprocess PID
44
43
  #
45
44
  # @see #daemonize
46
45
  #
@@ -95,10 +94,11 @@ module VLC
95
94
  # as no effect (e.g. VLC not running)
96
95
  #
97
96
  def stop
98
- return NullObject.new if not running?
97
+ return nil if not running?
99
98
 
100
99
  Process.kill('INT', pid = @pid)
101
100
  @pid = NullObject.new
101
+ @deamon = false
102
102
  pid
103
103
  end
104
104
 
@@ -106,7 +106,7 @@ module VLC
106
106
  def setup_traps
107
107
  trap("EXIT") { stop }
108
108
  trap("INT") { stop }
109
- trap("CLD") { @pid = NullObject.new }
109
+ trap("CLD") { @pid = NullObject.new; @deamon = false }
110
110
  end
111
111
 
112
112
  def detach
@@ -1,3 +1,3 @@
1
1
  module VLC
2
- VERSION = "0.0.1.beta.3"
2
+ VERSION = "0.0.1"
3
3
  end
File without changes
metadata CHANGED
@@ -1,19 +1,19 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vlc-client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1.beta.3
5
- prerelease: 6
4
+ version: 0.0.1
5
+ prerelease:
6
6
  platform: ruby
7
7
  authors:
8
8
  - Miguel Guinada
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-10-31 00:00:00.000000000 Z
12
+ date: 2012-11-01 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: retryable
16
- requirement: &9184240 !ruby/object:Gem::Requirement
16
+ requirement: &22175840 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ~>
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: '1.3'
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *9184240
24
+ version_requirements: *22175840
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: rake
27
- requirement: &9183640 !ruby/object:Gem::Requirement
27
+ requirement: &22174780 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ! '>='
@@ -32,10 +32,10 @@ dependencies:
32
32
  version: '0'
33
33
  type: :development
34
34
  prerelease: false
35
- version_requirements: *9183640
35
+ version_requirements: *22174780
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: rspec
38
- requirement: &9183040 !ruby/object:Gem::Requirement
38
+ requirement: &22174160 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - ! '>='
@@ -43,10 +43,10 @@ dependencies:
43
43
  version: '0'
44
44
  type: :development
45
45
  prerelease: false
46
- version_requirements: *9183040
46
+ version_requirements: *22174160
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: simplecov
49
- requirement: &9182260 !ruby/object:Gem::Requirement
49
+ requirement: &22173600 !ruby/object:Gem::Requirement
50
50
  none: false
51
51
  requirements:
52
52
  - - ! '>='
@@ -54,10 +54,10 @@ dependencies:
54
54
  version: '0'
55
55
  type: :development
56
56
  prerelease: false
57
- version_requirements: *9182260
57
+ version_requirements: *22173600
58
58
  - !ruby/object:Gem::Dependency
59
59
  name: pry
60
- requirement: &9181580 !ruby/object:Gem::Requirement
60
+ requirement: &22172800 !ruby/object:Gem::Requirement
61
61
  none: false
62
62
  requirements:
63
63
  - - ! '>='
@@ -65,10 +65,10 @@ dependencies:
65
65
  version: '0'
66
66
  type: :development
67
67
  prerelease: false
68
- version_requirements: *9181580
68
+ version_requirements: *22172800
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: yard
71
- requirement: &9181160 !ruby/object:Gem::Requirement
71
+ requirement: &22172160 !ruby/object:Gem::Requirement
72
72
  none: false
73
73
  requirements:
74
74
  - - ! '>='
@@ -76,10 +76,10 @@ dependencies:
76
76
  version: '0'
77
77
  type: :development
78
78
  prerelease: false
79
- version_requirements: *9181160
79
+ version_requirements: *22172160
80
80
  - !ruby/object:Gem::Dependency
81
81
  name: maruku
82
- requirement: &9180680 !ruby/object:Gem::Requirement
82
+ requirement: &22171740 !ruby/object:Gem::Requirement
83
83
  none: false
84
84
  requirements:
85
85
  - - ! '>='
@@ -87,7 +87,7 @@ dependencies:
87
87
  version: '0'
88
88
  type: :development
89
89
  prerelease: false
90
- version_requirements: *9180680
90
+ version_requirements: *22171740
91
91
  description: vlc-client allows to control VLC media player over TCP
92
92
  email:
93
93
  - mguinada@gmail.com
@@ -122,7 +122,7 @@ files:
122
122
  - spec/vlc-client/connection_spec.rb
123
123
  - spec/vlc-client/server_spec.rb
124
124
  - spec/vlc_client_spec.rb
125
- - vlc.gemspec
125
+ - vlc-client.gemspec
126
126
  homepage: https://github.com/mguinada/vlc-client
127
127
  licenses: []
128
128
  post_install_message:
@@ -138,9 +138,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
138
138
  required_rubygems_version: !ruby/object:Gem::Requirement
139
139
  none: false
140
140
  requirements:
141
- - - ! '>'
141
+ - - ! '>='
142
142
  - !ruby/object:Gem::Version
143
- version: 1.3.1
143
+ version: '0'
144
144
  requirements: []
145
145
  rubyforge_project:
146
146
  rubygems_version: 1.8.15