httpme 0.1.2 → 0.1.5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9ec814ce36da3afdb834b09acfd79afbb968c317d922f467e93e7ac3d155cc4a
4
- data.tar.gz: 2314dc166301224032ebe041fed92e45ca4ea57bfb8d9b25422e82ccc71b46e6
3
+ metadata.gz: e27183a0829fe35cd8336810fdcbe9a862a1df0a0e0c663aae71ee1bb9d0a78a
4
+ data.tar.gz: b7e7403de4fda13bb29a344114910d9bd394566a4dceda51699a564288d7c4f9
5
5
  SHA512:
6
- metadata.gz: 025c90aaff13a9598d517b5b98344a4153b0fccc5de5c10330bc3ea71c14b82a99b8191d300a799512c65af9a1025683a3063315f96917c2dce9b73d01dcd8df
7
- data.tar.gz: 7bf45cae8f7f2a5de589bbb498d7cd5e3b70cecd74ddf928c54ae2abdb38c6177d32abe82d498aeb1813520a73c4e0608dd354d790b7d33aed3a4efe8cddb77a
6
+ metadata.gz: 61e63755fc6d3e2982aadd6ca339dbdd9db73ce219f36698612fef9beb14cf8e146601f79f173c8444933cba60b97a891ee775efec5dd7438ec84fc90dcba39e
7
+ data.tar.gz: e2e142ddf8ba2ad4a132b85bf76a10164ff75a6e033fc4d96e31758f9770c2ee8028c80f3827792901225b92332faad234343124f01d79cb672eebe18820cfe9
data/README.md CHANGED
@@ -34,11 +34,8 @@ $ docker run --rm -it -p 3000:3000 -v $PWD:/docroot \
34
34
  Or, with docker-compose:
35
35
 
36
36
  ```yaml
37
- version: '3'
38
-
39
37
  services:
40
38
  web:
41
- build: .
42
39
  image: dannyben/httpme
43
40
  volumes: [".:/docroot"]
44
41
  ports: ["3000:3000"]
@@ -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, --port PORT", "Server port (default: 3000)"
17
- option "-o, --host HOST", "Server host (default: 0.0.0.0)"
18
- option "-a, --auth AUTH", "Specify user:password to enable basic authentication"
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/server.rb CHANGED
@@ -11,7 +11,7 @@ module HTTPMe
11
11
  end
12
12
 
13
13
  def run
14
- Rack::Handler::Puma.run(app, rack_options) do |server|
14
+ Rack::Handler::Puma.run(app, **rack_options) do |server|
15
15
  # :nocov: - FIXME: Can we test this?
16
16
  [:INT, :TERM].each do |sig|
17
17
  trap(sig) { server.stop }
@@ -1,3 +1,3 @@
1
1
  module HTTPMe
2
- VERSION = "0.1.2"
2
+ VERSION = "0.1.5"
3
3
  end
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.2
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: 2020-10-28 00:00:00.000000000 Z
11
+ date: 2022-05-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: mister_bin
@@ -58,14 +58,14 @@ dependencies:
58
58
  requirements:
59
59
  - - "~>"
60
60
  - !ruby/object:Gem::Version
61
- version: '4.3'
61
+ version: '5.1'
62
62
  type: :runtime
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
66
  - - "~>"
67
67
  - !ruby/object:Gem::Version
68
- version: '4.3'
68
+ version: '5.1'
69
69
  description: Command line utility for running a web server for static files with basic
70
70
  authentication support
71
71
  email: db@dannyben.com
@@ -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.4.0
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.1.4
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