httpme 0.2.1 → 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 +26 -9
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
|
@@ -82,16 +81,36 @@ dependencies:
|
|
82
81
|
name: sinatra
|
83
82
|
requirement: !ruby/object:Gem::Requirement
|
84
83
|
requirements:
|
85
|
-
- - "
|
84
|
+
- - ">="
|
86
85
|
- !ruby/object:Gem::Version
|
87
86
|
version: '3.0'
|
87
|
+
- - "<"
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '5'
|
88
90
|
type: :runtime
|
89
91
|
prerelease: false
|
90
92
|
version_requirements: !ruby/object:Gem::Requirement
|
91
93
|
requirements:
|
92
|
-
- - "
|
94
|
+
- - ">="
|
93
95
|
- !ruby/object:Gem::Version
|
94
96
|
version: '3.0'
|
97
|
+
- - "<"
|
98
|
+
- !ruby/object:Gem::Version
|
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'
|
95
114
|
description: Command line utility for running a web server for static files with basic
|
96
115
|
authentication support
|
97
116
|
email: db@dannyben.com
|
@@ -112,7 +131,6 @@ licenses:
|
|
112
131
|
- MIT
|
113
132
|
metadata:
|
114
133
|
rubygems_mfa_required: 'true'
|
115
|
-
post_install_message:
|
116
134
|
rdoc_options: []
|
117
135
|
require_paths:
|
118
136
|
- lib
|
@@ -120,15 +138,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
120
138
|
requirements:
|
121
139
|
- - ">="
|
122
140
|
- !ruby/object:Gem::Version
|
123
|
-
version:
|
141
|
+
version: '3.1'
|
124
142
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
125
143
|
requirements:
|
126
144
|
- - ">="
|
127
145
|
- !ruby/object:Gem::Version
|
128
146
|
version: '0'
|
129
147
|
requirements: []
|
130
|
-
rubygems_version: 3.
|
131
|
-
signing_key:
|
148
|
+
rubygems_version: 3.6.9
|
132
149
|
specification_version: 4
|
133
150
|
summary: Static files web server with basic authentication
|
134
151
|
test_files: []
|