marfa 0.10.1 → 0.10.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 077740413761a2332ab3064d01571c536a9debcc
4
- data.tar.gz: 8a76c2df9d05d1e7f94f977cc95ae94f52c890cc
3
+ metadata.gz: bfb0581ccf0989bb048e6d4c5c3e9eead69ebf80
4
+ data.tar.gz: c7838d81ff52507849c0c1d7d32e06cf0d5def62
5
5
  SHA512:
6
- metadata.gz: 8798bc436b7e58f5a781f94dab28dd7610345a0b5cef10e2d964309f1fd4962341f6abbd755050f75c10a9bb2bb326697b506186989c5c5b05e645e3db96a7fb
7
- data.tar.gz: 0c7674862463f5e124ed654178d05d452bd781692b44b42cc694c6989573fedf5bebee39323dd042b7a00c05005eb7b051a0bdd0a243e00c95cdd0c30ea1d371
6
+ metadata.gz: 9cfc945c0a01cd2415acba8e86a454bec2a70794952ff888685ab038fed20e8e0e8e85428a532cc1da5dfdb115680fee013b53aafcde595a49fcb4ea3bab9df6
7
+ data.tar.gz: b77566bddcb9290ef286c463c04185f5837457b73a929b98eb5423d02449b33ec92b27d19c936cabf4fb1e1727deb4ee4e03f2b3d2c015b407b41a8b1fd32509
@@ -40,13 +40,19 @@ module Marfa
40
40
 
41
41
  # Configure extending modules
42
42
  def self._configure_ext_modules(app)
43
- opts = Marfa.config.html_compression_options
44
-
45
- app.use Rack::Session::Cookie, key: 'rack.session', secret: Marfa.config.session_secret
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, opts if opts && opts[:enabled]
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
 
@@ -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.1'.freeze unless defined?(Marfa::VERSION)
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
@@ -3,7 +3,7 @@
3
3
 
4
4
  Gem::Specification.new do |s|
5
5
  s.name = 'marfa'
6
- s.version = '0.10.1'
6
+ s.version = '0.10.2'
7
7
  s.required_ruby_version = '>= 2.5.0'
8
8
  s.platform = Gem::Platform::RUBY
9
9
  s.date = Time.now.strftime('%Y-%m-%d')
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.1
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-02-15 00:00:00.000000000 Z
13
+ date: 2018-04-18 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: haml