spaceship 0.27.0 → 0.27.1

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: 429cc67c199e32d7f2e55aa822a6b4de8270df3f
4
- data.tar.gz: b045bde4d81c758d7382ffabc8c46ccd2377fe17
3
+ metadata.gz: 5c9ef6a75127c3aa135a43eb82d21c9e3100f624
4
+ data.tar.gz: a99ba681d2af1dd4633d9ca701fc4e189baaa503
5
5
  SHA512:
6
- metadata.gz: f8714341e6951b1eacfc03c9cea0df512f4b5da3d39d671bbf34b8a3be4ef785f7e98bf36c2ff1987fe30ce367e988b37575c7a8d8a8488c183eedcad5466221
7
- data.tar.gz: 42f76298463d24677037dcd29d8514e6cdf0c6465006190ff5de131572e868af92668380371dea0e64b9f150a3fb379da7dc7dc750dc297cc6535f2ebbc83cf4
6
+ metadata.gz: 670b44192db63d26d1728a3611975c9b9353569e45e2ac789948a621742b31b2ce018c87982eeccc01e36c6ce75df5f958e82ddc1dcc799b511ed2ea8e69b303
7
+ data.tar.gz: e28161306a75b2a610d5e9e4edea2b9d6ef5107c9e25b8fb0dcaa5af67cf9afb9dc40102fa222767716e2126310e8633bcbbcfbe67047129bc7640611e2dae26
@@ -302,16 +302,18 @@ module Spaceship
302
302
  raise "Looks like your Apple ID is not enabled for iTunes Connect, make sure to be able to login online"
303
303
  else
304
304
  info = [response.body, response['Set-Cookie']]
305
- raise ITunesConnectError.new, info.join("\n")
305
+ raise TunesClient::ITunesConnectError.new, info.join("\n")
306
306
  end
307
307
  end
308
308
  end
309
309
 
310
310
  def itc_service_key
311
311
  return @service_key if @service_key
312
- # Some clients have had trouble with GZip encoding, so we'll request the server to return unmodified plain-text
313
- headers = ENV['SPACESHIP_LOGIN_ENCODING_IDENTITY'] ? {'Accept-Encoding' => 'identity'} : {}
314
- logger.debug("itc_service_key headers: #{headers}")
312
+ # Some customers in Asia have had trouble with the CDNs there that cache and serve this content, leading
313
+ # to "buffer error (Zlib::BufError)" from deep in the Ruby HTTP stack. Setting this header requests that
314
+ # the content be served only as plain-text, which seems to work around their problem, while not affecting
315
+ # other clients.
316
+ headers = {'Accept-Encoding' => 'identity'}
315
317
  # We need a service key from a JS file to properly auth
316
318
  js = request(:get, "https://itunesconnect.apple.com/itc/static-resources/controllers/login_cntrl.js", nil, headers)
317
319
  @service_key ||= js.body.match(/itcServiceKey = '(.*)'/)[1]
@@ -1,3 +1,3 @@
1
1
  module Spaceship
2
- VERSION = "0.27.0".freeze
2
+ VERSION = "0.27.1".freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: spaceship
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.27.0
4
+ version: 0.27.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Felix Krause
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2016-05-15 00:00:00.000000000 Z
12
+ date: 2016-05-16 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: credentials_manager
@@ -392,7 +392,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
392
392
  version: '0'
393
393
  requirements: []
394
394
  rubyforge_project:
395
- rubygems_version: 2.4.8
395
+ rubygems_version: 2.4.5.1
396
396
  signing_key:
397
397
  specification_version: 4
398
398
  summary: Because you would rather spend your time building stuff than fighting provisioning