badge 0.9.0 → 0.9.1

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: 0d501aaf87aefbb2c0b0cf15b5b0aa72612a7008
4
- data.tar.gz: 795a37d2fea3c8900806c73eef04a22d4459076d
3
+ metadata.gz: 8b76f289f68758fca7336bcc65e74f3355cd8093
4
+ data.tar.gz: 0dd1487b77b8ffa9bbbbd4f7add644dd873177f4
5
5
  SHA512:
6
- metadata.gz: 958509781bdf8f9131da9bbd46c5406aaece814c398bb12640664744cb1e92be26e075dc0080aa2fb1e6a7a14b1f000e887fcb7ca4e44118d123ee20e24f41f3
7
- data.tar.gz: b4a3a0c5fb4c358ad9302085883eb676678d4373f167c92b0ee1934f7722fa1ba55eea6bbd7c75a4bffcb82bfdd26e76683632f0faff0afc38e6da7c6b8b96ad
6
+ metadata.gz: d6046d98ed9461aa1a417e6c0732d7e4640db279b4fa03d395474ae16f773ccdbf7ea610b04e782a6292bd04981ac885a23d2f5156e53af4fd3eacfb971abd6c
7
+ data.tar.gz: c69c1f80f0a9e0798432e0cc61479a025d5aaee47c526db59bcf8d73547cc7d75539947217988e8005c79aa06c37f5765fbab5faddbc5378ce710d22f0cb749e
data/lib/badge/base.rb CHANGED
@@ -1,6 +1,6 @@
1
1
  module Badge
2
2
 
3
- VERSION = "0.9.0"
3
+ VERSION = "0.9.1"
4
4
  DESCRIPTION = "Add a badge overlay to your app icon"
5
5
 
6
6
  def self.root
data/lib/badge/options.rb CHANGED
@@ -32,7 +32,7 @@ module Badge
32
32
  FastlaneCore::ConfigItem.new(key: :badge_gravity,
33
33
  description: "Position of the badge on icon. Default: SouthEast - Choices include: #{AVAILABLE_GRAVITIES.join(', ')}",
34
34
  verify_block: proc do |value|
35
- UI.user_error!("badge_gravity #{value} is invalid") unless AVAILABLE_GRAVITIES.include?
35
+ UI.user_error!("badge_gravity #{value} is invalid") unless AVAILABLE_GRAVITIES.map(&:upcase).include? value.upcase
36
36
  end,
37
37
  optional: true),
38
38
 
@@ -50,7 +50,10 @@ module Badge
50
50
  optional: true),
51
51
 
52
52
  FastlaneCore::ConfigItem.new(key: :shield_gravity,
53
- description: "Position of shield on icon. Default: North - Choices include: NorthWest, North, NorthEast, West, Center, East, South, West, South, SouthEast",
53
+ description: "Position of shield on icon. Default: North - Choices include: #{AVAILABLE_GRAVITIES.join(', ')}",
54
+ verify_block: proc do |value|
55
+ UI.user_error!("badge_gravity #{value} is invalid") unless AVAILABLE_GRAVITIES.map(&:upcase).include? value.upcase
56
+ end,
54
57
  optional: true),
55
58
 
56
59
  FastlaneCore::ConfigItem.new(key: :shield_scale,
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.9.0
4
+ version: 0.9.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Daniel Griesser
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-04-04 00:00:00.000000000 Z
11
+ date: 2018-04-05 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.9.0
69
+ description: 0.9.1
70
70
  email:
71
71
  - daniel.griesser.86@gmail.com
72
72
  executables: