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 +4 -4
- data/CHANGELOG.md +1 -0
- data/VERSION +1 -1
- data/lib/stealth/logger.rb +2 -0
- data/lib/stealth/server.rb +9 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 58fbace5ca3cdc2e8be0bfdcadc5f2b9e43dc7c7f814b62ac2813663e644e308
|
4
|
+
data.tar.gz: 73de6fb00610b9661e382bf75aa08290b29442d8c197bd0f8d3ec78ecde24b1e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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.
|
1
|
+
1.1.0.rc2
|
data/lib/stealth/logger.rb
CHANGED
data/lib/stealth/server.rb
CHANGED
@@ -41,7 +41,7 @@ module Stealth
|
|
41
41
|
dispatcher = Stealth::Dispatcher.new(
|
42
42
|
service: params[:service],
|
43
43
|
params: params,
|
44
|
-
headers: request
|
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.
|
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-
|
12
|
+
date: 2018-11-29 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: sinatra
|