fastlane-plugin-icon_versioning 1.2.0 → 1.3.0

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: bf27a15124530480184b11d4e63cbd67f65ca1b0
4
- data.tar.gz: e7afc502693ea1df9c8a0e72895d5fdad51458c6
3
+ metadata.gz: 0e64264fcaa37744e9233f09531fa68d481a6404
4
+ data.tar.gz: ecdee96ab19782c49c5b392a6ad185ee3421af90
5
5
  SHA512:
6
- metadata.gz: 74b1aff17607afb43a670c1245f50acbaa2646525bf601fd12ad7f872a439c165268b91da5fe91b6b3bdee6b7ef22988d346703791452917a01082a99efb2d6a
7
- data.tar.gz: 43e9188b61677dad1fc283c86e27642957aebe9fe55502b9dc7101cb2c0b5eadef623f4f118d0da3050b9539787b05f4a27fcec325bf172b7fda8c5d3821e19c
6
+ metadata.gz: ee475307eaa2500715c3d5f18758cedb0624b3694d7392be68270d408ca40dadccd82dd33aa16893cf96699e7e20c99c54a0723c065b35f0103b6baabf4e388e
7
+ data.tar.gz: 81d9c3c324274febc3d638d0f6e6b48b90d5af8c41d7539ee55621dec087492fa5dbbf1e35b8fa1c7f960b65343bb9228b31b3d4a6d399a3d1134a81982f1986
data/README.md CHANGED
@@ -1,7 +1,7 @@
1
1
  # icon_versioning plugin
2
2
 
3
3
  [![fastlane Plugin Badge](https://rawcdn.githack.com/fastlane/fastlane/master/fastlane/assets/plugin-badge.svg)](https://rubygems.org/gems/fastlane-plugin-icon_versioning)
4
- [![Build Status](https://travis-ci.org/revolter/fastlane-plugin-icon_versioning.svg?branch=master)](https://travis-ci.org/revolter/fastlane-plugin-icon_versioning)
4
+ [![Build Status](https://travis-ci.com/revolter/fastlane-plugin-icon_versioning.svg?branch=master)](https://travis-ci.com/revolter/fastlane-plugin-icon_versioning)
5
5
  [![Coverage Status](https://coveralls.io/repos/github/revolter/fastlane-plugin-icon_versioning/badge.svg)](https://coveralls.io/github/revolter/fastlane-plugin-icon_versioning)
6
6
  [![Maintainability](https://api.codeclimate.com/v1/badges/c25b5a17cfad82881a70/maintainability)](https://codeclimate.com/github/revolter/fastlane-plugin-icon_versioning/maintainability)
7
7
 
@@ -22,7 +22,8 @@ Overlay build information on top of your app icon. Based on original work by Krz
22
22
  Over the original implementation by Krzysztof, I also added:
23
23
  - automatic font scaling and blur spreading that ensures a consistent look between different sized icons
24
24
  - text lines preservation that doesn't break long lines to prevent unexpected results
25
- - possibility to specify custom text, band height, blur spread that remain responsive to the icon sizes
25
+ - possibility to specify custom text and text color
26
+ - text margins and band height that remain responsive to different icon sizes
26
27
 
27
28
  ### Integrating
28
29
 
@@ -39,10 +39,18 @@ module Fastlane
39
39
  description: 'The text to overlay over the icon images',
40
40
  type: String
41
41
  ),
42
+ FastlaneCore::ConfigItem.new(
43
+ key: :text_color,
44
+ env_name: 'VERSION_ICON_TEXT_COLOR',
45
+ description: 'Optional color for the text overlaying the icon images. It must be a color name (`red`) or a set of numbers as described here: https://www.imagemagick.org/script/color.php',
46
+ default_value: 'white',
47
+ optional: true,
48
+ type: String
49
+ ),
42
50
  FastlaneCore::ConfigItem.new(
43
51
  key: :text_margins_percentages,
44
52
  env_name: 'VERSION_ICON_TEXT_MARGINS_PERCENTAGES',
45
- description: 'The percentages of the text margins relative to the image\'s size. The array must have all four margins: `text_margins_percentages: [top, right, bottom, left]`, two values: `text_margins_percentages: [vertical, horizontal]` or one value for all of them `text_margins: [all]`',
53
+ description: 'Optional percentages of the text margins relative to the image\'s size. The array must have all four margins: `text_margins_percentages: [top, right, bottom, left]`, two values: `text_margins_percentages: [vertical, horizontal]` or one value for all of them: `text_margins: [all]`',
46
54
  default_value: [0.06],
47
55
  verify_block: proc do |value|
48
56
  UI.user_error!('The number of margins is not equal to 1, 2 or 4') unless value.length == 1 || value.length == 2 || value.length == 4
@@ -55,7 +63,7 @@ module Fastlane
55
63
  FastlaneCore::ConfigItem.new(
56
64
  key: :band_height_percentage,
57
65
  env_name: 'VERSION_ICON_BAND_HEIGHT_PERCENTAGE',
58
- description: 'The percentage of the text band height relative to the image\'s height. A float number between 0 and 1',
66
+ description: 'Optional percentage of the text band height relative to the image\'s height. A float number between 0 and 1',
59
67
  default_value: 0.5,
60
68
  verify_block: proc do |value|
61
69
  UI.user_error!('Band height percentage is less than 0') if value < 0
@@ -67,7 +75,7 @@ module Fastlane
67
75
  FastlaneCore::ConfigItem.new(
68
76
  key: :band_blur_radius_percentage,
69
77
  env_name: 'VERSION_ICON_BAND_BLUR_RADIUS_PERCENTAGE',
70
- description: 'The blur radius percentage of the text band. The default value behaves like an automatic setting which produces the best results. More details: http://www.imagemagick.org/Usage/blur/#blur_args',
78
+ description: 'Optional blur radius percentage of the text band. The default value behaves like an automatic setting which produces the best results. More details: http://www.imagemagick.org/Usage/blur/#blur_args',
71
79
  default_value: 0,
72
80
  verify_block: proc do |value|
73
81
  UI.user_error!('Band blur radius percentage is less than 0') if value < 0
@@ -78,7 +86,7 @@ module Fastlane
78
86
  FastlaneCore::ConfigItem.new(
79
87
  key: :band_blur_sigma_percentage,
80
88
  env_name: 'VERSION_ICON_BAND_BLUR_SIGMA_PERCENTAGE',
81
- description: 'The blur sigma percentage of the text band. More details: http://www.imagemagick.org/Usage/blur/#blur_args',
89
+ description: 'Optional blur sigma percentage of the text band. More details: http://www.imagemagick.org/Usage/blur/#blur_args',
82
90
  default_value: 0.05,
83
91
  verify_block: proc do |value|
84
92
  UI.user_error!('Band blur sigma percentage is less than 0') if value < 0
@@ -90,7 +98,7 @@ module Fastlane
90
98
  FastlaneCore::ConfigItem.new(
91
99
  key: :ignored_icons_regex,
92
100
  env_name: 'VERSION_ICON_IGNORED_ICONS_REGEX',
93
- description: 'An optional regex that causes the icons that match agains it not to be versioned',
101
+ description: 'Optional regex that causes the icons that match against it not to be versioned',
94
102
  optional: true,
95
103
  type: Regexp
96
104
  )
@@ -16,6 +16,7 @@ module Fastlane
16
16
  def initialize(params)
17
17
  @appiconset_path = File.expand_path(params[:appiconset_path])
18
18
  @text = params[:text]
19
+ @text_color = params[:text_color]
19
20
 
20
21
  text_margins_percentages = params[:text_margins_percentages]
21
22
 
@@ -134,7 +135,7 @@ module Fastlane
134
135
  MiniMagick::Tool::Convert.new do |convert|
135
136
  convert << '-background' << 'none'
136
137
  convert << '-size' << "#{image_width - (text_left_margin + text_right_margin)}x#{band_height - (text_top_margin + text_bottom_margin)}"
137
- convert << '-fill' << 'white'
138
+ convert << '-fill' << @text_color
138
139
  convert << '-gravity' << 'center'
139
140
  # using label instead of caption prevents wrapping long lines
140
141
  convert << "label:#{@text}"
@@ -1,5 +1,5 @@
1
1
  module Fastlane
2
2
  module IconVersioning
3
- VERSION = '1.2.0'
3
+ VERSION = '1.3.0'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,169 +1,175 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fastlane-plugin-icon_versioning
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.0
4
+ version: 1.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Iulian Onofrei
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-04-01 00:00:00.000000000 Z
11
+ date: 2018-06-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: mini_magick
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ">="
17
+ - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '0'
19
+ version: 4.5.1
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - ">="
24
+ - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: '0'
26
+ version: 4.5.1
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: bundler
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - ">="
32
32
  - !ruby/object:Gem::Version
33
- version: '0'
33
+ version: 1.12.0
34
+ - - "<"
35
+ - !ruby/object:Gem::Version
36
+ version: 2.0.0
34
37
  type: :development
35
38
  prerelease: false
36
39
  version_requirements: !ruby/object:Gem::Requirement
37
40
  requirements:
38
41
  - - ">="
39
42
  - !ruby/object:Gem::Version
40
- version: '0'
43
+ version: 1.12.0
44
+ - - "<"
45
+ - !ruby/object:Gem::Version
46
+ version: 2.0.0
41
47
  - !ruby/object:Gem::Dependency
42
48
  name: coveralls
43
49
  requirement: !ruby/object:Gem::Requirement
44
50
  requirements:
45
- - - ">="
51
+ - - "~>"
46
52
  - !ruby/object:Gem::Version
47
- version: '0'
53
+ version: 0.7.2
48
54
  type: :development
49
55
  prerelease: false
50
56
  version_requirements: !ruby/object:Gem::Requirement
51
57
  requirements:
52
- - - ">="
58
+ - - "~>"
53
59
  - !ruby/object:Gem::Version
54
- version: '0'
60
+ version: 0.7.2
55
61
  - !ruby/object:Gem::Dependency
56
62
  name: fastlane
57
63
  requirement: !ruby/object:Gem::Requirement
58
64
  requirements:
59
65
  - - ">="
60
66
  - !ruby/object:Gem::Version
61
- version: '0'
67
+ version: 2.89.0
62
68
  type: :development
63
69
  prerelease: false
64
70
  version_requirements: !ruby/object:Gem::Requirement
65
71
  requirements:
66
72
  - - ">="
67
73
  - !ruby/object:Gem::Version
68
- version: '0'
74
+ version: 2.89.0
69
75
  - !ruby/object:Gem::Dependency
70
76
  name: pry
71
77
  requirement: !ruby/object:Gem::Requirement
72
78
  requirements:
73
- - - ">="
79
+ - - "~>"
74
80
  - !ruby/object:Gem::Version
75
- version: '0'
81
+ version: 0.11.3
76
82
  type: :development
77
83
  prerelease: false
78
84
  version_requirements: !ruby/object:Gem::Requirement
79
85
  requirements:
80
- - - ">="
86
+ - - "~>"
81
87
  - !ruby/object:Gem::Version
82
- version: '0'
88
+ version: 0.11.3
83
89
  - !ruby/object:Gem::Dependency
84
90
  name: rake
85
91
  requirement: !ruby/object:Gem::Requirement
86
92
  requirements:
87
- - - ">="
93
+ - - "~>"
88
94
  - !ruby/object:Gem::Version
89
- version: '0'
95
+ version: 12.3.1
90
96
  type: :development
91
97
  prerelease: false
92
98
  version_requirements: !ruby/object:Gem::Requirement
93
99
  requirements:
94
- - - ">="
100
+ - - "~>"
95
101
  - !ruby/object:Gem::Version
96
- version: '0'
102
+ version: 12.3.1
97
103
  - !ruby/object:Gem::Dependency
98
104
  name: rspec
99
105
  requirement: !ruby/object:Gem::Requirement
100
106
  requirements:
101
- - - ">="
107
+ - - "~>"
102
108
  - !ruby/object:Gem::Version
103
- version: '0'
109
+ version: 3.7.0
104
110
  type: :development
105
111
  prerelease: false
106
112
  version_requirements: !ruby/object:Gem::Requirement
107
113
  requirements:
108
- - - ">="
114
+ - - "~>"
109
115
  - !ruby/object:Gem::Version
110
- version: '0'
116
+ version: 3.7.0
111
117
  - !ruby/object:Gem::Dependency
112
118
  name: rspec_junit_formatter
113
119
  requirement: !ruby/object:Gem::Requirement
114
120
  requirements:
115
- - - ">="
121
+ - - "~>"
116
122
  - !ruby/object:Gem::Version
117
- version: '0'
123
+ version: 0.3.0
118
124
  type: :development
119
125
  prerelease: false
120
126
  version_requirements: !ruby/object:Gem::Requirement
121
127
  requirements:
122
- - - ">="
128
+ - - "~>"
123
129
  - !ruby/object:Gem::Version
124
- version: '0'
130
+ version: 0.3.0
125
131
  - !ruby/object:Gem::Dependency
126
132
  name: rubocop
127
133
  requirement: !ruby/object:Gem::Requirement
128
134
  requirements:
129
- - - ">="
135
+ - - "~>"
130
136
  - !ruby/object:Gem::Version
131
- version: '0'
137
+ version: 0.54.0
132
138
  type: :development
133
139
  prerelease: false
134
140
  version_requirements: !ruby/object:Gem::Requirement
135
141
  requirements:
136
- - - ">="
142
+ - - "~>"
137
143
  - !ruby/object:Gem::Version
138
- version: '0'
144
+ version: 0.54.0
139
145
  - !ruby/object:Gem::Dependency
140
146
  name: rubocop-require_tools
141
147
  requirement: !ruby/object:Gem::Requirement
142
148
  requirements:
143
- - - ">="
149
+ - - "~>"
144
150
  - !ruby/object:Gem::Version
145
- version: '0'
151
+ version: 0.1.2
146
152
  type: :development
147
153
  prerelease: false
148
154
  version_requirements: !ruby/object:Gem::Requirement
149
155
  requirements:
150
- - - ">="
156
+ - - "~>"
151
157
  - !ruby/object:Gem::Version
152
- version: '0'
158
+ version: 0.1.2
153
159
  - !ruby/object:Gem::Dependency
154
160
  name: simplecov
155
161
  requirement: !ruby/object:Gem::Requirement
156
162
  requirements:
157
- - - ">="
163
+ - - "~>"
158
164
  - !ruby/object:Gem::Version
159
- version: '0'
165
+ version: 0.16.1
160
166
  type: :development
161
167
  prerelease: false
162
168
  version_requirements: !ruby/object:Gem::Requirement
163
169
  requirements:
164
- - - ">="
170
+ - - "~>"
165
171
  - !ruby/object:Gem::Version
166
- version: '0'
172
+ version: 0.16.1
167
173
  description:
168
174
  email: 6d0847b9@opayq.com
169
175
  executables: []