stealth 2.0.0.beta5 → 2.0.0.beta6

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 (85) 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 +1 -0
  6. data/Gemfile.lock +36 -35
  7. data/MAINTENANCE.md +28 -0
  8. data/SECURITY.md +13 -0
  9. data/VERSION +1 -1
  10. data/docs/.gitbook/assets/2880px-Turnstile_state_machine_colored.svg.png +0 -0
  11. data/docs/.gitbook/assets/Torniqueterevolution.jpg +0 -0
  12. data/docs/.gitbook/assets/logo.svg +28 -0
  13. data/docs/.gitbook/assets/ruby.png +0 -0
  14. data/docs/README.md +35 -0
  15. data/docs/SUMMARY.md +99 -0
  16. data/docs/basics.md +77 -0
  17. data/docs/building-components/message-services.md +7 -0
  18. data/docs/building-components/nlp.md +7 -0
  19. data/docs/config/services.yml.md +2 -0
  20. data/docs/config/settings.md +2 -0
  21. data/docs/controllers/available-data.md +77 -0
  22. data/docs/controllers/catch-alls.md +135 -0
  23. data/docs/controllers/controller-overview.md +130 -0
  24. data/docs/controllers/dev-jumps.md +47 -0
  25. data/docs/controllers/get_match/README.md +2 -0
  26. data/docs/controllers/get_match/alpha-ordinals.md +2 -0
  27. data/docs/controllers/get_match/entity-match.md +2 -0
  28. data/docs/controllers/get_match/exact-match.md +2 -0
  29. data/docs/controllers/handle_message/README.md +54 -0
  30. data/docs/controllers/handle_message/alpha-ordinal-matcher.md +40 -0
  31. data/docs/controllers/handle_message/homophone-detection.md +36 -0
  32. data/docs/controllers/handle_message/nil-matcher.md +44 -0
  33. data/docs/controllers/handle_message/nlp-matcher.md +51 -0
  34. data/docs/controllers/handle_message/regex-matcher.md +41 -0
  35. data/docs/controllers/handle_message/string-mather.md +23 -0
  36. data/docs/controllers/interrupt-detection.md +2 -0
  37. data/docs/controllers/platform-errors.md +2 -0
  38. data/docs/controllers/route.md +70 -0
  39. data/docs/controllers/sessions/README.md +2 -0
  40. data/docs/controllers/sessions/do_nothing.md +17 -0
  41. data/docs/controllers/sessions/intro.md +37 -0
  42. data/docs/controllers/sessions/step_back.md +88 -0
  43. data/docs/controllers/sessions/step_to.md +47 -0
  44. data/docs/controllers/sessions/step_to_at.md +43 -0
  45. data/docs/controllers/sessions/step_to_in.md +43 -0
  46. data/docs/controllers/sessions/update_session_to.md +47 -0
  47. data/docs/controllers/unrecognized-messages.md +2 -0
  48. data/docs/deployment/heroku.md +2 -0
  49. data/docs/deployment/overview.md +2 -0
  50. data/docs/dev-environment/README.md +2 -0
  51. data/docs/dev-environment/booting-up.md +33 -0
  52. data/docs/dev-environment/environment-variables.md +54 -0
  53. data/docs/dev-environment/hot-code-reloading.md +52 -0
  54. data/docs/dev-environment/logs.md +74 -0
  55. data/docs/dev-environment/procfile.md +22 -0
  56. data/docs/dev-environment/tunnels.md +18 -0
  57. data/docs/flows/flowmap.md +40 -0
  58. data/docs/flows/overview.md +43 -0
  59. data/docs/flows/state-naming.md +53 -0
  60. data/docs/flows/state-options.md +70 -0
  61. data/docs/getting-started.md +19 -0
  62. data/docs/glossary.md +21 -0
  63. data/docs/models/activerecord.md +2 -0
  64. data/docs/models/mongoid.md +2 -0
  65. data/docs/models/overview.md +2 -0
  66. data/docs/nlp-nlu/microsoft-luis.md +2 -0
  67. data/docs/nlp-nlu/openai.md +2 -0
  68. data/docs/nlp-nlu/overview.md +2 -0
  69. data/docs/platforms/alexa-skills.md +2 -0
  70. data/docs/platforms/facebook-messenger.md +2 -0
  71. data/docs/platforms/overview.md +2 -0
  72. data/docs/platforms/sms-whatsapp.md +2 -0
  73. data/docs/platforms/voice.md +2 -0
  74. data/docs/replies/delays.md +2 -0
  75. data/docs/replies/erb.md +2 -0
  76. data/docs/replies/inline-replies.md +2 -0
  77. data/docs/replies/reply-overview.md +2 -0
  78. data/docs/replies/variants.md +2 -0
  79. data/docs/replies/yaml-replies.md +2 -0
  80. data/docs/testing/integration-testing.md +2 -0
  81. data/docs/testing/untitled.md +2 -0
  82. data/lib/stealth/server.rb +10 -1
  83. data/stealth.gemspec +1 -1
  84. metadata +81 -5
  85. data/.circleci/config.yml +0 -226
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