stealth 1.1.0.rc1 → 1.1.0.rc2

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: 6c918a4ed7d98e6c5e8c60dab8e3e96d1f5a1d6407bb21843fa6a4eb8a46b0fc
4
- data.tar.gz: e4fe19747e02ba2b17af1d932e2505153db47173a45bee8558d7ab2cd8c5309b
3
+ metadata.gz: 58fbace5ca3cdc2e8be0bfdcadc5f2b9e43dc7c7f814b62ac2813663e644e308
4
+ data.tar.gz: 73de6fb00610b9661e382bf75aa08290b29442d8c197bd0f8d3ec78ecde24b1e
5
5
  SHA512:
6
- metadata.gz: 0fbe087d4e4a7d5e60bc442524588ae6c63f1d842b35ebb7f73bf5b2a09716e07a08fc0d3867c7392045c781b8fff6fe6d9aa304c73d0c0229118a2f2dcc1bcf
7
- data.tar.gz: 710cc3404711a0d18c765846acada15b94d0f1ebd0fb42196fcc85fc8c6254070bfcfee93fadf8db5bf439aa1acd286cd5c52ff5737017afdec65ddd64fd9c41
6
+ metadata.gz: c4eb034b8b80f19881762300057d315bd2161c593ff871be28d7adf24096ef67f25519a76fae7ffa56cbc2bfe5f95f05f876505352beac279081ca4345536bab
7
+ data.tar.gz: 6d2fbd155f64ee66ebf51723d16709805e45ae1ba0a3c05b94c85ac0a89e6a47671987d2e4731d774f1e03817bedbae70455a6718cfec6061e12f1b214a4dfd5
data/CHANGELOG.md CHANGED
@@ -14,6 +14,7 @@
14
14
  * [Flows] Added support for `redirects_to` during state declaration. If specified, will automatically step a user to the specified state or session.
15
15
  * [Flows] `redirects_to` and `fails_to` now support a session string as an argument (`my_flow->some_state`). This allows you to fail and redirect to other flows. A state name specified as a string or symbol is still allowed.
16
16
  * [Errors] Backtraces are now more readable in logs
17
+ * [Sessions] Sessions can now be configured to expire after a specified period of inactivity.
17
18
 
18
19
  ## Bug Fixes
19
20
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.1.0.rc1
1
+ 1.1.0.rc2
@@ -39,6 +39,8 @@ module Stealth
39
39
  colorize(topic_string, color: :yellow)
40
40
  when :facebook, :twilio
41
41
  colorize(topic_string, color: :blue)
42
+ when :smooch
43
+ colorize(topic_string, color: :magenta)
42
44
  when :catch_all
43
45
  colorize(topic_string, color: :red)
44
46
  else
@@ -41,7 +41,7 @@ module Stealth
41
41
  dispatcher = Stealth::Dispatcher.new(
42
42
  service: params[:service],
43
43
  params: params,
44
- headers: request.env
44
+ headers: get_helpers_from_request(request)
45
45
  )
46
46
 
47
47
  dispatcher.coordinate
@@ -49,5 +49,13 @@ module Stealth
49
49
  status 202
50
50
  end
51
51
 
52
+ private
53
+
54
+ def get_helpers_from_request(request)
55
+ request.env.reject do |header, value|
56
+ header.match(/rack\.|puma\.|sinatra\./)
57
+ end
58
+ end
59
+
52
60
  end
53
61
  end
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: 1.1.0.rc1
4
+ version: 1.1.0.rc2
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: 2018-11-28 00:00:00.000000000 Z
12
+ date: 2018-11-29 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: sinatra