heel 4.0.0 → 4.0.1
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/HISTORY.md +5 -0
- data/README.md +4 -0
- data/lib/heel.rb +1 -1
- data/spec/directory_indexer_spec.rb +2 -2
- data/spec/rackapp_spec.rb +1 -1
- data/tasks/default.rake +1 -1
- data/tasks/this.rb +3 -0
- metadata +10 -9
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 393082605b27fbe2a70c79ea429139d8710446669ae018edca7a81f8336484d2
|
4
|
+
data.tar.gz: fe57b4911204f1d3495fd6dec4ada0ba6db103c03510bc81da893312998ce264
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1580b107ef70638394ed0684027395b399ccaac927ebf4fac92528ae82eec602364dab410ac759997681255ffd388565ce6291d7d8c1cd61a2100c7cb079f256
|
7
|
+
data.tar.gz: 2993098c31d87247dc560c4ebf4dd10bb9d240dedaaf6ee65f0fe17830d8a6177fd5c2a1941e075f55bd19c2eca0f2ee7813daf44cd169e7c49979e53379226f
|
data/HISTORY.md
CHANGED
data/README.md
CHANGED
@@ -11,6 +11,10 @@ directory. Once the server is running, heel will use
|
|
11
11
|
[launchy](https://rubygems.org/gems/launchy/) to open your browser at
|
12
12
|
the URL of your document root.
|
13
13
|
|
14
|
+
Run it right now! `gem exec heel`
|
15
|
+
|
16
|
+
-----
|
17
|
+
|
14
18
|
Heel is built using [Rack](https://github.com/rack/rack) and
|
15
19
|
[Puma](https://puma.io)
|
16
20
|
|
data/lib/heel.rb
CHANGED
@@ -34,8 +34,8 @@ describe Heel::DirectoryIndexer do
|
|
34
34
|
[
|
35
35
|
{ :ext => 'svg', :type => 'image/svg+xml' },
|
36
36
|
{ :ext => 'flv', :type => 'video/x-flv' },
|
37
|
-
{ :ext => 'rb', :type => '
|
38
|
-
{ :ext => 'rhtml', :type => '
|
37
|
+
{ :ext => 'rb', :type => 'text/plain' },
|
38
|
+
{ :ext => 'rhtml', :type => 'text/plain' }
|
39
39
|
].each do |m|
|
40
40
|
it "finds #{m[:ext]} extension in the map as #{m[:type]}" do
|
41
41
|
_(@indexer.mime_map.mime_type_of( "test.#{m[:ext]}" )).must_equal m[:type]
|
data/spec/rackapp_spec.rb
CHANGED
@@ -26,7 +26,7 @@ describe Heel::RackApp do
|
|
26
26
|
res = @request.get("/lib/heel.rb?highlighting=off")
|
27
27
|
_(res).must_be :ok?
|
28
28
|
_(res.body.size).must_equal File.size("lib/heel.rb")
|
29
|
-
_(res['Content-Type']).must_equal "
|
29
|
+
_(res['Content-Type']).must_equal "text/plain"
|
30
30
|
end
|
31
31
|
|
32
32
|
it "should return a 405 if given a non-GET request" do
|
data/tasks/default.rake
CHANGED
@@ -146,7 +146,7 @@ namespace :fixme do
|
|
146
146
|
|
147
147
|
def local_fixme_files
|
148
148
|
local_files = This.manifest.select { |p| p =~ %r|^tasks/| }
|
149
|
-
local_files
|
149
|
+
local_files.concat( Dir.glob( ".semaphore/*" ) )
|
150
150
|
end
|
151
151
|
|
152
152
|
def outdated_fixme_files
|
data/tasks/this.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: heel
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.0.
|
4
|
+
version: 4.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jeremy Hinegardner
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2024-03-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rack
|
@@ -166,12 +166,13 @@ dependencies:
|
|
166
166
|
version: '0.21'
|
167
167
|
description: 'Heel is a small static web server for use when you need a quick web
|
168
168
|
server for a directory. Once the server is running, heel will use (https://rubygems.org/gems/launchy/)
|
169
|
-
to open your browser at the URL of your document root.
|
170
|
-
and (https://puma.io) %
|
171
|
-
|
172
|
-
|
173
|
-
|
174
|
-
|
169
|
+
to open your browser at the URL of your document root. Run it right now! `gem exec
|
170
|
+
heel` ----- Heel is built using (https://github.com/rack/rack) and (https://puma.io) %
|
171
|
+
heel Launching your browser... Puma starting in single mode... * Puma
|
172
|
+
version: 6.2.1 (ruby 3.2.2-p53) ("Speaking of Now") * Min threads: 0 * Max
|
173
|
+
threads: 5 * Environment: none * PID: 11322 * Listening on
|
174
|
+
http://0.0.0.0:4331 Use Ctrl-C to stop Or run it in the background % heel
|
175
|
+
--daemonize Launching your browser at http://0.0.0.0:4331/ % heel --kill Sending
|
175
176
|
TERM to process 3304 Done.'
|
176
177
|
email: jeremy@copiousfreetime.org
|
177
178
|
executables:
|
@@ -249,7 +250,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
249
250
|
- !ruby/object:Gem::Version
|
250
251
|
version: '0'
|
251
252
|
requirements: []
|
252
|
-
rubygems_version: 3.
|
253
|
+
rubygems_version: 3.5.3
|
253
254
|
signing_key:
|
254
255
|
specification_version: 4
|
255
256
|
summary: Heel is a small static web server for use when you need a quick web server
|