aerogel-core 1.4.10 → 1.4.11

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: f2aa3cd909e476af3c30504c867493ffd5cee0f3
4
- data.tar.gz: bd4abadb05d22159b7374d1ba705683745eac39c
3
+ metadata.gz: 1b5588041ff31dd26941945e0d332c2384bcce89
4
+ data.tar.gz: c96194f13111b3206b99db1c910658f8a2b2b1a0
5
5
  SHA512:
6
- metadata.gz: 77d0175b72a8c6e6b072708c2c9aebffdd812243e677e86cbff40618df166e862fad185642bc3c853249d461baaa55b869aecf736445d84180fd86b742783716
7
- data.tar.gz: 8bd415aa95e4de394c1fb0b9087b3991764ee53968f0baa1de9402669743a164e8f77ea5f34f8e98928e83a9aaf5d935edbab5b37f638b17ba2a80bb38e4860e
6
+ metadata.gz: 3ece5e669c62e9146acf555bb00b1166ebf145a7bcf1483b3429b028b8c311ad3c302cc3676ad0c606cf3b9dbe8b9553634e05325130f98326720e6d0ce1c9bf
7
+ data.tar.gz: 209d1abc86074d9dacb1a111239d033f59e96d1c05ed7c363d6503d20676b7242dbd735243a76864c56191876703edef1a32b3b06c8877ed52c05fa2264dd07d
@@ -4,5 +4,10 @@ locales {
4
4
  }
5
5
 
6
6
  aerogel {
7
- reloader false
7
+ sessions {
8
+ # !!! Application should redefine this by a static secret string,
9
+ # otherwise sessions will be invalid in different server processes
10
+ # or after server restarts
11
+ secret SecureRandom.hex(16)
12
+ }
8
13
  }
@@ -7,4 +7,7 @@ aerogel {
7
7
  max_size 1_000
8
8
  }
9
9
 
10
+ sessions {
11
+ domain -> { hostname? ? ("."+hostname!) : false }
12
+ }
10
13
  }
@@ -30,12 +30,12 @@ module Aerogel
30
30
  # set :protection, true
31
31
  # set :protect_from_csrf, true
32
32
  app.enable :sessions
33
- if Aerogel.config.hostname?
34
- app.set :sessions, domain: "."+Aerogel.config.hostname!
33
+ if Aerogel.config.aerogel.sessions.domain?
34
+ app.set :sessions, domain: Aerogel.config.aerogel.sessions.domain!
35
35
  end
36
36
  # TODO: demand to configure session secret on application level
37
- if Aerogel.config.session_secret?
38
- app.set :session_secret, Aerogel.config.session_secret!
37
+ if Aerogel.config.aerogel.sessions.secret?
38
+ app.set :session_secret, Aerogel.config.aerogel.sessions.secret!
39
39
  end
40
40
 
41
41
  app.use Rack::Protection::AuthenticityToken
@@ -1,5 +1,5 @@
1
1
  module Aerogel
2
2
  module Core
3
- VERSION = '1.4.10'
3
+ VERSION = '1.4.11'
4
4
  end # module Core
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aerogel-core
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.10
4
+ version: 1.4.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alex Kukushkin
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-04-22 00:00:00.000000000 Z
11
+ date: 2014-04-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: sinatra