fastlane-plugin-tpa 2.0.2 → 2.0.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: c6ddea70b6dc2fd2a890aa5c628916ca35ce639d
4
- data.tar.gz: '08e42ea5899d14a1b1e617da442de890b1527585'
3
+ metadata.gz: 9ed7db5267f2c46d9a05ecbda74ce9e4117fb3da
4
+ data.tar.gz: 9735b38e6b5b133430a55858017d93d32e57ed49
5
5
  SHA512:
6
- metadata.gz: 0f80d1e466dc405e9a9b1181dc8a7ca67c9161c4e9de80004421a2b27616e828939ee8f26260469d9d952e4625f503e56e2459f2609d61abb509c61461e61f99
7
- data.tar.gz: 4f1bd3ac157c80fef95a06b209d6161244f06c4c891659481f3878bb07c375d85ae5ac35881d6fb98058b144861b40eaf1fc8588de226df0181d4aebb169cdb7
6
+ metadata.gz: 2181cfbb820867c44f94232cbe86edc0e98a1fb5ef2080ed18888bd675143a1a4543903e22b2b453b6dc01d72c6672e636e6f3b426a4d90467845ce1436247e5
7
+ data.tar.gz: 6e55d230c55fd7023a8381af9ba9927003ed98c0e5628c505d13bc7e5f14924f9e3f1c26c3b3dbe8e2125000d4627952e71de7ae7d35b5f1b30dcad8cac73a70
@@ -47,13 +47,20 @@ module Fastlane
47
47
  end
48
48
 
49
49
  def self.body(params)
50
- {
50
+ body = {
51
51
  app: File.new(app_file(params), 'rb'),
52
- mapping: !params[:mapping].nil? && File.exist?(params[:mapping]) ? File.new(params[:mapping], 'rb') : nil,
53
52
  notes: params[:notes],
54
53
  publish: params[:publish],
55
54
  force: params[:force]
56
55
  }
56
+
57
+ # Only set mapping key if mapping file exists.
58
+ # Even setting a nil value will cause Fastlane to send an empty value causing an error.
59
+ if !params[:mapping].nil? && File.exist?(params[:mapping])
60
+ body[:mapping] = File.new(params[:mapping], 'rb')
61
+ end
62
+
63
+ body
57
64
  end
58
65
 
59
66
  def self.handle_exception_response(ex)
@@ -1,5 +1,5 @@
1
1
  module Fastlane
2
2
  module Tpa
3
- VERSION = "2.0.2"
3
+ VERSION = "2.0.3"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fastlane-plugin-tpa
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.2
4
+ version: 2.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - The Perfect App
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-10-31 00:00:00.000000000 Z
11
+ date: 2019-06-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rest-client