simplecov-badge 1.0.0 → 1.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +1 -0
- data/README.md +2 -1
- data/lib/simplecov-badge.rb +2 -2
- data/lib/simplecov-badge/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 160e356fd19f2b82e15304731c2ccbf92ee58602
|
4
|
+
data.tar.gz: c201e083d23622d1ecda804b09ac27848b318638
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8402a99f95e4412440ce824be5a96d896b6dca3b2bb3257895543c302e74863de37d374df586d6a456b0bcd772ccaf3e1d7698ef5c1aa20775eb6270c6af866c
|
7
|
+
data.tar.gz: b5d1b1a94e4ac3bd8df36a0e4a68b9a62caa17e00101d74e321e15e255b8486ef47930ba2cbdecaf69c58fac424b862803b7189ccda756d0735c27161f8f6a4e
|
data/.gitignore
CHANGED
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://
|
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.
|
data/lib/simplecov-badge.rb
CHANGED
@@ -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 '
|
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 \
|