luis 0.1.1 → 0.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: 644f4ea3032205c0ebac56d6f8a33dbf84dbb7c8
4
- data.tar.gz: 4e6970743efa0415f129869f3d8e7d774fd68de3
3
+ metadata.gz: 6957d22d39e0dabb6a47381933d508edbc0c70d4
4
+ data.tar.gz: e511c77c5ea22ab1a82f977b9eb279293f5afeac
5
5
  SHA512:
6
- metadata.gz: 968280a0b58392f9a2306e2e52d766134b1fd8f0a81742f2b35ab819962fef31e7c728c7b3358de7479dcc65a564ec4ff4ce0e1bdeffbdd0eecaf9c38cb75be6
7
- data.tar.gz: 6179aad7009b9593b95e806337bae4a1c7883e07cd3b91b2da292cee0d652285cf67cbbeb1aef59358ef9b9830e2ddd92722aa208c76a10e383bb19c62329a6f
6
+ metadata.gz: 31b33fa1bffea0098e0ace08d98656e6faf6873448a896d89910679283f6fc113b9f95ec29940b5e10f158d66e96bb1060af9de2787b4627f2ff93aafbd4dee6
7
+ data.tar.gz: d8b307d5b5e22332915a25d4481795b6d5b49369bd94b864aec0cb75a2019f3b8c0ea6931b5912ec80c3c43a00d37110961566711e081aaf6dfac5fbb055956d
@@ -0,0 +1,51 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://westus.api.cognitive.microsoft.com/luis/v2.0/apps/1234?q=Bus%20time&subscription-key=456
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ Accept-Encoding:
11
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
12
+ Accept:
13
+ - "*/*"
14
+ User-Agent:
15
+ - Ruby
16
+ response:
17
+ status:
18
+ code: 200
19
+ message: OK
20
+ headers:
21
+ Cache-Control:
22
+ - no-store, proxy-revalidate, no-cache, max-age=0, private
23
+ Pragma:
24
+ - no-cache
25
+ Content-Length:
26
+ - '532'
27
+ Content-Type:
28
+ - application/json; charset=utf-8
29
+ X-Powered-By:
30
+ - ASP.NET
31
+ Apim-Request-Id:
32
+ - 2b0876eb-0318-4986-af11-ec75686c933e
33
+ Strict-Transport-Security:
34
+ - max-age=31536000; includeSubDomains; preload
35
+ X-Content-Type-Options:
36
+ - nosniff
37
+ Date:
38
+ - Sat, 16 Sep 2017 20:13:17 GMT
39
+ body:
40
+ encoding: UTF-8
41
+ string: "{\r\n \"query\": \"Bus time\",\r\n \"topScoringIntent\": {\r\n \"intent\":
42
+ \"getBusTimeTable\",\r\n \"score\": 0.359162629,\r\n \"actions\": [\r\n
43
+ \ {\r\n \"triggered\": true,\r\n \"name\": \"getBusTimeTable\",\r\n
44
+ \ \"parameters\": [\r\n {\r\n \"name\": \"stop\",\r\n
45
+ \ \"type\": \"BusStop\",\r\n \"required\": false,\r\n
46
+ \ \"value\": null\r\n }\r\n ]\r\n }\r\n ]\r\n
47
+ \ },\r\n \"entities\": [],\r\n \"dialog\": {\r\n \"contextId\": \"5634e7bd-1604-4c1f-b56a-928ebfd416b7\",\r\n
48
+ \ \"status\": \"Finished\"\r\n }\r\n}"
49
+ http_version:
50
+ recorded_at: Sat, 16 Sep 2017 20:13:19 GMT
51
+ recorded_with: VCR 3.0.3
data/lib/luis.rb CHANGED
@@ -17,7 +17,7 @@ module Luis
17
17
  API_BASE_URI = 'https://westus.api.cognitive.microsoft.com/luis/v2.0/apps/%{id}'.freeze
18
18
 
19
19
  def self.api_uri
20
- uri = format(API_BASE_URI, id: id)
20
+ uri = API_BASE_URI % {id: id}
21
21
  uri += '/preview' if is_preview_mod
22
22
  uri
23
23
  end
data/lib/luis/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Luis
2
- VERSION = '0.1.1'.freeze
2
+ VERSION = '0.1.2'.freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: luis
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Aboobacker MK
@@ -125,6 +125,7 @@ files:
125
125
  - Rakefile
126
126
  - bin/console
127
127
  - bin/setup
128
+ - fixtures/vcr_cassettes/bus_time.yml
128
129
  - lib/luis.rb
129
130
  - lib/luis/action.rb
130
131
  - lib/luis/base.rb