inch-badge 0.2.1 → 0.2.2

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: fe66ad4fb08661567d0920e026b1200f90b4129d
4
- data.tar.gz: 7867fa1727f8ed5b12047aa79ec837fe01b8e09e
3
+ metadata.gz: b8c91a5318c49e720ce46273d4e3522504e50c5a
4
+ data.tar.gz: e55d22e13c4466fc9d809082028dbe71017732ef
5
5
  SHA512:
6
- metadata.gz: 2d3969b1e82957507c5a7119d115a3c213ef5d2dfaa63800783c0c84d0b6dd9f03471ec8271b0f1b078a751c19e18b50efc2912ecb986a90588caf43282c993f
7
- data.tar.gz: bcc22fcdbb30c8a3885fcf73e59c689cec94b9967b1854a8e2426280087e4d470379f938897dcc81ce7735c1b1de25ab7a8dbac20d1ee67f0b4cc47c162c183b
6
+ metadata.gz: 8b49f03b9f24779bd6da657c817832f31affb831bae7ad35db146bb990c2e2f3f9736d86b9a41f17519e18c4090d6690fa15220fe06470d8dd2bd4181e846dfd
7
+ data.tar.gz: 391658f8800ee897b3833b19776913af5bcb71fb0261055a813cab334cff7b3e28119c8801de5d0e68f7f0a704b97e279b4bf861bfdf7fe10b557444f89ac5c7
data/assets/badge.svg.erb CHANGED
@@ -7,16 +7,38 @@
7
7
  </linearGradient>
8
8
  <rect rx="4" width="77" height="18" fill="#555"/>
9
9
 
10
+ <linearGradient id="gradA" x2="0" y2="100%">
11
+ <stop offset="0" stop-color="#66cc40" />
12
+ <stop offset=".1" stop-color="#49c41a" />
13
+ <stop offset=".5" stop-color="#46b01e" />
14
+ <stop offset=".9" stop-color="#359710" />
15
+ <stop offset="1" stop-color="#2c840b" />
16
+ </linearGradient>
17
+ <linearGradient id="gradB" x2="0" y2="100%">
18
+ <stop offset="0" stop-color="#a5cb34" />
19
+ <stop offset=".1" stop-color="#95c30c" />
20
+ <stop offset=".5" stop-color="#87ae10" />
21
+ <stop offset=".9" stop-color="#719604" />
22
+ <stop offset="1" stop-color="#618200" />
23
+ </linearGradient>
24
+ <linearGradient id="gradC" x2="0" y2="100%">
25
+ <stop offset="0" stop-color="#db7966" />
26
+ <stop offset=".1" stop-color="#d75f49" />
27
+ <stop offset=".5" stop-color="#c05946" />
28
+ <stop offset=".9" stop-color="#a64735" />
29
+ <stop offset="1" stop-color="#903b2c" />
30
+ </linearGradient>
31
+ <linearGradient id="gradU" x2="0" y2="100%">
32
+ <stop offset="0" stop-color="#8f7eb4" />
33
+ <stop offset=".1" stop-color="#8771b3" />
34
+ <stop offset=".5" stop-color="#7a67a0" />
35
+ <stop offset=".9" stop-color="#6a598d" />
36
+ <stop offset="1" stop-color="#5f4f7d" />
37
+ </linearGradient>
38
+
10
39
  <% x = 0 %>
11
40
  <% @grades.each do |grade| %>
12
- <linearGradient id="g<%= grade.name %>" x2="0" y2="100%">
13
- <stop offset="0" stop-color="#999" stop-opacity=".3"/>
14
- <stop offset=".1" stop-color="<%= grade.color %>" stop-opacity=".9"/>
15
- <stop offset=".5" stop-color="<%= grade.color %>" stop-opacity="1"/>
16
- <stop offset=".9" stop-color="<%= grade.color %>" stop-opacity=".9"/>
17
- <stop offset="1" stop-color="#888" stop-opacity=".3"/>
18
- </linearGradient>
19
- <rect x="<%= 34+x %>" y="4" width="<%= grade.width %>" height="10" fill="url(#g<%= grade.name %>)"/>
41
+ <rect x="<%= 34+x %>" y="4" width="<%= grade.width %>" height="10" fill="url(#grad<%= grade.name %>)"/>
20
42
  <% x += grade.width %>
21
43
  <% end %>
22
44
 
@@ -1,5 +1,5 @@
1
1
  module Inch
2
2
  module Badge
3
- VERSION = "0.2.1"
3
+ VERSION = "0.2.2"
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.1
4
+ version: 0.2.2
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-03-31 00:00:00.000000000 Z
11
+ date: 2014-05-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: chunky_png
@@ -111,7 +111,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
111
111
  version: '0'
112
112
  requirements: []
113
113
  rubyforge_project:
114
- rubygems_version: 2.2.2
114
+ rubygems_version: 2.2.0
115
115
  signing_key:
116
116
  specification_version: 4
117
117
  summary: Rubygem used to generate badges for Inch