fastlane 2.54.0.beta.20170817010002 → 2.54.0.beta.20170818010002

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: bcc279ca63201b152f2ba3809f9c5f041d18a71f
4
- data.tar.gz: 0d7a65d242ddd339dc0e6368b5b6d1a34c328567
3
+ metadata.gz: 31f9f6b75b0447f30db831da38095ef3345a17a8
4
+ data.tar.gz: 3cfe94056b73a9d8c54262c62d134a4ebc6489df
5
5
  SHA512:
6
- metadata.gz: 365c195f0124ed7058d16e39494176b458a3fad3be8f73a14e918dd9ecbd3a09cf37db9206ce11ebf53ec0f163b72309dcad4858b0cb9898c66bdddbeb77324a
7
- data.tar.gz: 7d46736eeb00f7b092eb6ee9488cb75840e6bbc584de39d4969d3cecf73c93e2447a471318e367123ec5cd35e2af5d0a5bd29e8b3bceacab17ac32d11e3f0678
6
+ metadata.gz: 8212eb5a555c454e525c53264811ee6ea3b758e61d0ebcadcd7bf8fa3b7b6aab9faa43f64a3487d4db7d4042f50f592d1f5935be216f6da632ed924fe5361d6f
7
+ data.tar.gz: 9ac733a3f8a14e9230d6b92d403f53ad677287b382f56ad9ae830828deed0c2c33f982d8ed8d16f871cdffea23884294cc09c626e66f7e4e6d741cab53999e87
@@ -5,7 +5,7 @@ module CredentialsManager
5
5
  class AccountManager
6
6
  DEFAULT_PREFIX = "deliver"
7
7
  # @param prefix [String] Very optional, is used for the
8
- # iTunes Transporter which uses application specofic passwords
8
+ # iTunes Transporter which uses application specific passwords
9
9
  # @param note [String] An optional note that will be shown next
10
10
  # to the password and username prompt
11
11
  def initialize(user: nil, password: nil, prefix: nil, note: nil)
@@ -16,7 +16,7 @@ module CredentialsManager
16
16
  @note = note
17
17
  end
18
18
 
19
- # Is the that default prefix "deliver"
19
+ # Is the default prefix "deliver"
20
20
  def default_prefix?
21
21
  @prefix == DEFAULT_PREFIX
22
22
  end
@@ -50,7 +50,7 @@ module CredentialsManager
50
50
  end
51
51
 
52
52
  # Call this method to ask the user to re-enter the credentials
53
- # @param force: if false the user is asked before it gets deleted
53
+ # @param force: if false, the user is asked before it gets deleted
54
54
  # @return: Did the user decide to remove the old entry and enter a new password?
55
55
  def invalid_credentials(force: false)
56
56
  puts "The login credentials for '#{user}' seem to be wrong".red
@@ -117,7 +117,7 @@ module CredentialsManager
117
117
  prompt_text += " (#{@note})" if @note
118
118
  prompt_text += ": "
119
119
  @user = ask(prompt_text) while @user.to_s.length == 0
120
- # we return here, as only the username was asked for now, we'll get called for the pw again anyway
120
+ # Returning here since only the username was asked for. This method will be called again when a password is needed.
121
121
  return
122
122
  end
123
123
 
@@ -3,7 +3,8 @@ module Fastlane
3
3
  # Adds a git tag to the current commit
4
4
  class AddGitTagAction < Action
5
5
  def self.run(options)
6
- lane_name = Actions.lane_context[Actions::SharedValues::LANE_NAME].delete(' ') # no spaces allowed
6
+ # lane name in lane_context could be nil because you can just call $fastlane add_git_tag which has no context
7
+ lane_name = Actions.lane_context[Actions::SharedValues::LANE_NAME].to_s.delete(' ') # no spaces allowed
7
8
 
8
9
  tag = options[:tag] || "#{options[:grouping]}/#{lane_name}/#{options[:prefix]}#{options[:build_number]}"
9
10
  message = options[:message] || "#{tag} (fastlane)"
@@ -1,5 +1,5 @@
1
1
  module Fastlane
2
- VERSION = '2.54.0.beta.20170817010002'.freeze
2
+ VERSION = '2.54.0.beta.20170818010002'.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
@@ -43,6 +43,10 @@ module Spaceship
43
43
  ref[last] = value
44
44
  end
45
45
 
46
+ def delete(key)
47
+ @hash.delete(key)
48
+ end
49
+
46
50
  def lookup(keys)
47
51
  head, *tail = *keys
48
52
  if tail.empty?
@@ -124,7 +124,13 @@ module Spaceship
124
124
 
125
125
  # Save and complete the app submission
126
126
  def complete!
127
- client.send_app_submission(application.apple_id, raw_data)
127
+ raw_data_clone = raw_data.dup
128
+ if self.content_rights_has_rights.nil? || self.content_rights_contains_third_party_content.nil?
129
+ raw_data_clone.set(["contentRights"], nil)
130
+ end
131
+ raw_data_clone.delete("version")
132
+
133
+ client.send_app_submission(application.apple_id, application.edit_version.version_id, raw_data_clone)
128
134
  @submitted_for_review = true
129
135
  end
130
136
 
@@ -872,12 +872,12 @@ module Spaceship
872
872
  parse_response(r, 'data')
873
873
  end
874
874
 
875
- def send_app_submission(app_id, data)
875
+ def send_app_submission(app_id, version, data)
876
876
  raise "app_id is required" unless app_id
877
877
 
878
878
  # ra/apps/1039164429/version/submit/complete
879
879
  r = request(:post) do |req|
880
- req.url "ra/apps/#{app_id}/version/submit/complete"
880
+ req.url "ra/apps/#{app_id}/versions/#{version}/submit/complete"
881
881
  req.body = data.to_json
882
882
  req.headers['Content-Type'] = 'application/json'
883
883
  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.54.0.beta.20170817010002
4
+ version: 2.54.0.beta.20170818010002
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-17 00:00:00.000000000 Z
18
+ date: 2017-08-18 00:00:00.000000000 Z
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
21
21
  name: slack-notifier