fastlane 1.32.1 → 1.32.2

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: abd3c0bf13fb26af94569c4c658c603b4f18b011
4
- data.tar.gz: 133b65b4c37ddad8870acd182c38913bdfc41f35
3
+ metadata.gz: ef288c9079f419ba92955bb60da47f34b59e9695
4
+ data.tar.gz: a9c8eed03f8c6675f5f739723603110429fe6b62
5
5
  SHA512:
6
- metadata.gz: 6942857004d3a99433b85c6e7f6ad6a1ff67aa6290ab4d4e000a5823c9f539e44d4569e96f7584c33056d12813776fb4a98233d34dd69e4a03fd890d8a5bf6fb
7
- data.tar.gz: 9aecebda54550568e3f132ae91e8819aee97472e60dfec551bafcb18d2534caacf83a1c61c862388ed4f0d11848144fdcd75ceb24b30838d6ccf4a053800a9ed
6
+ metadata.gz: d5f70080f7fe5a8dbeb2dfa51fcee4e1144a8d1e9a64828065b9fd9cc474d069d513f0223055f0cef05ba24c388e48ea77571d202de21a80aa21d514a4de8651
7
+ data.tar.gz: 01deafb2ead8cc49d457a6a6163b332484009421b0a8b8a743fa8741d460d63ab9948147c574555d8e1f366cc65c7fa1d589c7f3c4959296f28cfb59ee172635
@@ -9,7 +9,7 @@ module Fastlane
9
9
  Actions.verify_gem!('slather')
10
10
 
11
11
  command = "slather coverage "
12
- command += " --build-directory #{params[:build_directory]}"
12
+ command += " --build-directory #{params[:build_directory]}" if params[:build_directory]
13
13
  command += " --input-format #{params[:input_format]}" if params[:input_format]
14
14
  command += " --scheme #{params[:scheme]}" if params[:scheme]
15
15
  command += " --buildkite" if params[:buildkite]
@@ -49,9 +49,8 @@ Slather is available at https://github.com/venmo/slather
49
49
  FastlaneCore::ConfigItem.new(key: :build_directory,
50
50
  env_name: "FL_SLATHER_BUILD_DIRECTORY", # The name of the environment variable
51
51
  description: "The location of the build output", # a short description of this parameter
52
- verify_block: proc do |value|
53
- raise "No Build Directory specified, pass using `build_directory: 'location/of/your/build/output'`".red unless value and !value.empty?
54
- end),
52
+ optional: true
53
+ ),
55
54
  FastlaneCore::ConfigItem.new(key: :proj,
56
55
  env_name: "FL_SLATHER_PROJ", # The name of the environment variable
57
56
  description: "The project file that slather looks at", # a short description of this parameter
@@ -60,11 +59,13 @@ Slather is available at https://github.com/venmo/slather
60
59
  end),
61
60
  FastlaneCore::ConfigItem.new(key: :scheme,
62
61
  env_name: "FL_SLATHER_SCHEME", # The name of the environment variable
63
- description: "Scheme to use when calling slather"
62
+ description: "Scheme to use when calling slather",
63
+ optional: true
64
64
  ),
65
65
  FastlaneCore::ConfigItem.new(key: :input_format,
66
66
  env_name: "FL_SLATHER_INPUT_FORMAT", # The name of the environment variable
67
- description: "The input format that slather should look for"
67
+ description: "The input format that slather should look for",
68
+ optional: true
68
69
  ),
69
70
  FastlaneCore::ConfigItem.new(key: :buildkite,
70
71
  env_name: "FL_SLATHER_BUILDKITE_ENABLED", # The name of the environment variable
@@ -25,15 +25,14 @@ module Fastlane
25
25
  end
26
26
 
27
27
  def self.add_keychain_to_search_list(keychain_path)
28
- escaped_path = keychain_path.shellescape
28
+ keychains = Fastlane::Actions.sh("security list-keychains -d user", log: false).shellsplit
29
29
 
30
- result = Fastlane::Actions.sh("security list-keychains", log: false)
30
+ # add the keychain to the keychain list
31
+ unless keychains.include?(keychain_path)
32
+ keychains << keychain_path
31
33
 
32
- # add the keychain to the keychains list
33
- # the basic strategy is to open the keychain file with Keychain Access
34
- unless result.include?(keychain_path)
35
34
  commands = []
36
- commands << Fastlane::Actions.sh("open #{escaped_path}")
35
+ commands << Fastlane::Actions.sh("security list-keychains -s #{keychains.shelljoin}", log: false)
37
36
  commands
38
37
  end
39
38
  end
@@ -24,19 +24,31 @@ module Fastlane
24
24
  'you should turn off smart quotes in your editor of choice.'.red
25
25
  end
26
26
 
27
- parse(content)
27
+ parse(content, @path)
28
28
  end
29
29
 
30
- def parse(data)
30
+ def parsing_binding
31
+ binding
32
+ end
33
+
34
+ def parse(data, path = nil)
31
35
  @runner ||= Runner.new
32
36
 
33
37
  Dir.chdir(Fastlane::FastlaneFolder.path || Dir.pwd) do # context: fastlane subfolder
38
+ # create nice path that we want to print in case of some problem
39
+ relative_path = path.nil? ? '(eval)' : Pathname.new(path).relative_path_from(Pathname.new(Dir.pwd)).to_s
40
+
34
41
  begin
42
+ # We have to use #get_binding method, because some test files defines method called `path` (for example SwitcherFastfile)
43
+ # and local variable has higher priority, so it causes to remove content of original Fastfile for example. With #get_binding
44
+ # is this always clear and safe to declare any local variables we want, because the eval function uses the instance scope
45
+ # instead of local.
46
+
35
47
  # rubocop:disable Lint/Eval
36
- eval(data) # this is okay in this case
48
+ eval(data, parsing_binding, relative_path) # using eval is ok for this case
37
49
  # rubocop:enable Lint/Eval
38
50
  rescue SyntaxError => ex
39
- line = ex.to_s.match(/\(eval\):(\d+)/)[1]
51
+ line = ex.to_s.match(/#{Regexp.escape(relative_path)}:(\d+)/)[1]
40
52
  raise "Syntax error in your Fastfile on line #{line}: #{ex}".red
41
53
  end
42
54
  end
@@ -190,7 +202,7 @@ module Fastlane
190
202
  raise "Could not find Fastfile at path '#{path}'".red unless File.exist?(path)
191
203
 
192
204
  collector.did_launch_action(:import)
193
- parse(File.read(path))
205
+ parse(File.read(path), path)
194
206
 
195
207
  # Check if we can also import local actions which are in the same directory as the Fastfile
196
208
  actions_path = File.join(File.expand_path("..", path), 'actions')
@@ -1,3 +1,3 @@
1
1
  module Fastlane
2
- VERSION = '1.32.1'
2
+ VERSION = '1.32.2'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fastlane
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.32.1
4
+ version: 1.32.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Felix Krause
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-10-07 00:00:00.000000000 Z
11
+ date: 2015-10-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: nokogiri
@@ -176,7 +176,7 @@ dependencies:
176
176
  requirements:
177
177
  - - ">="
178
178
  - !ruby/object:Gem::Version
179
- version: 0.18.2
179
+ version: 0.21.0
180
180
  - - "<"
181
181
  - !ruby/object:Gem::Version
182
182
  version: 1.0.0
@@ -186,7 +186,7 @@ dependencies:
186
186
  requirements:
187
187
  - - ">="
188
188
  - !ruby/object:Gem::Version
189
- version: 0.18.2
189
+ version: 0.21.0
190
190
  - - "<"
191
191
  - !ruby/object:Gem::Version
192
192
  version: 1.0.0
@@ -196,7 +196,7 @@ dependencies:
196
196
  requirements:
197
197
  - - ">="
198
198
  - !ruby/object:Gem::Version
199
- version: 0.8.2
199
+ version: 0.9.0
200
200
  - - "<"
201
201
  - !ruby/object:Gem::Version
202
202
  version: 1.0.0
@@ -206,7 +206,7 @@ dependencies:
206
206
  requirements:
207
207
  - - ">="
208
208
  - !ruby/object:Gem::Version
209
- version: 0.8.2
209
+ version: 0.9.0
210
210
  - - "<"
211
211
  - !ruby/object:Gem::Version
212
212
  version: 1.0.0
@@ -216,7 +216,7 @@ dependencies:
216
216
  requirements:
217
217
  - - ">="
218
218
  - !ruby/object:Gem::Version
219
- version: 0.11.2
219
+ version: 0.12.0
220
220
  - - "<"
221
221
  - !ruby/object:Gem::Version
222
222
  version: 1.0.0
@@ -226,7 +226,7 @@ dependencies:
226
226
  requirements:
227
227
  - - ">="
228
228
  - !ruby/object:Gem::Version
229
- version: 0.11.2
229
+ version: 0.12.0
230
230
  - - "<"
231
231
  - !ruby/object:Gem::Version
232
232
  version: 1.0.0
@@ -236,7 +236,7 @@ dependencies:
236
236
  requirements:
237
237
  - - ">="
238
238
  - !ruby/object:Gem::Version
239
- version: 1.2.0
239
+ version: 1.3.0
240
240
  - - "<"
241
241
  - !ruby/object:Gem::Version
242
242
  version: 2.0.0
@@ -246,7 +246,7 @@ dependencies:
246
246
  requirements:
247
247
  - - ">="
248
248
  - !ruby/object:Gem::Version
249
- version: 1.2.0
249
+ version: 1.3.0
250
250
  - - "<"
251
251
  - !ruby/object:Gem::Version
252
252
  version: 2.0.0
@@ -256,7 +256,7 @@ dependencies:
256
256
  requirements:
257
257
  - - ">="
258
258
  - !ruby/object:Gem::Version
259
- version: 0.10.0
259
+ version: 0.10.1
260
260
  - - "<"
261
261
  - !ruby/object:Gem::Version
262
262
  version: 1.0.0
@@ -266,7 +266,7 @@ dependencies:
266
266
  requirements:
267
267
  - - ">="
268
268
  - !ruby/object:Gem::Version
269
- version: 0.10.0
269
+ version: 0.10.1
270
270
  - - "<"
271
271
  - !ruby/object:Gem::Version
272
272
  version: 1.0.0
@@ -376,7 +376,7 @@ dependencies:
376
376
  requirements:
377
377
  - - ">="
378
378
  - !ruby/object:Gem::Version
379
- version: 0.8.4
379
+ version: 0.9.0
380
380
  - - "<"
381
381
  - !ruby/object:Gem::Version
382
382
  version: 1.0.0
@@ -386,7 +386,7 @@ dependencies:
386
386
  requirements:
387
387
  - - ">="
388
388
  - !ruby/object:Gem::Version
389
- version: 0.8.4
389
+ version: 0.9.0
390
390
  - - "<"
391
391
  - !ruby/object:Gem::Version
392
392
  version: 1.0.0
@@ -396,7 +396,7 @@ dependencies:
396
396
  requirements:
397
397
  - - ">="
398
398
  - !ruby/object:Gem::Version
399
- version: 0.2.1
399
+ version: 0.3.0
400
400
  - - "<"
401
401
  - !ruby/object:Gem::Version
402
402
  version: 1.0.0
@@ -406,7 +406,7 @@ dependencies:
406
406
  requirements:
407
407
  - - ">="
408
408
  - !ruby/object:Gem::Version
409
- version: 0.2.1
409
+ version: 0.3.0
410
410
  - - "<"
411
411
  - !ruby/object:Gem::Version
412
412
  version: 1.0.0