•        2

Provides database connection management for standalone ActiveRecord apps built on top of Rack. Unfortunately, in ActiveRecord 5.0, the class ConnectionManagement was removed. So, I've copied it from 4.2 and released it here with minor improvements.



Related Projects

rack-bug - Debugging toolbar for Rack applications implemented as middleware

  •    Ruby

Rack::Bug adds a diagnostics toolbar to Rack apps. When enabled, it injects a floating div allowing exploration of logging, database queries, template rendering times, etc. Just 'use Rack::Bug' as any other middleware. See the SampleApp in the spec/fixtures folder for an example Sinatra app.

rack-attack - Rack middleware for blocking & throttling

  •    Ruby

Rack::Attack is a rack middleware to protect your web app from bad clients. It allows safelisting, blocklisting, throttling, and tracking based on arbitrary properties of the request. Throttle and fail2ban state is stored in a configurable cache (e.g. Rails.cache), presumably backed by memcached or redis (at least gem v3.0.0).

rack-ssl-enforcer - A simple Rack middleware to enforce ssl connections

  •    Ruby

Rack::SslEnforcer is a simple Rack middleware to enforce SSL connections. As of Version 0.2.0, Rack::SslEnforcer marks Cookies as secure by default (HSTS must be set manually). Tested against Ruby 1.8.7, 1.9.2, 1.9.3, 2.0.0, 2.1.10, 2.2.7, 2.3.4, 2.4.1, ruby-head, REE and the latest versions of Rubinius & JRuby.

redis-throttle - Rack middleware for rate-limiting incoming HTTP requests configured to be used with Redis

  •    Ruby

This is a fork of the Rack Throttle middleware that provides logic for rate-limiting incoming HTTP requests to Rack applications using Redis as storage system. You can use Rack::RedisThrottle with any Ruby web framework based on Rack, including Ruby on Rails 3.0 and Sinatra. This gem was designed to experiment rate limit with Rails 3.x and Doorkeeper. Redis Throttle Middleware come to life thanks to the work I've made in Lelylan, an open source microservices architecture for the Internet of Things. If this project helped you in any way, think about giving us a star on Github.

rack-google-analytics - Simple Rack middleware for implementing google analytics tracking in your Ruby-Rack based project

  •    Ruby

There is a new gem for various tracking and analytics services, which includes all the functionality of rack-google-analytics. So if you need more than just google, checkout the rack-tracker gem. Simple Rack middleware to help injecting the Google Analytics tracking code in your website.

rack-fiber_pool - Rack middleware to execute each request in a Fiber

  •    Ruby

A Rack middleware component which runs each request in a Fiber from a pool of Fibers.Add a require and use statement to your Rack app. See example/app.rb for a simple Sinatra app which illustrates proper usage. In general, you want the FiberPool to be inserted as early as possible in the middleware pipeline.

ActiveRecord - ActiveRecord pattern for .NET

  •    CSharp

The Castle ActiveRecord project is an implementation of the ActiveRecord pattern for .NET. The ActiveRecord pattern consists on instance properties representing a record in the database, instance methods acting on that specific record and static methods acting on all records. Castle ActiveRecord is built on top of NHibernate, but its attribute-based mapping free the developer of writing XML for database-to-object mapping, which is needed when using NHibernate directly.

rack-contrib - Contributed Rack Middleware and Utilities

  •    Ruby

This package is semver compliant; you should use a pessimistic version constraint (~>) against the relevant 2.x version of this gem. This version of rack-contrib is only compatible with rack 2.x. If you are using rack 1.x, you will need to use rack-contrib 1.x. A suitable pessimistic version constraint (~>) is recommended.

rack-canonical-host - Rack middleware for defining a canonical host name.

  •    Ruby

Rack middleware that lets you define a single host name as the canonical host for your application. Requests for other host names will then be redirected to the canonical host. For most applications, you can insert the middleware into the file in the root of the application.

rubywarden - A Bitwarden-compatible API server written in Ruby (Sinatra and ActiveRecord)

  •    Ruby

A small, self-contained API server written in Ruby and Sinatra to provide a private backend for the open-source Bitwarden apps. All data is stored in a local SQLite database. This means you can easily run the server locally and have your data never leave your device, or run it on your own web server via Rack and some front-end HTTP server with TLS to support syncing across multiple devices. Backing up your data is as easy as copying the db/production/production.sqlite3 file somewhere.

rack-throttle - Rack middleware for rate-limiting incoming HTTP requests.

  •    Ruby

Rack middleware for rate-limiting incoming HTTP requests.

rack-server-pages - Rack middleware and application for serving dynamic pages in very simple way.

  •    Ruby

Rack middleware and application for serving dynamic pages in very simple way.

rack-ssl - Rack middleware to force SSL

  •    Ruby

Rack middleware to force SSL

rack-recaptcha - Rack Middleware for CAPTCHA verification via Recaptcha API

  •    Ruby

Rack Middleware for CAPTCHA verification via Recaptcha API

rack-codehighlighter - Rack Middleware for code highlighting.

  •    Ruby

Rack Middleware for code highlighting.

rack-raw-upload - Rack middleware to handle raw file uploads

  •    Ruby

Rack middleware to handle raw file uploads

rack-perftools_profiler - Middleware for profiling Rack-compatible apps using perftools.rb

  •    Ruby

Middleware for profiling Rack-compatible apps using perftools.rb

omnicontacts - A generalized Rack middleware for importing contacts from major email providers.

  •    Ruby

Inspired by the popular OmniAuth, OmniContacts is a library that enables users of an application to import contacts from their email or Facebook accounts. The email providers currently supported are Gmail, Yahoo and Hotmail. OmniContacts is a Rack middleware, therefore you can use it with Rails, Sinatra and any other Rack-based framework. OmniContacts uses the OAuth protocol to communicate with the contacts provider. Yahoo still uses OAuth 1.0, while Facebook, Gmail and Hotmail support OAuth 2.0. In order to use OmniContacts, it is therefore necessary to first register your application with the provider and to obtain client_id and client_secret.

rein - Database constraints made easy for ActiveRecord.

  •    Ruby

Data integrity is a good thing. Constraining the values allowed by your application at the database-level, rather than at the application-level, is a more robust way of ensuring your data stays sane. Unfortunately, ActiveRecord doesn't encourage (or even allow) you to use database integrity without resorting to hand-crafted SQL. Rein (pronounced "rain") adds a handful of methods to your ActiveRecord migrations so that you can easily tame the data in your database.

rack-tracker - Tracking made easy: Don’t fool around with adding tracking and analytics partials to your app and concentrate on the things that matter

  •    Ruby

Most of the applications we're working on are using some sort of tracking/analytics service, Google Analytics comes first but its likely that more are added as the project grows. Normally you'd go ahead and add some partials to your application that will render out the needed tracking codes. As time passes by you'll find yourself with lots of tracking snippets, that will clutter your codebase :) When just looking at Analytics there are solutions like rack-google-analytics but they just soley tackle the existence of one service. This will add Google Analytics as a tracking handler.