twilio-ruby 3.6.0 → 3.7.0
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +3 -2
- data/lib/twilio-ruby/rest/client.rb +3 -2
- data/lib/twilio-ruby/version.rb +1 -1
- data/twilio-ruby.gemspec +1 -1
- metadata +7 -7
data/README.md
CHANGED
@@ -144,7 +144,8 @@ This will print the following (except for the whitespace):
|
|
144
144
|
|
145
145
|
## More Information
|
146
146
|
|
147
|
-
There are more detailed examples in the included [examples
|
147
|
+
There are more detailed examples in the included [examples][examples]
|
148
|
+
directory.
|
148
149
|
|
149
150
|
Full [API documentation][documentation], as well as an [upgrade guide][upgrade]
|
150
151
|
for users of the old twiliolib gem, is available in the
|
@@ -152,7 +153,7 @@ for users of the old twiliolib gem, is available in the
|
|
152
153
|
|
153
154
|
[capability]:https://github.com/twilio/twilio-ruby/wiki/Capability
|
154
155
|
[builder]:http://builder.rubyforge.org/
|
155
|
-
[examples]:https://github.com/twilio/twilio-ruby/blob/master/examples
|
156
|
+
[examples]:https://github.com/twilio/twilio-ruby/blob/master/examples
|
156
157
|
[documentation]:https://github.com/twilio/twilio-ruby/wiki/Documentation
|
157
158
|
[upgrade]:https://github.com/twilio/twilio-ruby/wiki/UpgradeGuide
|
158
159
|
[wiki]:https://github.com/twilio/twilio-ruby/wiki
|
@@ -47,6 +47,7 @@ module Twilio
|
|
47
47
|
|
48
48
|
HTTP_HEADERS = {
|
49
49
|
'Accept' => 'application/json',
|
50
|
+
'Accept-Charset' => 'utf-8',
|
50
51
|
'User-Agent' => "twilio-ruby/#{Twilio::VERSION}",
|
51
52
|
}
|
52
53
|
|
@@ -211,13 +212,13 @@ module Twilio
|
|
211
212
|
begin
|
212
213
|
response = @connection.request request
|
213
214
|
@last_response = response
|
214
|
-
object = MultiJson.decode response.body if response.body
|
215
215
|
if response.kind_of? Net::HTTPServerError
|
216
|
-
raise Twilio::REST::ServerError
|
216
|
+
raise Twilio::REST::ServerError
|
217
217
|
end
|
218
218
|
rescue Exception
|
219
219
|
if retries_left > 0 then retries_left -= 1; retry else raise end
|
220
220
|
end
|
221
|
+
object = MultiJson.load response.body if response.body
|
221
222
|
if response.kind_of? Net::HTTPClientError
|
222
223
|
raise Twilio::REST::RequestError.new object['message'], object['code']
|
223
224
|
end
|
data/lib/twilio-ruby/version.rb
CHANGED
data/twilio-ruby.gemspec
CHANGED
@@ -15,7 +15,7 @@ Gem::Specification.new do |s|
|
|
15
15
|
s.files = `git ls-files`.split("\n")
|
16
16
|
s.test_files = Dir['test/**/*.rb']
|
17
17
|
|
18
|
-
s.add_dependency('multi_json', '>= 1.0
|
18
|
+
s.add_dependency('multi_json', '>= 1.3.0')
|
19
19
|
s.add_dependency('builder', '>= 2.1.2')
|
20
20
|
s.add_dependency('jwt', '>= 0.1.2')
|
21
21
|
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: twilio-ruby
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 27
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 3
|
8
|
-
-
|
8
|
+
- 7
|
9
9
|
- 0
|
10
|
-
version: 3.
|
10
|
+
version: 3.7.0
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Andrew Benton
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2012-
|
18
|
+
date: 2012-05-02 00:00:00 -07:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|
@@ -26,12 +26,12 @@ dependencies:
|
|
26
26
|
requirements:
|
27
27
|
- - ">="
|
28
28
|
- !ruby/object:Gem::Version
|
29
|
-
hash:
|
29
|
+
hash: 27
|
30
30
|
segments:
|
31
31
|
- 1
|
32
|
-
- 0
|
33
32
|
- 3
|
34
|
-
|
33
|
+
- 0
|
34
|
+
version: 1.3.0
|
35
35
|
type: :runtime
|
36
36
|
version_requirements: *id001
|
37
37
|
- !ruby/object:Gem::Dependency
|