Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

rack-indifferent

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rack-indifferent

  • 1.2.0
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

= rack-indifferent

rack-indifferent modifiesrack to make the hash it stores query params in support indifferent access. This allows web frameworks/applications that use rack-indifferent don't have to make a deep copy of the params to allow indifferent access to the params.

== Installation

gem install rack-indifferent

== Source Code

Source code is available on GitHub at https://github.com/jeremyevans/rack-indifferent

== Basic Usage

You just need to require the library:

require 'rack/indifferent'

On rack 1, this will monkey patch a rack class to change the query params hashes that rack uses to use indifferent access.

On rack 2, this will set a new default query parser that uses hashes with indifferent access. Note that web frameworks and applications that use custom query parsers in their request class will not be affected by rack-indifferent.

== License

MIT

== Maintainer

Jeremy Evans code@jeremyevans.net

FAQs

Package last updated on 20 Sep 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc