{"id":82865,"library":"bartt-ssl-requirement","title":"Bartt SSL Requirement","description":"Adds a declarative way of specifying that certain actions should only be allowed to run under SSL, and if they're accessed without it, they should be redirected.","status":"active","version":"1.4.2","language":"ruby","source_language":null,"source_url":"https://github.com/bartt/ssl_requirement","tags":["ssl","rails","security"],"install":[{"cmd":"gem install bartt-ssl_requirement","lang":"bash","label":"gem install"},{"cmd":"# Gemfile\ngem 'bartt-ssl_requirement', '~> 1.4.2'","lang":"ruby","label":"Gemfile"}],"dependencies":[],"imports":[{"symbol":"SslRequirement","correct":"require 'ssl_requirement'"}],"quickstart":{"code":"require 'ssl_requirement'\nclass ApplicationController < ActionController::Base\n  include SslRequirement\n  ssl_required :create, :update\nend","lang":"ruby","description":"Require SSL for specific actions"},"warnings":[{"fix":"Use the built-in force_ssl method in Rails 4+ or upgrade to a maintained gem.","message":"Only works with Rails 2.x and 3.x; not compatible with Rails 4+.","severity":"breaking","affected_versions":">= 1.0.0"}],"env_vars":null,"search_vec":"'access':25 'action':12 'add':4 'allow':16 'bartt':1 'certain':11 'declar':6 'rail':33 're':24 'redirect':31 'requir':3 'run':18 'secur':34 'specifi':9 'ssl':2,20,32 'way':7 'without':26","created_at":"2026-06-19T05:31:27.170277+00:00","updated_at":"2026-06-19T05:31:27.170277+00:00","problems":[],"ecosystem":"rubygems","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":null,"cli_version":null,"type":"library","homepage":"https://github.com/bartt/ssl_requirement","github":"https://github.com/bartt/ssl_requirement","docs":"http://www.rubydoc.info/gems/bartt-ssl_requirement/","changelog":null,"pypi":null,"npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["web-framework","auth"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-06-19","next_check":"2026-12-16","install_tag":null}}