simplecov-small-badge 0.2.2 → 0.2.3

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: b83d5ecb1cc7cfdbf88f23273fce8e930cbd0fc35f3a6b260b1aabdcde3670de
4
- data.tar.gz: 3815abcaef04933a213daf978b6af2dbc7d51e8934da0410579f37a00beb4e47
3
+ metadata.gz: 18736b122698fa83cca59ce83a9beaf5bdc0482416840cd6d3b80d4e253651ad
4
+ data.tar.gz: 05d05012b039be804039bad1233a48daa08aa9230047f1da68e0e4b62d61be29
5
5
  SHA512:
6
- metadata.gz: 9608eed99456830ae703a331e4d25269a81c638c490b533bdcaaf0151e8799cd5c92f0f09300534c4e77e564ffaeb0cda43761ed6a5d6cd753f39f1b76cae6ef
7
- data.tar.gz: e8c465f56eb74b39ee1df9db95a1f1e106da64cfa0e6b31940e45f8054c04210ab81723fb3f012c119bc4d5290b314abb8dd7b8e93b99f7bba058093ea593c84
6
+ metadata.gz: bb7bc789c8b5146cac0ca1ba8a6ae9dec9c397718a1d30bd08875c3d7275d50752dd7055a3d25974edb985a678ae739d87aae18fc1a6133616b5cde88cb5e6c8
7
+ data.tar.gz: 7a85ff247d5fd7818ae6e7f260d7c0a988a7a7f89847d8c1b3b20813cbe41b92a29c157e2b1782a5af28f2ad739164aea1b8e1d3d474cce0191835a6ac585e1e
data/Gemfile CHANGED
@@ -5,7 +5,3 @@ source 'https://rubygems.org'
5
5
  gemspec
6
6
 
7
7
  gem 'byebug', group: %i[development test]
8
- gem 'rubycritic', git: 'https://github.com/marcgrimme/rubycritic',
9
- branch: 'feature/support-dynamic-reports'
10
- gem 'rubycritic-small-badge',
11
- git: 'https://github.com/marcgrimme/rubycritic-small-badge'
data/README.md CHANGED
@@ -9,13 +9,13 @@
9
9
  *SimpleCovBadge* is a gem that can be added to the `Gemfile` and will produce a file called `coverage_badge.png` in the `coverage` directory.
10
10
  It could be looking as follows dependent on how it is configured.
11
11
 
12
- ...
12
+ ![Badge](https://marcgrimme.github.io/simplecov-small-badge/badges/coverage_badge_total.svg)
13
13
 
14
14
  The idea is to created a badge for [SimpleCov](https://github.com/colszowka/simplecov) to create a persistable image that shows the coverage in percent as a badge.
15
15
 
16
16
  ## Installation
17
17
 
18
- The badge creation is dependent on the [MiniMagic gem](https://github.com/colszowka/simplecov) which requires the [ImageMagick](http://www.imagemagick.org/index.php) software.
18
+ The badge creation is dependent on the [Repo-small-badge gem](https://github.com/marcgrimme/repo-small-badge) which creates and SVG badge.
19
19
  It can be installed in your Ruby library or rails app as part of the `Gemfile` as follows.
20
20
 
21
21
  ```
@@ -29,26 +29,26 @@ This gem is an alternative and inspired by the great work in the other gem [simp
29
29
 
30
30
  Whereever you are integrating `SimpleCov` you can configure the `SimpleCovSmallBadge` gem as any formater can be configured. The default integration could looks as follows:
31
31
 
32
- ```
32
+ ```ruby
33
+ require 'simplecov_small_badge'
34
+
33
35
  # Wherever your SimpleCov.start block is (spec_helper.rb, test_helper.rb, or .simplecov)
34
36
  SimpleCov.start do
35
- require 'simple-cov-small-badge'
36
- # add your normal SimpleCov configs
37
- add_filter "/app/model"
38
- # configure any options you want for SimpleCov::Formatter::BadgeFormatter
39
- SimpleCovSmallBadge.configure do |config|
40
- # switches on logging for convert
41
- config.log_level = 'debug'
42
- # does not created rounded borders
43
- config.rounded_border = false
44
- # set the background for the title to darkgrey
45
- config.background_color = 'darkgrey'
46
- end
47
- # call SimpleCov::Formatter::BadgeFormatter after the normal HTMLFormatter
48
- SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter[
49
- SimpleCov::Formatter::HTMLFormatter,
50
- SimpleCovSimpleBadge::Formatter,
51
- ]
37
+ # add your normal SimpleCov configs
38
+ add_filter "/app/model"
39
+ # call SimpleCov::Formatter::BadgeFormatter after the normal HTMLFormatter
40
+ SimpleCov.formatters = SimpleCov::Formatter::MultiFormatter.new([
41
+ SimpleCov::Formatter::HTMLFormatter,
42
+ SimpleCovSmallBadge::Formatter
43
+ ])
44
+ end
45
+
46
+ # configure any options you want for SimpleCov::Formatter::BadgeFormatter
47
+ SimpleCovSmallBadge.configure do |config|
48
+ # does not created rounded borders
49
+ config.rounded_border = true
50
+ # set the background for the title to darkgrey
51
+ config.background = '#ffffcc'
52
52
  end
53
53
  ```
54
54
 
data/Rakefile CHANGED
@@ -12,7 +12,7 @@ RubyCriticSmallBadge.configure do |config|
12
12
  config.minimum_score = ENV.fetch('RUBYCRITICLIMIT', 90.0)
13
13
  end
14
14
  RubyCritic::RakeTask.new do |task|
15
- task.options = %(--formatter RubyCriticSmallBadge::Report
15
+ task.options = %(--custom-format RubyCriticSmallBadge::Report
16
16
  --minimum-score #{RubyCriticSmallBadge.config.minimum_score}
17
17
  --format html --format console)
18
18
  task.paths = FileList['lib/**/*.rb']
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module SimpleCovSmallBadge
4
- VERSION = '0.2.2'
4
+ VERSION = '0.2.3'
5
5
  end
@@ -16,11 +16,13 @@ Gem::Specification.new do |s|
16
16
 
17
17
  s.rubyforge_project = 'simplecov-small-badge'
18
18
 
19
- s.add_dependency 'repo-small-badge', '~> 0.2.2'
19
+ s.add_dependency 'repo-small-badge', '~> 0.2.6'
20
20
  s.add_dependency 'simplecov', '~> 0.16'
21
21
  s.add_development_dependency 'rake', '~> 12'
22
22
  s.add_development_dependency 'rspec', '~> 3.8'
23
23
  s.add_development_dependency 'rubocop', '~> 0.65'
24
+ s.add_development_dependency 'rubycritic', '~> 4.1'
25
+ s.add_development_dependency 'rubycritic-small-badge', '~> 0.2'
24
26
 
25
27
  s.files = `git ls-files`.split("\n")
26
28
  s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
data/spec/spec_helper.rb CHANGED
@@ -9,7 +9,7 @@ SimpleCov.start do
9
9
  end
10
10
  end
11
11
 
12
- SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter.new(
12
+ SimpleCov.formatters = SimpleCov::Formatter::MultiFormatter.new(
13
13
  [
14
14
  SimpleCov::Formatter::HTMLFormatter,
15
15
  SimpleCovSmallBadge::Formatter
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: simplecov-small-badge
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.2
4
+ version: 0.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Marc Grimme
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-02-20 00:00:00.000000000 Z
11
+ date: 2019-08-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: repo-small-badge
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: 0.2.2
19
+ version: 0.2.6
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: 0.2.2
26
+ version: 0.2.6
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: simplecov
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -80,6 +80,34 @@ dependencies:
80
80
  - - "~>"
81
81
  - !ruby/object:Gem::Version
82
82
  version: '0.65'
83
+ - !ruby/object:Gem::Dependency
84
+ name: rubycritic
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - "~>"
88
+ - !ruby/object:Gem::Version
89
+ version: '4.1'
90
+ type: :development
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - "~>"
95
+ - !ruby/object:Gem::Version
96
+ version: '4.1'
97
+ - !ruby/object:Gem::Dependency
98
+ name: rubycritic-small-badge
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - "~>"
102
+ - !ruby/object:Gem::Version
103
+ version: '0.2'
104
+ type: :development
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - "~>"
109
+ - !ruby/object:Gem::Version
110
+ version: '0.2'
83
111
  description: Small Badge generator for SimpleCov coverage tool for ruby
84
112
  email:
85
113
  - marc.grimme at gmail dot com