icon-banner 0.2.1 → 0.2.3

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
- SHA1:
3
- metadata.gz: ed3a2c8b2bc9d5c45b65dacb6b3056f4c64833a1
4
- data.tar.gz: 39e6f79af8d63bb8eaa29378aabdb05d7735e76f
2
+ SHA256:
3
+ metadata.gz: 751b9bc4dbb2464a4e4307c9b52f101b7066e003c4d75c6b7e28bd442e000ff6
4
+ data.tar.gz: 994e7c223791165f82ac668b5ec98e26b67b4fe08a3a4cfcc5f75363233d83ac
5
5
  SHA512:
6
- metadata.gz: 016d9230c576877baecab16ba3b29cd2fccd2198e25729ccfd5e51cdc04c700062e09a1018078745cef072ce4fb38219c0cb5802d35651a21d5918ab13bd1cc2
7
- data.tar.gz: 66ceab0eb31ddd7ad600fa7340fe619664d9ce069094122ad752fa276f1864c2771b0030b7d86d06dc6ffe28d67c9254f939e51cf9a0c09680074bb0b4781dbc
6
+ metadata.gz: 5ad84927b0c5ad3c220ae31ebf645490aba482fa6fd5b2e0c74b34ec8eddad0b6756b48fe9a84449ec0d564e0291330a047dda6928930c8ac026ab66d6ff39da
7
+ data.tar.gz: d12b54e837c2aa39bfaaab4a385dc91471c35e9da43a8d031f9c8206ce7e234fab0028bc0813100ec25d2db55d7556e8460cb3f2c6e913953ada07bbd45fd858
@@ -44,7 +44,7 @@ module IconBanner
44
44
  end
45
45
 
46
46
  def should_ignore_icon(icon)
47
- icon[/\/Carthage\//] || icon[/\/Pods\//] || icon[/\/Releases\//]
47
+ icon[/\/Carthage\//] || icon[/\/Pods\//] || icon[/\/Releases\//] || icon[/\/checkouts\//]
48
48
  end
49
49
  end
50
50
  end
@@ -34,8 +34,8 @@ module IconBanner
34
34
  end unless color
35
35
 
36
36
  banner_file = Tempfile.new %w[banner .png]
37
- # generate_banner banner_file.path, label, color, font
38
- # process_icon icon_path, banner_file.path
37
+ generate_banner banner_file.path, label, color, font
38
+ process_icon icon_path, banner_file.path
39
39
  banner_file.close
40
40
 
41
41
  UI.verbose "Completed processing #{File.basename icon_path}"
@@ -65,8 +65,6 @@ module IconBanner
65
65
  UI.message "Completed #{self.class::PLATFORM} restore."
66
66
  end
67
67
 
68
- private
69
-
70
68
  def get_app_icons(path)
71
69
  app_icons = Dir.glob("#{path}#{self.class::BASE_ICON_PATH}")
72
70
  app_icons.reject { |icon| should_ignore_icon(icon) }
@@ -101,7 +99,7 @@ module IconBanner
101
99
 
102
100
  def restore_backup(icon_path)
103
101
  restore_path = backup_path(icon_path)
104
- if File.exists?(restore_path)
102
+ if File.exist?(restore_path)
105
103
  FileUtils.cp(restore_path, icon_path)
106
104
  File.delete restore_path
107
105
  end
data/lib/icon_banner.rb CHANGED
@@ -3,7 +3,7 @@ require 'icon_banner/ic_launcher'
3
3
  require 'commander'
4
4
 
5
5
  module IconBanner
6
- VERSION = '0.2.1'
6
+ VERSION = '0.2.3'
7
7
  DESCRIPTION = 'IconBanner adds custom nice-looking banners over your mobile app icons'
8
8
 
9
9
  UI = FastlaneCore::UI
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: icon-banner
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Émile Bélair
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-11-18 00:00:00.000000000 Z
11
+ date: 2023-05-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: fastlane
@@ -87,8 +87,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
87
87
  - !ruby/object:Gem::Version
88
88
  version: '0'
89
89
  requirements: []
90
- rubyforge_project:
91
- rubygems_version: 2.6.11
90
+ rubygems_version: 3.1.4
92
91
  signing_key:
93
92
  specification_version: 4
94
93
  summary: Banners for your app icons