repo-small-badge 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/README.md +2 -1
- data/badge_total.svg +36 -0
- data/bin/console +2 -2
- data/lib/repo_small_badge.rb +1 -0
- data/lib/repo_small_badge/image.rb +86 -70
- data/lib/repo_small_badge/version.rb +1 -1
- data/repo-small-badge.gemspec +6 -6
- data/script/travis.sh +1 -1
- data/spec/repo_small_badge_spec.rb +13 -14
- data/spec/spec_helper.rb +15 -15
- data/spec/support/mocks.rb +78 -45
- metadata +38 -23
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ae616ea6029f915414c13b26e92d3c03e65a1ff390c580a256bcbfe23915fab1
|
4
|
+
data.tar.gz: a630a080e0f38980f0375761cd2cfba7342a6fba228b71ff5c751d2b32a6a7b2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: da7464fdd082baff9e40faef0c4764c3de763b23231cb9b14d322371d9a31d0d5719c5ba4f35d7ef63d39bb0993d0f88fca8dc80a01668943183bf914efb5f9d
|
7
|
+
data.tar.gz: d38799b2d19a4a3856871eaad1902450ad4ffca5810e587820815500ad934338d2bc9a1de20f48e080a567174824d655d1dc5c04416647a65b2780923e265b54
|
data/README.md
CHANGED
@@ -1,8 +1,9 @@
|
|
1
1
|
# RepoSmallBadge
|
2
2
|
|
3
|
+
[![Gem Version](https://badge.fury.io/rb/repo-small-badge.svg)](https://badge.fury.io/rb/repo-small-badge)
|
3
4
|
[![Build Status](https://api.travis-ci.org/MarcGrimme/repo-small-badge.svg?branch=master)](https://secure.travis-ci.org/MarcGrimme/repo-small-badge)
|
4
5
|
[![Depfu](https://badges.depfu.com/badges/e794da00404482f66ce7ca05eea9640b/count.svg)](https://depfu.com/github/MarcGrimme/repo-small-badge?project_id=6915)
|
5
|
-
![Coverage](https://marcgrimme.github.io/repo-small-badge/badges/coverage_badge_total.
|
6
|
+
![Coverage](https://marcgrimme.github.io/repo-small-badge/badges/coverage_badge_total.svg)
|
6
7
|
|
7
8
|
*RepoSmalladge* is a gem that can be added to the `Gemfile` and consolidates functionality to produce a badge file.
|
8
9
|
The text place and other configurable can be specified at instance time.
|
data/badge_total.svg
ADDED
@@ -0,0 +1,36 @@
|
|
1
|
+
<?xml version="1.0" standalone="no"?>
|
2
|
+
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
|
3
|
+
|
4
|
+
<svg height="20" width="100%"
|
5
|
+
xmlns="http://www.w3.org/2000/svg"
|
6
|
+
xmlns:xlink="http://www.w3.org/1999/xlink">
|
7
|
+
|
8
|
+
|
9
|
+
<linearGradient id="smooth" x2="0" y2="100%">
|
10
|
+
<stop offset="0" stop-color="#bbb" stop-opacity=".1"/>
|
11
|
+
<stop offset="1" stop-opacity=".1"/>
|
12
|
+
</linearGradient>
|
13
|
+
<clipPath id="round">
|
14
|
+
<rect height="20" width="120" rx="3" fill="#fff"/>
|
15
|
+
</clipPath>
|
16
|
+
<g clip-path="url(#round)">
|
17
|
+
<rect height="20" width="60" fill="#555"/>
|
18
|
+
<rect x="60" height="20" width="60" fill="#4c1"/>
|
19
|
+
<rect height="20" width="120" fill="url(#smooth)"/>
|
20
|
+
</g>
|
21
|
+
<g fill="#fff" text-anchor="middle" font-family="Verdana,sans-serif" size="11">
|
22
|
+
<text x="30" y="15" fill="#010101" fill-opacity="0.3">
|
23
|
+
Total
|
24
|
+
</text>
|
25
|
+
<text x="30" y="14">
|
26
|
+
Total
|
27
|
+
</text>
|
28
|
+
<text x="90" y="15" fill="#010101" fill-opacity="0.3">
|
29
|
+
100%
|
30
|
+
</text>
|
31
|
+
<text x="90" y="14">
|
32
|
+
100%
|
33
|
+
</text>
|
34
|
+
</g>
|
35
|
+
|
36
|
+
</svg>
|
data/bin/console
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
# frozen_string_literal: true
|
3
3
|
|
4
4
|
require 'bundler/setup'
|
5
|
-
require '
|
5
|
+
require 'repo_small_badge'
|
6
6
|
|
7
7
|
# You can add fixtures and/or initialization code here to make experimenting
|
8
8
|
# with your gem easier. You can also use a different console, if you like.
|
@@ -12,7 +12,7 @@ require 'simplecov_small_badge'
|
|
12
12
|
# Pry.start
|
13
13
|
|
14
14
|
# rubocop:disable Style/GlobalVars
|
15
|
-
$badge = RepoSmallBadge::Image.new
|
15
|
+
$badge = RepoSmallBadge::Image.new
|
16
16
|
# rubocop:enable Style/GlobalVars
|
17
17
|
|
18
18
|
require 'irb'
|
data/lib/repo_small_badge.rb
CHANGED
@@ -1,113 +1,129 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
require '
|
4
|
-
|
5
|
-
ImageMagickError = Class.new(StandardError)
|
3
|
+
require 'victor'
|
6
4
|
|
7
5
|
module RepoSmallBadge
|
8
6
|
# :nodoc:
|
9
|
-
class Image
|
7
|
+
class Image < Victor::SVGBase
|
10
8
|
# Create new instance.
|
11
9
|
# @config is a Hash of configurables. Keys are symbols.
|
12
10
|
def initialize(config = {})
|
13
|
-
raise ImageMagicError, 'Imagemagick is not installed on this system.' \
|
14
|
-
unless MiniMagick.imagemagick?
|
15
|
-
|
16
11
|
@config = config
|
17
|
-
|
18
|
-
@config.fetch(:log_level, 'info')
|
19
|
-
.to_sym)
|
12
|
+
super(height: badge_height)
|
20
13
|
end
|
21
14
|
|
22
15
|
# Creates the badge.
|
23
16
|
# @name the suffix for the filename (badge_#{name})
|
24
17
|
# @title the title of the badge.
|
25
18
|
# @value is the overall value to be written to the right side of the badge.
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
convert.pango(pango(title, value, state))
|
33
|
-
rounded_border? &&
|
34
|
-
rounded_border(convert,
|
35
|
-
@config.fetch(:rounded_edge_radius, 3))
|
36
|
-
convert << filename(name)
|
37
|
-
end
|
38
|
-
true
|
19
|
+
def badge(name, title, value)
|
20
|
+
svg_header
|
21
|
+
svg_boxes
|
22
|
+
svg_texts(title, value)
|
23
|
+
|
24
|
+
save(filename(name))
|
39
25
|
end
|
40
26
|
|
41
27
|
private
|
42
28
|
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
29
|
+
def svg_header
|
30
|
+
element :linearGradient, id: 'smooth', x2: '0', y2: '100%' do
|
31
|
+
element :stop, offset: '0', 'stop-color': '#bbb', 'stop-opacity': '.1'
|
32
|
+
element :stop, offset: '1', 'stop-opacity': '.1'
|
33
|
+
end
|
34
|
+
end
|
35
|
+
|
36
|
+
def svg_boxes
|
37
|
+
middle = badge_width / 2
|
38
|
+
|
39
|
+
svg_rounded_box
|
40
|
+
|
41
|
+
element :g, 'clip-path' => 'url(#round)' do
|
42
|
+
element :rect, height: badge_height, width: middle,
|
43
|
+
fill: title_background
|
44
|
+
element :rect, x: middle, height: badge_height,
|
45
|
+
width: middle, fill: value_background
|
46
|
+
element :rect, height: badge_height,
|
47
|
+
width: badge_width, fill: 'url(#smooth)'
|
61
48
|
end
|
62
|
-
convert.alpha('off')
|
63
|
-
convert.compose('CopyOpacity')
|
64
|
-
convert.composite
|
65
49
|
end
|
66
|
-
# rubocop:enable Lint/Void, Metrics/LineLength, Metrics/MethodLength, Metrics/AbcSize
|
67
50
|
|
68
|
-
def
|
69
|
-
|
51
|
+
def svg_rounded_box
|
52
|
+
element :clipPath, id: 'round' do
|
53
|
+
element :rect, height: badge_height, width: badge_width,
|
54
|
+
rx: rounded_edge_radius, fill: background
|
55
|
+
end
|
70
56
|
end
|
71
57
|
|
72
|
-
|
73
|
-
|
58
|
+
# rubocop:disable Metrics/AbcSize
|
59
|
+
def svg_texts(title, value)
|
60
|
+
middle = badge_width / 2
|
61
|
+
|
62
|
+
element :g, fill: title_color, 'text-anchor': 'middle',
|
63
|
+
'font-family': font, size: font_size do |_svg|
|
64
|
+
element :text, title(title), x: middle / 2, y: badge_height - 5,
|
65
|
+
fill: '#010101', 'fill-opacity': '0.3'
|
66
|
+
element :text, title(title), x: middle / 2, y: badge_height - 6
|
67
|
+
element :text, value, x: middle / 2 + middle, y: badge_height - 5,
|
68
|
+
fill: '#010101', 'fill-opacity': '0.3'
|
69
|
+
element :text, value, x: middle / 2 + middle, y: badge_height - 6
|
70
|
+
end
|
74
71
|
end
|
72
|
+
# rubocop:enable Metrics/AbcSize
|
75
73
|
|
76
|
-
def
|
77
|
-
|
78
|
-
@config.fetch(:title_font_color, 'white'),
|
79
|
-
@config.fetch(:title_font_size, '16'),
|
80
|
-
@config.fetch(:title_background, '#595959'))
|
74
|
+
def value_background
|
75
|
+
@config.fetch(:value_background, '#4c1')
|
81
76
|
end
|
82
77
|
|
83
|
-
def
|
84
|
-
|
85
|
-
@config.fetch(:value_font, 'Helvetica-Narrow-Bold'),
|
86
|
-
@config.fetch(:coverage_font_color, 'white'),
|
87
|
-
@config.fetch(:coverage_font_size, '16'),
|
88
|
-
state_background(state)
|
78
|
+
def title_background
|
79
|
+
@config.fetch(:title_background, '#555')
|
89
80
|
end
|
90
81
|
|
91
|
-
def
|
92
|
-
|
93
|
-
background=\"#{background}\"\
|
94
|
-
size=\"#{font_size.to_i * 1000}\"\
|
95
|
-
font=\"#{font}\"\
|
96
|
-
>#{text}</span>"
|
82
|
+
def background
|
83
|
+
@config.fetch(:background, '#fff')
|
97
84
|
end
|
98
85
|
|
99
|
-
def
|
100
|
-
@config.fetch(:
|
86
|
+
def title_color
|
87
|
+
@config.fetch(:title_color, '#fff')
|
88
|
+
end
|
89
|
+
|
90
|
+
def font
|
91
|
+
@config.fetch(:font, 'Verdana,sans-serif')
|
92
|
+
end
|
93
|
+
|
94
|
+
def font_size
|
95
|
+
@config.fetch(:font_size, 11).to_s
|
96
|
+
end
|
97
|
+
|
98
|
+
def rounded_edge_radius
|
99
|
+
if @config.fetch(:rounded_border, true)
|
100
|
+
@config.fetch(:rounded_edge_radius, '3')
|
101
|
+
else
|
102
|
+
0
|
103
|
+
end
|
104
|
+
end
|
105
|
+
|
106
|
+
def badge_width
|
107
|
+
@config.fetch(:badge_width, 120).to_i
|
108
|
+
end
|
109
|
+
|
110
|
+
def badge_height
|
111
|
+
@config.fetch(:badge_height, 20).to_i
|
101
112
|
end
|
102
113
|
|
103
114
|
def filename(suffix = '')
|
104
115
|
prefix = @config.fetch(:filename_prefix, 'badge')
|
105
|
-
format = @config.fetch(:format, '
|
116
|
+
format = @config.fetch(:format, 'svg')
|
106
117
|
"#{output_path}/#{prefix}_#{suffix}.#{format}"
|
107
118
|
end
|
108
119
|
|
109
120
|
def title(suffix)
|
110
|
-
|
121
|
+
prefix = @config.fetch(:title_prefix, '')
|
122
|
+
if prefix.to_s.empty?
|
123
|
+
suffix
|
124
|
+
else
|
125
|
+
"#{@config.fetch(:title_prefix, '')} #{suffix}"
|
126
|
+
end
|
111
127
|
end
|
112
128
|
|
113
129
|
def output_path
|
data/repo-small-badge.gemspec
CHANGED
@@ -16,12 +16,12 @@ Gem::Specification.new do |s|
|
|
16
16
|
|
17
17
|
s.rubyforge_project = 'repo-small-badge'
|
18
18
|
|
19
|
-
s.add_dependency '
|
20
|
-
s.add_development_dependency 'rake'
|
21
|
-
s.add_development_dependency 'rspec'
|
22
|
-
s.add_development_dependency 'rubocop'
|
23
|
-
s.add_development_dependency 'simplecov'
|
24
|
-
|
19
|
+
s.add_dependency 'victor', '~> 0.2'# create the svg
|
20
|
+
s.add_development_dependency 'rake', '~> 12'
|
21
|
+
s.add_development_dependency 'rspec', '~> 3.8'
|
22
|
+
s.add_development_dependency 'rubocop', '~> 0.63'
|
23
|
+
s.add_development_dependency 'simplecov', '~> 0.16'
|
24
|
+
s.add_development_dependency 'simplecov-small-badge', '~> 0.1'
|
25
25
|
|
26
26
|
s.files = `git ls-files`.split("\n")
|
27
27
|
s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
|
data/script/travis.sh
CHANGED
@@ -8,4 +8,4 @@ gem install bundler-audit && bundle-audit update && bundle-audit check
|
|
8
8
|
gem install rubycritic && rubycritic app lib config ${RUBYCRITICPARAMS} --format console --minimum-score ${RUBYCRITICLIMIT}
|
9
9
|
echo "Pushing badges upstream"
|
10
10
|
[ -d badges ] || mkdir badges
|
11
|
-
cp coverage
|
11
|
+
cp coverage/coverage_badge* badges/ 2>/dev/null || true
|
@@ -3,28 +3,27 @@
|
|
3
3
|
require 'spec_helper'
|
4
4
|
|
5
5
|
describe RepoSmallBadge::Image do
|
6
|
-
include TestRepoSmallBadge
|
6
|
+
include TestRepoSmallBadge
|
7
7
|
|
8
8
|
context '#coverage_total' do
|
9
9
|
describe '#coverage' do
|
10
10
|
it do
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
stack: mock_mini_magick_stack)
|
15
|
-
expect(subject.badge('total', 'Total', 100, 'good'))
|
11
|
+
allow(File).to receive(:write)
|
12
|
+
.with('./badge_total.svg', default_svg_string).and_return(true)
|
13
|
+
expect(subject.badge('total', 'Total', '100%'))
|
16
14
|
.to be_truthy
|
17
15
|
end
|
18
16
|
|
19
|
-
context 'without rounded' do
|
20
|
-
subject
|
17
|
+
context 'without rounded and width 200 and title' do
|
18
|
+
subject do
|
19
|
+
described_class
|
20
|
+
.new(badge_width: 200, rounded_border: false, title_prefix: 'badge')
|
21
|
+
end
|
22
|
+
|
21
23
|
it do
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
output_path: '.',
|
26
|
-
stack: mock_mini_magick_stack)
|
27
|
-
expect(subject.badge('total', 'Total', 100, 'good')).to be_truthy
|
24
|
+
allow(File).to receive(:write)
|
25
|
+
.with('./badge_total.svg', not_rounded_svg_string).and_return(true)
|
26
|
+
expect(subject.badge('total', 'Total', '100%')).to be_truthy
|
28
27
|
end
|
29
28
|
end
|
30
29
|
end
|
data/spec/spec_helper.rb
CHANGED
@@ -4,32 +4,32 @@ require 'simplecov'
|
|
4
4
|
require 'byebug'
|
5
5
|
|
6
6
|
SimpleCov.start do
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
7
|
+
module SimpleCovSmallBadge
|
8
|
+
class Formatter
|
9
|
+
end
|
10
|
+
end
|
11
|
+
|
12
|
+
SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter.new(
|
13
|
+
[
|
14
|
+
SimpleCov::Formatter::HTMLFormatter,
|
15
|
+
SimpleCovSmallBadge::Formatter
|
16
|
+
]
|
17
|
+
)
|
18
18
|
end
|
19
19
|
|
20
20
|
SimpleCov.minimum_coverage 100
|
21
21
|
|
22
22
|
# require 'simplecov-small-badge'
|
23
23
|
require 'repo_small_badge'
|
24
|
+
require 'simplecov_small_badge'
|
24
25
|
require 'rubygems'
|
25
26
|
require 'bundler/setup'
|
26
27
|
|
27
28
|
Dir[File.join('./spec/support/*.rb')].each { |f| require f }
|
28
29
|
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
30
|
+
SimpleCovSmallBadge.configure do |config|
|
31
|
+
config.format = 'svg'
|
32
|
+
end
|
33
33
|
RSpec.configure do |config|
|
34
34
|
# some (optional) config here
|
35
35
|
end
|
data/spec/support/mocks.rb
CHANGED
@@ -1,50 +1,83 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
3
|
module TestRepoSmallBadge
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
4
|
+
# rubocop:disable Metrics/MethodLength, Metrics/LineLength, Layout/TrailingWhitespace
|
5
|
+
def default_svg_string
|
6
|
+
%(<?xml version="1.0" standalone="no"?>
|
7
|
+
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
|
8
|
+
|
9
|
+
<svg height="20" width="100%"
|
10
|
+
xmlns="http://www.w3.org/2000/svg"
|
11
|
+
xmlns:xlink="http://www.w3.org/1999/xlink">
|
12
|
+
|
13
|
+
|
14
|
+
<linearGradient id="smooth" x2="0" y2="100%">
|
15
|
+
<stop offset="0" stop-color="#bbb" stop-opacity=".1"/>
|
16
|
+
<stop offset="1" stop-opacity=".1"/>
|
17
|
+
</linearGradient>
|
18
|
+
<clipPath id="round">
|
19
|
+
<rect height="20" width="120" rx="3" fill="#fff"/>
|
20
|
+
</clipPath>
|
21
|
+
<g clip-path="url(#round)">
|
22
|
+
<rect height="20" width="60" fill="#555"/>
|
23
|
+
<rect x="60" height="20" width="60" fill="#4c1"/>
|
24
|
+
<rect height="20" width="120" fill="url(#smooth)"/>
|
25
|
+
</g>
|
26
|
+
<g fill="#fff" text-anchor="middle" font-family="Verdana,sans-serif" size="11">
|
27
|
+
<text x="30" y="15" fill="#010101" fill-opacity="0.3">
|
28
|
+
Total
|
29
|
+
</text>
|
30
|
+
<text x="30" y="14">
|
31
|
+
Total
|
32
|
+
</text>
|
33
|
+
<text x="90" y="15" fill="#010101" fill-opacity="0.3">
|
34
|
+
100%
|
35
|
+
</text>
|
36
|
+
<text x="90" y="14">
|
37
|
+
100%
|
38
|
+
</text>
|
39
|
+
</g>
|
40
|
+
|
41
|
+
</svg>)
|
42
|
+
end
|
43
|
+
|
44
|
+
def not_rounded_svg_string
|
45
|
+
%(<?xml version="1.0" standalone="no"?>
|
46
|
+
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
|
47
|
+
|
48
|
+
<svg height="20" width="100%"
|
49
|
+
xmlns="http://www.w3.org/2000/svg"
|
50
|
+
xmlns:xlink="http://www.w3.org/1999/xlink">
|
51
|
+
|
52
|
+
|
53
|
+
<linearGradient id="smooth" x2="0" y2="100%">
|
54
|
+
<stop offset="0" stop-color="#bbb" stop-opacity=".1"/>
|
55
|
+
<stop offset="1" stop-opacity=".1"/>
|
56
|
+
</linearGradient>
|
57
|
+
<clipPath id="round">
|
58
|
+
<rect height="20" width="200" rx="0" fill="#fff"/>
|
59
|
+
</clipPath>
|
60
|
+
<g clip-path="url(#round)">
|
61
|
+
<rect height="20" width="100" fill="#555"/>
|
62
|
+
<rect x="100" height="20" width="100" fill="#4c1"/>
|
63
|
+
<rect height="20" width="200" fill="url(#smooth)"/>
|
64
|
+
</g>
|
65
|
+
<g fill="#fff" text-anchor="middle" font-family="Verdana,sans-serif" size="11">
|
66
|
+
<text x="50" y="15" fill="#010101" fill-opacity="0.3">
|
67
|
+
badge Total
|
68
|
+
</text>
|
69
|
+
<text x="50" y="14">
|
70
|
+
badge Total
|
71
|
+
</text>
|
72
|
+
<text x="150" y="15" fill="#010101" fill-opacity="0.3">
|
73
|
+
100%
|
74
|
+
</text>
|
75
|
+
<text x="150" y="14">
|
76
|
+
100%
|
77
|
+
</text>
|
78
|
+
</g>
|
79
|
+
|
80
|
+
</svg>)
|
49
81
|
end
|
82
|
+
# rubocop:enable Metrics/MethodLength, Metrics/LineLength, Layout/TrailingWhitespace
|
50
83
|
end
|
metadata
CHANGED
@@ -1,85 +1,99 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: repo-small-badge
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: '0.
|
4
|
+
version: '0.2'
|
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-
|
11
|
+
date: 2019-02-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
|
-
name:
|
14
|
+
name: victor
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - "
|
17
|
+
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '0'
|
19
|
+
version: '0.2'
|
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'
|
26
|
+
version: '0.2'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: rake
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- - "
|
31
|
+
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: '
|
33
|
+
version: '12'
|
34
34
|
type: :development
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
|
-
- - "
|
38
|
+
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: '
|
40
|
+
version: '12'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: rspec
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
|
-
- - "
|
45
|
+
- - "~>"
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: '
|
47
|
+
version: '3.8'
|
48
48
|
type: :development
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
|
-
- - "
|
52
|
+
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version: '
|
54
|
+
version: '3.8'
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: rubocop
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
|
-
- - "
|
59
|
+
- - "~>"
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version: '0'
|
61
|
+
version: '0.63'
|
62
62
|
type: :development
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
|
-
- - "
|
66
|
+
- - "~>"
|
67
67
|
- !ruby/object:Gem::Version
|
68
|
-
version: '0'
|
68
|
+
version: '0.63'
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: simplecov
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
72
72
|
requirements:
|
73
|
-
- - "
|
73
|
+
- - "~>"
|
74
74
|
- !ruby/object:Gem::Version
|
75
|
-
version: '0'
|
75
|
+
version: '0.16'
|
76
76
|
type: :development
|
77
77
|
prerelease: false
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
79
79
|
requirements:
|
80
|
-
- - "
|
80
|
+
- - "~>"
|
81
81
|
- !ruby/object:Gem::Version
|
82
|
-
version: '0'
|
82
|
+
version: '0.16'
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: simplecov-small-badge
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - "~>"
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '0.1'
|
90
|
+
type: :development
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - "~>"
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: '0.1'
|
83
97
|
description: Small Badge generator to be used for different tools 4 ruby
|
84
98
|
email:
|
85
99
|
- marc.grimme at gmail dot com
|
@@ -99,6 +113,7 @@ files:
|
|
99
113
|
- MIT-LICENSE
|
100
114
|
- README.md
|
101
115
|
- Rakefile
|
116
|
+
- badge_total.svg
|
102
117
|
- bin/console
|
103
118
|
- lib/repo_small_badge.rb
|
104
119
|
- lib/repo_small_badge/image.rb
|