Skip to content

Commit

Permalink
Bump library to 3.10.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Kevin Burke committed Feb 2, 2013
1 parent 2c0dca2 commit 517bd12
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 10 deletions.
12 changes: 11 additions & 1 deletion CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,24 @@
twilio-php Changelog
====================

Version 3.10.0
--------------

Released on February 2, 2013

- Uses the [HTTP status code for error reporting][http], instead of the
`status` attribute of the JSON response. (Reporter: [Ruud Kamphuis](/ruudk))

[http]: https://github.com/twilio/twilio-php/pull/116

Version 3.9.1
-------------

Released on December 30, 2012

- Adds a `$last_response` parameter to the `$client` object that can be
used to [retrieve the raw API response][last-response]. (Reporter: [David
Jones](/dxjones)
Jones](/dxjones))

[last-response]: https://github.com/twilio/twilio-php/pull/112/files

Expand Down
6 changes: 3 additions & 3 deletions Services/Twilio.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ function Services_Twilio_autoload($className) {
*/
class Services_Twilio extends Services_Twilio_Resource
{
const USER_AGENT = 'twilio-php/3.9.1';
const USER_AGENT = 'twilio-php/3.10.0';

protected $http;
protected $retryAttempts;
Expand Down Expand Up @@ -213,8 +213,8 @@ private function _processResponse($response)
return $decoded;
}
throw new Services_Twilio_RestException(
$status,
isset($decoded->message) ? $decoded->message : '',
(int)$decoded->status,
$decoded->message,
isset($decoded->code) ? $decoded->code : null,
isset($decoded->more_info) ? $decoded->more_info : null
);
Expand Down
4 changes: 2 additions & 2 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,9 @@
# built documents.
#
# The short X.Y version.
version = '3.9'
version = '3.10'
# The full version, including alpha/beta/rc tags.
release = '3.9.1'
release = '3.10.0'

# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.
Expand Down
2 changes: 1 addition & 1 deletion docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
Status
=======

This documentation is for version 3.9.1 of `twilio-php <https://www.github.com/twilio/twilio-php>`_.
This documentation is for version 3.10.0 of `twilio-php <https://www.github.com/twilio/twilio-php>`_.

Quickstart
============
Expand Down
6 changes: 3 additions & 3 deletions package.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,12 @@
require_once 'PEAR/PackageFileManager2.php';
PEAR::setErrorHandling(PEAR_ERROR_DIE);

$api_version = '3.9.1';
$api_version = '3.10.0';
$api_state = 'stable';

$release_version = '3.9.1';
$release_version = '3.10.0';
$release_state = 'stable';
$release_notes = 'Add $last_response attribute to the $client';
$release_notes = 'Use HTTP status code for error reporting';

$description = <<<DESC
A SDK (or helper library, as we're calling them) for PHP developers to write
Expand Down

0 comments on commit 517bd12

Please sign in to comment.