icon-banner 0.2.1 → 0.2.3
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 +5 -5
- data/lib/icon_banner/appiconset.rb +1 -1
- data/lib/icon_banner/process.rb +3 -5
- data/lib/icon_banner.rb +1 -1
- metadata +3 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 751b9bc4dbb2464a4e4307c9b52f101b7066e003c4d75c6b7e28bd442e000ff6
|
4
|
+
data.tar.gz: 994e7c223791165f82ac668b5ec98e26b67b4fe08a3a4cfcc5f75363233d83ac
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5ad84927b0c5ad3c220ae31ebf645490aba482fa6fd5b2e0c74b34ec8eddad0b6756b48fe9a84449ec0d564e0291330a047dda6928930c8ac026ab66d6ff39da
|
7
|
+
data.tar.gz: d12b54e837c2aa39bfaaab4a385dc91471c35e9da43a8d031f9c8206ce7e234fab0028bc0813100ec25d2db55d7556e8460cb3f2c6e913953ada07bbd45fd858
|
data/lib/icon_banner/process.rb
CHANGED
@@ -34,8 +34,8 @@ module IconBanner
|
|
34
34
|
end unless color
|
35
35
|
|
36
36
|
banner_file = Tempfile.new %w[banner .png]
|
37
|
-
|
38
|
-
|
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.
|
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
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.
|
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:
|
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
|
-
|
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
|