stealth 0.10.3 → 0.10.4

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
- SHA1:
3
- metadata.gz: 34868369470ef736c0356793ff7bcc8b9d259cad
4
- data.tar.gz: 802522ae820d81e2232408b2b6c5eae400d67642
2
+ SHA256:
3
+ metadata.gz: a7066a33db237e17ba73f818c95699faf001f32fb725f3aeda7d6b43d7a3348a
4
+ data.tar.gz: 10335bd9447c9e0f4fd1c7138b725fa288b0e352ace0d5cb57d55d0d5a22a4c9
5
5
  SHA512:
6
- metadata.gz: d65b12faa1e3d4f7f6cad7cf36d8e6c31624c5b7229f301549f0db58fb92db438f8a8d9314f1141507acf8b1a41fdaeda036bb947b4ae623f02da3a12006f42e
7
- data.tar.gz: 13bbf47471bf4fcdf2ae4c7c29d0393e8d8d3492ed355db6e1315004dc778ce8695a692ddef5601dfd6b51326239009896b26984e80f5947f588b830f72dc9a1
6
+ metadata.gz: bfdc731ba0787dd13869a96d84f7b3d9d7a9bde7ea59e79601812ecebcae1e301812019f36a726d9abbf5072cc8839e60f78c3c788b98f25123de35677548069
7
+ data.tar.gz: 1ed7f0b36c5dbc75701bbfdd5ac4f1df876ae367c3b8e13ffe86069d741a547e4e7a49fabc90bf04d537134c9355184f9ae083af80b9fffba5d604e03c91bb28
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.10.3
1
+ 0.10.4
@@ -19,8 +19,9 @@ module Stealth
19
19
  if CatchAllFlow.flow_spec.states.keys.include?(catch_all_state.to_sym)
20
20
  step_to flow: 'catch_all', state: catch_all_state
21
21
  else
22
- # Jump to the last catch_all state if we are out of bounds
23
- step_to flow: 'catch_all', state: CatchAllFlow.flow_spec.states.keys.last.to_s
22
+ # We are out of bounds, do nothing to prevent an infinite loop
23
+ Stealth::Logger.l(topic: "catch_all", message: "Stopping; we've exceeded the number of defined catch_all states.")
24
+ return false
24
25
  end
25
26
  end
26
27
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: stealth
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.10.3
4
+ version: 0.10.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mauricio Gomes
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-02-05 00:00:00.000000000 Z
11
+ date: 2018-03-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: sinatra
@@ -236,7 +236,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
236
236
  version: '0'
237
237
  requirements: []
238
238
  rubyforge_project:
239
- rubygems_version: 2.6.12
239
+ rubygems_version: 2.7.3
240
240
  signing_key:
241
241
  specification_version: 4
242
242
  summary: Ruby framework for conversational bots