httpme 0.2.2 → 0.2.3
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 -8
- data/lib/httpme/server.rb +4 -0
- data/lib/httpme/version.rb +1 -1
- data/lib/httpme.rb +0 -5
- metadata +18 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c84d44bc8e17f21adf44b3cefa2e64b0313fa87585f23d50ed72f5e8d1a09ff8
|
4
|
+
data.tar.gz: 91e1bc0ca3372d0f511d0467f207782d8f7b4a723e9e8fcf6db3f80194c6fd6b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 32d1282a9658093f88b884304c7609b6c063f99185ed2dc7087641d1fc39fde03bc0210155ac298fd02da852b0ee741b5b7400a512e7ab78dcd0dea5e72172f9
|
7
|
+
data.tar.gz: 8cb6f0f9568de90fcd655635f58d2cb4568086a5db899265226a4855fd55d536a4759401f4d560092bff4d78b371b408c62760c567b62d92aec2f9b825ae9d0d
|
data/README.md
CHANGED
@@ -1,16 +1,8 @@
|
|
1
1
|
# httpme - static web server with basic authentication
|
2
2
|
|
3
|
-
[](https://badge.fury.io/rb/httpme)
|
4
|
-
[](https://github.com/DannyBen/httpme/actions?query=workflow%3ATest)
|
5
|
-
[](https://codeclimate.com/github/DannyBen/httpme/maintainability)
|
6
|
-
|
7
|
-
---
|
8
|
-
|
9
3
|
httpme is a command line utility for serving static HTMLs and other files
|
10
4
|
with optional basic authentication support.
|
11
5
|
|
12
|
-
---
|
13
|
-
|
14
6
|
## Installation
|
15
7
|
|
16
8
|
$ gem install httpme
|
data/lib/httpme/server.rb
CHANGED
@@ -11,6 +11,10 @@ module HTTPMe
|
|
11
11
|
set :port, port
|
12
12
|
set :server, %w[puma webrick]
|
13
13
|
|
14
|
+
# FIXME: Ironically, tests fail without this line
|
15
|
+
# ref: https://community.fly.io/t/attack-prevented-by-rack-hostauthorization/22992
|
16
|
+
set :environment, :production
|
17
|
+
|
14
18
|
if auth
|
15
19
|
use Rack::Auth::Basic, zone do |username, password|
|
16
20
|
auth.split(':') == [username, password]
|
data/lib/httpme/version.rb
CHANGED
data/lib/httpme.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: httpme
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Danny Ben Shitrit
|
8
|
-
autorequire:
|
9
8
|
bindir: bin
|
10
9
|
cert_chain: []
|
11
|
-
date:
|
10
|
+
date: 1980-01-02 00:00:00.000000000 Z
|
12
11
|
dependencies:
|
13
12
|
- !ruby/object:Gem::Dependency
|
14
13
|
name: colsole
|
@@ -98,6 +97,20 @@ dependencies:
|
|
98
97
|
- - "<"
|
99
98
|
- !ruby/object:Gem::Version
|
100
99
|
version: '5'
|
100
|
+
- !ruby/object:Gem::Dependency
|
101
|
+
name: rackup
|
102
|
+
requirement: !ruby/object:Gem::Requirement
|
103
|
+
requirements:
|
104
|
+
- - "~>"
|
105
|
+
- !ruby/object:Gem::Version
|
106
|
+
version: '2.2'
|
107
|
+
type: :runtime
|
108
|
+
prerelease: false
|
109
|
+
version_requirements: !ruby/object:Gem::Requirement
|
110
|
+
requirements:
|
111
|
+
- - "~>"
|
112
|
+
- !ruby/object:Gem::Version
|
113
|
+
version: '2.2'
|
101
114
|
description: Command line utility for running a web server for static files with basic
|
102
115
|
authentication support
|
103
116
|
email: db@dannyben.com
|
@@ -118,7 +131,6 @@ licenses:
|
|
118
131
|
- MIT
|
119
132
|
metadata:
|
120
133
|
rubygems_mfa_required: 'true'
|
121
|
-
post_install_message:
|
122
134
|
rdoc_options: []
|
123
135
|
require_paths:
|
124
136
|
- lib
|
@@ -126,15 +138,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
126
138
|
requirements:
|
127
139
|
- - ">="
|
128
140
|
- !ruby/object:Gem::Version
|
129
|
-
version: '3.
|
141
|
+
version: '3.1'
|
130
142
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
131
143
|
requirements:
|
132
144
|
- - ">="
|
133
145
|
- !ruby/object:Gem::Version
|
134
146
|
version: '0'
|
135
147
|
requirements: []
|
136
|
-
rubygems_version: 3.
|
137
|
-
signing_key:
|
148
|
+
rubygems_version: 3.6.9
|
138
149
|
specification_version: 4
|
139
150
|
summary: Static files web server with basic authentication
|
140
151
|
test_files: []
|