spaceship 0.5.2 → 0.5.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/spaceship/tunes/tunes_client.rb +9 -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: d9e7c86284081eeffdd0540b82590a9ea7be4d91
|
4
|
+
data.tar.gz: bd5656b774947febdf81d4d9163645881a99275f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fe3bf46a3555cac17a1a2088cdc390ca51567bee7162ffec06ae4b09b99d654ad91c36ebb78551ef3ba95283b63209486468a3f00f653fb2db0f76da414d337f
|
7
|
+
data.tar.gz: 17eb31080172532b310d6c8293285fd5439182bab882b89558a16bc16072be4e27409648a378037fea7e6763a622f6e41135385591342982016e74c610c87ef7
|
@@ -46,7 +46,7 @@ module Spaceship
|
|
46
46
|
# - myacinfo
|
47
47
|
# - woinst
|
48
48
|
# - wosid
|
49
|
-
|
49
|
+
# - itctx
|
50
50
|
begin
|
51
51
|
re = response['Set-Cookie']
|
52
52
|
|
@@ -59,14 +59,18 @@ module Spaceship
|
|
59
59
|
|
60
60
|
@cookie = to_use.join(';')
|
61
61
|
rescue
|
62
|
-
|
63
|
-
raise InvalidUserCredentialsError.new, response
|
62
|
+
raise ITunesConnectError.new, [response.body, response['Set-Cookie']].join("\n")
|
64
63
|
end
|
65
64
|
|
66
65
|
return @client
|
67
66
|
else
|
68
|
-
|
69
|
-
|
67
|
+
if (response.body || "").include?("You have successfully signed out")
|
68
|
+
# User Credentials are wrong
|
69
|
+
raise InvalidUserCredentialsError.new, "Invalid username and password combination. Used '#{user}' as the username."
|
70
|
+
else
|
71
|
+
info = [response.body, response['Set-Cookie']]
|
72
|
+
raise ITunesConnectError.new, info.join("\n")
|
73
|
+
end
|
70
74
|
end
|
71
75
|
end
|
72
76
|
|
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.5.
|
4
|
+
version: 0.5.3
|
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: 2015-08-
|
12
|
+
date: 2015-08-19 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: credentials_manager
|