spaceship 0.34.2 → 0.34.3

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: 7671f2253b40be6539172dfacf3bd98adf213541
4
- data.tar.gz: e25c504495870d130a2e5598b7418673277a2ab8
3
+ metadata.gz: bf577b8fd2b5d6f538ff6f26e2f5c8cf4abaa947
4
+ data.tar.gz: 47e771c715dd55f3d334234ab6fcbb09896e7595
5
5
  SHA512:
6
- metadata.gz: e41bac0b76bb4a61173ab976d8d36bde5629e1ec2d8cbcec654b996b63e985d333295c09b06d15ff7db6c61719b9396f498dff734e956dba53c8160cb5197d64
7
- data.tar.gz: f2e2256e3255400a4c08b24b735ba79e49a6c4c6342218b18ca9dba8be44823ed28a887e11f559a3bab9ab6c57e460b8d97c3c89e52d73e1cc0acc216e4ad082
6
+ metadata.gz: 6a270d3d3f892feb254305b4fd58dcd24628d4dd5f535f8c1e0fba52b798177e55b4a2db4e9b0e899bfcfeab83f4d6b0022a5d8b1f44d6fd353bad920069cafe
7
+ data.tar.gz: 899c011e4dacc8f0200029eafa12ee50ac72fe0f3d310d32d505298e0ca50606076c095848c55087d0af722bebd6c5302b7140b5fa6904bf46282516ced641ed
@@ -8,7 +8,7 @@ require 'spaceship/helper/net_http_generic_request'
8
8
 
9
9
  Faraday::Utils.default_params_encoder = Faraday::FlatParamsEncoder
10
10
 
11
- if ENV["DEBUG"]
11
+ if ENV["SPACESHIP_DEBUG"]
12
12
  require 'openssl'
13
13
  # this has to be on top of this file, since the value can't be changed later
14
14
  OpenSSL::SSL::VERIFY_PEER = OpenSSL::SSL::VERIFY_NONE
@@ -364,14 +364,18 @@ module Spaceship
364
364
  upload_file = UploadFile.from_path screenshot_path
365
365
  screenshot_data = client.upload_screenshot(self, upload_file, device)
366
366
 
367
+ # Since October 2016 we also need to pass the size, height, width and checksum
368
+ # otherwise iTunes Connect validation will fail at a later point
367
369
  new_screenshot = {
368
- "value" => {
369
- "assetToken" => screenshot_data["token"],
370
- "sortOrder" => sort_order,
371
- "url" => nil,
372
- "thumbNailUrl" => nil,
373
- "originalFileName" => upload_file.file_name
374
- }
370
+ "value" => {
371
+ "assetToken" => screenshot_data["token"],
372
+ "sortOrder" => sort_order,
373
+ "originalFileName" => upload_file.file_name,
374
+ "size" => screenshot_data["length"],
375
+ "height" => screenshot_data["height"],
376
+ "width" => screenshot_data["width"],
377
+ "checksum" => screenshot_data["md5"]
378
+ }
375
379
  }
376
380
 
377
381
  # We disable "scaling" for this device type / language combination
@@ -1,4 +1,4 @@
1
1
  module Spaceship
2
- VERSION = "0.34.2".freeze
2
+ VERSION = "0.34.3".freeze
3
3
  DESCRIPTION = "Ruby library to access the Apple Dev Center and iTunes Connect".freeze
4
4
  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.34.2
4
+ version: 0.34.3
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-10-05 00:00:00.000000000 Z
12
+ date: 2016-10-06 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: credentials_manager
@@ -394,7 +394,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
394
394
  version: '0'
395
395
  requirements: []
396
396
  rubyforge_project:
397
- rubygems_version: 2.4.5.1
397
+ rubygems_version: 2.2.2
398
398
  signing_key:
399
399
  specification_version: 4
400
400
  summary: Ruby library to access the Apple Dev Center and iTunes Connect