httpme 0.1.3 → 0.1.6

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: 1866d75bd79c7a1b5e54110af82e802a654e20077a346a12d62123810e4a5d3a
4
- data.tar.gz: 3d93d6d69579b3278c8d4e6af45cb8ed35cf4b95f62c32e91a2334f28b8fe829
3
+ metadata.gz: b6016f8e2721f79749d9432b1bd9489de9307df9f5ff2651e8e12e30cf7633a7
4
+ data.tar.gz: 7c6c427e893051b9f67ebcfb203f5400ee776fdf4c0b5e65319e47f8e5e41a96
5
5
  SHA512:
6
- metadata.gz: 97ffc85a9a92a54654017a0bfa7730bcddeef29b0fc2cab4b78b11b14222d7838c2df717e18fe2f5745ccda13a7b14d00c3fdf3e64262db5c885de6669b697c3
7
- data.tar.gz: 4ecee18c56bfc053db2a20edaa802a959a5000701d353d89806a2817a1a48dc0e71e4690fb4abcad60378d7ac7ce50b0089add94d94d49be97e32aabf70788fb
6
+ metadata.gz: 4979cb2101027aade89204a4b1814be815ff2b2dbbf37c32aedfbafe181095af671f3b6b47d6d4cb0adb10254ca2d33cf95dee14aaca125ef7bdc60983384081
7
+ data.tar.gz: 466bc485b93d89984873fde23180255b8ca82b65ae2410aefe0ec419c6f923bb08ddffa43e0cb8411ed3df162caf4f718645d63a20a7482c225ea3279ae6cc1d
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"]
@@ -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, --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"
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
@@ -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.3"
2
+ VERSION = "0.1.6"
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.3
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: 2020-12-03 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
@@ -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