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 +4 -4
- data/assets/badge.svg.erb +30 -8
- data/lib/inch/badge/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: b8c91a5318c49e720ce46273d4e3522504e50c5a
|
|
4
|
+
data.tar.gz: e55d22e13c4466fc9d809082028dbe71017732ef
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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
|
-
<
|
|
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
|
|
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.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-
|
|
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.
|
|
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
|