pikebubbles 0.0.1 → 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/pikebubbles/cli.rb +8 -3
- data/lib/pikebubbles/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 336185da771f049deea0de6b7c260a5347c2e9711b72fa33c57251d6df0e8370
|
4
|
+
data.tar.gz: 59ae5b8e04a87980308f45e2c1e39729eaf6f85155ebfb2a9db28b1cb91312fc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a3e6615cd7f5aeb8b686fed1c4bf5d0b5d8491639f107b42ae807c9ebc5f5f47f4670f8a8d41c747905eab88b1a24dcd877b88312bb8b471521bfc627942a50d
|
7
|
+
data.tar.gz: 7e3257c7e7a22abddabddf3b5271a6c9d9138ecf7ca435836e6461269aa3b87992a88f2dde8b75c27cee34c4f72bbc0b4eec170dead5519578c1ed56075a7325
|
data/Gemfile.lock
CHANGED
data/lib/pikebubbles/cli.rb
CHANGED
@@ -7,15 +7,20 @@ module Pikebubbles
|
|
7
7
|
File.mkfifo("/var/run/pikebubbles.fifo", 0666)
|
8
8
|
$stderr.puts "Opened FIFO: /var/run/pikebubbles.fifo"
|
9
9
|
@fifo = File.open("/var/run/pikebubbles.fifo", 'r')
|
10
|
-
|
11
|
-
|
10
|
+
loop do
|
11
|
+
lines = @fifo.readlines(4096)
|
12
|
+
unless lines.empty?
|
13
|
+
lines.each do |line|
|
14
|
+
$stdout.print line
|
15
|
+
end
|
16
|
+
end
|
12
17
|
end
|
13
18
|
ensure
|
14
19
|
begin
|
15
20
|
@fifo.close
|
16
21
|
File.delete("/var/run/pikebubbles.fifo")
|
17
22
|
rescue => e
|
18
|
-
$stderr.
|
23
|
+
$stderr.print e.inspect
|
19
24
|
end
|
20
25
|
$stderr.puts "Termed pikebubbles"
|
21
26
|
end
|
data/lib/pikebubbles/version.rb
CHANGED