nexmo 4.3.0 → 4.3.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,15 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 39100089701618826f373695cb54cd0d3c2dde95
4
- data.tar.gz: fec02db08356b21dd202c39b88fd06a92cb52516
2
+ !binary "U0hBMQ==":
3
+ metadata.gz: !binary |-
4
+ NGIwZDlmNDQ3OWNiOTIyMmZmY2QwNjJmMmZjZTA5NTNhZmViNWVjYw==
5
+ data.tar.gz: !binary |-
6
+ YTcwZjhmNDAzMmRlNzBmOTg3NGFjOWZiNTlhYWE5NThmNmYzZGMxYw==
5
7
  SHA512:
6
- metadata.gz: 52979a00c3fcbc1b52fd7c84b51b0b2fa312a8543c6a15585fd037ae6f35479016e67cf1176f32be71ce57a91caf58ee72e98aea93c906de4256bbbeda874aa3
7
- data.tar.gz: 67c7ff10e27a0862833c95483f79bf16f1b39b0b0d1423bb7a509e54e946359d15556153ca95956cf15a964314d59595eb99d8e8a3bae196f9c7f20ea887a4d0
8
+ metadata.gz: !binary |-
9
+ NDVjY2MyODk1Mzc0NjNjOTA3ZWZmOTgyNDc1OTI5YzkwMDY2NDAxYjUyMTNk
10
+ NTY2ZTI0MDgzNjNiMjYwNDBlYzlkYWYzOWM1YzVkOTdlNzQ4OWUwYzFlM2M5
11
+ ODI5Y2IwZTAyY2VmZDU1Y2FiMjcyZTRkNjEwY2MzYWI2ZmE1YzI=
12
+ data.tar.gz: !binary |-
13
+ NzAyZTY1YmMyNTMyNGJhNTIyZmY0YjlhNjU0Mjk4YzU4NzQ0NDAwZTEzYzU5
14
+ YzliYTZhMmU4MGNhY2MwZThhOGFjZWY3NThjZmUwNzdiZDIxMGM0ZTUzMzIw
15
+ M2Y0N2YwYzE0NTY4ZDQyY2U4Y2VjZmQzOGJkODZjMTcyYmY1ZjQ=
@@ -6,7 +6,7 @@ module Nexmo
6
6
  def self.check(params, secret)
7
7
  params = params.dup
8
8
 
9
- signature = params.delete(:sig)
9
+ signature = params.delete('sig')
10
10
 
11
11
  ::JWT.secure_compare(signature, digest(params, secret))
12
12
  end
@@ -1,3 +1,3 @@
1
1
  module Nexmo
2
- VERSION = '4.3.0'
2
+ VERSION = '4.3.1'
3
3
  end
@@ -485,7 +485,7 @@ describe 'Nexmo::Client' do
485
485
 
486
486
  describe 'check_signature method' do
487
487
  it 'returns true if the signature in the given params is correct' do
488
- params = {'a': '1', 'b': '2', 'timestamp': '1461605396', 'sig': '6af838ef94998832dbfc29020b564830'}
488
+ params = {'a' => '1', 'b' => '2', 'timestamp' => '1461605396', 'sig' => '6af838ef94998832dbfc29020b564830'}
489
489
 
490
490
  client = Nexmo::Client.new(key: @api_key, secret: @api_secret, signature_secret: 'secret')
491
491
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: nexmo
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.3.0
4
+ version: 4.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tim Craft
@@ -14,56 +14,56 @@ dependencies:
14
14
  name: jwt
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ">="
17
+ - - ! '>='
18
18
  - !ruby/object:Gem::Version
19
19
  version: '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
26
  version: '0'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rake
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - "~>"
31
+ - - ~>
32
32
  - !ruby/object:Gem::Version
33
33
  version: '10.1'
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - "~>"
38
+ - - ~>
39
39
  - !ruby/object:Gem::Version
40
40
  version: '10.1'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: webmock
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - "~>"
45
+ - - ~>
46
46
  - !ruby/object:Gem::Version
47
47
  version: '1.18'
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - "~>"
52
+ - - ~>
53
53
  - !ruby/object:Gem::Version
54
54
  version: '1.18'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: minitest
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - "~>"
59
+ - - ~>
60
60
  - !ruby/object:Gem::Version
61
61
  version: '5.0'
62
62
  type: :development
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
- - - "~>"
66
+ - - ~>
67
67
  - !ruby/object:Gem::Version
68
68
  version: '5.0'
69
69
  description: Nexmo Client Library for Ruby
@@ -96,17 +96,17 @@ require_paths:
96
96
  - lib
97
97
  required_ruby_version: !ruby/object:Gem::Requirement
98
98
  requirements:
99
- - - ">="
99
+ - - ! '>='
100
100
  - !ruby/object:Gem::Version
101
101
  version: 1.9.3
102
102
  required_rubygems_version: !ruby/object:Gem::Requirement
103
103
  requirements:
104
- - - ">="
104
+ - - ! '>='
105
105
  - !ruby/object:Gem::Version
106
106
  version: '0'
107
107
  requirements: []
108
108
  rubyforge_project:
109
- rubygems_version: 2.4.5.1
109
+ rubygems_version: 2.6.3
110
110
  signing_key:
111
111
  specification_version: 4
112
112
  summary: This is the Ruby client library for Nexmo's API. To use it you'll need a