Skip to content

Commit

Permalink
[*] 1.2.2 - version update
Browse files Browse the repository at this point in the history
  • Loading branch information
Gugic committed Oct 14, 2016
1 parent f3ece8d commit 3c3c59f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
11 changes: 6 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -140,11 +140,6 @@ uer.retrieve('contacts') # will return current state of user entity
uer.delete('contacts') # will remove user entities for given session

```


#Error handling
**ApiAiRuby::Client** currently able to raise two kind of errors: **ApiAiRuby::ClientError** (due to configuration mismatch) and **ApiAiRuby::RequestError** in case of something goes wrong during request. For both kind of errors you can get **error.message** (as usual) and **ApiAiRuby::RequestError** can additionally give you code of server error (you can get it with **error.code**)

#Timeouts
**ApiAiRuby::Client** uses the [http gem](https://github.com/httprb/http) under the hood. You can use ```timeout_options``` on the client to set these.
```ruby
Expand All @@ -160,8 +155,14 @@ ApiAiRuby::Client.new(

Please see the [httprb wiki on timeouts](https://github.com/httprb/http/wiki/Timeouts) for more information.


#Error handling
**ApiAiRuby::Client** currently able to raise two kind of errors: **ApiAiRuby::ClientError** (due to configuration mismatch) and **ApiAiRuby::RequestError** in case of something goes wrong during request. For both kind of errors you can get **error.message** (as usual) and **ApiAiRuby::RequestError** can additionally give you code of server error (you can get it with **error.code**)


#Changelog

* 1.2.2 - added configurable timeouts for requests (thanks [bramski](https://github.com/bramski))
* 1.2.1 - fixed UTF-8 in text-requests
* 1.2.0 - added configurable session_id and full userEntities support
* 1.1.4 - removed unused dependency and updated default API version
Expand Down
2 changes: 1 addition & 1 deletion lib/api-ai-ruby/constants.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module ApiAiRuby
class Constants
VERSION = '1.2.1'
VERSION = '1.2.2'
DEFAULT_BASE_URL = 'https://api.api.ai/v1/'
DEFAULT_API_VERSION = '20150910'
DEFAULT_CLIENT_LANG = 'en'
Expand Down

0 comments on commit 3c3c59f

Please sign in to comment.