madness 0.6.9 → 0.7.0

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
  SHA256:
3
- metadata.gz: 830bba5b556a384a7fe16c3fc23e95c41b1e57456cfa92b525776a95e8f05521
4
- data.tar.gz: 606ac39ea406ce3973bb3aa4c57027a61a986a96f902e2f222da94fd34c13524
3
+ metadata.gz: b04055e8b28b8976f086c9a2d4d157513ec075450afc70ad692ac83e1da539ed
4
+ data.tar.gz: 23e5dbd228bd4dc290126b7a439e724655ad2d5f3fc5c6fd2272f026d90fb447
5
5
  SHA512:
6
- metadata.gz: 005d0213836ca4879e544e3d7b85177bb6d042056ed7b6abe85af733713dd07dea1c7f31eaf5f4dea6cac9bfab4f7bee4fcf63d8b1c558740b5b56203b3f4e39
7
- data.tar.gz: 6b98e9c76b035dd58793dcbab91f6c7adc28d2f782dbda3ca00a156b206e3e942428b484ff8cfb9751de07af699cac887225cc0872bd9fa2b9871b47fbb1de84
6
+ metadata.gz: 3b9ec5f2ea29095e3f08fcb4f8a06f93bdc10129520565c00ca2bf6ab15cc433389f8397cc0cc5576a4d8dd9eb03b4690c432472f255a6ee02ffa5e10e4ffcb5
7
+ data.tar.gz: 00d4ddfb09ab85cef7b8e47a4a0ad35998b7ad73236366c32a46a4e9dda30db0fabafe783d9316dc524da28bb1a8323e58b767c0b693487b367efd1738556eef
data/README.md CHANGED
@@ -37,6 +37,7 @@ Table of Contents
37
37
  * [Hidden Directories](#hidden-directories)
38
38
  * [Controlling Sort Order](#controlling-sort-order)
39
39
  * [Customizing Theme](#customizing-theme)
40
+ * [Forcing HTTPS Connection](#forcing-https-connection)
40
41
  * [Docker Image](#docker-image)
41
42
 
42
43
 
@@ -85,6 +86,7 @@ If you do not have Ruby installed, you can also
85
86
  [run madness with docker](#docker-image).
86
87
 
87
88
 
89
+
88
90
  Directory Conventions
89
91
  --------------------------------------------------
90
92
 
@@ -268,6 +270,16 @@ versions of madness.
268
270
 
269
271
 
270
272
 
273
+ Forcing HTTPS Connection
274
+ --------------------------------------------------
275
+
276
+ To have Madness redirect HTTP traffic to HTTPS, set this environment
277
+ variable:
278
+
279
+ $ export MADNESS_FORCE_SSL=1
280
+
281
+
282
+
271
283
  Docker Image
272
284
  --------------------------------------------------
273
285
 
@@ -1,4 +1,5 @@
1
1
  require 'rack/contrib/try_static'
2
+ require 'rack/ssl'
2
3
  require 'sass'
3
4
  require 'sass/plugin/rack'
4
5
  require 'sinatra/base'
@@ -15,6 +16,7 @@ module Madness
15
16
 
16
17
  Slim::Engine.set_options pretty: true
17
18
  use Sass::Plugin::Rack
19
+ use Rack::SSL if ENV['MADNESS_FORCE_SSL']
18
20
  set :root, File.expand_path('../../', __dir__)
19
21
  set :server, :puma
20
22
 
@@ -1,3 +1,3 @@
1
1
  module Madness
2
- VERSION = "0.6.9"
2
+ VERSION = "0.7.0"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: madness
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.9
4
+ version: 0.7.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Danny Ben Shitrit
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-10-20 00:00:00.000000000 Z
11
+ date: 2018-11-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: sinatra
@@ -206,6 +206,20 @@ dependencies:
206
206
  - - "~>"
207
207
  - !ruby/object:Gem::Version
208
208
  version: '3.0'
209
+ - !ruby/object:Gem::Dependency
210
+ name: rack-ssl
211
+ requirement: !ruby/object:Gem::Requirement
212
+ requirements:
213
+ - - "~>"
214
+ - !ruby/object:Gem::Version
215
+ version: '1.4'
216
+ type: :runtime
217
+ prerelease: false
218
+ version_requirements: !ruby/object:Gem::Requirement
219
+ requirements:
220
+ - - "~>"
221
+ - !ruby/object:Gem::Version
222
+ version: '1.4'
209
223
  description: Start a markdown server in any directory
210
224
  email: db@dannyben.com
211
225
  executables: