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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8952d950775e8d4ddc14df09b7d4c83be64760b0f11163a175d7c77792dda15f
4
- data.tar.gz: 69dec483a576f156fc352c853bd99c7aa96b6dd6d51ec854a4ba024cfaab442b
3
+ metadata.gz: 336185da771f049deea0de6b7c260a5347c2e9711b72fa33c57251d6df0e8370
4
+ data.tar.gz: 59ae5b8e04a87980308f45e2c1e39729eaf6f85155ebfb2a9db28b1cb91312fc
5
5
  SHA512:
6
- metadata.gz: 9c61236a6964f6b9dc74033d3c96f42ea05a578b40a970119cfb02aa6dab9778e588173fb2292115597b0ed8a7c42f2e97a3cddd36ac4f03113b94031bd27275
7
- data.tar.gz: aa47dd12393eef3f58ffe35e10c9bf4767caaf6b917907b06bf1cd56752aabc4c96ec5876cc451e0dc9448222e0b4458bc884e90234151f8bfb52b4d785308a1
6
+ metadata.gz: a3e6615cd7f5aeb8b686fed1c4bf5d0b5d8491639f107b42ae807c9ebc5f5f47f4670f8a8d41c747905eab88b1a24dcd877b88312bb8b471521bfc627942a50d
7
+ data.tar.gz: 7e3257c7e7a22abddabddf3b5271a6c9d9138ecf7ca435836e6461269aa3b87992a88f2dde8b75c27cee34c4f72bbc0b4eec170dead5519578c1ed56075a7325
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- pikebubbles (0.0.1)
4
+ pikebubbles (0.1.0)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -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
- while line = @fifo.readline(4096)
11
- $stdin.print line
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.p e
23
+ $stderr.print e.inspect
19
24
  end
20
25
  $stderr.puts "Termed pikebubbles"
21
26
  end
@@ -1,3 +1,3 @@
1
1
  module Pikebubbles
2
- VERSION = "0.0.1"
2
+ VERSION = "0.1.0"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pikebubbles
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Uchio Kondo