plivo 4.1.5 → 4.1.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +3 -0
- data/README.md +1 -1
- data/lib/plivo/utils.rb +4 -1
- data/lib/plivo/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f5e309e6aaa5ba5624906db6d4f8a981204db7fc54a7f3a3b5d2cd3da638ff70
|
4
|
+
data.tar.gz: e7fde4f3cfcde827019ef393fe3f74d26095d69701a80dd6f64a73db751f96c0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 036aeae5ea60ad91a6608b6cbbb55239f11d97114f7cb61620f10be0b5fc03df04583f280306dda4cc175718e88da779303ac59534573ca3730d6ec120ab53f2
|
7
|
+
data.tar.gz: 7318c25bff1a2ee3548fad10c056b1a9ac6002225cd9904c356d716ed7e70bec70d6f38476abd6cad61cfb19cf38d24efd97b20e0f58c989b1490284a9b4f406
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,8 @@
|
|
1
1
|
# Change Log
|
2
2
|
|
3
|
+
## [4.1.6](https://github.com/plivo/plivo-ruby/releases/tag/v4.1.6) (2018-11-26)
|
4
|
+
- Fix bignum deprecated warning in Ruby 2.4+.
|
5
|
+
|
3
6
|
## [4.1.5](https://github.com/plivo/plivo-ruby/releases/tag/v4.1.5) (2018-11-21)
|
4
7
|
- Add hangup party details to CDR. CDR filtering allowed by hangup_source and hangup_cause_code.
|
5
8
|
- Add sub-account cascade delete support.
|
data/README.md
CHANGED
data/lib/plivo/utils.rb
CHANGED
@@ -7,6 +7,9 @@ module Plivo
|
|
7
7
|
module Utils
|
8
8
|
module_function
|
9
9
|
|
10
|
+
TYPE_WHITELIST = [Integer]
|
11
|
+
TYPE_WHITELIST.push(Fixnum, Bignum) unless 1.class == Integer
|
12
|
+
|
10
13
|
def valid_account?(account_id, raise_directly = false)
|
11
14
|
valid_subaccount?(account_id, raise_directly) || valid_mainaccount?(account_id, raise_directly)
|
12
15
|
end
|
@@ -67,7 +70,7 @@ module Plivo
|
|
67
70
|
def expected_type?(param_name, expected_types, param_value)
|
68
71
|
return true if expected_types.nil?
|
69
72
|
param_value_class = param_value.class
|
70
|
-
param_value_class = Integer if
|
73
|
+
param_value_class = Integer if TYPE_WHITELIST.include? param_value_class
|
71
74
|
if expected_types.is_a? Array
|
72
75
|
return true if expected_types.include? param_value_class
|
73
76
|
raise_invalid_request("#{param_name}: Expected one of #{expected_types}"\
|
data/lib/plivo/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: plivo
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.1.
|
4
|
+
version: 4.1.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- The Plivo SDKs Team
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-11-
|
11
|
+
date: 2018-11-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|