spin 0.2.1 → 0.3.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/bin/spin +6 -8
  2. metadata +5 -5
data/bin/spin CHANGED
@@ -79,12 +79,10 @@ def serve(force_rspec, force_testunit, time, push_results)
79
79
  test_framework = determine_test_framework(force_rspec, force_testunit)
80
80
 
81
81
  # Preload RSpec to save some time on each test run
82
- ['rspec', 'rspec/rails', 'rspec/autorun'].each do |gem|
83
- begin
84
- require gem
85
- rescue LoadError
86
- # do nothing
87
- end
82
+ begin
83
+ require 'rspec/rails'
84
+ require 'rspec/autorun'
85
+ rescue LoadError
88
86
  end if test_framework == :rspec
89
87
  }
90
88
  # This is the amount of time that you'll save on each subsequent test run.
@@ -180,8 +178,8 @@ def push
180
178
  # We put the filenames on the socket for the server to read and then load.
181
179
  socket.puts f
182
180
 
183
- while line = socket.gets
184
- break if line == "\0"
181
+ while line = socket.readpartial(100)
182
+ break if line[-1,1] == "\0"
185
183
  print line
186
184
  end
187
185
  rescue Errno::ECONNREFUSED
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: spin
3
3
  version: !ruby/object:Gem::Version
4
- hash: 21
4
+ hash: 19
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
- - 2
9
- - 1
10
- version: 0.2.1
8
+ - 3
9
+ - 0
10
+ version: 0.3.0
11
11
  platform: ruby
12
12
  authors:
13
13
  - Jesse Storimer
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-11-27 00:00:00 -05:00
18
+ date: 2011-12-04 00:00:00 -05:00
19
19
  default_executable:
20
20
  dependencies: []
21
21