Skip to content

Commit 3c3c59f

Browse files
committed
[*] 1.2.2 - version update
1 parent f3ece8d commit 3c3c59f

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

README.md

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -140,11 +140,6 @@ uer.retrieve('contacts') # will return current state of user entity
140140
uer.delete('contacts') # will remove user entities for given session
141141

142142
```
143-
144-
145-
#Error handling
146-
**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**)
147-
148143
#Timeouts
149144
**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.
150145
```ruby
@@ -160,8 +155,14 @@ ApiAiRuby::Client.new(
160155

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

158+
159+
#Error handling
160+
**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**)
161+
162+
163163
#Changelog
164164

165+
* 1.2.2 - added configurable timeouts for requests (thanks [bramski](https://github.com/bramski))
165166
* 1.2.1 - fixed UTF-8 in text-requests
166167
* 1.2.0 - added configurable session_id and full userEntities support
167168
* 1.1.4 - removed unused dependency and updated default API version

lib/api-ai-ruby/constants.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module ApiAiRuby
22
class Constants
3-
VERSION = '1.2.1'
3+
VERSION = '1.2.2'
44
DEFAULT_BASE_URL = 'https://api.api.ai/v1/'
55
DEFAULT_API_VERSION = '20150910'
66
DEFAULT_CLIENT_LANG = 'en'

0 commit comments

Comments
 (0)