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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e1beda46c6817fd0ee5d223e377044bfb6dbd208273238e8a050884b09256e89
4
- data.tar.gz: 90f7087871e515e6d50bc61335bfe607fd75b6f01e4e423520ce2446a47b424f
3
+ metadata.gz: c84d44bc8e17f21adf44b3cefa2e64b0313fa87585f23d50ed72f5e8d1a09ff8
4
+ data.tar.gz: 91e1bc0ca3372d0f511d0467f207782d8f7b4a723e9e8fcf6db3f80194c6fd6b
5
5
  SHA512:
6
- metadata.gz: '051857fd1a9f76b73433b67c2a81fbe7d1fcaebcaf1930f4486b9c55396f0658c8ba7a4a11b19af13d470cb2f2f35fb5ea579daf7fa8dd32e10b717bd33eda21'
7
- data.tar.gz: 5a72973a545de53ba4e33d44f2b7e2db3608c167ccd57ac11f050604fbc033f38d1e08a2a3ee83c38df6184c77078561575b5b4a77a3a54efbe8822c41d9500e
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.2'
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.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: 2024-02-09 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
@@ -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.0'
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.5.6
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: []