badge 0.8.1 → 0.8.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/badge/base.rb +1 -1
- data/lib/badge/commands_generator.rb +1 -1
- data/lib/badge/runner.rb +6 -5
- 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: 9180c2c6b66a671f1618549df461c1991a6a6549
|
4
|
+
data.tar.gz: 95d0de6b8f8fefe33dfeacac979879eb4d47e8d0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4a9e6cb227d868a79490d747f60f865e5f170def2e27f3c4b5f22fab6ff9a3cac75e4233e6ec29dde80287a6c53470a704578f9880529483046c25517ff33d97
|
7
|
+
data.tar.gz: 2bc8ad85b151db70c703b1ea43d0e91b1b40439099bf18d3526e20046e28a4c382f620543bb3722df4dc1a302bf45617a979479a6db23ae28dadce18e18a05f7
|
data/lib/badge/base.rb
CHANGED
@@ -19,7 +19,7 @@ module Badge
|
|
19
19
|
program :help, 'GitHub', 'https://github.com/HazAT/badge'
|
20
20
|
program :help_formatter, :compact
|
21
21
|
|
22
|
-
global_option('--verbose', 'Shows a more verbose output') {
|
22
|
+
global_option('--verbose', 'Shows a more verbose output') { FastlaneCore::Globals.verbose = true }
|
23
23
|
|
24
24
|
always_trace!
|
25
25
|
|
data/lib/badge/runner.rb
CHANGED
@@ -13,8 +13,8 @@ module Badge
|
|
13
13
|
glob = options[:glob] if options[:glob]
|
14
14
|
|
15
15
|
app_icons = Dir.glob("#{path}#{glob}")
|
16
|
-
UI.verbose "Verbose active...".blue
|
17
|
-
UI.verbose "Parameters: #{options.inspect}".blue
|
16
|
+
UI.verbose "Verbose active... VERSION: #{Badge::VERSION}".blue
|
17
|
+
UI.verbose "Parameters: #{options.values.inspect}".blue
|
18
18
|
|
19
19
|
alpha_channel = false
|
20
20
|
if options[:alpha_channel]
|
@@ -37,7 +37,7 @@ module Badge
|
|
37
37
|
rescue Curl::Err::CurlError => error
|
38
38
|
response = error.io
|
39
39
|
UI.error "Error loading image from shield.io response Error. Skipping Shield. Use --verbose for more info".red
|
40
|
-
UI.
|
40
|
+
UI.verbose response.status if FastlaneCore::Globals.verbose?
|
41
41
|
response_error = true
|
42
42
|
end
|
43
43
|
|
@@ -63,8 +63,6 @@ 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")
|
68
66
|
icon_changed = true
|
69
67
|
end
|
70
68
|
|
@@ -78,6 +76,9 @@ module Badge
|
|
78
76
|
else
|
79
77
|
UI.message "Did nothing... Enable --verbose for more info.".red
|
80
78
|
end
|
79
|
+
|
80
|
+
File.delete(shield) if File.exist?(shield)
|
81
|
+
File.delete("#{shield.path}.png") if File.exist?("#{shield.path}.png")
|
81
82
|
else
|
82
83
|
UI.error "Could not find any app icons...".red
|
83
84
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
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.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Daniel Griesser
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-03-
|
11
|
+
date: 2017-03-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: curb
|
@@ -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.2
|
70
70
|
email:
|
71
71
|
- daniel.griesser.86@gmail.com
|
72
72
|
executables:
|