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 +4 -4
- data/README.md +12 -0
- data/lib/madness/server_base.rb +2 -0
- data/lib/madness/version.rb +1 -1
- metadata +16 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b04055e8b28b8976f086c9a2d4d157513ec075450afc70ad692ac83e1da539ed
|
4
|
+
data.tar.gz: 23e5dbd228bd4dc290126b7a439e724655ad2d5f3fc5c6fd2272f026d90fb447
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
|
data/lib/madness/server_base.rb
CHANGED
@@ -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
|
|
data/lib/madness/version.rb
CHANGED
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.
|
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-
|
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:
|