coveralls_reborn 0.13.0 → 0.13.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/lib/coveralls/api.rb +4 -2
- data/lib/coveralls/output.rb +7 -4
- data/lib/coveralls/version.rb +1 -1
- data/lib/coveralls.rb +1 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c952a311a5051e343b406d35387b62193443ea3f32249823e0ca8413181a870a
|
4
|
+
data.tar.gz: 7f36f76ad52ab6ad79f46607945055d695cfc6ef937d5823362fd70a2f6f8cec
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9cecd4dc906a741e9636cab8050984d7140091d3c43ea3d9e4760e02fe268e8cd6cdc591ef055b7e4aea8c9b433cebffa11723d0d74b454ac306e537cfb3bb58
|
7
|
+
data.tar.gz: 5e0ab356e724445ab6da478a9e2b93da1361766c0eae95cc4baedd3b351fafc58524133599e6787c57d6b946dc29fe9636080b09f427c1d0969e7f095a065f50
|
data/README.md
CHANGED
data/lib/coveralls/api.rb
CHANGED
@@ -55,6 +55,7 @@ module Coveralls
|
|
55
55
|
|
56
56
|
allow = WebMock::Config.instance.allow || []
|
57
57
|
WebMock::Config.instance.allow = [*allow].push API_HOST
|
58
|
+
rescue LoadError # rubocop:disable Lint/HandleExceptions
|
58
59
|
rescue StandardError => e
|
59
60
|
# TODO: Add error action
|
60
61
|
puts e.message
|
@@ -66,9 +67,10 @@ module Coveralls
|
|
66
67
|
VCR.send(VCR.version.major < 2 ? :config : :configure) do |c|
|
67
68
|
c.ignore_hosts API_HOST
|
68
69
|
end
|
69
|
-
rescue
|
70
|
+
rescue LoadError # rubocop:disable Lint/HandleExceptions
|
71
|
+
rescue StandardError => e
|
70
72
|
# TODO: Add error action
|
71
|
-
puts
|
73
|
+
puts e.message
|
72
74
|
end
|
73
75
|
end
|
74
76
|
|
data/lib/coveralls/output.rb
CHANGED
@@ -65,11 +65,14 @@ module Coveralls
|
|
65
65
|
# Returns the formatted string.
|
66
66
|
def format(string, options = {})
|
67
67
|
unless no_color?
|
68
|
-
|
69
|
-
|
70
|
-
|
68
|
+
begin
|
69
|
+
require 'term/ansicolor'
|
70
|
+
options[:color]&.split(/\s/)&.reverse_each do |color|
|
71
|
+
next unless Term::ANSIColor.respond_to?(color.to_sym)
|
71
72
|
|
72
|
-
|
73
|
+
string = Term::ANSIColor.send(color.to_sym, string)
|
74
|
+
end
|
75
|
+
rescue LoadError # rubocop:disable Lint/HandleExceptions
|
73
76
|
end
|
74
77
|
end
|
75
78
|
string
|
data/lib/coveralls/version.rb
CHANGED
data/lib/coveralls.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: coveralls_reborn
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.13.
|
4
|
+
version: 0.13.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Nick Merwin
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2019-07-
|
13
|
+
date: 2019-07-17 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: json
|