fastlane 2.14.1 → 2.14.2

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: 5e04f5f83b61ab071af4311c38c9ce07527a8c5f
4
- data.tar.gz: c9bd3ec8b52c2812fd8a0274e62df99aaafee68e
3
+ metadata.gz: 8df08ee848469d56fc5c96626b12d4f6c1cd84c0
4
+ data.tar.gz: 51ef2d002b8b926b037607fc0c92bd76b6c2de62
5
5
  SHA512:
6
- metadata.gz: b0fd20e6e853736fcf55cda1ca8d38ccd3757205c64a6411c756023669a7af0f3766839efd4596cde12320f84cb9c44cb7cdee8abe332f3b79ac4f889b936fc0
7
- data.tar.gz: a54799c2b5a17ef1ea97e0cec35d9517f8750ecb14170f030cba317bbb826253ca20f66199a05bdbfc3a59d911b407699be425264e0e6b69a36f58784c707d90
6
+ metadata.gz: c9a9bec7a4ad536e78e17b32063b5d9dac15ed424924b5b68a0e080585ceb1ccee888eee83adcbf084f26209850fd2ba004d8eb8c159d330ee794065ae91e680
7
+ data.tar.gz: 28c49fd2ad59c7119de1c03dafe9204ef3f9c1e0661c9efa98901de6c4667a0c3348f9d83c97f957cf9ba7efc95d19765bf8a27048b23dded1e5a5c1451adf90
@@ -4,7 +4,7 @@ require 'credentials_manager/cli'
4
4
  require 'credentials_manager/appfile_config'
5
5
 
6
6
  # Third Party code
7
- require 'colored2'
7
+ require 'colored'
8
8
  require 'security'
9
9
  require 'highline/import' # to hide the entered password
10
10
 
@@ -1,4 +1,4 @@
1
1
  module Fastlane
2
- VERSION = '2.14.1'.freeze
2
+ VERSION = '2.14.2'.freeze
3
3
  DESCRIPTION = "The easiest way to automate beta deployments and releases for your iOS and Android apps".freeze
4
4
  end
@@ -31,7 +31,7 @@ require 'fastlane_core/keychain_importer'
31
31
  require 'fastlane_core/swag'
32
32
 
33
33
  # Third Party code
34
- require 'colored2'
34
+ require 'colored'
35
35
  require 'commander'
36
36
 
37
37
  # after commander import
@@ -1,5 +1,5 @@
1
1
  require 'logger'
2
- require 'colored2'
2
+ require 'colored'
3
3
 
4
4
  module FastlaneCore
5
5
  module Helper
@@ -1,15 +1,15 @@
1
1
  # This code overwrites the methods from the colored gem
2
- # via https://github.com/kigster/colored2/blob/aa274018906641ffb07aaa3015081a174d169dfe/lib/colored2.rb
2
+ # via https://github.com/defunkt/colored/blob/master/lib/colored.rb
3
3
 
4
- require 'colored2'
4
+ require 'colored'
5
5
 
6
6
  class String
7
- Colored2::COLORS.keys.each do |color|
7
+ Colored::COLORS.keys.each do |color|
8
8
  define_method(color) do
9
9
  self # do nothing with the string, but return it
10
10
  end
11
11
  end
12
- Colored2::EXTRAS.keys.each do |extra|
12
+ Colored::EXTRAS.keys.each do |extra|
13
13
  define_method(extra) do
14
14
  self # do nothing with the string, but return it
15
15
  end
@@ -56,7 +56,7 @@ module FastlaneCore
56
56
  end
57
57
 
58
58
  def command(message)
59
- log.info("$ #{message}".cyan.underlined)
59
+ log.info("$ #{message}".cyan.underline)
60
60
  end
61
61
 
62
62
  def command_output(message)
@@ -80,11 +80,11 @@ module Frameit
80
80
  when 'color'
81
81
  UI.user_error!("Invalid color '#{value}'. Must be valid Hex #123123") unless value.include?("#")
82
82
  when 'padding'
83
- unless value.kind_of?(Integer) || value.split('x').length == 2
84
- UI.user_error!("padding must be type integer or pair of integers of format 'AxB'")
83
+ unless value.kind_of?(Integer) || value.split('x').length == 2 || (value.end_with?('%') && value.to_f > 0)
84
+ UI.user_error!("padding must be type integer or pair of integers of format 'AxB' or a percentage of screen size")
85
85
  end
86
86
  when 'font_scale_factor'
87
- UI.user_error! "font_scale_factor must be numeric" unless value.kind_of?(Numeric)
87
+ UI.user_error!("font_scale_factor must be numeric") unless value.kind_of?(Numeric)
88
88
  end
89
89
  end
90
90
  end
@@ -127,7 +127,7 @@ module Frameit
127
127
  # Horizontal adding around the frames
128
128
  def horizontal_frame_padding
129
129
  padding = fetch_config['padding']
130
- unless padding.kind_of?(Integer)
130
+ if padding.kind_of?(String) && padding.split('x').length == 2
131
131
  padding = padding.split('x')[0].to_i
132
132
  end
133
133
  return scale_padding(padding)
@@ -136,13 +136,16 @@ module Frameit
136
136
  # Vertical adding around the frames
137
137
  def vertical_frame_padding
138
138
  padding = fetch_config['padding']
139
- unless padding.kind_of?(Integer)
139
+ if padding.kind_of?(String) && padding.split('x').length == 2
140
140
  padding = padding.split('x')[1].to_i
141
141
  end
142
142
  return scale_padding(padding)
143
143
  end
144
144
 
145
145
  def scale_padding(padding)
146
+ if padding.kind_of?(String) && padding.end_with?('%')
147
+ padding = ([image.width, image.height].min * padding.to_f * 0.01).ceil
148
+ end
146
149
  multi = 1.0
147
150
  multi = 1.7 if self.screenshot.triple_density?
148
151
  return padding * multi
data/match/lib/match.rb CHANGED
@@ -31,7 +31,7 @@ module Match
31
31
  def self.cert_type_sym(type)
32
32
  return :enterprise if type == "enterprise"
33
33
  return :development if type == "development"
34
- return :distribution if type == "adhoc" || type == "appstore"
34
+ return :distribution if ["adhoc", "appstore", "distribution"].include?(type)
35
35
  raise "Unknown cert type: '#{type}'"
36
36
  end
37
37
  end
@@ -30,7 +30,7 @@ module Scan
30
30
  config = Scan.config
31
31
 
32
32
  options = []
33
- options += project_path_array
33
+ options += project_path_array unless config[:xctestrun]
34
34
  options << "-sdk '#{config[:sdk]}'" if config[:sdk]
35
35
  options << destination # generated in `detect_values`
36
36
  options << "-derivedDataPath '#{config[:derived_data_path]}'" if config[:derived_data_path]
@@ -50,11 +50,11 @@ module Spaceship
50
50
  puts "---"
51
51
  puts ""
52
52
  puts "Pass the following via the FASTLANE_SESSION environment variable:"
53
- puts yaml.cyan.underlined
53
+ puts yaml.cyan.underline
54
54
  puts ""
55
55
  puts ""
56
56
  puts "Example:"
57
- puts "export FASTLANE_SESSION='#{yaml}'".cyan.underlined
57
+ puts "export FASTLANE_SESSION='#{yaml}'".cyan.underline
58
58
  end
59
59
  end
60
60
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fastlane
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.14.1
4
+ version: 2.14.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Felix Krause
@@ -205,25 +205,19 @@ dependencies:
205
205
  - !ruby/object:Gem::Version
206
206
  version: 2.0.0
207
207
  - !ruby/object:Gem::Dependency
208
- name: colored2
208
+ name: colored
209
209
  requirement: !ruby/object:Gem::Requirement
210
210
  requirements:
211
211
  - - ">="
212
212
  - !ruby/object:Gem::Version
213
- version: 3.1.1
214
- - - "<"
215
- - !ruby/object:Gem::Version
216
- version: 4.0.0
213
+ version: '0'
217
214
  type: :runtime
218
215
  prerelease: false
219
216
  version_requirements: !ruby/object:Gem::Requirement
220
217
  requirements:
221
218
  - - ">="
222
219
  - !ruby/object:Gem::Version
223
- version: 3.1.1
224
- - - "<"
225
- - !ruby/object:Gem::Version
226
- version: 4.0.0
220
+ version: '0'
227
221
  - !ruby/object:Gem::Dependency
228
222
  name: commander
229
223
  requirement: !ruby/object:Gem::Requirement