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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2c078b6b854b3df1824942655b7dd763f72dcc1a439c61e0830e1a644a0c2a65
4
- data.tar.gz: 8f279c911fceacdc67005e02a09b04bd854e71f30d1212a92ca9d6aff5fe1f75
3
+ metadata.gz: 5bbaa290608e0035207d3fbf6b53c862f36c95e0a07012a562e18ff21c6b3f3f
4
+ data.tar.gz: a79cff690a0d2419de8f859688f43881cf9d67e40756972afde597196ba7ac64
5
5
  SHA512:
6
- metadata.gz: 41b0d384f766900de162b9b7a49d9e4ffc0375168c9f33a7c7e238dfe72fdeb7d21a9ad366c3f9f7b31b2dffde1b06c02a6f6c164fddec5453915bf4403cb8d7
7
- data.tar.gz: ab4d16c2892aa0f8bf2c25e67f133a64d6c7e583283a1a960f12602da69cedf83d7242960d789e77d03b43c3ba43411fbabfc8a147668cd4f79151eea078886e
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.
@@ -3,7 +3,7 @@
3
3
  module Aws
4
4
  module Lex
5
5
  class Conversation
6
- VERSION = '6.0.0'
6
+ VERSION = '6.1.0'
7
7
  end
8
8
  end
9
9
  end
@@ -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.0.0
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-07 00:00:00.000000000 Z
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: []