fastlane 2.1.2 → 2.1.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 78a55201b2421586a21915db3e3981d1cca810a4
4
- data.tar.gz: 089e66d2223340253e677aaeb569f2b183807b00
3
+ metadata.gz: 86d654462e64242e610a3ff5e0873391378f15b9
4
+ data.tar.gz: 59f3ce2c63da60e5a2735d8c995e83f3b2f104c7
5
5
  SHA512:
6
- metadata.gz: 4dc5052ac54bd6b98aec3117c6aa24b3ef2f443c16e728067367f52d435994610f7bcd49753ed85c19659b8bd8b0da09bd37915ddd730a8ab3ade6d07458f3d2
7
- data.tar.gz: 4a3b4819296ef5bcc3215d3f6cfbabd266743dbc7af9c810c628c5f7e7bc78cd69352dde12785f84f6a2ffe392fba7323ac373aa9a96788d97f0ebf4a90bc1c1
6
+ metadata.gz: 7c697c30e08ac74c0284cc29e3691fb72822129e88a83eb1394bddb0177cb7271dd8c41497c152564e0c14038b43deead9b36fe7d836e7921b5d819ba4e1d726
7
+ data.tar.gz: 857da9e5c6365a6bb4fc2a0c8a2ffa61676bc5849ce3d5d526d68eeb9ddd3c9e49022f014a06e5d4ce3beae08bbf7221dc2fbb1710b9c634bee0cb0319a2e627
@@ -10,7 +10,8 @@ module Fastlane
10
10
  require 'faraday'
11
11
  require 'faraday_middleware'
12
12
 
13
- connection = Faraday.new(url: "https://upload.hockeyapp.net") do |builder|
13
+ base_url = options[:bypass_cdn] ? "https://rink.hockeyapp.net" : "https://upload.hockeyapp.net"
14
+ connection = Faraday.new(url: base_url) do |builder|
14
15
  builder.request :multipart
15
16
  builder.request :url_encoded
16
17
  builder.response :json, content_type: /\bjson$/
@@ -211,7 +212,12 @@ module Fastlane
211
212
  default_value: "add",
212
213
  verify_block: proc do |value|
213
214
  UI.user_error!("Invalid value '#{value}' for key 'strategy'. Allowed values are 'add', 'replace'.") unless ['add', 'replace'].include?(value)
214
- end)
215
+ end),
216
+ FastlaneCore::ConfigItem.new(key: :bypass_cdn,
217
+ env_name: "FL_HOCKEY_BYPASS_CDN",
218
+ description: "Flag to bypass Hockey CDN when it uploads successfully but reports error",
219
+ is_string: false,
220
+ default_value: false)
215
221
  ]
216
222
  end
217
223
 
@@ -1,4 +1,4 @@
1
1
  module Fastlane
2
- VERSION = '2.1.2'.freeze
2
+ VERSION = '2.1.3'.freeze
3
3
  DESCRIPTION = "The easiest way to automate beta deployments and releases for your iOS and Android apps".freeze
4
4
  end
@@ -17,7 +17,12 @@ module Spaceship
17
17
  puts "Successfully logged in to iTunes Connect".green
18
18
  puts ""
19
19
  rescue
20
- puts "Could not login to iTunes Connect...".red
20
+ puts "Could not login to iTunes Connect".red
21
+ puts "Please check your credentials and try again.".yellow
22
+ puts "This could be an issue with iTunes Connect,".yellow
23
+ puts "Please try unsetting the FASTLANE_SESSION environment variable".yellow
24
+ puts "and re-run `fastlane spaceauth`".yellow
25
+ UI.crash!("Problem connecting to iTunes Connect")
21
26
  end
22
27
 
23
28
  itc_cookie_content = Spaceship::Tunes.client.store_cookie
@@ -31,8 +36,8 @@ module Spaceship
31
36
  cookies = YAML.load(itc_cookie_content)
32
37
 
33
38
  # We remove all the un-needed cookies
34
- cookies.delete_if do |current|
35
- ['aa', 'X-SESS', 'site', 'acn01', 'myacinfo', 'itctx', 'wosid', 'woinst', 'NSC_17ofu-jud-jud-mc'].include?(current.name)
39
+ cookies.select! do |cookie|
40
+ cookie.name.start_with?("DES5") || cookie.name == 'dqsid'
36
41
  end
37
42
 
38
43
  yaml = cookies.to_yaml.gsub("\n", "\\n")
@@ -35,7 +35,7 @@ module Spaceship
35
35
  result = choose(*available)
36
36
  device_id = result.match(/.*\t.*\t\((.*)\)/)[1]
37
37
  select_device(r, device_id)
38
- elsif r.body.kind_of?(Hash) && r.body["phoneNumberVerification"].kind_of?(Hash)
38
+ elsif r.body.kind_of?(Hash) && r.body["trustedPhoneNumbers"].kind_of?(Array) && r.body["trustedPhoneNumbers"].first.kind_of?(Hash)
39
39
  handle_two_factor(r)
40
40
  else
41
41
  raise "Invalid 2 step response #{r.body}"
@@ -48,7 +48,7 @@ module Spaceship
48
48
  puts "If you're running this in a non-interactive session (e.g. server or CI)"
49
49
  puts "check out #{two_factor_url}"
50
50
 
51
- security_code = response.body["phoneNumberVerification"]["securityCode"]
51
+ security_code = response.body["securityCode"]
52
52
  # {"length"=>6,
53
53
  # "tooManyCodesSent"=>false,
54
54
  # "tooManyCodesValidated"=>false,
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.1.2
4
+ version: 2.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Felix Krause
@@ -733,7 +733,6 @@ files:
733
733
  - deliver/lib/deliver/upload_price_tier.rb
734
734
  - deliver/lib/deliver/upload_screenshots.rb
735
735
  - fastlane/README.md
736
- - fastlane/lib/.DS_Store
737
736
  - fastlane/lib/assets/Actions.md.erb
738
737
  - fastlane/lib/assets/AppfileTemplate
739
738
  - fastlane/lib/assets/AppfileTemplateAndroid
@@ -750,10 +749,8 @@ files:
750
749
  - fastlane/lib/assets/s3_plist_template.erb
751
750
  - fastlane/lib/assets/s3_version_template.erb
752
751
  - fastlane/lib/fastlane.rb
753
- - fastlane/lib/fastlane/.DS_Store
754
752
  - fastlane/lib/fastlane/action.rb
755
753
  - fastlane/lib/fastlane/action_collector.rb
756
- - fastlane/lib/fastlane/actions/.DS_Store
757
754
  - fastlane/lib/fastlane/actions/README.md
758
755
  - fastlane/lib/fastlane/actions/actions_helper.rb
759
756
  - fastlane/lib/fastlane/actions/adb.rb
@@ -1082,7 +1079,6 @@ files:
1082
1079
  - gym/lib/gym/xcodebuild_fixes/watchkit2_fix.rb
1083
1080
  - gym/lib/gym/xcodebuild_fixes/watchkit_fix.rb
1084
1081
  - match/README.md
1085
- - match/lib/.DS_Store
1086
1082
  - match/lib/assets/MatchfileTemplate
1087
1083
  - match/lib/assets/READMETemplate.md
1088
1084
  - match/lib/match.rb
@@ -1288,7 +1284,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
1288
1284
  version: '0'
1289
1285
  requirements: []
1290
1286
  rubyforge_project:
1291
- rubygems_version: 2.6.8
1287
+ rubygems_version: 2.5.1
1292
1288
  signing_key:
1293
1289
  specification_version: 4
1294
1290
  summary: The easiest way to automate beta deployments and releases for your iOS and
Binary file
Binary file
data/match/lib/.DS_Store DELETED
Binary file