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 +4 -4
- data/config/application.conf +6 -1
- data/config/production/aerogel.conf +3 -0
- data/lib/aerogel/core/config.rb +4 -4
- data/lib/aerogel/core/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: 1b5588041ff31dd26941945e0d332c2384bcce89
|
4
|
+
data.tar.gz: c96194f13111b3206b99db1c910658f8a2b2b1a0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3ece5e669c62e9146acf555bb00b1166ebf145a7bcf1483b3429b028b8c311ad3c302cc3676ad0c606cf3b9dbe8b9553634e05325130f98326720e6d0ce1c9bf
|
7
|
+
data.tar.gz: 209d1abc86074d9dacb1a111239d033f59e96d1c05ed7c363d6503d20676b7242dbd735243a76864c56191876703edef1a32b3b06c8877ed52c05fa2264dd07d
|
data/config/application.conf
CHANGED
@@ -4,5 +4,10 @@ locales {
|
|
4
4
|
}
|
5
5
|
|
6
6
|
aerogel {
|
7
|
-
|
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
|
}
|
data/lib/aerogel/core/config.rb
CHANGED
@@ -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.
|
34
|
-
app.set :sessions, domain:
|
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.
|
38
|
-
app.set :session_secret, Aerogel.config.
|
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
|
data/lib/aerogel/core/version.rb
CHANGED
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.
|
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-
|
11
|
+
date: 2014-04-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: sinatra
|