em-systemcommand 2.0.9 → 2.0.10

Sign up to get free protection for your applications and to get access to all the features.
@@ -180,7 +180,7 @@ module EventMachine
180
180
  parse_cr data, icr
181
181
  else
182
182
  @linebuffer << data
183
- # @outputbuffer.print data
183
+ @outputbuffer.print data
184
184
  end
185
185
  end
186
186
  end
@@ -1,5 +1,5 @@
1
1
  module Em
2
2
  module Systemcommand
3
- VERSION = "2.0.9"
3
+ VERSION = "2.0.10"
4
4
  end
5
5
  end
@@ -1,9 +1,7 @@
1
1
  require 'spec_helper'
2
2
 
3
3
  describe 'Pipe' do
4
-
5
4
  context 'parsing' do
6
-
7
5
  it 'should handle carriage returns' do
8
6
  cmd = EM::SystemCommand.new 'exit 0;'
9
7
  pipe = EM::SystemCommand::Pipe.new(nil, cmd, :stdout)
@@ -72,7 +70,6 @@ describe 'Pipe' do
72
70
  end
73
71
 
74
72
  context '#line callback' do
75
-
76
73
  it 'should be called on readline' do
77
74
  received = []
78
75
  EM.run do
@@ -125,7 +122,7 @@ describe 'Pipe' do
125
122
  end
126
123
  end
127
124
 
128
- it 'should be called on carriage return'do
125
+ it 'should be called on carriage return' do
129
126
  received = []
130
127
  EM.run do
131
128
  EM::SystemCommand.execute %q{ruby -e '$stdout.sync = true; print "123\r"; sleep 0.1; print "456\r"; exit 0;'} do |on|
@@ -149,7 +146,7 @@ describe 'Pipe' do
149
146
  received = []
150
147
  EM.run do
151
148
  EM::SystemCommand.execute 'echo "-123-"; echo "-456-"' do |on|
152
- on.stdout.match /-([0-9]+)-/, in: :line do |number|
149
+ on.stdout.match(/-([0-9]+)-/, in: :line) do |number|
153
150
  received << number
154
151
  end
155
152
 
@@ -165,7 +162,7 @@ describe 'Pipe' do
165
162
  received = []
166
163
  EM.run do
167
164
  EM::SystemCommand.execute %q{ruby -e '$stdout.sync = true; print "-123-\r"; sleep 0.1; print "-456-\r"; exit 0'} do |on|
168
- on.stdout.match /-([0-9]+)-/, in: :output do |number|
165
+ on.stdout.match(/-([0-9]+)-/, in: :output) do |number|
169
166
  received << number
170
167
  end
171
168
 
@@ -181,7 +178,7 @@ describe 'Pipe' do
181
178
  received = []
182
179
  EM.run do
183
180
  EM::SystemCommand.execute %q{ruby -e '$stdout.sync = true; print "-123-\n"; sleep 0.1; print "-456-\n"; exit 0'} do |on|
184
- on.stdout.match /-([0-9]+)-/, match: :last, in: :output do |number|
181
+ on.stdout.match(/-([0-9]+)-/, match: :last, in: :output) do |number|
185
182
  received << number
186
183
  end
187
184
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: em-systemcommand
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.9
4
+ version: 2.0.10
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-11-02 00:00:00.000000000 Z
12
+ date: 2013-05-14 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rspec
@@ -163,7 +163,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
163
163
  version: '0'
164
164
  segments:
165
165
  - 0
166
- hash: 1918378345749344729
166
+ hash: -625407012626749903
167
167
  required_rubygems_version: !ruby/object:Gem::Requirement
168
168
  none: false
169
169
  requirements:
@@ -172,10 +172,10 @@ required_rubygems_version: !ruby/object:Gem::Requirement
172
172
  version: '0'
173
173
  segments:
174
174
  - 0
175
- hash: 1918378345749344729
175
+ hash: -625407012626749903
176
176
  requirements: []
177
177
  rubyforge_project:
178
- rubygems_version: 1.8.24
178
+ rubygems_version: 1.8.25
179
179
  signing_key:
180
180
  specification_version: 3
181
181
  summary: Sweeter popen3 for EventMachine.