Skip to content

Manage the (active_record connection) pool via Rack middleware. This custom gem is used to support the multi-db architecture that is used in the Bluesight "demo" env as of 6/5/2024

Notifications You must be signed in to change notification settings

kitcheck/life_guard

Repository files navigation

LifeGuard

The intention is to manipulate the ActiveRecord connection pool with Rack middleware. You could do this with multiple webservers routing through nginx but this works too.

Installation

Add this line to your application's Gemfile:

gem 'life_guard'

And then execute:

$ bundle

Or install it yourself as:

$ gem install life_guard

Usage

Development

After checking out the repo, run bin/setup to install dependencies. Then, run bin/console for an interactive prompt that will allow you to experiment.

To install this gem onto your local machine, run bundle exec rake install. To release a new version, update the version number in version.rb, and then run bundle exec rake release to create a git tag for the version, push git commits and tags, and push the .gem file to rubygems.org.

Contributing

  1. Fork it ( https://github.com/[my-github-username]/life_guard/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request

License

This gem is released under the MIT License. https://opensource.org/licenses/MIT

About

Manage the (active_record connection) pool via Rack middleware. This custom gem is used to support the multi-db architecture that is used in the Bluesight "demo" env as of 6/5/2024

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published