marfa 0.10.1 → 0.10.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/marfa/configuration.rb +10 -4
- data/lib/marfa/version.rb +1 -1
- data/marfa.gemspec +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: bfb0581ccf0989bb048e6d4c5c3e9eead69ebf80
|
4
|
+
data.tar.gz: c7838d81ff52507849c0c1d7d32e06cf0d5def62
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9cfc945c0a01cd2415acba8e86a454bec2a70794952ff888685ab038fed20e8e0e8e85428a532cc1da5dfdb115680fee013b53aafcde595a49fcb4ea3bab9df6
|
7
|
+
data.tar.gz: b77566bddcb9290ef286c463c04185f5837457b73a929b98eb5423d02449b33ec92b27d19c936cabf4fb1e1727deb4ee4e03f2b3d2c015b407b41a8b1fd32509
|
data/lib/marfa/configuration.rb
CHANGED
@@ -40,13 +40,19 @@ module Marfa
|
|
40
40
|
|
41
41
|
# Configure extending modules
|
42
42
|
def self._configure_ext_modules(app)
|
43
|
-
|
44
|
-
|
45
|
-
|
43
|
+
# Compression options
|
44
|
+
compression_opts = Marfa.config.html_compression_options
|
45
|
+
# Session options
|
46
|
+
session_opts = Marfa.config.session_options
|
46
47
|
|
47
48
|
app.configure do
|
48
49
|
app.use Rack::Csrf, raise: true if Marfa.config.csrf_enabled
|
49
|
-
app.use HtmlCompressor::Rack,
|
50
|
+
app.use HtmlCompressor::Rack, compression_opts if compression_opts && compression_opts[:enabled]
|
51
|
+
app.use Rack::Session::Cookie,
|
52
|
+
key: session_opts[:key],
|
53
|
+
secret: session_opts[:secret],
|
54
|
+
coder: session_opts[:coder] if session_opts && session_opts[:enabled]
|
55
|
+
|
50
56
|
end
|
51
57
|
end
|
52
58
|
|
data/lib/marfa/version.rb
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
# Version constant
|
2
2
|
module Marfa
|
3
3
|
# The version constant for the current version of Marfa
|
4
|
-
VERSION = '0.10.
|
4
|
+
VERSION = '0.10.2'.freeze unless defined?(Marfa::VERSION)
|
5
5
|
|
6
6
|
# The current Marfa version.
|
7
7
|
# @return [String] The version number
|
data/marfa.gemspec
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: marfa
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.10.
|
4
|
+
version: 0.10.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Max Krechetov
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2018-
|
13
|
+
date: 2018-04-18 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: haml
|