`bundle exec rake test` (minitest, a default gem but pinned in Gemfile for reproducibility) now covers what ad-hoc scripts kept re-verifying by hand during development: Gpx/Fit/TrackStats parsing, GpxStore/LiveTrackStore file/TTL logic, LiveTrackClient's payload parsing, and app.rb's routes end to end via Rack::MockRequest. MAPTOOL_DATA_DIR (new, app.rb) lets the suite point GPX_STORE/ LIVETRACK_STORE at a throwaway directory instead of real data/ — without it every run would leave uploaded test files behind. Each lib file's old `if __FILE__ == $0` self-check is now redundant with real tests covering the same ground, so removed rather than kept as a second copy of the same assertions. Wired into ci.yml so it isn't just a local convenience.
18 lines
289 B
Ruby
18 lines
289 B
Ruby
source "https://rubygems.org"
|
|
|
|
gem "sinatra", "~> 4.2"
|
|
gem "sinatra-contrib", "~> 4.2"
|
|
gem "puma", "~> 8.0"
|
|
gem "rexml", "~> 3.4"
|
|
gem "oauth2", "~> 2.0"
|
|
gem "rubyzip", "~> 2.4"
|
|
|
|
group :development do
|
|
gem "rerun"
|
|
end
|
|
|
|
group :test do
|
|
gem "minitest", "~> 6.0"
|
|
gem "rake", "~> 13.0"
|
|
end
|