inch-badge 0.2.2 → 0.2.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +1 -0
- data/assets/badge.svg.erb +13 -9
- 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: 66a5979e98250fb3426128cfd099ef1b0feff1d7
|
4
|
+
data.tar.gz: 1d61842f591f1213c199a724220b83604d7b4b02
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 192bd6aff3d4af1c146756f8f1bc5cd2d0283ebb0b10fe9c59742299e7b23b547b89d6b08e75b79714a437e5318431a6f9fe98b3d2a7ba59b19038c62b2573ea
|
7
|
+
data.tar.gz: 31c10a7d87e769a97ea21939c1e20c453b092c600d8aa472f234eccda853fd0c2eec6726dcdb52d5b5ae2a0dd37e4c87145d347e7dde0d0b9748909a62131503
|
data/.gitignore
CHANGED
data/assets/badge.svg.erb
CHANGED
@@ -1,11 +1,11 @@
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" width="
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="80" height="18">
|
2
2
|
<linearGradient id="bg" x2="0" y2="100%">
|
3
3
|
<stop offset="0" stop-color="#fff" stop-opacity=".7"/>
|
4
4
|
<stop offset=".1" stop-color="#aaa" stop-opacity=".1"/>
|
5
5
|
<stop offset=".9" stop-opacity=".3"/>
|
6
6
|
<stop offset="1" stop-opacity=".5"/>
|
7
7
|
</linearGradient>
|
8
|
-
<rect rx="4" width="
|
8
|
+
<rect rx="4" width="80" height="18" fill="#555"/>
|
9
9
|
|
10
10
|
<linearGradient id="gradA" x2="0" y2="100%">
|
11
11
|
<stop offset="0" stop-color="#66cc40" />
|
@@ -36,18 +36,22 @@
|
|
36
36
|
<stop offset="1" stop-color="#5f4f7d" />
|
37
37
|
</linearGradient>
|
38
38
|
|
39
|
-
<%
|
39
|
+
<%
|
40
|
+
bar_x = 34 + 3
|
41
|
+
bar_x2 = 73 + 3
|
42
|
+
x = 0
|
43
|
+
%>
|
40
44
|
<% @grades.each do |grade| %>
|
41
|
-
<rect x="<%=
|
45
|
+
<rect x="<%= bar_x+x %>" y="4" width="<%= grade.width %>" height="10" fill="url(#grad<%= grade.name %>)"/>
|
42
46
|
<% x += grade.width %>
|
43
47
|
<% end %>
|
44
48
|
|
45
|
-
<rect x="
|
46
|
-
<rect x="
|
47
|
-
<rect x="
|
48
|
-
<rect x="
|
49
|
+
<rect x="<%= bar_x %>" y="4" width="1" height="1" fill="#666"/>
|
50
|
+
<rect x="<%= bar_x %>" y="13" width="1" height="1" fill="#666"/>
|
51
|
+
<rect x="<%= bar_x2 %>" y="4" width="1" height="1" fill="#666"/>
|
52
|
+
<rect x="<%= bar_x2 %>" y="13" width="1" height="1" fill="#666"/>
|
49
53
|
|
50
|
-
<rect rx="4" width="
|
54
|
+
<rect rx="4" width="80" height="18" fill="url(#bg)"/>
|
51
55
|
<g fill="#fff" text-anchor="middle" font-family="DejaVu Sans,Verdana,Geneva,sans-serif" font-size="11">
|
52
56
|
<text x="18.5" y="13" fill="#010101" fill-opacity=".3">docs</text>
|
53
57
|
<text x="18.5" y="12">docs</text>
|
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.2.
|
4
|
+
version: 0.2.3
|
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-
|
11
|
+
date: 2014-07-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: chunky_png
|