api-ai-ruby 1.1.1 → 1.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: fa0de4c3dcfc007615203ca9f37ae675b6a122e0
4
- data.tar.gz: 114f18a66c0bbff0437f0c4fc20198d9f921465a
3
+ metadata.gz: 4b69ad9a51f597caeaeab7e93d5cb7e30e2fc03c
4
+ data.tar.gz: 0bf0428830e1f8f97e71b79ec01c30b1d74aff04
5
5
  SHA512:
6
- metadata.gz: 57430235ee89723d5c5b793ceeb6906e229ee4e7b4712a83ede251dede502ea1dcd165a6f92677b7056d5d9cc50498aa3210ad59b048bc2207043a04936e9f69
7
- data.tar.gz: c9ce58c77dd572272e43d2e605c81c777ac2e396cde7248dabd9151eda9ee72172f59a9658a4d47b34d51719929ba469b9fff3c20b3c1b864b93e6ae3a9b7607
6
+ metadata.gz: 6fe5da387c1f98be283b266f90734a0864c25b211e6ce3eb0250542297444c10ed1e3bce7d3e778f14e912473fa07c0f686e082659e4edc43fdf0261371ffe10
7
+ data.tar.gz: 79ef1397396e801f6c35886b6248580f968125590cd61534ee5e7d3db41980f473f890260f0b7cd9adfc81aa811e79df5c05eee88bf4fcb10ad3226258e2366d
data/README.md CHANGED
@@ -11,7 +11,7 @@ Just pass correct credentials to **ApiAiRuby::Client** constructor
11
11
 
12
12
  ```ruby
13
13
  client = ApiAiRuby::Client.new(
14
- :client_access_token => 'YOUR_ACCESS_TOKEN',
14
+ :client_access_token => 'YOUR_CLIENT_ACCESS_TOKEN'
15
15
  )
16
16
  ```
17
17
  After that you can send text requests to the https://api.ai with command
@@ -78,5 +78,6 @@ More information about possible parameters can be found at https://docs.api.ai/d
78
78
  **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**)
79
79
 
80
80
 
81
+ #Changelog
81
82
 
82
-
83
+ 1.1.2 - fixed compatibility with ruby version less then 2.1.6
@@ -1,6 +1,6 @@
1
1
  module ApiAiRuby
2
2
  class Constants
3
- VERSION = '1.1.1'
3
+ VERSION = '1.1.2'
4
4
  DEFAULT_BASE_URL = 'https://api.api.ai/v1/'
5
5
  DEFAULT_API_VERSION = '20150204'
6
6
  DEFAULT_CLIENT_LANG = 'en'
@@ -17,7 +17,7 @@ module ApiAiRuby
17
17
  options[:lang] = client.api_lang
18
18
  @options = options
19
19
  @headers = {
20
- 'Authorization': 'Bearer ' + client.client_access_token,
20
+ Authorization: 'Bearer ' + client.client_access_token,
21
21
  }
22
22
  end
23
23
 
@@ -56,4 +56,4 @@ module ApiAiRuby
56
56
  end
57
57
 
58
58
  end
59
- end
59
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: api-ai-ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.1
4
+ version: 1.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - api.ai