httpme 0.1.4 → 0.1.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +0 -3
- data/lib/httpme/command.rb +5 -4
- 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: e27183a0829fe35cd8336810fdcbe9a862a1df0a0e0c663aae71ee1bb9d0a78a
|
4
|
+
data.tar.gz: b7e7403de4fda13bb29a344114910d9bd394566a4dceda51699a564288d7c4f9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 61e63755fc6d3e2982aadd6ca339dbdd9db73ce219f36698612fef9beb14cf8e146601f79f173c8444933cba60b97a891ee775efec5dd7438ec84fc90dcba39e
|
7
|
+
data.tar.gz: e2e142ddf8ba2ad4a132b85bf76a10164ff75a6e033fc4d96e31758f9770c2ee8028c80f3827792901225b92332faad234343124f01d79cb672eebe18820cfe9
|
data/README.md
CHANGED
data/lib/httpme/command.rb
CHANGED
@@ -5,17 +5,18 @@ module HTTPMe
|
|
5
5
|
class Command < MisterBin::Command
|
6
6
|
include Colsole
|
7
7
|
|
8
|
+
version HTTPMe::VERSION
|
8
9
|
summary "httpme - static web server with basic authentication"
|
9
10
|
|
10
11
|
help "Options can be set using command line arguments or environment variables"
|
11
12
|
|
12
13
|
usage "httpme [PATH] [--port PORT --host HOST --auth AUTH]"
|
13
|
-
usage "httpme (-h|--help)"
|
14
|
+
usage "httpme (-h|--help|--version)"
|
14
15
|
|
15
16
|
param "PATH", "Path to the directory you want to serve [default: .]"
|
16
|
-
option "-p
|
17
|
-
option "-o
|
18
|
-
option "-a
|
17
|
+
option "-p --port PORT", "Server port (default: 3000)"
|
18
|
+
option "-o --host HOST", "Server host (default: 0.0.0.0)"
|
19
|
+
option "-a --auth AUTH", "Specify user:password to enable basic authentication"
|
19
20
|
|
20
21
|
environment 'HTTPME_PATH', "Same as the PATH argument"
|
21
22
|
environment 'HTTPME_AUTH', "Same as the --auth option"
|
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.5
|
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
|