pusher-platform 0.8.2 → 0.9.0

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: 6c315c31532269c51293733019db6440c0dd2c833f5f4dd5f8159a1228848aba
4
- data.tar.gz: cea9caa0a6b513d459ed44f1724f2bb435f98044a58a39ff3cec8c4ecec39ff1
3
+ metadata.gz: 5df1e0c1efb25d9e0a1c3cfdf36d74d93374168b6ccc8aaf6cc06e432b8c47df
4
+ data.tar.gz: ab99cbc6b42252857e5719bbdc6d8667d609e4612875b4069feb7073f6eef997
5
5
  SHA512:
6
- metadata.gz: 393669d3452ea98b54a6ed2a56bbca5fb2322ce11611e4707f8f60b28f3e406d38a5bb8a3400997ce3ce4a4bf8fd07226ead673b930821d6212e67165a54c52d
7
- data.tar.gz: 361ffc278f842c6930a18a0f092e05323921e80c7b6b6fc237363cb2bf62296052159395db1ce53d64b4c4ba8e08dfdebeac4d3816ebc56de371d259c5b4f24b
6
+ metadata.gz: 0e7027e40457c731612e810097e25e984612c0960dd3675d7f13c493d95d29bf708d4b04aa169190d2f37f1da18ff46a2f1163ca6142b69c4b5821f091f2dd96
7
+ data.tar.gz: d8f037b670eae0166895b81e6c901e465a77f62e49f7b6dc726e1889fe31742665b8f51a42215c9c827e61ff6492206ecccc954b1e4972204a43b2411427b644
@@ -103,6 +103,7 @@ module PusherPlatform
103
103
  def authenticate_using_refresh_token(refresh_token, options)
104
104
  old_refresh_token = begin
105
105
  JWT.decode(refresh_token, @key_secret, true, {
106
+ algorithm: 'HS256',
106
107
  iss: "api_keys/#{@key_id}",
107
108
  verify_iss: true,
108
109
  }).first
@@ -44,11 +44,6 @@ module PusherPlatform
44
44
  end
45
45
 
46
46
  def request(options)
47
- if options[:jwt].nil?
48
- options = options.merge(
49
- { jwt: @authenticator.generate_access_token({ su: true })[:token] }
50
- )
51
- end
52
47
  @client.request(options)
53
48
  end
54
49
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pusher-platform
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.2
4
+ version: 0.9.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Pusher
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-07-20 00:00:00.000000000 Z
11
+ date: 2018-09-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: excon
@@ -16,34 +16,28 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: 0.54.0
19
+ version: 0.62.0
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: 0.54.0
26
+ version: 0.62.0
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: jwt
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: '1.5'
34
- - - ">="
35
- - !ruby/object:Gem::Version
36
- version: 1.5.6
33
+ version: '2.1'
37
34
  type: :runtime
38
35
  prerelease: false
39
36
  version_requirements: !ruby/object:Gem::Requirement
40
37
  requirements:
41
38
  - - "~>"
42
39
  - !ruby/object:Gem::Version
43
- version: '1.5'
44
- - - ">="
45
- - !ruby/object:Gem::Version
46
- version: 1.5.6
40
+ version: '2.1'
47
41
  description:
48
42
  email: support@pusher.com
49
43
  executables: []