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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: fca9b62ba6b59c8f59e9bc8ea35935bdbcd9ab750657dd8d0512d491dd968121
4
- data.tar.gz: 9783fff85113d96544534a65fe9f3f27d364417161b98c3da68871d4a000d12b
3
+ metadata.gz: c84d44bc8e17f21adf44b3cefa2e64b0313fa87585f23d50ed72f5e8d1a09ff8
4
+ data.tar.gz: 91e1bc0ca3372d0f511d0467f207782d8f7b4a723e9e8fcf6db3f80194c6fd6b
5
5
  SHA512:
6
- metadata.gz: d78fd7e148046922b7e4b16256b5bce7216b8b9e504be6836c289170baa76cba1d868e4d276f8da20371c661691e206dab7534f4ec48bb5ec7b5916faadcd61a
7
- data.tar.gz: 23ab313ec7dadec1f0a684214cf54bcefd63147b78317a956ba6c080bf0963fc2ce4f5f36a4211a61cc357c4b8ba17e890f104c51124c88fbdcd4d23cf13c502
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
- [![Gem Version](https://badge.fury.io/rb/httpme.svg)](https://badge.fury.io/rb/httpme)
4
- [![Build Status](https://github.com/DannyBen/httpme/workflows/Test/badge.svg)](https://github.com/DannyBen/httpme/actions?query=workflow%3ATest)
5
- [![Maintainability](https://api.codeclimate.com/v1/badges/6626f32d6a99288dcc98/maintainability)](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]
@@ -1,3 +1,3 @@
1
1
  module HTTPMe
2
- VERSION = '0.2.1'
2
+ VERSION = '0.2.3'
3
3
  end
data/lib/httpme.rb CHANGED
@@ -1,6 +1 @@
1
1
  require 'httpme/server'
2
-
3
- if ENV['BYEBUG']
4
- require 'byebug'
5
- require 'lp'
6
- end
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.1
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: 2023-01-31 00:00:00.000000000 Z
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: 2.7.0
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.4.5
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: []