aws-lex-conversation 6.1.0 → 6.1.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5bbaa290608e0035207d3fbf6b53c862f36c95e0a07012a562e18ff21c6b3f3f
4
- data.tar.gz: a79cff690a0d2419de8f859688f43881cf9d67e40756972afde597196ba7ac64
3
+ metadata.gz: f15c999ea65d5d749443fbed6e0871abe69ffa65d399febdd2900d5d99b9730c
4
+ data.tar.gz: 21165febaf008f32900422e98dffa448dc6caefade98908c5dc6e0b32e97cab9
5
5
  SHA512:
6
- metadata.gz: 22e3b48931497c44e65d71834379ccd37e9f5c08ffc8713b4bfd7dfefdbc2e02f4d46aea8cd7e2a180b5537a80c9dbeee53eb3817f82755b37d4b1698d730a58
7
- data.tar.gz: 71a0fe45f60e828b51cefd0ab52901ca06691377428eb19ff0c82623cfa85a603454b318f483fed138694889a3dd77dbf15b4c9a525f8338a8c379bf26345074
6
+ metadata.gz: a6a2fbd9f33532e9e73bd130bd42983ebc1bc8398c9425ac9f8d82f12d55e941d8979bdc498341a85a99462f74b0de5a42afea61ad15422c0b0032d55d8fd207
7
+ data.tar.gz: 929adca898e5825a5eb7b9261ad78647487a9d452e66d83c06035f3c0fc564ae01035f6df8143e201ea12db976144980c04d7b1f842deb60ccbc1b8fd7c537a1
data/CHANGELOG.md CHANGED
@@ -1,11 +1,16 @@
1
+ # 6.1.1 - Sept 22, 2021
2
+
3
+ * renamed `maximum_elicitations` to `max_retries` and made it backwards compatible to make the param name clear, by default this value is zero, allowing each slot to elicit only once
4
+
1
5
  # 6.1.0 - Sept 7, 2021
6
+
2
7
  Added helper methods for clearing active contexts
8
+
3
9
  ```ruby
4
10
  conversation.clear_context!(name: 'test') # clears this specific active context
5
11
  conversation.clear_all_contexts! # clears all current active contexts
6
12
  ```
7
13
 
8
-
9
14
  # 6.0.0 - Sept 7, 2021
10
15
 
11
16
  * **breaking change** - Modify `Aws::Lex::Conversation::Type::Base#computed_property` to accept a block instead of a callable argument. This is an internal class and should not require any application-level changes.
@@ -63,6 +68,7 @@ it 'creates an event' do
63
68
  expect(event).to include_session_values(username: 'jane.doe')
64
69
  end
65
70
  ```
71
+
66
72
  * Add a few convenience methods to `Aws::Lex::Conversation` instances for dealing with active contexts:
67
73
  - `#active_context(name:)`:
68
74
 
@@ -6,7 +6,7 @@ module Aws
6
6
  module Slot
7
7
  class Elicitation
8
8
  attr_accessor :name, :elicit, :messages, :follow_up_messages,
9
- :fallback, :maximum_elicitations, :conversation
9
+ :fallback, :max_retries, :conversation
10
10
 
11
11
  def initialize(opts = {})
12
12
  self.name = opts.fetch(:name)
@@ -14,7 +14,7 @@ module Aws
14
14
  self.messages = opts.fetch(:messages)
15
15
  self.follow_up_messages = opts.fetch(:follow_up_messages) { opts.fetch(:messages) }
16
16
  self.fallback = opts[:fallback]
17
- self.maximum_elicitations = opts.fetch(:maximum_elicitations) { 0 }
17
+ self.max_retries = opts[:max_retries] || opts[:maximum_elicitations] || 0
18
18
  end
19
19
 
20
20
  def elicit!
@@ -53,9 +53,7 @@ module Aws
53
53
  end
54
54
 
55
55
  def maximum_elicitations?
56
- return false if maximum_elicitations.zero?
57
-
58
- elicitation_attempts > maximum_elicitations
56
+ elicitation_attempts > max_retries
59
57
  end
60
58
 
61
59
  def first_elicitation?
@@ -32,7 +32,7 @@ module Aws
32
32
  def value
33
33
  raise TypeError, 'use values for List-type slots' if shape.list?
34
34
 
35
- lex_value.interpreted_value
35
+ lex_value&.interpreted_value
36
36
  end
37
37
 
38
38
  # takes an array of slot values
@@ -3,7 +3,7 @@
3
3
  module Aws
4
4
  module Lex
5
5
  class Conversation
6
- VERSION = '6.1.0'
6
+ VERSION = '6.1.1'
7
7
  end
8
8
  end
9
9
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-lex-conversation
3
3
  version: !ruby/object:Gem::Version
4
- version: 6.1.0
4
+ version: 6.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jesse Doyle
@@ -9,10 +9,10 @@ authors:
9
9
  - Darko Dosenovic
10
10
  - Zoie Carnegie
11
11
  - Carlos Mejia Castelo
12
- autorequire:
12
+ autorequire:
13
13
  bindir: exe
14
14
  cert_chain: []
15
- date: 2021-09-08 00:00:00.000000000 Z
15
+ date: 2021-09-22 00:00:00.000000000 Z
16
16
  dependencies:
17
17
  - !ruby/object:Gem::Dependency
18
18
  name: shrink_wrap
@@ -110,7 +110,7 @@ licenses:
110
110
  - MIT
111
111
  metadata:
112
112
  homepage_uri: https://github.com/amaabca/aws-lex-conversation
113
- post_install_message:
113
+ post_install_message:
114
114
  rdoc_options: []
115
115
  require_paths:
116
116
  - lib
@@ -126,7 +126,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
126
126
  version: '0'
127
127
  requirements: []
128
128
  rubygems_version: 3.1.2
129
- signing_key:
129
+ signing_key:
130
130
  specification_version: 4
131
131
  summary: AWS Lex Conversation Dialog Management
132
132
  test_files: []