spaceship 0.32.1 → 0.32.2

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: 91c8fab433e489c87af8e8e137f0406fb1cbb50a
4
- data.tar.gz: ff5d2b43c1720dbe615587fe7a57648a2dfc3837
3
+ metadata.gz: 010a554b4530a8b685e143222a21bfd705f8caab
4
+ data.tar.gz: a4b26002dc65587712276a58a27467fc9f30983c
5
5
  SHA512:
6
- metadata.gz: 0d75a95ac10c05f533f0af832ca655c0482b511b6ee55d7fcd3da49553b937072eb36aa9d7c4d7f8c6f6ed01972f2ebfaf7002e11f95f77a6c9c5550be9ab1c9
7
- data.tar.gz: dcc9bdc089b6774be783fb4768ce4cb7b40ed12610921a211dcafcabae4bd9b37abfc10fc3187e64ab125a413b0d5f2aee9ad416b5c77e8926ca541a07228b05
6
+ metadata.gz: 15c8c9e26278b4a2f3eee1b4757c3b6d7c42a3cc1d56009d10969ede7cafb5f8e5e66131786c02a5fa771c060b72d8db73bbe688b5d4f08872a12bd55caa8b35
7
+ data.tar.gz: 70ace5af593f571835f8827892e79f557f3bf2d3b3547144917524664449a8c4f60b53a18c7d8c5ddd64030426739a6b89cc1ce7ea879d36058bc3db6e031bc2
@@ -46,10 +46,10 @@ module Spaceship
46
46
  end
47
47
  end
48
48
 
49
- def to_json
49
+ def to_json(*a)
50
50
  h = @hash.dup
51
51
  h.delete(:application)
52
- h.to_json
52
+ h.to_json(*a)
53
53
  end
54
54
  end
55
55
 
@@ -293,7 +293,8 @@ module Spaceship
293
293
  when 200
294
294
  return response
295
295
  else
296
- if response["Location"] == "/auth" # redirect to 2 step auth page
296
+ location = response["Location"]
297
+ if location && URI.parse(location).path == "/auth" # redirect to 2 step auth page
297
298
  handle_two_step(response)
298
299
  return true
299
300
  elsif (response.body || "").include?('invalid="true"')
@@ -1,4 +1,4 @@
1
1
  module Spaceship
2
- VERSION = "0.32.1".freeze
2
+ VERSION = "0.32.2".freeze
3
3
  DESCRIPTION = "Ruby library to access the Apple Dev Center and iTunes Connect".freeze
4
4
  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.32.1
4
+ version: 0.32.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-09-01 00:00:00.000000000 Z
12
+ date: 2016-09-16 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: credentials_manager