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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2ff7c31b748b45d2322ebcfd64b6a15e2e829e99
4
- data.tar.gz: 0b401f80d238020f68dda4e5a1ec3ea9279fde55
3
+ metadata.gz: 9180c2c6b66a671f1618549df461c1991a6a6549
4
+ data.tar.gz: 95d0de6b8f8fefe33dfeacac979879eb4d47e8d0
5
5
  SHA512:
6
- metadata.gz: 0e1edcc866bd1b84b8b648bcf2459f814d83f42bee5e37b14a72cc2280b9fcae248c9baecb2fd783b5032afe5423c33332d0b743d1bcf1a30fca7f2c4fa9b60c
7
- data.tar.gz: 46ab9235984e6d244c0f6383bf8b3fa7c0a7f89500f8c8b019cd89850258838d11fb0ee60db4295df5cb61438edd10bf8f3f1a75d47b7fa3a296bf3699f5de81
6
+ metadata.gz: 4a9e6cb227d868a79490d747f60f865e5f170def2e27f3c4b5f22fab6ff9a3cac75e4233e6ec29dde80287a6c53470a704578f9880529483046c25517ff33d97
7
+ data.tar.gz: 2bc8ad85b151db70c703b1ea43d0e91b1b40439099bf18d3526e20046e28a4c382f620543bb3722df4dc1a302bf45617a979479a6db23ae28dadce18e18a05f7
data/lib/badge/base.rb CHANGED
@@ -1,6 +1,6 @@
1
1
  module Badge
2
2
 
3
- VERSION = "0.8.1"
3
+ VERSION = "0.8.2"
4
4
  DESCRIPTION = "Add a badge overlay to your app icon"
5
5
 
6
6
  def self.root
@@ -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') { $verbose = true }
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.error response.status if $verbose
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.1
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-13 00:00:00.000000000 Z
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.1
69
+ description: 0.8.2
70
70
  email:
71
71
  - daniel.griesser.86@gmail.com
72
72
  executables: