markdownr 0.3.6 → 0.3.8

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
  SHA256:
3
- metadata.gz: 01f55ab4612df6c57dc37c6632765cdced4f4a18d19965eca28db4c653c262d6
4
- data.tar.gz: 3b3cd87a76bd220fc998557978c240aab570705df3b890beba2459b8634feac5
3
+ metadata.gz: b93d02d3f49a69d9e37ab7f4e118c4bf34af0b6ed814f7d899e1a0494cd1d8cd
4
+ data.tar.gz: 1854abfd403c674693f86d3a2d81c8221d996066e2203428617c0c6945f72475
5
5
  SHA512:
6
- metadata.gz: 914d2a3a8bb19aff817d29c2f2bb651ad6175a084faca1c261554eee64daad795e7a7e65a5e3ac1631ea0d1eaad5bca43b5a9751b56f3412734d268c58ee4763
7
- data.tar.gz: e1afd582d417c7170accd7fbb95b00c896f920a910a4d6ab0c04727834819e5f5fcdb8a58946cae7ef156a8fe552c215ba87b0b17fe8042e798e81c8215f8a23
6
+ metadata.gz: c3304a43924d7820192ecb3f380c2a2618b3787b1fb29c974477cf07b843f567b35a5f74e4e68cf43ac12f0213411f135380ee088355fb46b4c773afac10c989
7
+ data.tar.gz: a01eb23a236b0c9088fe0bc6e571713e6ea0bf76bebd7295ea252805742c5ea5dad5d686db99ae07e0a833b23bc1060b504495196fabae333bd3f4d32cd9b43c
data/bin/markdownr CHANGED
@@ -2,7 +2,7 @@
2
2
  require "optparse"
3
3
  require_relative "../lib/markdown_server"
4
4
 
5
- options = { port: 4567, bind: "0.0.0.0" }
5
+ options = { port: 4567, bind: "127.0.0.1" }
6
6
 
7
7
  OptionParser.new do |opts|
8
8
  opts.banner = "Usage: markdownr [options] [directory]"
@@ -11,7 +11,7 @@ OptionParser.new do |opts|
11
11
  options[:port] = p
12
12
  end
13
13
 
14
- opts.on("-b", "--bind ADDRESS", "Address to bind to (default: 0.0.0.0)") do |b|
14
+ opts.on("-b", "--bind ADDRESS", "Address to bind to (default: 127.0.0.1)") do |b|
15
15
  options[:bind] = b
16
16
  end
17
17
 
@@ -19,6 +19,8 @@ module MarkdownServer
19
19
  set :root_dir, Dir.pwd
20
20
  set :custom_title, nil
21
21
  set :show_exceptions, false
22
+ set :protection, false
23
+ set :host_authorization, { permitted_hosts: [] }
22
24
  end
23
25
 
24
26
  helpers do
@@ -1,3 +1,3 @@
1
1
  module MarkdownServer
2
- VERSION = "0.3.6"
2
+ VERSION = "0.3.8"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: markdownr
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.6
4
+ version: 0.3.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brian Dunn