fastlane 1.103.0 → 1.104.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: 1aa696e2b0d7865863f82d76107e06a91d81ed6c
4
- data.tar.gz: a7a542ac13d7639b678bb8dcc5d5bbd5ac22d607
3
+ metadata.gz: 3b26b52939a17cf65ea9c22d2a7d8b43592f89d9
4
+ data.tar.gz: 38a7c3fc0fc60eabd03a26715457fbc0e5373048
5
5
  SHA512:
6
- metadata.gz: e980f23cfd07e0345300025a41980572b33a24976063e3985945da6109cd8a6f7ba1e196e3596368e013be9889beac87aac6e970380fd7b2e4a6fd7383d9dce3
7
- data.tar.gz: fb8de57795ac9419ce1d5b26462f54e57edbb5e6e8cff9f7a09c90ccee0570d936826ae30e5f6ff0ae4a75b53ff4e79faf352758e36ed2e87a86d6551e151166
6
+ metadata.gz: bd33eb7f6d926a656b17615772b1e38dcd07b8a4851fabc230113e356b1a1c44dca7c11bf6c36e836a7b08ee833ae6c613f78123e9ea1cb441944bc4d1c76709
7
+ data.tar.gz: 8c420e4c6279c9cae2f92d08e1784b53497ac847e358521db1caac9b332f46fed8db1ede711f323681d6d685ed905b4f52b99fc2930125c129e24f1da6a42749
data/lib/.DS_Store CHANGED
Binary file
Binary file
@@ -8,6 +8,12 @@ module Fastlane
8
8
  '--tags'
9
9
  ]
10
10
 
11
+ # optionally add the force component
12
+ command << '--force' if params[:force]
13
+
14
+ # optionally add the remote component
15
+ command << params[:remote] if params[:remote]
16
+
11
17
  result = Actions.sh(command.join(' '))
12
18
  UI.success('Tags pushed to remote')
13
19
  result
@@ -23,6 +29,16 @@ module Fastlane
23
29
 
24
30
  def self.available_options
25
31
  [
32
+ FastlaneCore::ConfigItem.new(key: :force,
33
+ env_name: "FL_PUSH_GIT_FORCE",
34
+ description: "Force push to remote. Defaults to false",
35
+ is_string: false,
36
+ default_value: false,
37
+ optional: true),
38
+ FastlaneCore::ConfigItem.new(key: :remote,
39
+ env_name: "FL_GIT_PUSH_REMOTE",
40
+ description: "The remote to push tags to",
41
+ optional: true)
26
42
  ]
27
43
  end
28
44
 
@@ -200,9 +200,56 @@ module Fastlane
200
200
  return true
201
201
  end
202
202
 
203
+ # @return true if loading the AWS SDK from the 'aws-sdk' gem yields the expected v1 API, or false otherwise
204
+ def self.load_from_original_gem_name
205
+ begin
206
+ # We don't use `Actions.verify_gem!` here, because we want to silently be OK with this gem not being
207
+ # present, in case the user has already migrated to 'aws-sdk-v1' (see #load_from_v1_gem_name)
208
+ Gem::Specification.find_by_name('aws-sdk')
209
+ require 'aws-sdk'
210
+ rescue Gem::LoadError
211
+ UI.verbose("The 'aws-sdk' gem is not present")
212
+ return false
213
+ end
214
+
215
+ UI.verbose("The 'aws-sdk' gem is present")
216
+ true
217
+ end
218
+
219
+ def self.load_from_v1_gem_name
220
+ Actions.verify_gem!('aws-sdk-v1')
221
+ require 'aws-sdk-v1'
222
+ end
223
+
224
+ def self.v1_sdk_module_present?
225
+ begin
226
+ # Here we'll make sure that the `AWS` module is defined. If it is, the gem is the v1.x API.
227
+ Object.const_get("AWS")
228
+ rescue NameError
229
+ UI.verbose("Couldn't find the needed `AWS` module in the 'aws-sdk' gem")
230
+ return false
231
+ end
232
+
233
+ UI.verbose("Found the needed `AWS` module in the 'aws-sdk' gem")
234
+ true
235
+ end
236
+
203
237
  def self.s3_client(s3_access_key, s3_secret_access_key, s3_region)
204
- Actions.verify_gem!('aws-sdk')
205
- require 'aws-sdk'
238
+ # The AWS SDK API changed completely in v2.x. The most stable way to keep using the V1 API is to
239
+ # require the 'aws-sdk-v1' gem directly. However, for those customers who are using the 'aws-sdk'
240
+ # gem at v1.x, we don't want to break their setup which currently works.
241
+ #
242
+ # Therefore, we will attempt to load the v1 API from the original gem name, but go on to load
243
+ # from the aws-sdk-v1 gem name if necessary
244
+ loaded_original_gem = load_from_original_gem_name
245
+
246
+ if !loaded_original_gem || !v1_sdk_module_present?
247
+ load_from_v1_gem_name
248
+ UI.verbose("Loaded AWS SDK v1.x from the `aws-sdk-v1` gem")
249
+ else
250
+ UI.verbose("Loaded AWS SDK v1.x from the `aws-sdk` gem")
251
+ end
252
+
206
253
  if s3_region
207
254
  s3_client = AWS::S3.new(
208
255
  access_key_id: s3_access_key,
@@ -154,4 +154,8 @@ Style/ZeroLengthPredicate:
154
154
 
155
155
  # Adds complexity
156
156
  Style/IfInsideElse:
157
- Enabled: false
157
+ Enabled: false
158
+
159
+ # Sometimes we just want to 'collect'
160
+ Style/CollectionMethods:
161
+ Enabled: false
@@ -1,4 +1,4 @@
1
1
  module Fastlane
2
- VERSION = '1.103.0'.freeze
2
+ VERSION = '1.104.0'.freeze
3
3
  DESCRIPTION = "The easiest way to automate building and releasing your iOS and Android apps"
4
4
  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: 1.103.0
4
+ version: 1.104.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Felix Krause
@@ -15,7 +15,7 @@ authors:
15
15
  autorequire:
16
16
  bindir: bin
17
17
  cert_chain: []
18
- date: 2016-09-14 00:00:00.000000000 Z
18
+ date: 2016-09-22 00:00:00.000000000 Z
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
21
21
  name: krausefx-shenzhen
@@ -237,7 +237,7 @@ dependencies:
237
237
  requirements:
238
238
  - - ">="
239
239
  - !ruby/object:Gem::Version
240
- version: 0.32.1
240
+ version: 0.33.0
241
241
  - - "<"
242
242
  - !ruby/object:Gem::Version
243
243
  version: 1.0.0
@@ -247,7 +247,7 @@ dependencies:
247
247
  requirements:
248
248
  - - ">="
249
249
  - !ruby/object:Gem::Version
250
- version: 0.32.1
250
+ version: 0.33.0
251
251
  - - "<"
252
252
  - !ruby/object:Gem::Version
253
253
  version: 1.0.0
@@ -277,7 +277,7 @@ dependencies:
277
277
  requirements:
278
278
  - - ">="
279
279
  - !ruby/object:Gem::Version
280
- version: 1.14.0
280
+ version: 1.16.0
281
281
  - - "<"
282
282
  - !ruby/object:Gem::Version
283
283
  version: 2.0.0
@@ -287,7 +287,7 @@ dependencies:
287
287
  requirements:
288
288
  - - ">="
289
289
  - !ruby/object:Gem::Version
290
- version: 1.14.0
290
+ version: 1.16.0
291
291
  - - "<"
292
292
  - !ruby/object:Gem::Version
293
293
  version: 2.0.0
@@ -357,7 +357,7 @@ dependencies:
357
357
  requirements:
358
358
  - - ">="
359
359
  - !ruby/object:Gem::Version
360
- version: 1.10.2
360
+ version: 1.11.1
361
361
  - - "<"
362
362
  - !ruby/object:Gem::Version
363
363
  version: 2.0.0
@@ -367,7 +367,7 @@ dependencies:
367
367
  requirements:
368
368
  - - ">="
369
369
  - !ruby/object:Gem::Version
370
- version: 1.10.2
370
+ version: 1.11.1
371
371
  - - "<"
372
372
  - !ruby/object:Gem::Version
373
373
  version: 2.0.0
@@ -397,7 +397,7 @@ dependencies:
397
397
  requirements:
398
398
  - - ">="
399
399
  - !ruby/object:Gem::Version
400
- version: 1.7.0
400
+ version: 1.9.0
401
401
  - - "<"
402
402
  - !ruby/object:Gem::Version
403
403
  version: 2.0.0
@@ -407,7 +407,7 @@ dependencies:
407
407
  requirements:
408
408
  - - ">="
409
409
  - !ruby/object:Gem::Version
410
- version: 1.7.0
410
+ version: 1.9.0
411
411
  - - "<"
412
412
  - !ruby/object:Gem::Version
413
413
  version: 2.0.0
@@ -437,7 +437,7 @@ dependencies:
437
437
  requirements:
438
438
  - - ">="
439
439
  - !ruby/object:Gem::Version
440
- version: 0.11.3
440
+ version: 0.13.0
441
441
  - - "<"
442
442
  - !ruby/object:Gem::Version
443
443
  version: 2.0.0
@@ -447,7 +447,7 @@ dependencies:
447
447
  requirements:
448
448
  - - ">="
449
449
  - !ruby/object:Gem::Version
450
- version: 0.11.3
450
+ version: 0.13.0
451
451
  - - "<"
452
452
  - !ruby/object:Gem::Version
453
453
  version: 2.0.0
@@ -457,7 +457,7 @@ dependencies:
457
457
  requirements:
458
458
  - - ">="
459
459
  - !ruby/object:Gem::Version
460
- version: 0.7.0
460
+ version: 0.7.1
461
461
  - - "<"
462
462
  - !ruby/object:Gem::Version
463
463
  version: 1.0.0
@@ -467,7 +467,7 @@ dependencies:
467
467
  requirements:
468
468
  - - ">="
469
469
  - !ruby/object:Gem::Version
470
- version: 0.7.0
470
+ version: 0.7.1
471
471
  - - "<"
472
472
  - !ruby/object:Gem::Version
473
473
  version: 1.0.0
@@ -477,7 +477,7 @@ dependencies:
477
477
  requirements:
478
478
  - - ">="
479
479
  - !ruby/object:Gem::Version
480
- version: 0.6.3
480
+ version: 0.8.0
481
481
  - - "<"
482
482
  - !ruby/object:Gem::Version
483
483
  version: 1.0.0
@@ -487,7 +487,7 @@ dependencies:
487
487
  requirements:
488
488
  - - ">="
489
489
  - !ruby/object:Gem::Version
490
- version: 0.6.3
490
+ version: 0.8.0
491
491
  - - "<"
492
492
  - !ruby/object:Gem::Version
493
493
  version: 1.0.0
@@ -497,7 +497,7 @@ dependencies:
497
497
  requirements:
498
498
  - - ">="
499
499
  - !ruby/object:Gem::Version
500
- version: 0.5.0
500
+ version: 0.5.2
501
501
  - - "<"
502
502
  - !ruby/object:Gem::Version
503
503
  version: 1.0.0
@@ -507,7 +507,7 @@ dependencies:
507
507
  requirements:
508
508
  - - ">="
509
509
  - !ruby/object:Gem::Version
510
- version: 0.5.0
510
+ version: 0.5.2
511
511
  - - "<"
512
512
  - !ruby/object:Gem::Version
513
513
  version: 1.0.0
@@ -712,7 +712,6 @@ files:
712
712
  - lib/fastlane/.DS_Store
713
713
  - lib/fastlane/action.rb
714
714
  - lib/fastlane/action_collector.rb
715
- - lib/fastlane/actions/.DS_Store
716
715
  - lib/fastlane/actions/README.md
717
716
  - lib/fastlane/actions/actions_helper.rb
718
717
  - lib/fastlane/actions/adb.rb
@@ -914,6 +913,7 @@ files:
914
913
  - lib/fastlane/new_action.rb
915
914
  - lib/fastlane/one_off.rb
916
915
  - lib/fastlane/other_action.rb
916
+ - lib/fastlane/plugins/.DS_Store
917
917
  - lib/fastlane/plugins/plugin_fetcher.rb
918
918
  - lib/fastlane/plugins/plugin_generator.rb
919
919
  - lib/fastlane/plugins/plugin_generator_ui.rb
@@ -941,6 +941,7 @@ files:
941
941
  - lib/fastlane/plugins/template/lib/fastlane/plugin/%plugin_name%/version.rb.erb
942
942
  - lib/fastlane/plugins/template/spec/%plugin_name%_action_spec.rb.erb
943
943
  - lib/fastlane/plugins/template/spec/spec_helper.rb.erb
944
+ - lib/fastlane/plugins/templates/.DS_Store
944
945
  - lib/fastlane/runner.rb
945
946
  - lib/fastlane/setup/crashlytics_beta.rb
946
947
  - lib/fastlane/setup/crashlytics_beta_command_line_handler.rb
@@ -975,7 +976,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
975
976
  version: '0'
976
977
  requirements: []
977
978
  rubyforge_project:
978
- rubygems_version: 2.5.1
979
+ rubygems_version: 2.4.5.1
979
980
  signing_key:
980
981
  specification_version: 4
981
982
  summary: The easiest way to automate building and releasing your iOS and Android apps