Project

xipio

0.01
No commit activity in last 3 years
No release in over 3 years
When reading the subdomain of an xip.io request, you will get a different value compared to a local pow request. The reason for this is that the tld length is 1 by default, but an xip.io request has a tld length of 6. This gem inserts a middleware that corrects the tld length config of rails on the fly so that you can use local and xip requests at the same time without restarting the server.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
 Dependencies

Development

~> 1.3
>= 0

Runtime

 Project Readme

xipio

Gem Version

Add xip.io support to your rails app in development mode.

Description

When reading the subdomain of an xip.io request, you will get a different value compared to a local pow request. The reason for this is that the tld length is 1 by default, but an xip.io request has a tld length of 6. This gem inserts a middleware that corrects the tld length config of rails on the fly so that you can use local and xip requests at the same time without restarting the server.

Installation

Add this line to your application's Gemfile:

gem 'xipio', group: :development

That's it! There's nothing to configure. It just works out of the box.

Additional Information

Maintainers

License

MIT License. Copyright 2013 Philipe Fatio

Bitdeli Badge