apple_id 1.6.1 → 1.6.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
  SHA256:
3
- metadata.gz: 105f579320fe9389ea56197173a6e9c05bad1a00190f19e1a5e12e3936480484
4
- data.tar.gz: 8e2574e23b77276c585af3221f9c2ae9aa96ea760155f83b75dc8ee6f0710fa0
3
+ metadata.gz: b4d36a45a0411d643df4039d586cdee886596f7d2424be0b6d26be9be2b84880
4
+ data.tar.gz: d48fbf6ce3c19c9670877c948f578edf6848e4eb922e08ddfff680e9e7273a86
5
5
  SHA512:
6
- metadata.gz: 7a46eb77c3def8587a1f23594e6c3d23de8cce19c763525d55c65c21e629983a0b507c95d24f7ca66f0dc092843b3ac8a592e0cce73cf9b98f67578481a956a7
7
- data.tar.gz: 90c8814396990451e89ff3ebf2eef05035e48e77c719a7a0c06a38adc5ea66d7a01fe6a80bef293c4a65ad4133c90849ab2130536d6c272685149703b968fb69
6
+ metadata.gz: d60174a681eb45c3f8d28b68f8412eeb44162cb78d39e469074d331f56bf77df83f99f42fc1cb90ec0a1bdd96288c979cfd9262a2594bcc746634e5e6013c9ed
7
+ data.tar.gz: aaaa914bbe0752ac7ba735df24781891e0809efd0ce786346829fedd0ea0cdcd7b76a7f45f06c1456e121a49f1d94f3b104f52d22988b5ff1aa887c404695cb2
data/CHANGELOG.md CHANGED
@@ -1,5 +1,18 @@
1
1
  ## [Unreleased]
2
2
 
3
+ ## [1.6.2] - 2022-10-14
4
+
5
+ ### Fixed
6
+
7
+ - stringify jwt secret, faraday does not do so automatically https://github.com/nov/apple_id/commit/660ba5f8036279b111abc75a2708b945d4ab0be9
8
+
9
+ ## [1.6.1] - 2022-10-14
10
+
11
+ ### Fixed
12
+
13
+ - fix json response handling https://github.com/nov/apple_id/commit/3b6199b56de2eda0b35fcb13a76438916961ba47
14
+
15
+
3
16
  ## [1.6.0] - 2022-10-09
4
17
 
5
18
  ### Added
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.6.1
1
+ 1.6.3
@@ -34,7 +34,7 @@ module AppleID
34
34
  exp: 1.minutes.from_now
35
35
  )
36
36
  jwt.kid = key_id
37
- jwt.sign(private_key)
37
+ jwt.sign(private_key).to_s
38
38
  end
39
39
 
40
40
  def setup_required_scope(scopes)
@@ -52,6 +52,8 @@ module AppleID
52
52
  def handle_error_response(response)
53
53
  error = response.body.with_indifferent_access
54
54
  raise Error.new(response.status, error)
55
+ rescue Faraday::ParsingError, NoMethodError
56
+ raise Error.new(response.status, error: 'Unknown', error_description: response.body)
55
57
  end
56
58
  end
57
59
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: apple_id
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.6.1
4
+ version: 1.6.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - nov
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-10-14 00:00:00.000000000 Z
11
+ date: 2022-10-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: json-jwt