fastlane 2.51.0.beta.20170803010003 → 2.51.0.beta.20170804010003

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: c7eb3d1f5b7173b762d88c234a42d78eeaab29fb
4
- data.tar.gz: 078a7a46c41474ed143d894f25f00e7a8f92f643
3
+ metadata.gz: 57c9884308f495d707942d16b436d4d0172037c2
4
+ data.tar.gz: e7a1892b749733a8d963298da84a4f614b5527a6
5
5
  SHA512:
6
- metadata.gz: f068283205f2b0ac1ad4bc1d5ab14f54aa05f2af660489922296327b713044d5b3b8ccbe0195f089745698fcdc4abe5134bfe538119d53092b575c5f2898b69b
7
- data.tar.gz: 67544595863559674c2b10ad5366060ae9cfd2c1739796ecac7c4f62b26afeb646dbfbd48511efeb0eedfb5779f582735f8629339613b66c3dce694c66b17025
6
+ metadata.gz: ee578a32307a0944d05cff1271695ab3f43207276ae37545129d81f5c7a73e294bc09e0f79b9063a6e1ae60abefd05f38012e4456558cd933d9d5888be9250db
7
+ data.tar.gz: 4bad8baa4c401007a1f4fc9a23c5a6913c7089a6a0933fc14c9e62052ff91047235d9d97f3c41eed74b2c43b554446f2cc1873d1ad201572dad84434f475133f
@@ -161,7 +161,7 @@ module Fastlane
161
161
  end
162
162
 
163
163
  def self.is_supported?(platform)
164
- platform == :android || platform == :ios
164
+ [:ios, :android].include?(platform) # we support iOS as cross platforms apps might want to call `gradle` also
165
165
  end
166
166
 
167
167
  def self.example_code
@@ -1,9 +1,3 @@
1
- if ENV["SPACESHIP_DEBUG"]
2
- require 'openssl'
3
- # this has to be on top of this file, since the value can't be changed later
4
- OpenSSL::SSL::VERIFY_PEER = OpenSSL::SSL::VERIFY_NONE
5
- end
6
-
7
1
  module Fastlane
8
2
  module Actions
9
3
  module SharedValues
@@ -26,15 +20,6 @@ module Fastlane
26
20
  builder.response :json, content_type: /\bjson$/
27
21
  builder.use FaradayMiddleware::FollowRedirects
28
22
  builder.adapter :net_http
29
- if ENV['SPACESHIP_DEBUG']
30
- # for debugging only
31
- # This enables tracking of networking requests using Charles Web Proxy
32
- builder.proxy "https://127.0.0.1:8888"
33
- end
34
-
35
- if ENV["DEBUG"]
36
- puts "To run _spaceship_ through a local proxy, use SPACESHIP_DEBUG"
37
- end
38
23
  end
39
24
  end
40
25
 
@@ -1,5 +1,5 @@
1
1
  module Fastlane
2
- VERSION = '2.51.0.beta.20170803010003'.freeze
2
+ VERSION = '2.51.0.beta.20170804010003'.freeze
3
3
  DESCRIPTION = "The easiest way to automate beta deployments and releases for your iOS and Android apps".freeze
4
4
  MINIMUM_XCODE_RELEASE = "7.0".freeze
5
5
  end
@@ -95,7 +95,7 @@ module Sigh
95
95
  c.syntax = 'fastlane sigh resign'
96
96
  c.description = 'Resigns an existing ipa file with the given provisioning profile'
97
97
  c.option '-i', '--signing_identity STRING', String, 'The signing identity to use. Must match the one defined in the provisioning profile.'
98
- c.option '-x', '--version_number STRING', String, 'Version number to force binary and all nested binaries to use. Changes both CFBundleShortVersionString and CFBundleIdentifier.'
98
+ c.option '-x', '--version_number STRING', String, 'Version number to force binary and all nested binaries to use. Changes both CFBundleShortVersionString and CFBundleVersion.'
99
99
  c.option '-p', '--provisioning_profile PATH', String, '(or BUNDLE_ID=PATH) The path to the provisioning profile which should be used. '\
100
100
  'Can be provided multiple times if the application contains nested applications and app extensions, which need their own provisioning profile. '\
101
101
  'The path may be prefixed with a identifier in order to determine which provisioning profile should be used on which app.',
@@ -22,6 +22,7 @@ module Spaceship
22
22
  Device = Spaceship::Portal::Device
23
23
  App = Spaceship::Portal::App
24
24
  AppGroup = Spaceship::Portal::AppGroup
25
+ Passbook = Spaceship::Portal::Passbook
25
26
  WebsitePush = Spaceship::Portal::WebsitePush
26
27
  AppService = Spaceship::Portal::AppService
27
28
 
@@ -12,12 +12,6 @@ require 'cgi'
12
12
 
13
13
  Faraday::Utils.default_params_encoder = Faraday::FlatParamsEncoder
14
14
 
15
- if ENV["SPACESHIP_DEBUG"]
16
- require 'openssl'
17
- # this has to be on top of this file, since the value can't be changed later
18
- OpenSSL::SSL::VERIFY_PEER = OpenSSL::SSL::VERIFY_NONE
19
- end
20
-
21
15
  module Spaceship
22
16
  # rubocop:disable Metrics/ClassLength
23
17
  class Client
@@ -264,6 +258,7 @@ module Spaceship
264
258
  # for debugging only
265
259
  # This enables tracking of networking requests using Charles Web Proxy
266
260
  c.proxy "https://127.0.0.1:8888"
261
+ c.ssl[:verify_mode] = OpenSSL::SSL::VERIFY_NONE
267
262
  end
268
263
 
269
264
  if ENV["DEBUG"]
@@ -0,0 +1,82 @@
1
+ module Spaceship
2
+ module Portal
3
+ # Represents an Passbook ID from the Developer Portal
4
+ class Passbook < PortalBase
5
+ # @return (String) The identifier of this passbook, provided by the Dev Portal
6
+ # @example
7
+ # "RGAWZGXSAA"
8
+ attr_accessor :passbook_id
9
+
10
+ # @return (String) The name you provided for this passbook
11
+ # @example
12
+ # "Spaceship"
13
+ attr_accessor :name
14
+
15
+ # @return (String) the supported platform of this passbook
16
+ # @example
17
+ # "ios"
18
+ attr_accessor :platform
19
+
20
+ # Prefix provided by the Dev Portal
21
+ # @example
22
+ # "5A997XSHK2"
23
+ attr_accessor :prefix
24
+
25
+ # @return (String) The bundle_id (passbook) of passbook id
26
+ # @example
27
+ # "web.com.krausefx.app"
28
+ attr_accessor :bundle_id
29
+
30
+ # @return (String) Status of the passbook
31
+ # @example
32
+ # "current"
33
+ attr_accessor :status
34
+
35
+ attr_mapping(
36
+ 'passTypeId' => :passbook_id,
37
+ 'name' => :name,
38
+ 'prefix' => :prefix,
39
+ 'identifier' => :bundle_id,
40
+ 'status' => :status
41
+ )
42
+
43
+ class << self
44
+ # Create a new object based on a hash.
45
+ # This is used to create a new object based on the server response.
46
+ def factory(attrs)
47
+ self.new(attrs)
48
+ end
49
+
50
+ # @return (Array) Returns all passbook available for this account
51
+ def all
52
+ client.passbooks.map { |pass_type| self.factory(pass_type) }
53
+ end
54
+
55
+ # Creates a new Passbook ID on the Apple Dev Portal
56
+ #
57
+ # @param bundle_id [String] the bundle id (Passbook_id) of the passbook
58
+ # @param name [String] the name of the Passbook
59
+ # @return (Passbook) The Passbook you just created
60
+ def create!(bundle_id: nil, name: nil)
61
+ new_passbook = client.create_passbook!(name, bundle_id)
62
+ self.new(new_passbook)
63
+ end
64
+
65
+ # Find a specific Passbook ID based on the bundle_id
66
+ # @return (Passbook) The passbook you're looking for. This is nil if the passbook can't be found.
67
+ def find(bundle_id)
68
+ all.find do |passbook|
69
+ passbook.bundle_id == bundle_id
70
+ end
71
+ end
72
+ end
73
+
74
+ # Delete this Passbook ID.
75
+ # @return (Passbook) The passbook you just deleted
76
+ def delete!
77
+ client.delete_passbook!(passbook_id)
78
+ self
79
+ end
80
+ end
81
+ end
82
+ end
@@ -10,3 +10,4 @@ require 'spaceship/portal/portal_client'
10
10
  require 'spaceship/portal/persons'
11
11
  require 'spaceship/portal/person'
12
12
  require 'spaceship/portal/key'
13
+ require 'spaceship/portal/passbook'
@@ -199,6 +199,43 @@ module Spaceship
199
199
  parse_response(r, 'appId')
200
200
  end
201
201
 
202
+ #####################################################
203
+ # @!group Passbook
204
+ #####################################################
205
+
206
+ def passbooks
207
+ paging do |page_number|
208
+ r = request(:post, "account/ios/identifiers/listPassTypeIds.action", {
209
+ teamId: team_id,
210
+ pageNumber: page_number,
211
+ pageSize: page_size,
212
+ sort: 'name=asc'
213
+ })
214
+ parse_response(r, 'passTypeIdList')
215
+ end
216
+ end
217
+
218
+ def create_passbook!(name, bundle_id)
219
+ ensure_csrf(Spaceship::Passbook)
220
+
221
+ r = request(:post, "account/ios/identifiers/addPassTypeId.action", {
222
+ name: name,
223
+ identifier: bundle_id,
224
+ teamId: team_id
225
+ })
226
+ parse_response(r, 'passTypeId')
227
+ end
228
+
229
+ def delete_passbook!(passbook_id)
230
+ ensure_csrf(Spaceship::Passbook)
231
+
232
+ r = request(:post, "account/ios/identifiers/deletePassTypeId.action", {
233
+ teamId: team_id,
234
+ passTypeId: passbook_id
235
+ })
236
+ parse_response(r)
237
+ end
238
+
202
239
  #####################################################
203
240
  # @!group Website Push
204
241
  #####################################################
@@ -44,6 +44,11 @@ module Spaceship
44
44
  Spaceship::App.set_client(@client)
45
45
  end
46
46
 
47
+ # @return (Class) Access the pass types for the spaceship
48
+ def passbook
49
+ Spaceship::Passbook.set_client(@client)
50
+ end
51
+
47
52
  # @return (Class) Access the website pushes for the spaceship
48
53
  def website_push
49
54
  Spaceship::WebsitePush.set_client(@client)
@@ -90,6 +95,10 @@ module Spaceship
90
95
  Spaceship::Portal.app
91
96
  end
92
97
 
98
+ def passbook
99
+ Spaceship::Portal.passbook
100
+ end
101
+
93
102
  def website_push
94
103
  Spaceship::Portal.website_push
95
104
  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: 2.51.0.beta.20170803010003
4
+ version: 2.51.0.beta.20170804010003
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: 2017-08-03 00:00:00.000000000 Z
18
+ date: 2017-08-04 00:00:00.000000000 Z
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
21
21
  name: slack-notifier
@@ -1316,6 +1316,7 @@ files:
1316
1316
  - spaceship/lib/spaceship/portal/certificate.rb
1317
1317
  - spaceship/lib/spaceship/portal/device.rb
1318
1318
  - spaceship/lib/spaceship/portal/key.rb
1319
+ - spaceship/lib/spaceship/portal/passbook.rb
1319
1320
  - spaceship/lib/spaceship/portal/person.rb
1320
1321
  - spaceship/lib/spaceship/portal/persons.rb
1321
1322
  - spaceship/lib/spaceship/portal/portal.rb