All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
- Refactor Sequel disconnect logic for Puma so that the
DB
constant isn't required. This will make the transition to using a Sinatra Sequel extension easier.
0.10.0 - 2022-01-17
-
Add-on for Sidekiq.
-
Add-on for Turnip.
-
Add-on for VCR.
-
Add-on for Airbrake.
-
Add-on for
sinatra-activerecord
. -
Sinatra configuration block for test environment.
-
More response codes for RSpec matchers / test unit assertions.
-
Define
SESSION_SECRET
in.env
file so that it is defined only once and can be re-used by other things (like the Sidekiq UI). -
Switch
bin
scripts from bash to Ruby for consistency. Also fixes foreman errors w/ rerun gem by installing them separately from the bundle. -
Force https in production.
-
Switch to
sinatra-asset-pipeline
. Remove Sprockets add-on. All non-API generated projects usesinatra-asset-pipeline
. -
Various generated
README
improvements. -
--api-only
apps don't get CSRF or cookie support. -
Sequel add-on now installs
rubocop-sequel
if Rubocop is detected. -
Simplecov from metrics add-on ignores
db/migrate
directory. -
RSpec and Rubocop Rake tasks are not loaded in production.
-
Don't require a CSRF token when running in a test environment.
-
Allow Rake in all environments.
-
Enable performance plugin for Rubocop add-on by default.
-
Database rollbacks now occur for all Rack-enabled test unit tests. For RSpec specs, they are enabled for all specs.
-
Set proper application root for BetterErrors gem.
-
CI task for RSpec projects.
-
Rerun install in
setup
script needsfs-event
gem.
0.9.0 - 2021-05-06
-
--api-only
option for core generator. -
Add-on for Twitter Bootstrap.
-
Add-on for GitHub Action.
-
Add-on for Rubocop.
-
Added
pry-byebug
gem as part of the core generator. -
RSpec support. Add RSpec as an available
--test-framework
option. -
Console support via the
racksh
gem along with a Rake task for starting the console. -
BetterErrors gem as part of the core generator.
-
sinatra-flash
for all non-API projects. -
Rakefile gets a
ci
task that runs the installed test runner. If the Rubocop add-on is also detected, Rubocop will run after the tests.
-
Switch to Puma as default server instead of Thin. Add an explicit Puma config (
config/puma.rb
). -
Switched from sinatra-reloader to rerun.
-
Update all dependencies.
-
Silence warnings from transitive gem dependencies in test output.
-
Move generated Sequel DB setup out of
config.ru
and into its own file (config/db.rb
). -
Dev server updates: always include a Procfile; create scripts for
setup
,console
,server
; server script uses foreman if it's available, otherwise rackup; remove Rake tasks for console, server. -
Use
sinatra-json
gem fromsinatra-contrib
instead of default JSON gem. -
Switch default templates to Erubi; escape HTML by default.
-
Switch to
test-unit
gem. -
Generated
README
overhaul. Show environment variables in a table, bullet points showing default options and libraries installed, table of contents, etc.
-
Don't attempt to add metrics snippets to non-existent files.
-
assert_redirected_to helper
argument. -
Hardcoded Omniauth route in generated tests.
- Initial version