httpme 0.1.3 → 0.1.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 +4 -4
- data/README.md +0 -3
- data/lib/httpme/command.rb +6 -4
- data/lib/httpme/server.rb +1 -1
- data/lib/httpme/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b6016f8e2721f79749d9432b1bd9489de9307df9f5ff2651e8e12e30cf7633a7
|
4
|
+
data.tar.gz: 7c6c427e893051b9f67ebcfb203f5400ee776fdf4c0b5e65319e47f8e5e41a96
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4979cb2101027aade89204a4b1814be815ff2b2dbbf37c32aedfbafe181095af671f3b6b47d6d4cb0adb10254ca2d33cf95dee14aaca125ef7bdc60983384081
|
7
|
+
data.tar.gz: 466bc485b93d89984873fde23180255b8ca82b65ae2410aefe0ec419c6f923bb08ddffa43e0cb8411ed3df162caf4f718645d63a20a7482c225ea3279ae6cc1d
|
data/README.md
CHANGED
data/lib/httpme/command.rb
CHANGED
@@ -1,21 +1,23 @@
|
|
1
1
|
require 'mister_bin'
|
2
2
|
require 'colsole'
|
3
|
+
require 'httpme/version'
|
3
4
|
|
4
5
|
module HTTPMe
|
5
6
|
class Command < MisterBin::Command
|
6
7
|
include Colsole
|
7
8
|
|
9
|
+
version HTTPMe::VERSION
|
8
10
|
summary "httpme - static web server with basic authentication"
|
9
11
|
|
10
12
|
help "Options can be set using command line arguments or environment variables"
|
11
13
|
|
12
14
|
usage "httpme [PATH] [--port PORT --host HOST --auth AUTH]"
|
13
|
-
usage "httpme (-h|--help)"
|
15
|
+
usage "httpme (-h|--help|--version)"
|
14
16
|
|
15
17
|
param "PATH", "Path to the directory you want to serve [default: .]"
|
16
|
-
option "-p
|
17
|
-
option "-o
|
18
|
-
option "-a
|
18
|
+
option "-p --port PORT", "Server port (default: 3000)"
|
19
|
+
option "-o --host HOST", "Server host (default: 0.0.0.0)"
|
20
|
+
option "-a --auth AUTH", "Specify user:password to enable basic authentication"
|
19
21
|
|
20
22
|
environment 'HTTPME_PATH', "Same as the PATH argument"
|
21
23
|
environment 'HTTPME_AUTH', "Same as the --auth option"
|
data/lib/httpme/server.rb
CHANGED
data/lib/httpme/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: httpme
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.6
|
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:
|
11
|
+
date: 2022-05-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: mister_bin
|
@@ -94,14 +94,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
94
94
|
requirements:
|
95
95
|
- - ">="
|
96
96
|
- !ruby/object:Gem::Version
|
97
|
-
version: 2.
|
97
|
+
version: 2.6.0
|
98
98
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
99
99
|
requirements:
|
100
100
|
- - ">="
|
101
101
|
- !ruby/object:Gem::Version
|
102
102
|
version: '0'
|
103
103
|
requirements: []
|
104
|
-
rubygems_version: 3.
|
104
|
+
rubygems_version: 3.3.3
|
105
105
|
signing_key:
|
106
106
|
specification_version: 4
|
107
107
|
summary: Static files web server with basic authentication
|