inch-badge 0.3.4 → 0.3.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/assets/badge-flat-square.svg.erb +48 -0
- data/bin/inch-badge +2 -0
- data/lib/inch/badge/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a2f7944ed9c074f8f6b18ff3450690b23d56d041
|
4
|
+
data.tar.gz: 7e410e067d7e666474b6b7ca13af03130bf21309
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d7625edeb3f4627e95d362d876ddcd5bf86797c9ad964dfdffdde271f61c5bcbf9ca193e326bb158711d022e05bdb14da3275d7520b32877b249ee1203c5c8e4
|
7
|
+
data.tar.gz: b4f3e1467e1a1a02b1a47ef47e650f498f9d59a7eb03695aed217291f8b74b7961a7c8e7d6f6f1a72c23206d4670d3126b25e9f8e29f647977b436d351090ed2
|
@@ -0,0 +1,48 @@
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="80" height="20">
|
2
|
+
<linearGradient id="a" x2="0" y2="100%"><stop offset="0" stop-color="#bbb" stop-opacity=".1"/><stop offset="1" stop-opacity=".1"/></linearGradient>
|
3
|
+
<rect width="80" height="20" fill="#555"/>
|
4
|
+
<rect width="80" height="20" fill="url(#a)"/>
|
5
|
+
|
6
|
+
<linearGradient id="gradA" x2="0" y2="100%">
|
7
|
+
<stop offset="0" stop-color="#46b01e" />
|
8
|
+
<stop offset=".1" stop-color="#46b01e" />
|
9
|
+
<stop offset=".5" stop-color="#46b01e" />
|
10
|
+
<stop offset=".9" stop-color="#46b01e" />
|
11
|
+
<stop offset="1" stop-color="#46b01e" />
|
12
|
+
</linearGradient>
|
13
|
+
<linearGradient id="gradB" x2="0" y2="100%">
|
14
|
+
<stop offset="0" stop-color="#87ae10" />
|
15
|
+
<stop offset=".1" stop-color="#87ae10" />
|
16
|
+
<stop offset=".5" stop-color="#87ae10" />
|
17
|
+
<stop offset=".9" stop-color="#87ae10" />
|
18
|
+
<stop offset="1" stop-color="#87ae10" />
|
19
|
+
</linearGradient>
|
20
|
+
<linearGradient id="gradC" x2="0" y2="100%">
|
21
|
+
<stop offset="0" stop-color="#c05946" />
|
22
|
+
<stop offset=".1" stop-color="#c05946" />
|
23
|
+
<stop offset=".5" stop-color="#c05946" />
|
24
|
+
<stop offset=".9" stop-color="#c05946" />
|
25
|
+
<stop offset="1" stop-color="#c05946" />
|
26
|
+
</linearGradient>
|
27
|
+
<linearGradient id="gradU" x2="0" y2="100%">
|
28
|
+
<stop offset="0" stop-color="#7a67a0" />
|
29
|
+
<stop offset=".1" stop-color="#7a67a0" />
|
30
|
+
<stop offset=".5" stop-color="#7a67a0" />
|
31
|
+
<stop offset=".9" stop-color="#7a67a0" />
|
32
|
+
<stop offset="1" stop-color="#7a67a0" />
|
33
|
+
</linearGradient>
|
34
|
+
|
35
|
+
<%
|
36
|
+
bar_x = 33 + 3
|
37
|
+
bar_x2 = 72 + 3
|
38
|
+
x = 0
|
39
|
+
%>
|
40
|
+
<% @grades.each do |grade| %>
|
41
|
+
<rect x="<%= bar_x+x %>" y="4" width="<%= grade.width %>" height="12" fill="url(#grad<%= grade.name %>)"/>
|
42
|
+
<% x += grade.width %>
|
43
|
+
<% end %>
|
44
|
+
|
45
|
+
<g fill="#fff" text-anchor="middle" font-family="DejaVu Sans,Verdana,Geneva,sans-serif" font-size="11">
|
46
|
+
<text x="18.5" y="14">docs</text>
|
47
|
+
</g>
|
48
|
+
</svg>
|
data/bin/inch-badge
CHANGED
data/lib/inch/badge/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: inch-badge
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- René Föhring
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-08-
|
11
|
+
date: 2014-08-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: chunky_png
|
@@ -68,6 +68,7 @@ files:
|
|
68
68
|
- README.md
|
69
69
|
- Rakefile
|
70
70
|
- assets/badge-default.svg.erb
|
71
|
+
- assets/badge-flat-square.svg.erb
|
71
72
|
- assets/badge-flat.svg.erb
|
72
73
|
- assets/bg.png
|
73
74
|
- assets/grade-A-begin.png
|