fastlane-plugin-branding 0.1.0 → 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: aecdd5e0b923c88d8b5a1e26a3265350e943d10d
4
- data.tar.gz: bde93e07654606ca40aaad7e9ffdec80f16c615f
3
+ metadata.gz: 3f6aaf67a5a8ca8c88c88d45ca4881f4035f1abc
4
+ data.tar.gz: 2291d2750f5de36dce068c6bd8f7a32da17223dc
5
5
  SHA512:
6
- metadata.gz: 2f462aefc94aca20d4c4d12b4d0b91d45f116221b783afc2dcebbb48d4c87a2f991464eafbcc464503e9894a1a8d0ae0ace24e51e903a197e35b422ee40bd979
7
- data.tar.gz: 79821159a4d0926ef3428407ea55fba60bfd1716c4f90d300a915c448a43eeda125ced585c82ae6cd51275dbcb48d82ff9ea16dbc4dc597e4cb1bb24af2c54b2
6
+ metadata.gz: c5e36d24a9c5c61b6e2001c1960ce69c1e26fbe13bef5eafcc779c6ca4997ed5a32c9814f16b8b27373c45d1034f6aaa693d7c96b7abf0f6de2fe4e8352f418b
7
+ data.tar.gz: f6ca7ac324edd7bafd26d588ce852aba92b92e5c9faf215f24caceacee114ce3615e50edd8a62e370e0fb3294ed8554d17bdc605ac005c216ead6940f670210c
@@ -4,12 +4,14 @@ module Fastlane
4
4
  module Actions
5
5
  class BrandingAction < Action
6
6
  def self.run(params)
7
- rows, cols = Branding::Canvas.terminal_size
7
+ rows, cols = ::Branding::Canvas.terminal_size
8
8
  ideal_width = cols / 6
9
- path = best_icon(ideal_width)
10
- logo = Branding::Logo.new(path)
11
- logo.algo = :hires
12
- logo.print
9
+ if path = best_icon(ideal_width)
10
+ logo = ::Branding::Logo.new(path)
11
+ logo.algo = :hires
12
+ logo.print
13
+ puts
14
+ end
13
15
  end
14
16
 
15
17
  def self.description
@@ -37,10 +39,10 @@ module Fastlane
37
39
  end
38
40
 
39
41
  def self.best_icon(ideal_width)
40
- icon_paths = Dir.glob("**/AppIcon.iconset/*.png").map(&File.method(:realpath))
42
+ icon_paths = Dir.glob("**/AppIcon.appiconset/*.png").map(&File.method(:realpath))
41
43
 
42
44
  paths = icon_paths.sort_by do |path|
43
- png = PNG.from_file(path)
45
+ png = ::Branding::PNG.from_file(path)
44
46
  (ideal_width - png.width).abs
45
47
  end
46
48
 
@@ -1,5 +1,5 @@
1
1
  module Fastlane
2
2
  module Branding
3
- VERSION = "0.1.0"
3
+ VERSION = "0.1.1"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fastlane-plugin-branding
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stefan Natchev