twilio-ruby 4.10.0 → 4.11.0
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 +4 -4
- data/CHANGES.md +7 -0
- data/lib/twilio-ruby/rest/base_client.rb +3 -2
- data/lib/twilio-ruby/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 74ea6d188421ecf8b6bb298371c94fbeb44c93cb
|
|
4
|
+
data.tar.gz: dafbcb00f7c3e2de0a695eaf3cba586a07d355ff
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: f7b008f9a9976652b7135708d0068746f37f3fb1c86af1d7c03d514b5da51dfc4ecd4bcaaa4d851f4a11297e1cf12659e74bcda3013731e7098f7555bb690337
|
|
7
|
+
data.tar.gz: 85def49cf0e4434070513d8441ae99789cf14740f9f068579f18213f27fffadce66e9072cf12c51d6b4e2496703e88414039ea9a60aa31ee18ed64134e243acc
|
data/CHANGES.md
CHANGED
|
@@ -26,8 +26,9 @@ module Twilio
|
|
|
26
26
|
options[:host] ||= self.class.host
|
|
27
27
|
@config = Twilio::Util::ClientConfig.new options
|
|
28
28
|
|
|
29
|
-
@
|
|
29
|
+
@username = args[0] || Twilio.account_sid
|
|
30
30
|
@auth_token = args[1] || Twilio.auth_token
|
|
31
|
+
@account_sid = (args.size > 2 && args[2].is_a?(String) ? args[2] : args[0]) || Twilio.account_sid
|
|
31
32
|
if @account_sid.nil? || @auth_token.nil?
|
|
32
33
|
raise ArgumentError, 'Account SID and auth token are required'
|
|
33
34
|
end
|
|
@@ -49,7 +50,7 @@ module Twilio
|
|
|
49
50
|
# build the full path unless already given
|
|
50
51
|
path = build_full_path(path, params, method) unless args[1]
|
|
51
52
|
request = method_class.new(path, HTTP_HEADERS)
|
|
52
|
-
request.basic_auth(@
|
|
53
|
+
request.basic_auth(@username, @auth_token)
|
|
53
54
|
request.form_data = params if [:post, :put].include?(method)
|
|
54
55
|
connect_and_send(request)
|
|
55
56
|
end
|
data/lib/twilio-ruby/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: twilio-ruby
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 4.
|
|
4
|
+
version: 4.11.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Andrew Benton
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2016-
|
|
11
|
+
date: 2016-02-05 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: multi_json
|
|
@@ -305,7 +305,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
305
305
|
version: '0'
|
|
306
306
|
requirements: []
|
|
307
307
|
rubyforge_project:
|
|
308
|
-
rubygems_version: 2.
|
|
308
|
+
rubygems_version: 2.0.14
|
|
309
309
|
signing_key:
|
|
310
310
|
specification_version: 4
|
|
311
311
|
summary: A simple library for communicating with the Twilio REST API, building TwiML,
|