Rails 7.1 adds an :after_routes_loaded
hook. Update the railtie to reload allowed routes when Rails routes change (in development mode). Since the hook is only available in Rails 7.1, fallback to the existing :after_initialize
hook when the :after_routes_loaded
hook is not defined.
Addit...
Do not skip dirty tracking when initializing to match Rails behavior. Instead, use .instantiate, or manually reset changes as needed.
Modernize the gem structure and setup to match that of fresh gem generated with Bundler:
$ bundle gem active_remote --test rspec
including an updated license, and new changelog and code of conduct.
Also drop rspec-its
in favor of plain ol' it
expectations.
Update the Allow middleware to return a 404 HEAD response (with empty headers and body), and add config options for :content
, :content_type
, and :status
. If :content
is nil (the default), no headers will be returned. Otherwise, a content-type
header will be added. If :content_type
is ...
The initial Allow
middleware implementation was not thread-safe. A "temporary" (eight years ago!) hack was put in place that simply duped the middleware stack to ensure threadsafety. Not only is this a h...
Rails 7.1 adds an :after_routes_loaded
hook. Update the railtie to reload allowed routes when Rails routes change (in development mode). Since the hook is only available in Rails 7.1, fallback to the existing :after_initialize
hook w...
Do not skip dirty tracking when initializing to match Rails behavior. Instead, use .instantiate, or manually reset changes as needed.
Modernize the gem structure and setup to match that of fresh gem generated with Bundler:
$ bundle gem active_remote --test rspec
including an updated license, and new changelog and code of conduct.
Also drop rspec-its
in f...
Update the Allow middleware to return a 404 HEAD response (with empty headers and body), and add config options for :content
, :content_type
, and :status
. If :content
is nil (the default), no headers will be returned. Otherwise, a...
The initial Allow
middleware implementation was not thread-safe. A "temporary" (eight years ago!) hack was put in place that simply duped the m...
Bundler's method for configuring gem tasks changed so that now only a single file is required:
require 'bundler/gem_tasks'
which will require the helpers and invoke the install_tasks
method automatically.
To simplify how the geminabox overrides were loaded, I added a gem_tasks.rb
t...
I moved the task definitions into there own separate methods so gems like bundler_geminabox that change where gems are released (e.g. not Rubygems) can override them more cleanly.
For example, the description for the release task indicates that the ...
The standard to_json
interface in Ruby and Rails accepts an options hash. We've seen a handful or Airbrakes tied to this, so I just added an optional options argument to the to_json
method.