stealth 2.0.0.beta5 → 2.0.0.beta6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitbook.yaml +1 -0
- data/.github/dependabot.yml +11 -0
- data/.github/workflows/ci.yml +50 -0
- data/CHANGELOG.md +1 -0
- data/Gemfile.lock +36 -35
- data/MAINTENANCE.md +28 -0
- data/SECURITY.md +13 -0
- data/VERSION +1 -1
- data/docs/.gitbook/assets/2880px-Turnstile_state_machine_colored.svg.png +0 -0
- data/docs/.gitbook/assets/Torniqueterevolution.jpg +0 -0
- data/docs/.gitbook/assets/logo.svg +28 -0
- data/docs/.gitbook/assets/ruby.png +0 -0
- data/docs/README.md +35 -0
- data/docs/SUMMARY.md +99 -0
- data/docs/basics.md +77 -0
- data/docs/building-components/message-services.md +7 -0
- data/docs/building-components/nlp.md +7 -0
- data/docs/config/services.yml.md +2 -0
- data/docs/config/settings.md +2 -0
- data/docs/controllers/available-data.md +77 -0
- data/docs/controllers/catch-alls.md +135 -0
- data/docs/controllers/controller-overview.md +130 -0
- data/docs/controllers/dev-jumps.md +47 -0
- data/docs/controllers/get_match/README.md +2 -0
- data/docs/controllers/get_match/alpha-ordinals.md +2 -0
- data/docs/controllers/get_match/entity-match.md +2 -0
- data/docs/controllers/get_match/exact-match.md +2 -0
- data/docs/controllers/handle_message/README.md +54 -0
- data/docs/controllers/handle_message/alpha-ordinal-matcher.md +40 -0
- data/docs/controllers/handle_message/homophone-detection.md +36 -0
- data/docs/controllers/handle_message/nil-matcher.md +44 -0
- data/docs/controllers/handle_message/nlp-matcher.md +51 -0
- data/docs/controllers/handle_message/regex-matcher.md +41 -0
- data/docs/controllers/handle_message/string-mather.md +23 -0
- data/docs/controllers/interrupt-detection.md +2 -0
- data/docs/controllers/platform-errors.md +2 -0
- data/docs/controllers/route.md +70 -0
- data/docs/controllers/sessions/README.md +2 -0
- data/docs/controllers/sessions/do_nothing.md +17 -0
- data/docs/controllers/sessions/intro.md +37 -0
- data/docs/controllers/sessions/step_back.md +88 -0
- data/docs/controllers/sessions/step_to.md +47 -0
- data/docs/controllers/sessions/step_to_at.md +43 -0
- data/docs/controllers/sessions/step_to_in.md +43 -0
- data/docs/controllers/sessions/update_session_to.md +47 -0
- data/docs/controllers/unrecognized-messages.md +2 -0
- data/docs/deployment/heroku.md +2 -0
- data/docs/deployment/overview.md +2 -0
- data/docs/dev-environment/README.md +2 -0
- data/docs/dev-environment/booting-up.md +33 -0
- data/docs/dev-environment/environment-variables.md +54 -0
- data/docs/dev-environment/hot-code-reloading.md +52 -0
- data/docs/dev-environment/logs.md +74 -0
- data/docs/dev-environment/procfile.md +22 -0
- data/docs/dev-environment/tunnels.md +18 -0
- data/docs/flows/flowmap.md +40 -0
- data/docs/flows/overview.md +43 -0
- data/docs/flows/state-naming.md +53 -0
- data/docs/flows/state-options.md +70 -0
- data/docs/getting-started.md +19 -0
- data/docs/glossary.md +21 -0
- data/docs/models/activerecord.md +2 -0
- data/docs/models/mongoid.md +2 -0
- data/docs/models/overview.md +2 -0
- data/docs/nlp-nlu/microsoft-luis.md +2 -0
- data/docs/nlp-nlu/openai.md +2 -0
- data/docs/nlp-nlu/overview.md +2 -0
- data/docs/platforms/alexa-skills.md +2 -0
- data/docs/platforms/facebook-messenger.md +2 -0
- data/docs/platforms/overview.md +2 -0
- data/docs/platforms/sms-whatsapp.md +2 -0
- data/docs/platforms/voice.md +2 -0
- data/docs/replies/delays.md +2 -0
- data/docs/replies/erb.md +2 -0
- data/docs/replies/inline-replies.md +2 -0
- data/docs/replies/reply-overview.md +2 -0
- data/docs/replies/variants.md +2 -0
- data/docs/replies/yaml-replies.md +2 -0
- data/docs/testing/integration-testing.md +2 -0
- data/docs/testing/untitled.md +2 -0
- data/lib/stealth/server.rb +10 -1
- data/stealth.gemspec +1 -1
- metadata +81 -5
- 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
|