stealth 2.0.0.beta5 → 2.0.0.beta7

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.
Files changed (90) hide show
  1. checksums.yaml +4 -4
  2. data/.gitbook.yaml +1 -0
  3. data/.github/dependabot.yml +11 -0
  4. data/.github/workflows/ci.yml +50 -0
  5. data/CHANGELOG.md +2 -0
  6. data/Gemfile.lock +38 -40
  7. data/MAINTENANCE.md +28 -0
  8. data/README.md +1 -0
  9. data/SECURITY.md +13 -0
  10. data/VERSION +1 -1
  11. data/docs/.gitbook/assets/2880px-Turnstile_state_machine_colored.svg.png +0 -0
  12. data/docs/.gitbook/assets/Torniqueterevolution.jpg +0 -0
  13. data/docs/.gitbook/assets/logo.svg +28 -0
  14. data/docs/.gitbook/assets/ruby.png +0 -0
  15. data/docs/README.md +35 -0
  16. data/docs/SUMMARY.md +99 -0
  17. data/docs/basics.md +77 -0
  18. data/docs/building-components/message-services.md +7 -0
  19. data/docs/building-components/nlp.md +7 -0
  20. data/docs/config/services.yml.md +2 -0
  21. data/docs/config/settings.md +2 -0
  22. data/docs/controllers/available-data.md +77 -0
  23. data/docs/controllers/catch-alls.md +135 -0
  24. data/docs/controllers/controller-overview.md +130 -0
  25. data/docs/controllers/dev-jumps.md +47 -0
  26. data/docs/controllers/get_match/README.md +2 -0
  27. data/docs/controllers/get_match/alpha-ordinals.md +2 -0
  28. data/docs/controllers/get_match/entity-match.md +2 -0
  29. data/docs/controllers/get_match/exact-match.md +2 -0
  30. data/docs/controllers/handle_message/README.md +54 -0
  31. data/docs/controllers/handle_message/alpha-ordinal-matcher.md +40 -0
  32. data/docs/controllers/handle_message/homophone-detection.md +36 -0
  33. data/docs/controllers/handle_message/nil-matcher.md +44 -0
  34. data/docs/controllers/handle_message/nlp-matcher.md +51 -0
  35. data/docs/controllers/handle_message/regex-matcher.md +41 -0
  36. data/docs/controllers/handle_message/string-mather.md +23 -0
  37. data/docs/controllers/interrupt-detection.md +2 -0
  38. data/docs/controllers/platform-errors.md +2 -0
  39. data/docs/controllers/route.md +70 -0
  40. data/docs/controllers/sessions/README.md +2 -0
  41. data/docs/controllers/sessions/do_nothing.md +17 -0
  42. data/docs/controllers/sessions/intro.md +37 -0
  43. data/docs/controllers/sessions/step_back.md +88 -0
  44. data/docs/controllers/sessions/step_to.md +47 -0
  45. data/docs/controllers/sessions/step_to_at.md +43 -0
  46. data/docs/controllers/sessions/step_to_in.md +43 -0
  47. data/docs/controllers/sessions/update_session_to.md +47 -0
  48. data/docs/controllers/unrecognized-messages.md +2 -0
  49. data/docs/deployment/heroku.md +2 -0
  50. data/docs/deployment/overview.md +2 -0
  51. data/docs/dev-environment/README.md +2 -0
  52. data/docs/dev-environment/booting-up.md +33 -0
  53. data/docs/dev-environment/environment-variables.md +54 -0
  54. data/docs/dev-environment/hot-code-reloading.md +52 -0
  55. data/docs/dev-environment/logs.md +74 -0
  56. data/docs/dev-environment/procfile.md +22 -0
  57. data/docs/dev-environment/tunnels.md +18 -0
  58. data/docs/flows/flowmap.md +40 -0
  59. data/docs/flows/overview.md +43 -0
  60. data/docs/flows/state-naming.md +53 -0
  61. data/docs/flows/state-options.md +70 -0
  62. data/docs/getting-started.md +19 -0
  63. data/docs/glossary.md +21 -0
  64. data/docs/models/activerecord.md +2 -0
  65. data/docs/models/mongoid.md +2 -0
  66. data/docs/models/overview.md +2 -0
  67. data/docs/nlp-nlu/microsoft-luis.md +2 -0
  68. data/docs/nlp-nlu/openai.md +2 -0
  69. data/docs/nlp-nlu/overview.md +2 -0
  70. data/docs/platforms/alexa-skills.md +2 -0
  71. data/docs/platforms/facebook-messenger.md +2 -0
  72. data/docs/platforms/overview.md +2 -0
  73. data/docs/platforms/sms-whatsapp.md +2 -0
  74. data/docs/platforms/voice.md +2 -0
  75. data/docs/replies/delays.md +2 -0
  76. data/docs/replies/erb.md +2 -0
  77. data/docs/replies/inline-replies.md +2 -0
  78. data/docs/replies/reply-overview.md +2 -0
  79. data/docs/replies/variants.md +2 -0
  80. data/docs/replies/yaml-replies.md +2 -0
  81. data/docs/testing/integration-testing.md +2 -0
  82. data/docs/testing/untitled.md +2 -0
  83. data/lib/stealth/base.rb +1 -1
  84. data/lib/stealth/controller/replies.rb +11 -5
  85. data/lib/stealth/server.rb +10 -1
  86. data/spec/controller/replies_spec.rb +48 -0
  87. data/spec/replies/messages/say_simple_hello.yml +2 -0
  88. data/stealth.gemspec +2 -3
  89. metadata +87 -23
  90. data/.circleci/config.yml +0 -226
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: stealth
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.0.beta5
4
+ version: 2.0.0.beta7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mauricio Gomes
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2022-03-29 00:00:00.000000000 Z
12
+ date: 2022-11-06 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: sinatra
@@ -77,16 +77,16 @@ dependencies:
77
77
  name: sidekiq
78
78
  requirement: !ruby/object:Gem::Requirement
79
79
  requirements:
80
- - - "~>"
80
+ - - "<"
81
81
  - !ruby/object:Gem::Version
82
- version: '6.0'
82
+ version: '7'
83
83
  type: :runtime
84
84
  prerelease: false
85
85
  version_requirements: !ruby/object:Gem::Requirement
86
86
  requirements:
87
- - - "~>"
87
+ - - "<"
88
88
  - !ruby/object:Gem::Version
89
- version: '6.0'
89
+ version: '7'
90
90
  - !ruby/object:Gem::Dependency
91
91
  name: activesupport
92
92
  requirement: !ruby/object:Gem::Requirement
@@ -115,34 +115,20 @@ dependencies:
115
115
  - - "~>"
116
116
  - !ruby/object:Gem::Version
117
117
  version: '3.9'
118
- - !ruby/object:Gem::Dependency
119
- name: rspec_junit_formatter
120
- requirement: !ruby/object:Gem::Requirement
121
- requirements:
122
- - - "~>"
123
- - !ruby/object:Gem::Version
124
- version: '0.3'
125
- type: :development
126
- prerelease: false
127
- version_requirements: !ruby/object:Gem::Requirement
128
- requirements:
129
- - - "~>"
130
- - !ruby/object:Gem::Version
131
- version: '0.3'
132
118
  - !ruby/object:Gem::Dependency
133
119
  name: rack-test
134
120
  requirement: !ruby/object:Gem::Requirement
135
121
  requirements:
136
122
  - - "~>"
137
123
  - !ruby/object:Gem::Version
138
- version: '1.1'
124
+ version: '2.0'
139
125
  type: :development
140
126
  prerelease: false
141
127
  version_requirements: !ruby/object:Gem::Requirement
142
128
  requirements:
143
129
  - - "~>"
144
130
  - !ruby/object:Gem::Version
145
- version: '1.1'
131
+ version: '2.0'
146
132
  - !ruby/object:Gem::Dependency
147
133
  name: mock_redis
148
134
  requirement: !ruby/object:Gem::Requirement
@@ -164,15 +150,91 @@ executables:
164
150
  extensions: []
165
151
  extra_rdoc_files: []
166
152
  files:
167
- - ".circleci/config.yml"
153
+ - ".gitbook.yaml"
154
+ - ".github/dependabot.yml"
155
+ - ".github/workflows/ci.yml"
168
156
  - ".gitignore"
169
157
  - CHANGELOG.md
170
158
  - Gemfile
171
159
  - Gemfile.lock
172
160
  - LICENSE
161
+ - MAINTENANCE.md
173
162
  - README.md
163
+ - SECURITY.md
174
164
  - VERSION
175
165
  - bin/stealth
166
+ - docs/.gitbook/assets/2880px-Turnstile_state_machine_colored.svg.png
167
+ - docs/.gitbook/assets/Torniqueterevolution.jpg
168
+ - docs/.gitbook/assets/logo.svg
169
+ - docs/.gitbook/assets/ruby.png
170
+ - docs/README.md
171
+ - docs/SUMMARY.md
172
+ - docs/basics.md
173
+ - docs/building-components/message-services.md
174
+ - docs/building-components/nlp.md
175
+ - docs/config/services.yml.md
176
+ - docs/config/settings.md
177
+ - docs/controllers/available-data.md
178
+ - docs/controllers/catch-alls.md
179
+ - docs/controllers/controller-overview.md
180
+ - docs/controllers/dev-jumps.md
181
+ - docs/controllers/get_match/README.md
182
+ - docs/controllers/get_match/alpha-ordinals.md
183
+ - docs/controllers/get_match/entity-match.md
184
+ - docs/controllers/get_match/exact-match.md
185
+ - docs/controllers/handle_message/README.md
186
+ - docs/controllers/handle_message/alpha-ordinal-matcher.md
187
+ - docs/controllers/handle_message/homophone-detection.md
188
+ - docs/controllers/handle_message/nil-matcher.md
189
+ - docs/controllers/handle_message/nlp-matcher.md
190
+ - docs/controllers/handle_message/regex-matcher.md
191
+ - docs/controllers/handle_message/string-mather.md
192
+ - docs/controllers/interrupt-detection.md
193
+ - docs/controllers/platform-errors.md
194
+ - docs/controllers/route.md
195
+ - docs/controllers/sessions/README.md
196
+ - docs/controllers/sessions/do_nothing.md
197
+ - docs/controllers/sessions/intro.md
198
+ - docs/controllers/sessions/step_back.md
199
+ - docs/controllers/sessions/step_to.md
200
+ - docs/controllers/sessions/step_to_at.md
201
+ - docs/controllers/sessions/step_to_in.md
202
+ - docs/controllers/sessions/update_session_to.md
203
+ - docs/controllers/unrecognized-messages.md
204
+ - docs/deployment/heroku.md
205
+ - docs/deployment/overview.md
206
+ - docs/dev-environment/README.md
207
+ - docs/dev-environment/booting-up.md
208
+ - docs/dev-environment/environment-variables.md
209
+ - docs/dev-environment/hot-code-reloading.md
210
+ - docs/dev-environment/logs.md
211
+ - docs/dev-environment/procfile.md
212
+ - docs/dev-environment/tunnels.md
213
+ - docs/flows/flowmap.md
214
+ - docs/flows/overview.md
215
+ - docs/flows/state-naming.md
216
+ - docs/flows/state-options.md
217
+ - docs/getting-started.md
218
+ - docs/glossary.md
219
+ - docs/models/activerecord.md
220
+ - docs/models/mongoid.md
221
+ - docs/models/overview.md
222
+ - docs/nlp-nlu/microsoft-luis.md
223
+ - docs/nlp-nlu/openai.md
224
+ - docs/nlp-nlu/overview.md
225
+ - docs/platforms/alexa-skills.md
226
+ - docs/platforms/facebook-messenger.md
227
+ - docs/platforms/overview.md
228
+ - docs/platforms/sms-whatsapp.md
229
+ - docs/platforms/voice.md
230
+ - docs/replies/delays.md
231
+ - docs/replies/erb.md
232
+ - docs/replies/inline-replies.md
233
+ - docs/replies/reply-overview.md
234
+ - docs/replies/variants.md
235
+ - docs/replies/yaml-replies.md
236
+ - docs/testing/integration-testing.md
237
+ - docs/testing/untitled.md
176
238
  - lib/stealth.rb
177
239
  - lib/stealth/base.rb
178
240
  - lib/stealth/cli.rb
@@ -286,6 +348,7 @@ files:
286
348
  - spec/replies/messages/say_oi.yml.erb
287
349
  - spec/replies/messages/say_randomize_speech.yml
288
350
  - spec/replies/messages/say_randomize_text.yml
351
+ - spec/replies/messages/say_simple_hello.yml
289
352
  - spec/replies/messages/say_yo.yml
290
353
  - spec/replies/messages/say_yo.yml+twitter
291
354
  - spec/replies/messages/sub1/sub2/say_nested.yml
@@ -361,6 +424,7 @@ test_files:
361
424
  - spec/replies/messages/say_oi.yml.erb
362
425
  - spec/replies/messages/say_randomize_speech.yml
363
426
  - spec/replies/messages/say_randomize_text.yml
427
+ - spec/replies/messages/say_simple_hello.yml
364
428
  - spec/replies/messages/say_yo.yml
365
429
  - spec/replies/messages/say_yo.yml+twitter
366
430
  - spec/replies/messages/sub1/sub2/say_nested.yml
data/.circleci/config.yml DELETED
@@ -1,226 +0,0 @@
1
- version: 2
2
-
3
- jobs:
4
- ruby_2_6:
5
- docker:
6
- - image: cimg/ruby:2.6
7
- environment:
8
- STEALTH_ENV: test
9
-
10
- working_directory: ~/repo
11
-
12
- steps:
13
- - checkout
14
-
15
- # Download and cache dependencies
16
- - restore_cache:
17
- keys:
18
- - v1-dependencies-{{ checksum "Gemfile.lock" }}
19
- # fallback to using the latest cache if no exact match is found
20
- - v1-dependencies-
21
- - run:
22
- name: Configure Bundler
23
- command: |
24
- echo 'export BUNDLER_VERSION=$(cat Gemfile.lock | tail -1 | tr -d " ")' >> $BASH_ENV
25
- source $BASH_ENV
26
- gem install bundler
27
- - run:
28
- name: install dependencies
29
- command: |
30
- bundle install --jobs=4 --retry=3 --path vendor/bundle
31
-
32
- - save_cache:
33
- paths:
34
- - ./vendor/bundle
35
- key: v1-dependencies-{{ checksum "Gemfile.lock" }}
36
-
37
- # run tests!
38
- - run:
39
- name: run tests
40
- command: |
41
- mkdir /tmp/test-results
42
- TEST_FILES="$(circleci tests glob "spec/**/*_spec.rb" | circleci tests split --split-by=timings)"
43
-
44
- bundle exec rspec --format progress \
45
- --format RspecJunitFormatter \
46
- --out /tmp/test-results/rspec.xml \
47
- --format progress \
48
- -- \
49
- $TEST_FILES
50
-
51
- # collect reports
52
- - store_test_results:
53
- path: /tmp/test-results
54
- - store_artifacts:
55
- path: /tmp/test-results
56
- destination: test-results
57
- ruby_2_7:
58
- docker:
59
- - image: cimg/ruby:2.7
60
- environment:
61
- STEALTH_ENV: test
62
-
63
- working_directory: ~/repo
64
-
65
- steps:
66
- - checkout
67
-
68
- # Download and cache dependencies
69
- - restore_cache:
70
- keys:
71
- - v1-dependencies-{{ checksum "Gemfile.lock" }}
72
- # fallback to using the latest cache if no exact match is found
73
- - v1-dependencies-
74
- - run:
75
- name: Configure Bundler
76
- command: |
77
- echo 'export BUNDLER_VERSION=$(cat Gemfile.lock | tail -1 | tr -d " ")' >> $BASH_ENV
78
- source $BASH_ENV
79
- gem install bundler
80
- - run:
81
- name: install dependencies
82
- command: |
83
- bundle install --jobs=4 --retry=3 --path vendor/bundle
84
-
85
- - save_cache:
86
- paths:
87
- - ./vendor/bundle
88
- key: v1-dependencies-{{ checksum "Gemfile.lock" }}
89
-
90
- # run tests!
91
- - run:
92
- name: run tests
93
- command: |
94
- mkdir /tmp/test-results
95
- TEST_FILES="$(circleci tests glob "spec/**/*_spec.rb" | circleci tests split --split-by=timings)"
96
-
97
- bundle exec rspec --format progress \
98
- --format RspecJunitFormatter \
99
- --out /tmp/test-results/rspec.xml \
100
- --format progress \
101
- -- \
102
- $TEST_FILES
103
-
104
- # collect reports
105
- - store_test_results:
106
- path: /tmp/test-results
107
- - store_artifacts:
108
- path: /tmp/test-results
109
- destination: test-results
110
-
111
- ruby_3_0:
112
- docker:
113
- - image: cimg/ruby:3.0
114
- environment:
115
- STEALTH_ENV: test
116
-
117
- working_directory: ~/repo
118
-
119
- steps:
120
- - checkout
121
-
122
- # Download and cache dependencies
123
- - restore_cache:
124
- keys:
125
- - v1-dependencies-{{ checksum "Gemfile.lock" }}
126
- # fallback to using the latest cache if no exact match is found
127
- - v1-dependencies-
128
- - run:
129
- name: Configure Bundler
130
- command: |
131
- echo 'export BUNDLER_VERSION=$(cat Gemfile.lock | tail -1 | tr -d " ")' >> $BASH_ENV
132
- source $BASH_ENV
133
- gem install bundler
134
- - run:
135
- name: install dependencies
136
- command: |
137
- bundle install --jobs=4 --retry=3 --path vendor/bundle
138
-
139
- - save_cache:
140
- paths:
141
- - ./vendor/bundle
142
- key: v1-dependencies-{{ checksum "Gemfile.lock" }}
143
-
144
- # run tests!
145
- - run:
146
- name: run tests
147
- command: |
148
- mkdir /tmp/test-results
149
- TEST_FILES="$(circleci tests glob "spec/**/*_spec.rb" | circleci tests split --split-by=timings)"
150
-
151
- bundle exec rspec --format progress \
152
- --format RspecJunitFormatter \
153
- --out /tmp/test-results/rspec.xml \
154
- --format progress \
155
- -- \
156
- $TEST_FILES
157
-
158
- # collect reports
159
- - store_test_results:
160
- path: /tmp/test-results
161
- - store_artifacts:
162
- path: /tmp/test-results
163
- destination: test-results
164
-
165
- ruby_3_1:
166
- docker:
167
- - image: cimg/ruby:3.1
168
- environment:
169
- STEALTH_ENV: test
170
-
171
- working_directory: ~/repo
172
-
173
- steps:
174
- - checkout
175
-
176
- # Download and cache dependencies
177
- - restore_cache:
178
- keys:
179
- - v1-dependencies-{{ checksum "Gemfile.lock" }}
180
- # fallback to using the latest cache if no exact match is found
181
- - v1-dependencies-
182
- - run:
183
- name: Configure Bundler
184
- command: |
185
- echo 'export BUNDLER_VERSION=$(cat Gemfile.lock | tail -1 | tr -d " ")' >> $BASH_ENV
186
- source $BASH_ENV
187
- gem install bundler
188
- - run:
189
- name: install dependencies
190
- command: |
191
- bundle install --jobs=4 --retry=3 --path vendor/bundle
192
-
193
- - save_cache:
194
- paths:
195
- - ./vendor/bundle
196
- key: v1-dependencies-{{ checksum "Gemfile.lock" }}
197
-
198
- # run tests!
199
- - run:
200
- name: run tests
201
- command: |
202
- mkdir /tmp/test-results
203
- TEST_FILES="$(circleci tests glob "spec/**/*_spec.rb" | circleci tests split --split-by=timings)"
204
-
205
- bundle exec rspec --format progress \
206
- --format RspecJunitFormatter \
207
- --out /tmp/test-results/rspec.xml \
208
- --format progress \
209
- -- \
210
- $TEST_FILES
211
-
212
- # collect reports
213
- - store_test_results:
214
- path: /tmp/test-results
215
- - store_artifacts:
216
- path: /tmp/test-results
217
- destination: test-results
218
-
219
- workflows:
220
- version: 2
221
- build:
222
- jobs:
223
- - ruby_2_6
224
- - ruby_2_7
225
- - ruby_3_0
226
- - ruby_3_1