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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: bfa75f3a247de16a785519b2036188c108b7c751
4
- data.tar.gz: 014ed3a4bd9723ff73a6bd0b29125b3e167d2d35
3
+ metadata.gz: c55b7c8c231b75843237d30e0ffc1e3344045bed
4
+ data.tar.gz: 85b68fb1312ffbf5644381edbae35e0bf9e9b36b
5
5
  SHA512:
6
- metadata.gz: 98263d5f22304c4d22e2dad69d51b58419755864cb24e5e1780bca40c6fc56248713e6c4935b477825629b8da7787e63f7b08d63f6ecdf51ffb668fae0724b95
7
- data.tar.gz: 19691e1ce2af1490a98ce82b4ba910737801a75f75fbc5f8f0230b56975a55deca02de6ee328d3f6892f4657f95acf1affc4eef6d0c29df2ce4d79bc62869baf
6
+ metadata.gz: d116859e5a8061d730a39d46a20e2f5973f5ad46e95d3c53f61edbb4ddc8fe8a61d0f22779a2c25d9b26b6144821cf55bfd16640f6ae7428c036b20a99811770
7
+ data.tar.gz: 7b496215f416715e5ee12d6920f5e19fe7bcaa781df46ba7a3576d63fc4b1a23504d3d30e2a78a24def0baaebb2d1514c4f13e202f1635340e0ff029c58b6276
@@ -1,37 +1,40 @@
1
1
  <svg xmlns="http://www.w3.org/2000/svg" width="80" height="20">
2
- <rect rx="3" width="80" height="20" fill="#656565"/>
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
- <linearGradient id="gradA" x2="0" y2="100%">
5
- <stop offset="0" stop-color="#46b01e" />
6
- <stop offset=".1" stop-color="#46b01e" />
7
- <stop offset=".5" stop-color="#46b01e" />
8
- <stop offset=".9" stop-color="#46b01e" />
9
- <stop offset="1" stop-color="#46b01e" />
10
- </linearGradient>
11
- <linearGradient id="gradB" x2="0" y2="100%">
12
- <stop offset="0" stop-color="#87ae10" />
13
- <stop offset=".1" stop-color="#87ae10" />
14
- <stop offset=".5" stop-color="#87ae10" />
15
- <stop offset=".9" stop-color="#87ae10" />
16
- <stop offset="1" stop-color="#87ae10" />
17
- </linearGradient>
18
- <linearGradient id="gradC" x2="0" y2="100%">
19
- <stop offset="0" stop-color="#c05946" />
20
- <stop offset=".1" stop-color="#c05946" />
21
- <stop offset=".5" stop-color="#c05946" />
22
- <stop offset=".9" stop-color="#c05946" />
23
- <stop offset="1" stop-color="#c05946" />
24
- </linearGradient>
25
- <linearGradient id="gradU" x2="0" y2="100%">
26
- <stop offset="0" stop-color="#7a67a0" />
27
- <stop offset=".1" stop-color="#7a67a0" />
28
- <stop offset=".5" stop-color="#7a67a0" />
29
- <stop offset=".9" stop-color="#7a67a0" />
30
- <stop offset="1" stop-color="#7a67a0" />
31
- </linearGradient>
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>
@@ -1,5 +1,5 @@
1
1
  module Inch
2
2
  module Badge
3
- VERSION = "0.3.3"
3
+ VERSION = "0.3.4"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: inch-badge
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.3
4
+ version: 0.3.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - René Föhring