candelabra 1.0.0 → 1.0.1

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.
@@ -20,8 +20,8 @@ module Candelabra
20
20
  Remote.flush
21
21
  when 'userlogin'
22
22
  unless @pRet.to_i == 1
23
- #`ps a | grep 'candelabra install' | cut -c1-5`.split("\n").each{|id| `kill #{id}` unless Process.pid == id.to_i }
24
- `ps | grep candelabra`.split("\n").map{ |p| p.split(" ").last }.each{|x| `killall #{x}`}
23
+ `notify-send Bad Username`
24
+ `ps a | grep 'candelabra install' | cut -c1-5`.split("\n").each{|id| `kill #{id}` unless Process.pid == id.to_i }
25
25
  end
26
26
 
27
27
  else
@@ -106,7 +106,12 @@ module Candelabra
106
106
  # The following classes are commands invoked with the 'go' method
107
107
  class Start
108
108
  def go
109
- pid = spawn( 'pianobar', :in => File.open( Installer.input_path, 'r+' ), :out => File.open( Installer.output_path, 'w+' ) )
109
+ pid = fork do
110
+ $stdin.reopen File.open( Installer.input_path, 'r+' )
111
+ $stdout.reopen File.open( Installer.output_path, 'w+' )
112
+ exec 'pianobar'
113
+ end
114
+
110
115
  ::Process.detach(pid)
111
116
  pid
112
117
  end
@@ -1,3 +1,3 @@
1
1
  module Candelabra
2
- VERSION = "1.0.0"
2
+ VERSION = "1.0.1"
3
3
  end
metadata CHANGED
@@ -1,8 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: candelabra
3
3
  version: !ruby/object:Gem::Version
4
+ hash: 21
4
5
  prerelease:
5
- version: 1.0.0
6
+ segments:
7
+ - 1
8
+ - 0
9
+ - 1
10
+ version: 1.0.1
6
11
  platform: ruby
7
12
  authors: []
8
13
 
@@ -21,6 +26,11 @@ dependencies:
21
26
  requirements:
22
27
  - - ~>
23
28
  - !ruby/object:Gem::Version
29
+ hash: 23
30
+ segments:
31
+ - 1
32
+ - 0
33
+ - 0
24
34
  version: 1.0.0
25
35
  type: :development
26
36
  version_requirements: *id001
@@ -32,6 +42,11 @@ dependencies:
32
42
  requirements:
33
43
  - - ">="
34
44
  - !ruby/object:Gem::Version
45
+ hash: 11
46
+ segments:
47
+ - 2
48
+ - 0
49
+ - 2
35
50
  version: 2.0.2
36
51
  type: :development
37
52
  version_requirements: *id002
@@ -90,17 +105,25 @@ required_ruby_version: !ruby/object:Gem::Requirement
90
105
  requirements:
91
106
  - - ">="
92
107
  - !ruby/object:Gem::Version
108
+ hash: 3
109
+ segments:
110
+ - 0
93
111
  version: "0"
94
112
  required_rubygems_version: !ruby/object:Gem::Requirement
95
113
  none: false
96
114
  requirements:
97
115
  - - ">="
98
116
  - !ruby/object:Gem::Version
117
+ hash: 23
118
+ segments:
119
+ - 1
120
+ - 3
121
+ - 6
99
122
  version: 1.3.6
100
123
  requirements: []
101
124
 
102
125
  rubyforge_project: candelabra
103
- rubygems_version: 1.5.0
126
+ rubygems_version: 1.4.2
104
127
  signing_key:
105
128
  specification_version: 3
106
129
  summary: Wrapper for pianobar