simplecov-badge 1.0.0 → 1.0.2

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f48429e4d889d1ff70ee5f5005886a7b72bd8d26
4
- data.tar.gz: dbc14c945f52b4c70229fa27e7be7c59f0481891
3
+ metadata.gz: 160e356fd19f2b82e15304731c2ccbf92ee58602
4
+ data.tar.gz: c201e083d23622d1ecda804b09ac27848b318638
5
5
  SHA512:
6
- metadata.gz: 1de96fe3b56ae991834842362ba979a13e1a43f2cbf5ce24981a1ecbf7539f4d128155f9e36b4c60f13ebd25e84a9150635c72dc0c5ae46cc7ce45ca28d7f221
7
- data.tar.gz: 222bb81ce5c55af0a213a4e815f4c206f83c6f05c493e3134d028f37f99fad4cb7217c7a0e599eb1b6ecf4da0d03c1b72d59aff0976ba333d037a8b523118ed8
6
+ metadata.gz: 8402a99f95e4412440ce824be5a96d896b6dca3b2bb3257895543c302e74863de37d374df586d6a456b0bcd772ccaf3e1d7698ef5c1aa20775eb6270c6af866c
7
+ data.tar.gz: b5d1b1a94e4ac3bd8df36a0e4a68b9a62caa17e00101d74e321e15e255b8486ef47930ba2cbdecaf69c58fac424b862803b7189ccda756d0735c27161f8f6a4e
data/.gitignore CHANGED
@@ -22,5 +22,6 @@ coverage
22
22
  rdoc
23
23
  pkg
24
24
  .sass-cache
25
+ *.gem
25
26
 
26
27
  ## PROJECT::SPECIFIC
data/README.md CHANGED
@@ -1,7 +1,8 @@
1
1
  # Badge formatter for SimpleCov
2
2
  ====================================
3
3
  [ ![Codeship Status for matthew342/simplecov-badge](https://www.codeship.io/projects/c46ee0e0-9da1-0130-7a9e-0e0ae47480c0/status?branch=master)](https://www.codeship.io/projects/3367)
4
- [ ![Code Coverage for matthew342/simplecov-badge](http://http://matthew342.github.io/simplecov-badge/coverage/coverage-badge.png)](http://matthew342.github.io/simplecov-badge/coverage/index.html)
4
+ [ ![Code Coverage for matthew342/simplecov-badge](http://matthew342.github.io/simplecov-badge/coverage/coverage-badge.png)](http://matthew342.github.io/simplecov-badge/coverage/index.html)
5
+
5
6
  ***Note: To learn more about SimpleCov, check out the main repo at https://github.com/colszowka/simplecov***
6
7
 
7
8
  Generates coverage badges from SimpleCov using ImageMagick.
@@ -7,7 +7,7 @@ ImageMagickError = Class.new(StandardError)
7
7
 
8
8
  class SimpleCov::Formatter::BadgeFormatter
9
9
  # Set up config variables.
10
- options = {:generate_groups => true, :timestamp => false, :green => '#4fb151',
10
+ options = {:strength_indicator_title => 'TEST COVERAGE', :generate_groups => true, :timestamp => false, :green => '#4fb151',
11
11
  :yellow => '#ded443', :red => '#a23e3f', :number_font => 'Helvetica-Narrow-Bold',
12
12
  :number_font_size => 20, :name_font => 'Helvetica', :name_font_size => 17,
13
13
  :badge_height => 25, :use_strength_color => true, :strength_foreground => false,
@@ -56,7 +56,7 @@ class SimpleCov::Formatter::BadgeFormatter
56
56
  command[1] = """
57
57
  convert #{output_path}/tmp.png \\( -size 237x#{@@badge_height} xc:'#{strength_background(overall_strength, @@strength_foreground)}' \
58
58
  -pointsize #{@@name_font_size} -fill '#{strength_foreground(overall_strength, @@strength_foreground)}' -font '#{@@name_font}' \
59
- -draw \"kerning 1 text 4,19 'OVERALL STRENGTH'\" \
59
+ -draw \"kerning 1 text 4,19 '#{@@strength_indicator_title}'\" \
60
60
  -gravity West \
61
61
  -background white -splice 1x0 -background black -splice 1x0 \
62
62
  -trim +repage -gravity West -chop 1x0 -gravity East \
@@ -1,7 +1,7 @@
1
1
  module SimpleCov
2
2
  module Formatter
3
3
  class BadgeFormatter
4
- VERSION = "1.0.0"
4
+ VERSION = "1.0.2"
5
5
  end
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: simplecov-badge
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matt Hale