inch-badge 0.3.3 → 0.3.4
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.svg.erb +37 -29
- data/lib/inch/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: c55b7c8c231b75843237d30e0ffc1e3344045bed
|
4
|
+
data.tar.gz: 85b68fb1312ffbf5644381edbae35e0bf9e9b36b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d116859e5a8061d730a39d46a20e2f5973f5ad46e95d3c53f61edbb4ddc8fe8a61d0f22779a2c25d9b26b6144821cf55bfd16640f6ae7428c036b20a99811770
|
7
|
+
data.tar.gz: 7b496215f416715e5ee12d6920f5e19fe7bcaa781df46ba7a3576d63fc4b1a23504d3d30e2a78a24def0baaebb2d1514c4f13e202f1635340e0ff029c58b6276
|
data/assets/badge-flat.svg.erb
CHANGED
@@ -1,37 +1,40 @@
|
|
1
1
|
<svg xmlns="http://www.w3.org/2000/svg" width="80" height="20">
|
2
|
-
<
|
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)"/>
|
3
5
|
|
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
|
-
|
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>
|
32
34
|
|
33
35
|
<%
|
34
36
|
bar_x = 33 + 3
|
37
|
+
bar_x2 = 72 + 3
|
35
38
|
x = 0
|
36
39
|
%>
|
37
40
|
<% @grades.each do |grade| %>
|
@@ -39,6 +42,11 @@
|
|
39
42
|
<% x += grade.width %>
|
40
43
|
<% end %>
|
41
44
|
|
45
|
+
<rect x="<%= bar_x %>" y="4" width="1" height="1" fill="#666"/>
|
46
|
+
<rect x="<%= bar_x %>" y="15" width="1" height="1" fill="#666"/>
|
47
|
+
<rect x="<%= bar_x2 %>" y="4" width="1" height="1" fill="#666"/>
|
48
|
+
<rect x="<%= bar_x2 %>" y="15" width="1" height="1" fill="#666"/>
|
49
|
+
|
42
50
|
<g fill="#fff" text-anchor="middle" font-family="DejaVu Sans,Verdana,Geneva,sans-serif" font-size="11">
|
43
51
|
<text x="18.5" y="14">docs</text>
|
44
52
|
</g>
|
data/lib/inch/badge/version.rb
CHANGED