badge 0.8.0 → 0.8.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +32 -16
- data/lib/badge/base.rb +1 -1
- data/lib/badge/runner.rb +2 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2ff7c31b748b45d2322ebcfd64b6a15e2e829e99
|
4
|
+
data.tar.gz: 0b401f80d238020f68dda4e5a1ec3ea9279fde55
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0e1edcc866bd1b84b8b648bcf2459f814d83f42bee5e37b14a72cc2280b9fcae248c9baecb2fd783b5032afe5423c33332d0b743d1bcf1a30fca7f2c4fa9b60c
|
7
|
+
data.tar.gz: 46ab9235984e6d244c0f6383bf8b3fa7c0a7f89500f8c8b019cd89850258838d11fb0ee60db4295df5cb61438edd10bf8f3f1a75d47b7fa3a296bf3699f5de81
|
data/README.md
CHANGED
@@ -14,34 +14,50 @@ Yes that's it.
|
|
14
14
|
It's built to easily integrate with [fastlane](https://github.com/fastlane/fastlane).
|
15
15
|
|
16
16
|
![assets/icon175x175.png](assets/icon175x175.png?raw=1) ![assets/icon175x175_fitrack.png](assets/icon175x175_fitrack.png?raw=1)
|
17
|
-
|
18
|
-
|
17
|
+
---
|
18
|
+
```
|
19
|
+
badge
|
20
|
+
```
|
19
21
|
|
20
22
|
![assets/icon175x175_light_badged.png](assets/icon175x175_light_badged.png?raw=1) ![assets/icon175x175_fitrack_light_badged.png](assets/icon175x175_fitrack_light_badged.png?raw=1)
|
21
|
-
|
22
|
-
|
23
|
+
---
|
24
|
+
```
|
25
|
+
badge --dark
|
26
|
+
```
|
23
27
|
|
24
28
|
![assets/icon175x175_dark_badged.png](assets/icon175x175_dark_badged.png?raw=1) ![assets/icon175x175_fitrack_dark_badged.png](assets/icon175x175_fitrack_dark_badged.png?raw=1)
|
25
|
-
|
26
|
-
|
29
|
+
---
|
30
|
+
```
|
31
|
+
badge --alpha
|
32
|
+
```
|
27
33
|
|
28
34
|
![assets/icon175x175_alpha_light_badged.png](assets/icon175x175_alpha_light_badged.png?raw=1) ![assets/icon175x175_fitrack_alpha_light_badged.png](assets/icon175x175_fitrack_alpha_light_badged.png?raw=1)
|
29
|
-
|
30
|
-
|
35
|
+
---
|
36
|
+
```
|
37
|
+
badge --shield "1.2-2031-orange" --no_badge
|
38
|
+
```
|
31
39
|
|
32
40
|
![assets/icon175x175_shield_1.2-2031-orange.png](assets/icon175x175_shield_1.2-2031-orange.png?raw=1) ![assets/icon175x175_fitrack_shield_1.2-2031-orange.png](assets/icon175x175_fitrack_shield_1.2-2031-orange.png?raw=1)
|
33
|
-
|
34
|
-
|
41
|
+
---
|
42
|
+
```
|
43
|
+
badge --shield "1.2-2031-orange" --no_badge --shield_no_resize
|
44
|
+
```
|
35
45
|
|
36
46
|
![assets/icon175x175_shield_1.2-2031-orange-no-resize.png](assets/icon175x175_shield_1.2-2031-orange-no-resize.png?raw=1) ![assets/icon175x175_fitrack_shield_1.2-2031-orange-no-resize.png](assets/icon175x175_fitrack_shield_1.2-2031-orange-no-resize.png?raw=1)
|
37
|
-
|
38
|
-
|
47
|
+
---
|
48
|
+
```
|
49
|
+
badge --shield "Version-0.0.3-blue" --dark
|
50
|
+
```
|
39
51
|
|
40
52
|
![assets/icon175x175_shield_Version-0.0.3-blue.png](assets/icon175x175_shield_Version-0.0.3-blue.png?raw=1) ![assets/icon175x175_fitrack_shield_Version-0.0.3-blue.png](assets/icon175x175_fitrack_shield_Version-0.0.3-blue.png?raw=1)
|
53
|
+
---
|
54
|
+
```
|
55
|
+
badge --shield "Version-0.0.3-blue" --dark --shield_geometry "+0+25%" --shield_scale 0.75
|
56
|
+
```
|
41
57
|
|
42
|
-
|
43
|
-
|
44
|
-
|
58
|
+
![assets/icon175x175_shield_Version-0.0.3-blue-geo-scale.png](assets/icon175x175_shield_Version-0.0.3-blue-geo-scale.png?raw=1) ![assets/icon175x175_fitrack_shield_Version-0.0.3-blue-geo-scale.png](assets/icon175x175_fitrack_shield_Version-0.0.3-blue-geo-scale.png?raw=1)
|
59
|
+
---
|
60
|
+
|
45
61
|
# Installation
|
46
62
|
|
47
63
|
Install the gem
|
@@ -76,7 +92,7 @@ Add a shield at the top of your icon for all possibilites head over to: [shields
|
|
76
92
|
|
77
93
|
badge --shield "Version-0.0.3-blue"
|
78
94
|
|
79
|
-
Sometimes the response from shield.io takes a long time and can timeout. You can adjust the timeout to shield.io with `--shield_io_timeout
|
95
|
+
Sometimes the response from shield.io takes a long time and can timeout. You can adjust the timeout to shield.io with `--shield_io_timeout 10` accordingly.
|
80
96
|
|
81
97
|
`--shield_gravity North` changes the postion of the shield on the icon. Choices include: NorthWest, North, NorthEast, West, Center, East, SouthWest, South, SouthEast.
|
82
98
|
|
data/lib/badge/base.rb
CHANGED
data/lib/badge/runner.rb
CHANGED
@@ -63,6 +63,8 @@ module Badge
|
|
63
63
|
end
|
64
64
|
if shield
|
65
65
|
result = add_shield(icon, result, shield, alpha_channel, options[:shield_gravity], options[:shield_no_resize], options[:shield_scale], options[:shield_geometry])
|
66
|
+
File.delete(shield) if File.exist?(shield)
|
67
|
+
File.delete("#{shield.path}.png") if File.exist?("#{shield.path}.png")
|
66
68
|
icon_changed = true
|
67
69
|
end
|
68
70
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: badge
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.8.
|
4
|
+
version: 0.8.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Daniel Griesser
|
@@ -66,7 +66,7 @@ dependencies:
|
|
66
66
|
- - ">="
|
67
67
|
- !ruby/object:Gem::Version
|
68
68
|
version: '4.5'
|
69
|
-
description: 0.8.
|
69
|
+
description: 0.8.1
|
70
70
|
email:
|
71
71
|
- daniel.griesser.86@gmail.com
|
72
72
|
executables:
|