inch-badge 0.2.2 → 0.2.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b8c91a5318c49e720ce46273d4e3522504e50c5a
4
- data.tar.gz: e55d22e13c4466fc9d809082028dbe71017732ef
3
+ metadata.gz: 66a5979e98250fb3426128cfd099ef1b0feff1d7
4
+ data.tar.gz: 1d61842f591f1213c199a724220b83604d7b4b02
5
5
  SHA512:
6
- metadata.gz: 8b49f03b9f24779bd6da657c817832f31affb831bae7ad35db146bb990c2e2f3f9736d86b9a41f17519e18c4090d6690fa15220fe06470d8dd2bd4181e846dfd
7
- data.tar.gz: 391658f8800ee897b3833b19776913af5bcb71fb0261055a813cab334cff7b3e28119c8801de5d0e68f7f0a704b97e279b4bf861bfdf7fe10b557444f89ac5c7
6
+ metadata.gz: 192bd6aff3d4af1c146756f8f1bc5cd2d0283ebb0b10fe9c59742299e7b23b547b89d6b08e75b79714a437e5318431a6f9fe98b3d2a7ba59b19038c62b2573ea
7
+ data.tar.gz: 31c10a7d87e769a97ea21939c1e20c453b092c600d8aa472f234eccda853fd0c2eec6726dcdb52d5b5ae2a0dd37e4c87145d347e7dde0d0b9748909a62131503
data/.gitignore CHANGED
@@ -16,3 +16,4 @@ test/tmp
16
16
  test/version_tmp
17
17
  tmp
18
18
  *.png
19
+ *.svg
data/assets/badge.svg.erb CHANGED
@@ -1,11 +1,11 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" width="77" height="18">
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="77" height="18" fill="#555"/>
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
- <% x = 0 %>
39
+ <%
40
+ bar_x = 34 + 3
41
+ bar_x2 = 73 + 3
42
+ x = 0
43
+ %>
40
44
  <% @grades.each do |grade| %>
41
- <rect x="<%= 34+x %>" y="4" width="<%= grade.width %>" height="10" fill="url(#grad<%= grade.name %>)"/>
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="34" y="4" width="1" height="1" fill="#666"/>
46
- <rect x="34" y="13" width="1" height="1" fill="#666"/>
47
- <rect x="73" y="4" width="1" height="1" fill="#666"/>
48
- <rect x="73" y="13" width="1" height="1" fill="#666"/>
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="77" height="18" fill="url(#bg)"/>
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>
@@ -1,5 +1,5 @@
1
1
  module Inch
2
2
  module Badge
3
- VERSION = "0.2.2"
3
+ VERSION = "0.2.3"
4
4
  end
5
5
  end
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.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-05-21 00:00:00.000000000 Z
11
+ date: 2014-07-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: chunky_png