marfa 0.4.5 → 0.4.6

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: 7cf8b86d1de62f5f093e97fb44a6050a8b378a4a
4
- data.tar.gz: f35b86b6a9e8a4e257c8d0cac42f0980d9a49081
3
+ metadata.gz: 6202c57faaf2f98fea4cc2929f2e90532619ccc0
4
+ data.tar.gz: 7f35b97f66b3ce9454d8c43f6a191e3508c40d72
5
5
  SHA512:
6
- metadata.gz: 49e29a4a5d4b69b5d5bf6eab834082946c6fbdd79221f54700ac35e9bd61b5df83026d3857322d7ec5187ea668f9ebef42cc4669833bd095f343759ed58b6614
7
- data.tar.gz: b0999e7a264e180cea3f397b75c4775f4abb54fcbb45ffb0e241bd1976087e12a2fc0c0cf73d4e112055b743e6b2bcc2397b18238dfbcb3b35180f5091b58bc2
6
+ metadata.gz: 59c404179618044b13d3213f79d8c22a56a3ce9c0d24a1eeb4785a2750acfb06ecd6aa792c2c1643585c12d6150dba81628e938b1191db0e20b8b6f934eaa530
7
+ data.tar.gz: 98f91c8ad0a64291581faca28d0e95ea1d3159c5bc1865125772da92babee63d3556ee122a69b3015e3b4d4e176bd1a7ecf6cb46bd1e4aab40ecb8b68193ee08
@@ -39,6 +39,8 @@ module Marfa
39
39
  def self._configure_ext_modules(app)
40
40
  opts = Marfa.config.html_compression_options
41
41
 
42
+ app.use Rack::Session::Cookie, key: 'rack.session', secret: Marfa.config.session_secret
43
+
42
44
  app.configure do
43
45
  app.use Rack::Csrf, raise: true if Marfa.config.csrf_enabled
44
46
  app.use HtmlCompressor::Rack, opts if opts && opts[:enabled]
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.4.5' unless defined?(Marfa::VERSION)
4
+ VERSION = '0.4.6' unless defined?(Marfa::VERSION)
5
5
 
6
6
  # The current Marfa version.
7
7
  # @return [String] The version number
data/marfa.gemspec CHANGED
@@ -3,7 +3,7 @@
3
3
 
4
4
  Gem::Specification.new do |s|
5
5
  s.name = 'marfa'
6
- s.version = '0.4.5'
6
+ s.version = '0.4.6'
7
7
  s.required_ruby_version = '>= 2.3.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.4.5
4
+ version: 0.4.6
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: 2017-05-16 00:00:00.000000000 Z
13
+ date: 2017-05-17 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: haml