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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: cd46e94bf7a619733c91ec752eaebbb95fe350eb
4
- data.tar.gz: c15070a30d7e592fdfda470fcb7cc5445ca66c17
3
+ metadata.gz: 54597e4a74f4231ac7751cbe80cd08cafca83c7a
4
+ data.tar.gz: 2dd3f1258e59e0842cbda74b7f58df4268795524
5
5
  SHA512:
6
- metadata.gz: 94f096894e5d41acbaf6f061723646e3b5bf8e9a2bbe7f9c48988eca30dd8d1caa6311343ef197a45ed9da279c5ce3380133ea2ec2fbcf299445c81ffe49e92c
7
- data.tar.gz: eccb3e14ffe05c46f3676d21aa92efd44e0cd3aa84cf6ebe9886340b7f69c79a82899bc402aca5bdf77f1d0cf3711feb687caa50c563c33dcbf76a23878d9115
6
+ metadata.gz: 32fcd54d76df4ed9a5d08e53db10749ab1dfe54dd5aadcb924ae19e23d54a53fdaca4aac9d799680358333c86859480b51674333960000a7bccdf6fdf4e1576e
7
+ data.tar.gz: 4b2b95a1077b6409aa51bcf1406adbd5f0d33b1fcf4ed91d13faec2d1a3149da45941247d9270973e0cb12ef73a448c1cd1b290667b04f341eca5788dccd72b8
@@ -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::Cookie
59
- use Rack::Csrf, raise: true,
60
- skip: ['POST:/login',
61
- 'POST:/unauthenticated']
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
- expire_after: 31_557_600,
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,
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
  module Cyclid
3
3
  module UI
4
- VERSION = '0.2.2'
4
+ VERSION = '0.2.3'
5
5
  end
6
6
  end
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.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: 2016-12-28 00:00:00.000000000 Z
11
+ date: 2017-02-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: require_all