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

actionpack-cloudflare

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

actionpack-cloudflare

  • 1.1.0
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

Actionpack::Cloudflare

Build Status

Simple gem that extends Rails request.remote_ip to default to Cloudflare's HTTP_CF_CONNECTING_IP header. More about CloudFlare HTTP Headers and why we choose to trust CF-Connecting-IP.

Installation

Add this line to your Rails application's Gemfile:

gem 'actionpack-cloudflare'

Usage

None! Just install and feel confident that request.remote_ip is doing its job.

Alternatives

  • cloudflare-rails - Leverages cached HTTP requests to Cloudflare to extend Rails' trusted proxies list.

Contributing

We use the Appraisal gem from Thoughtbot to help us test different versions of Rails. The appraisal rake test subcommand runs our test suite against all Rails versions in the Appraisal file. So after cloning the repo, running the following commands.

$ bundle install
$ bundle exec appraisal update
$ bundle exec appraisal rake test

If you want to run the tests for a specific appraisal, use one of the names found in our Appraisal file. For example, the following will run our tests suite for Rails 4.2 only.

$ bundle exec appraisal rails42 rake test

License

The gem is available as open source under the terms of the MIT License.

FAQs

Package last updated on 28 Oct 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