spaceship 0.26.1 → 0.26.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/lib/spaceship/two_step_client.rb +5 -5
- data/lib/spaceship/version.rb +1 -1
- 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: a2f62833e561a3771e2f067a7cba9c7402b34f74
|
4
|
+
data.tar.gz: 97f4938052eb07c719edce12ee47faef04bb7fb5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e723dc752ab9738ee583c28726259b3f21cff697bf2478c046f6be64637f6bff22f6a70304d5bc1faeb0b1ce774fb8672ceb9bea48368fa5980be5f4da1cec3c
|
7
|
+
data.tar.gz: 6605610cfba565aa878686f8173a376f437546dc0325c0f63d40ebcc798db682ab5415555ac206deb3c7f1b35ca20ed6296cfb91bddb70d5cec8f1f95f4158cf
|
data/README.md
CHANGED
@@ -48,7 +48,7 @@ Get in contact with the developers on Twitter: [@KrauseFx](https://twitter.com/K
|
|
48
48
|
|
49
49
|
-------
|
50
50
|
|
51
|
-
<h5 align="center"><code>spaceship</code> is part of <a href="https://fastlane.tools">fastlane</a>:
|
51
|
+
<h5 align="center"><code>spaceship</code> is part of <a href="https://fastlane.tools">fastlane</a>: The easiest way to automate building and releasing your iOS and Android apps.</h5>
|
52
52
|
|
53
53
|
# What's spaceship?
|
54
54
|
|
@@ -1,13 +1,13 @@
|
|
1
1
|
module Spaceship
|
2
2
|
class Client
|
3
3
|
def handle_two_step(response)
|
4
|
-
@
|
4
|
+
@x_apple_id_session_id = response["x-apple-id-session-id"]
|
5
5
|
@scnt = response["scnt"]
|
6
6
|
|
7
7
|
r = request(:get) do |req|
|
8
8
|
req.url "https://idmsa.apple.com/appleauth/auth"
|
9
9
|
req.headers["scnt"] = @scnt
|
10
|
-
req.headers["X-Apple-
|
10
|
+
req.headers["X-Apple-Id-Session-Id"] = @x_apple_id_session_id
|
11
11
|
req.headers["Accept"] = "application/json"
|
12
12
|
end
|
13
13
|
|
@@ -76,7 +76,7 @@ module Spaceship
|
|
76
76
|
req.url "https://idmsa.apple.com/appleauth/auth/verify/device/#{device_id}/securitycode"
|
77
77
|
req.headers["Accept"] = "application/json"
|
78
78
|
req.headers["scnt"] = @scnt
|
79
|
-
req.headers["X-Apple-
|
79
|
+
req.headers["X-Apple-Id-Session-Id"] = @x_apple_id_session_id
|
80
80
|
end
|
81
81
|
|
82
82
|
# we use `Spaceship::TunesClient.new.handle_itc_response`
|
@@ -92,7 +92,7 @@ module Spaceship
|
|
92
92
|
req.url "https://idmsa.apple.com/appleauth/auth/verify/device/#{device_id}/securitycode"
|
93
93
|
req.headers["Accept"] = "application/json"
|
94
94
|
req.headers["scnt"] = @scnt
|
95
|
-
req.headers["X-Apple-
|
95
|
+
req.headers["X-Apple-Id-Session-Id"] = @x_apple_id_session_id
|
96
96
|
req.body = { "code" => code.to_s }.to_json
|
97
97
|
req.headers['Content-Type'] = 'application/json'
|
98
98
|
end
|
@@ -141,7 +141,7 @@ module Spaceship
|
|
141
141
|
request(:get) do |req|
|
142
142
|
req.url "https://idmsa.apple.com/appleauth/auth/2sv/trust"
|
143
143
|
req.headers["scnt"] = @scnt
|
144
|
-
req.headers["X-Apple-
|
144
|
+
req.headers["X-Apple-Id-Session-Id"] = @x_apple_id_session_id
|
145
145
|
end
|
146
146
|
# This request will fail if the user isn't added to a team on iTC
|
147
147
|
# However we don't really care, this request will still return the
|
data/lib/spaceship/version.rb
CHANGED
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.26.
|
4
|
+
version: 0.26.2
|
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-
|
12
|
+
date: 2016-05-02 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: credentials_manager
|