markdownr 0.3.6 → 0.3.7

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: bc15590907558465b90d7d219e6bede5a9479141b0993843188a22a2723ab72a
4
+ data.tar.gz: 34f073a1b9cf5c3a2550e61da3f1ffe9250bc4843fac344e140c1e0629a5f4a8
5
5
  SHA512:
6
- metadata.gz: 914d2a3a8bb19aff817d29c2f2bb651ad6175a084faca1c261554eee64daad795e7a7e65a5e3ac1631ea0d1eaad5bca43b5a9751b56f3412734d268c58ee4763
7
- data.tar.gz: e1afd582d417c7170accd7fbb95b00c896f920a910a4d6ab0c04727834819e5f5fcdb8a58946cae7ef156a8fe552c215ba87b0b17fe8042e798e81c8215f8a23
6
+ metadata.gz: 19aad92e46d89d0cbec62ba172167a029a74794f6b1914cdc458d896eea4e25186852cf5f37c493e5459f680b922b19c3c7c44c0de71f6c528d8c18d37479b3f
7
+ data.tar.gz: cb08bd3772391f5a0c742930953ac4982366c8657e89b802bc4b090ea476e3ec89e456fe255543622c0ab8e58b7191823d590cda143f7e37ba9b151bfec4e084
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,7 @@ 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
22
23
  end
23
24
 
24
25
  helpers do
@@ -1,3 +1,3 @@
1
1
  module MarkdownServer
2
- VERSION = "0.3.6"
2
+ VERSION = "0.3.7"
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.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brian Dunn