Added rake for running tests and a little to the readme.

This commit is contained in:
James Dinkel 2025-08-30 22:42:31 -05:00
parent a6ffa9b663
commit 61efcb09df
3 changed files with 51 additions and 13 deletions

View file

@ -1,12 +1,14 @@
source "https://rubygems.org" source "https://rubygems.org"
gem "roda" gem "roda"
gem 'rake'
# change to gunicorn or passenger if you prefer: # change to gunicorn or passenger if you prefer:
gem "puma" gem "puma"
group :development, :test do group :development do
gem "rerun" gem 'rerun'
gem 'rubocop'
end end
group :test do group :test do

View file

@ -3,6 +3,7 @@ GEM
specs: specs:
addressable (2.8.7) addressable (2.8.7)
public_suffix (>= 2.0.2, < 7.0) public_suffix (>= 2.0.2, < 7.0)
ast (2.4.3)
capybara (3.40.0) capybara (3.40.0)
addressable addressable
matrix matrix
@ -15,42 +16,68 @@ GEM
ffi (1.17.2) ffi (1.17.2)
ffi (1.17.2-arm64-darwin) ffi (1.17.2-arm64-darwin)
ffi (1.17.2-x86_64-darwin) ffi (1.17.2-x86_64-darwin)
ffi (1.17.2-x86_64-linux-gnu)
json (2.13.2)
language_server-protocol (3.17.0.5)
lint_roller (1.1.0)
listen (3.9.0) listen (3.9.0)
rb-fsevent (~> 0.10, >= 0.10.3) rb-fsevent (~> 0.10, >= 0.10.3)
rb-inotify (~> 0.9, >= 0.9.10) rb-inotify (~> 0.9, >= 0.9.10)
matrix (0.4.3) matrix (0.4.3)
mini_mime (1.1.5) mini_mime (1.1.5)
mini_portile2 (2.8.9)
minitest (5.25.5) minitest (5.25.5)
nio4r (2.7.4) nio4r (2.7.4)
nokogiri (1.18.8) nokogiri (1.18.9-arm64-darwin)
mini_portile2 (~> 2.8.2)
racc (~> 1.4) racc (~> 1.4)
nokogiri (1.18.8-arm64-darwin) nokogiri (1.18.9-x86_64-darwin)
racc (~> 1.4) racc (~> 1.4)
nokogiri (1.18.8-x86_64-darwin) nokogiri (1.18.9-x86_64-linux-gnu)
racc (~> 1.4) racc (~> 1.4)
parallel (1.27.0)
parser (3.3.9.0)
ast (~> 2.4.1)
racc
prism (1.4.0)
public_suffix (6.0.2) public_suffix (6.0.2)
puma (6.6.0) puma (6.6.1)
nio4r (~> 2.0) nio4r (~> 2.0)
racc (1.8.1) racc (1.8.1)
rack (3.1.16) rack (3.2.0)
rack-test (2.2.0) rack-test (2.2.0)
rack (>= 1.3) rack (>= 1.3)
rainbow (3.1.1)
rake (13.3.0)
rb-fsevent (0.11.2) rb-fsevent (0.11.2)
rb-inotify (0.11.1) rb-inotify (0.11.1)
ffi (~> 1.0) ffi (~> 1.0)
regexp_parser (2.10.0) regexp_parser (2.11.2)
rerun (0.14.0) rerun (0.14.0)
listen (~> 3.0) listen (~> 3.0)
roda (3.93.0) roda (3.95.0)
rack rack
rubocop (1.80.1)
json (~> 2.3)
language_server-protocol (~> 3.17.0.2)
lint_roller (~> 1.1.0)
parallel (~> 1.10)
parser (>= 3.3.0.2)
rainbow (>= 2.2.2, < 4.0)
regexp_parser (>= 2.9.3, < 3.0)
rubocop-ast (>= 1.46.0, < 2.0)
ruby-progressbar (~> 1.7)
unicode-display_width (>= 2.4.0, < 4.0)
rubocop-ast (1.46.0)
parser (>= 3.3.7.2)
prism (~> 1.4)
ruby-progressbar (1.13.0)
unicode-display_width (3.1.5)
unicode-emoji (~> 4.0, >= 4.0.4)
unicode-emoji (4.0.4)
xpath (3.2.0) xpath (3.2.0)
nokogiri (~> 1.8) nokogiri (~> 1.8)
PLATFORMS PLATFORMS
arm64-darwin arm64-darwin
ruby
x86_64-darwin x86_64-darwin
x86_64-linux x86_64-linux
@ -58,8 +85,10 @@ DEPENDENCIES
capybara capybara
minitest minitest
puma puma
rake
rerun rerun
roda roda
rubocop
BUNDLED WITH BUNDLED WITH
2.6.9 2.7.1

View file

@ -2,6 +2,13 @@
Example single file Roda web app. There are extra files for launching the server, running tests, the license, etc, but the app itself is all in app.rb. Example single file Roda web app. There are extra files for launching the server, running tests, the license, etc, but the app itself is all in app.rb.
Prepare the environment with:
```bash
bundle install
# could do "bundle update" instead if you want to fetch new versions of packages
```
Run tests with: Run tests with:
```bash ```bash