coveralls 0.5.9 → 0.6.0
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/coveralls/api.rb +2 -3
- data/lib/coveralls/version.rb +1 -1
- metadata +1 -1
data/lib/coveralls/api.rb
CHANGED
@@ -32,8 +32,7 @@ module Coveralls
|
|
32
32
|
def self.disable_net_blockers!
|
33
33
|
if defined?(WebMock)
|
34
34
|
allow = WebMock::Config.instance.allow || []
|
35
|
-
[*allow].push API_HOST
|
36
|
-
WebMock::Config.instance.allow = allow
|
35
|
+
WebMock::Config.instance.allow = [*allow].push API_HOST
|
37
36
|
end
|
38
37
|
|
39
38
|
if defined?(VCR)
|
@@ -52,7 +51,7 @@ module Coveralls
|
|
52
51
|
def self.hash_to_file(hash)
|
53
52
|
file = nil
|
54
53
|
Tempfile.open(['coveralls-upload', 'json']) do |f|
|
55
|
-
f.write(hash
|
54
|
+
f.write(MultiJson.dump hash)
|
56
55
|
file = f
|
57
56
|
end
|
58
57
|
File.new(file.path, 'rb')
|
data/lib/coveralls/version.rb
CHANGED