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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9117713ae1bd1618f1f221371ac7e33bd3a74ce0e4eb34eb31c1d9ce9705bb89
4
- data.tar.gz: 2bdbfdcc24ee97f440bb78db7bfde7c264dfa119431ce23a2d2e4f6e85fdef9b
3
+ metadata.gz: c952a311a5051e343b406d35387b62193443ea3f32249823e0ca8413181a870a
4
+ data.tar.gz: 7f36f76ad52ab6ad79f46607945055d695cfc6ef937d5823362fd70a2f6f8cec
5
5
  SHA512:
6
- metadata.gz: 35e4e7549fbf0cfbcaddae16be3132c1635b7685459fcfe43bb2c514d47eaaf360d85c1d0136d5b0e57f225e0b9646e63593964557fc3d0343da32b0b163e7c4
7
- data.tar.gz: e946c80a479c811bb08bb9fca90f6050cab64dff18c665415694ce8d90d46e0fbc3b51512752551fcfc8302eb0e44f56920009fbb15f0e207ea2194c67cb0ca7
6
+ metadata.gz: 9cecd4dc906a741e9636cab8050984d7140091d3c43ea3d9e4760e02fe268e8cd6cdc591ef055b7e4aea8c9b433cebffa11723d0d74b454ac306e537cfb3bb58
7
+ data.tar.gz: 5e0ab356e724445ab6da478a9e2b93da1361766c0eae95cc4baedd3b351fafc58524133599e6787c57d6b946dc29fe9636080b09f427c1d0969e7f095a065f50
data/README.md CHANGED
@@ -7,5 +7,5 @@ An up-to-date fork of [lemurheavy/coveralls-ruby](https://github.com/lemurheavy/
7
7
  Add to your `Gemfile`:
8
8
 
9
9
  ```rb
10
- gem 'coveralls_reborn', '~> 0.13.0', require: false
10
+ gem 'coveralls_reborn', '~> 0.13.1', require: false
11
11
  ```
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 StandardError
70
+ rescue LoadError # rubocop:disable Lint/HandleExceptions
71
+ rescue StandardError => e
70
72
  # TODO: Add error action
71
- puts error.message
73
+ puts e.message
72
74
  end
73
75
  end
74
76
 
@@ -65,11 +65,14 @@ module Coveralls
65
65
  # Returns the formatted string.
66
66
  def format(string, options = {})
67
67
  unless no_color?
68
- require 'term/ansicolor'
69
- options[:color]&.split(/\s/)&.reverse_each do |color|
70
- next unless Term::ANSIColor.respond_to?(color.to_sym)
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
- string = Term::ANSIColor.send(color.to_sym, string)
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Coveralls
4
- VERSION = '0.13.0'
4
+ VERSION = '0.13.1'
5
5
  end
data/lib/coveralls.rb CHANGED
@@ -44,6 +44,7 @@ module Coveralls
44
44
  begin
45
45
  require 'simplecov'
46
46
  @adapter = :simplecov if defined?(::SimpleCov)
47
+ rescue LoadError # rubocop:disable Lint/HandleExceptions
47
48
  rescue StandardError => e
48
49
  # TODO: Add error action
49
50
  puts e.message
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.0
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-16 00:00:00.000000000 Z
13
+ date: 2019-07-17 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: json