cyclid-ui 0.2.2 → 0.2.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/cyclid_ui.rb +8 -6
- data/lib/cyclid_ui/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 54597e4a74f4231ac7751cbe80cd08cafca83c7a
|
4
|
+
data.tar.gz: 2dd3f1258e59e0842cbda74b7f58df4268795524
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 32fcd54d76df4ed9a5d08e53db10749ab1dfe54dd5aadcb924ae19e23d54a53fdaca4aac9d799680358333c86859480b51674333960000a7bccdf6fdf4e1576e
|
7
|
+
data.tar.gz: 4b2b95a1077b6409aa51bcf1406adbd5f0d33b1fcf4ed91d13faec2d1a3149da45941247d9270973e0cb12ef73a448c1cd1b290667b04f341eca5788dccd72b8
|
data/app/cyclid_ui.rb
CHANGED
@@ -55,10 +55,13 @@ module Cyclid
|
|
55
55
|
# Sinatra application
|
56
56
|
class App < Sinatra::Application
|
57
57
|
use Rack::Deflater
|
58
|
-
use Rack::Session::
|
59
|
-
|
60
|
-
|
61
|
-
|
58
|
+
use Rack::Session::Pool,
|
59
|
+
expire_after: 31_557_600,
|
60
|
+
secret: ENV['COOKIE_SECRET'] || '8f54749dcb0ae0843cdd9669b797d311'
|
61
|
+
use Rack::Csrf,
|
62
|
+
raise: true,
|
63
|
+
skip: ['POST:/login',
|
64
|
+
'POST:/unauthenticated']
|
62
65
|
|
63
66
|
helpers Helpers
|
64
67
|
|
@@ -67,8 +70,7 @@ module Cyclid
|
|
67
70
|
configure do
|
68
71
|
set sessions: true,
|
69
72
|
secure: production?,
|
70
|
-
|
71
|
-
secret: ENV['SESSION_SECRET']
|
73
|
+
session_secret: ENV['SESSION_SECRET']
|
72
74
|
set allow_origin: :any,
|
73
75
|
allow_methods: [:get, :put, :post, :options],
|
74
76
|
allow_credentials: true,
|
data/lib/cyclid_ui/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cyclid-ui
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kristian Van Der Vliet
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2017-02-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: require_all
|