aws-lex-conversation 6.0.0 → 6.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +8 -0
- data/lib/aws/lex/conversation/version.rb +1 -1
- data/lib/aws/lex/conversation.rb +8 -0
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5bbaa290608e0035207d3fbf6b53c862f36c95e0a07012a562e18ff21c6b3f3f
|
4
|
+
data.tar.gz: a79cff690a0d2419de8f859688f43881cf9d67e40756972afde597196ba7ac64
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 22e3b48931497c44e65d71834379ccd37e9f5c08ffc8713b4bfd7dfefdbc2e02f4d46aea8cd7e2a180b5537a80c9dbeee53eb3817f82755b37d4b1698d730a58
|
7
|
+
data.tar.gz: 71a0fe45f60e828b51cefd0ab52901ca06691377428eb19ff0c82623cfa85a603454b318f483fed138694889a3dd77dbf15b4c9a525f8338a8c379bf26345074
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,11 @@
|
|
1
|
+
# 6.1.0 - Sept 7, 2021
|
2
|
+
Added helper methods for clearing active contexts
|
3
|
+
```ruby
|
4
|
+
conversation.clear_context!(name: 'test') # clears this specific active context
|
5
|
+
conversation.clear_all_contexts! # clears all current active contexts
|
6
|
+
```
|
7
|
+
|
8
|
+
|
1
9
|
# 6.0.0 - Sept 7, 2021
|
2
10
|
|
3
11
|
* **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.
|
data/lib/aws/lex/conversation.rb
CHANGED
@@ -120,6 +120,14 @@ module Aws
|
|
120
120
|
instance
|
121
121
|
end
|
122
122
|
|
123
|
+
def clear_context!(name:)
|
124
|
+
lex.session_state.active_contexts.delete_if { |c| c.name == name }
|
125
|
+
end
|
126
|
+
|
127
|
+
def clear_all_contexts!
|
128
|
+
lex.session_state.active_contexts = []
|
129
|
+
end
|
130
|
+
|
123
131
|
def stash
|
124
132
|
@stash ||= {}
|
125
133
|
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.
|
4
|
+
version: 6.1.0
|
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-
|
15
|
+
date: 2021-09-08 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: []
|