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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f121c178bc8acfe77e4aad9c923b76b5d22088ad
4
- data.tar.gz: 90acbe266aab2309249da1b4bfd0df7fa323b07f
3
+ metadata.gz: d9e7c86284081eeffdd0540b82590a9ea7be4d91
4
+ data.tar.gz: bd5656b774947febdf81d4d9163645881a99275f
5
5
  SHA512:
6
- metadata.gz: 26cc2e53bf27fcb99e71fb65c8cca163397c95fc2561c16095c09c4c3fe02b1859ee644ac9d3a665a328ad9c6fd6a3e0cf57ac41b696a53d17641fb3be12f7f9
7
- data.tar.gz: c4c668f88b8c1f1f035aa581cdf228f0b1aec5e03642bdbe280dc694f016c91d2e24209fbe641a987935fcd41ea7018d55409d6bfcc0d4e1237d4489ec5465d1
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
- # User Credentials are wrong
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
- # User Credentials are wrong
69
- raise InvalidUserCredentialsError.new, response
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
 
@@ -1,3 +1,3 @@
1
1
  module Spaceship
2
- VERSION = "0.5.2"
2
+ VERSION = "0.5.3"
3
3
  end
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.2
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-18 00:00:00.000000000 Z
12
+ date: 2015-08-19 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: credentials_manager