fastlane 2.54.0.beta.20170817010002 → 2.54.0.beta.20170818010002
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/credentials_manager/lib/credentials_manager/account_manager.rb +4 -4
- data/fastlane/lib/fastlane/actions/add_git_tag.rb +2 -1
- data/fastlane/lib/fastlane/version.rb +1 -1
- data/spaceship/lib/spaceship/base.rb +4 -0
- data/spaceship/lib/spaceship/tunes/app_submission.rb +7 -1
- data/spaceship/lib/spaceship/tunes/tunes_client.rb +2 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 31f9f6b75b0447f30db831da38095ef3345a17a8
|
4
|
+
data.tar.gz: 3cfe94056b73a9d8c54262c62d134a4ebc6489df
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
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
|
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
|
-
#
|
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
|
-
|
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)"
|
@@ -124,7 +124,13 @@ module Spaceship
|
|
124
124
|
|
125
125
|
# Save and complete the app submission
|
126
126
|
def complete!
|
127
|
-
|
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.
|
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-
|
18
|
+
date: 2017-08-18 00:00:00.000000000 Z
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|
21
21
|
name: slack-notifier
|