inch-badge 0.4.0 → 0.4.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/assets/badge-shields.svg.erb +38 -44
- data/lib/inch/badge/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a970ff6bc021013e3d91c298699de89298fe07d1
|
4
|
+
data.tar.gz: 45f6ae54617e7b2b69607b3a6fd5a1f9cc3862e3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 22489e32429a195c4cc3fd4bdc20be18ec29408be583145d062e31b6fda4f51b4f56305323654297099b7502a535dd8268c19d8b4caca22f7d7b0d548ef8e412
|
7
|
+
data.tar.gz: f91ff803adc6041905222b19d6aca7f0ce2a7a2b4fdba8cb8a52e5f72baa0cbb9f53cd923b31c13c3bfae685adea4b7823601c753e9488000ba279eea36fd360
|
@@ -1,40 +1,36 @@
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" width="80" height="
|
2
|
-
<linearGradient id="
|
3
|
-
|
4
|
-
|
5
|
-
<stop offset=".9" stop-opacity=".3"/>
|
6
|
-
<stop offset="1" stop-opacity=".5"/>
|
7
|
-
</linearGradient>
|
8
|
-
<rect rx="4" width="80" height="18" fill="#555"/>
|
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 rx="3" width="80" height="20" fill="#555"/>
|
4
|
+
<rect rx="3" width="80" height="20" fill="url(#a)"/>
|
9
5
|
|
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
|
-
|
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>
|
38
34
|
<linearGradient id="gradN" x2="0" y2="100%">
|
39
35
|
<stop offset="0" stop-color="#9B9B9B" />
|
40
36
|
<stop offset=".1" stop-color="#9B9B9B" />
|
@@ -44,23 +40,21 @@
|
|
44
40
|
</linearGradient>
|
45
41
|
|
46
42
|
<%
|
47
|
-
bar_x =
|
48
|
-
bar_x2 =
|
43
|
+
bar_x = 33 + 3
|
44
|
+
bar_x2 = 72 + 3
|
49
45
|
x = 0
|
50
46
|
%>
|
51
47
|
<% @grades.each do |grade| %>
|
52
|
-
<rect x="<%= bar_x+x %>" y="4" width="<%= grade.width %>" height="
|
48
|
+
<rect x="<%= bar_x+x %>" y="4" width="<%= grade.width %>" height="12" fill="url(#grad<%= grade.name %>)"/>
|
53
49
|
<% x += grade.width %>
|
54
50
|
<% end %>
|
55
51
|
|
56
52
|
<rect x="<%= bar_x %>" y="4" width="1" height="1" fill="#666"/>
|
57
|
-
<rect x="<%= bar_x %>" y="
|
53
|
+
<rect x="<%= bar_x %>" y="15" width="1" height="1" fill="#666"/>
|
58
54
|
<rect x="<%= bar_x2 %>" y="4" width="1" height="1" fill="#666"/>
|
59
|
-
<rect x="<%= bar_x2 %>" y="
|
55
|
+
<rect x="<%= bar_x2 %>" y="15" width="1" height="1" fill="#666"/>
|
60
56
|
|
61
|
-
<rect rx="4" width="80" height="18" fill="url(#bg)"/>
|
62
57
|
<g fill="#fff" text-anchor="middle" font-family="DejaVu Sans,Verdana,Geneva,sans-serif" font-size="11">
|
63
|
-
<text x="18.5" y="14"
|
64
|
-
<text x="18.5" y="13">docs</text>
|
58
|
+
<text x="18.5" y="14">docs</text>
|
65
59
|
</g>
|
66
60
|
</svg>
|
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.4.
|
4
|
+
version: 0.4.1
|
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: 2015-
|
11
|
+
date: 2015-02-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: chunky_png
|