twilio-ruby 4.10.0 → 4.11.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
  SHA1:
3
- metadata.gz: f56b075ef5818ca2ced57c7d290b906ecb127ff4
4
- data.tar.gz: 015897333d39b31d3c686a029ce03204176e3108
3
+ metadata.gz: 74ea6d188421ecf8b6bb298371c94fbeb44c93cb
4
+ data.tar.gz: dafbcb00f7c3e2de0a695eaf3cba586a07d355ff
5
5
  SHA512:
6
- metadata.gz: 0db9075c7cc7c104421e1de7e9723da9e3ac97a7eab52371fec20e1e47576e92ab91c65f1031d404f621871097550ef55c33efd01c86d792913fac392820f20f
7
- data.tar.gz: c22a5908735e2c4e9cac22d45cd01d13c30c3f042cb33ef30f42ddf872aa1878dab19db97870f2576bb14fb5eecb8f9f2dce78d00492b868f243bf3c6a5a44be
6
+ metadata.gz: f7b008f9a9976652b7135708d0068746f37f3fb1c86af1d7c03d514b5da51dfc4ecd4bcaaa4d851f4a11297e1cf12659e74bcda3013731e7098f7555bb690337
7
+ data.tar.gz: 85def49cf0e4434070513d8441ae99789cf14740f9f068579f18213f27fffadce66e9072cf12c51d6b4e2496703e88414039ea9a60aa31ee18ed64134e243acc
data/CHANGES.md CHANGED
@@ -1,6 +1,13 @@
1
1
  twilio-ruby changelog
2
2
  =====================
3
3
 
4
+ Version 4.11.0
5
+ -------------
6
+
7
+ Released January 28, 2016:
8
+
9
+ - Add support for alternative auth (eg. Keys)
10
+
4
11
  Version 4.10.0
5
12
  -------------
6
13
 
@@ -26,8 +26,9 @@ module Twilio
26
26
  options[:host] ||= self.class.host
27
27
  @config = Twilio::Util::ClientConfig.new options
28
28
 
29
- @account_sid = args[0] || Twilio.account_sid
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(@account_sid, @auth_token)
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
@@ -1,3 +1,3 @@
1
1
  module Twilio
2
- VERSION = '4.10.0'
2
+ VERSION = '4.11.0'
3
3
  end
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.10.0
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-01-28 00:00:00.000000000 Z
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.4.8
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,