spin 0.2.1 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/bin/spin +6 -8
- 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
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
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.
|
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:
|
4
|
+
hash: 19
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
|
-
-
|
9
|
-
-
|
10
|
-
version: 0.
|
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-
|
18
|
+
date: 2011-12-04 00:00:00 -05:00
|
19
19
|
default_executable:
|
20
20
|
dependencies: []
|
21
21
|
|