rubygems-test 0.2.4 → 0.2.5

Sign up to get free protection for your applications and to get access to all the features.
data/History.txt CHANGED
@@ -1,3 +1,9 @@
1
+ === 0.2.5 / 1/15/2011
2
+
3
+ * use the input record separator instead of straight newlines - windows!
4
+
5
+ * Yyyyyyyyyyeah. So 0.2.4 wasn't able to upload results at all.
6
+
1
7
  === 0.2.4 / 1/13/2011
2
8
 
3
9
  * Better I/O loop and terminal handling; test/unit dots should appear as they
data/Rakefile CHANGED
@@ -12,7 +12,7 @@ Hoe.spec 'rubygems-test' do
12
12
 
13
13
  # doin' it wrong because we're a gem plugin
14
14
  # that means I can be "special"!
15
- self.version = '0.2.4'
15
+ self.version = '0.2.5'
16
16
 
17
17
  self.rubyforge_name = nil
18
18
 
@@ -236,7 +236,7 @@ class Gem::Commands::TestCommand < Gem::Command
236
236
  stderr_buf = ""
237
237
 
238
238
  loop do
239
- output = ""
239
+ tmp_output = ""
240
240
  handles = [stderr, stdout]
241
241
  bufs, handles = reader_proc.call(handles)
242
242
 
@@ -245,16 +245,17 @@ class Gem::Commands::TestCommand < Gem::Command
245
245
  # "flushes" immediately. and by "flush" I mean "concatenates".
246
246
  if bufs.has_key?(stderr)
247
247
  stderr_buf += bufs[stderr]
248
- buf_ary = stderr_buf.split(/\n/)
248
+ buf_ary = stderr_buf.split($/)
249
249
  if buf_ary.length > 1
250
- output += buf_ary[0..-2].join("\n") + "\n"
250
+ tmp_output += buf_ary[0..-2].join($/) + $/
251
251
  stderr_buf = buf_ary[-1]
252
252
  end
253
253
  end
254
254
 
255
- output += bufs[stdout] if bufs.has_key?(stdout)
255
+ tmp_output += bufs[stdout] if bufs.has_key?(stdout)
256
256
 
257
- print output
257
+ print tmp_output
258
+ output += tmp_output
258
259
  break if handles.empty?
259
260
  end
260
261
  end
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 2
8
- - 4
9
- version: 0.2.4
8
+ - 5
9
+ version: 0.2.5
10
10
  platform: ruby
11
11
  authors:
12
12
  - Erik Hollensbe
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-01-13 00:00:00 -05:00
18
+ date: 2011-01-15 00:00:00 -05:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency