inch-badge 0.3.0 → 0.3.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-flat.svg.erb +5 -6
- 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: e8d6a0c19f5a0e09fcbdf1f3689efcee5aaa0adf
|
4
|
+
data.tar.gz: 563a65808334ccd447a7bd2d5e269124be742895
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d1f8fc4ee15dabc3de63090383ca1d948ff1a63b5e1fcf09a673b0326563b56c4202d4ccc17bdf71ea4c0163b710006b25c991e867c696faa5498127b7826953
|
7
|
+
data.tar.gz: 8a49bfdc4eb3ae0bdbb421b041b2c4d2df9678b6ded40abb4e5a484ae790f67a25f213c6904e24804e58940825d4556e2b69778a8edfbe33f8eb2b3bcf4aebe9
|
data/assets/badge-flat.svg.erb
CHANGED
@@ -1,5 +1,5 @@
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" width="80" height="
|
2
|
-
<rect width="80" height="
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="80" height="20">
|
2
|
+
<rect width="80" height="20" fill="#656565"/>
|
3
3
|
|
4
4
|
<linearGradient id="gradA" x2="0" y2="100%">
|
5
5
|
<stop offset="0" stop-color="#46b01e" />
|
@@ -31,17 +31,16 @@
|
|
31
31
|
</linearGradient>
|
32
32
|
|
33
33
|
<%
|
34
|
-
bar_x =
|
34
|
+
bar_x = 34 + 3
|
35
35
|
bar_x2 = 73 + 3
|
36
36
|
x = 0
|
37
37
|
%>
|
38
38
|
<% @grades.each do |grade| %>
|
39
|
-
<rect x="<%= bar_x+x %>" y="
|
39
|
+
<rect x="<%= bar_x+x %>" y="4" width="<%= grade.width %>" height="12" fill="url(#grad<%= grade.name %>)"/>
|
40
40
|
<% x += grade.width %>
|
41
41
|
<% end %>
|
42
42
|
|
43
43
|
<g fill="#fff" text-anchor="middle" font-family="DejaVu Sans,Verdana,Geneva,sans-serif" font-size="11">
|
44
|
-
<text x="18.5" y="14"
|
45
|
-
<text x="18.5" y="13">docs</text>
|
44
|
+
<text x="18.5" y="14">docs</text>
|
46
45
|
</g>
|
47
46
|
</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.3.
|
4
|
+
version: 0.3.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: 2014-07-
|
11
|
+
date: 2014-07-31 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: chunky_png
|