svgshield 0.1.4 → 0.1.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/svgshield.rb +4 -4
- data/lib/svgshield/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 15738b4e46c4934d8e7627e73c9d1f5e25652106
|
4
|
+
data.tar.gz: 3bbff18e40759868df35f7b04881ce33155fcf37
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7013a87e39336299c8d140f38fc6b6c39d8523d90a1b8f56fb2261f4b459b2e9cfb55d573b515ef7affaafcfd36a582f835018e12f1f26355e47fecd96428632
|
7
|
+
data.tar.gz: 0a39a14d782a32ba7117b044930c182a930fa263a723fd9092a4f26d7de8e473b032e1797d00137fdecc0c2b0c23a92c1d82940dbcd2fe72cb61f93451ae069a
|
data/lib/svgshield.rb
CHANGED
@@ -10,7 +10,7 @@ class Svgshield
|
|
10
10
|
|
11
11
|
# subject_width = 37
|
12
12
|
# status_width = 53
|
13
|
-
full_width =
|
13
|
+
full_width = 126
|
14
14
|
full_height = 20
|
15
15
|
|
16
16
|
@shield = Rasem::SVGImage.new(width: full_width, height: full_height) do
|
@@ -25,7 +25,7 @@ class Svgshield
|
|
25
25
|
|
26
26
|
group 'clip-path' => 'url(#a)' do
|
27
27
|
path fill: '#555', d: "M0 0h37v#{full_height}H0z"
|
28
|
-
path fill: color, d: "M37
|
28
|
+
path fill: color, d: "M37 0h89v#{full_height}H37z"
|
29
29
|
path fill: 'url(#b)', d: "M0 0h#{full_width}v#{full_height}H0z"
|
30
30
|
end
|
31
31
|
|
@@ -37,8 +37,8 @@ class Svgshield
|
|
37
37
|
) do
|
38
38
|
text(18.5, 15, fill: '#010101', 'fill-opacity' => '.3') { raw subject }
|
39
39
|
text(18.5, 14, fill: '#fff') { raw subject }
|
40
|
-
text(
|
41
|
-
text(
|
40
|
+
text(80.5, 15, fill: '#010101', 'fill-opacity' => '.3') { raw status }
|
41
|
+
text(80.5, 14, fill: '#fff') { raw status }
|
42
42
|
end
|
43
43
|
end
|
44
44
|
end
|
data/lib/svgshield/version.rb
CHANGED