Skip to content
This repository has been archived by the owner on May 13, 2021. It is now read-only.

junsumida/rack-camel_snake

Repository files navigation

Build Status Code Climate Coverage Status

Rack::CamelSnake

Rack::CamelSnake is a Rack middleware to convert keys in a json from camelCase into snake_case, and vice versa.

Requirement

  • ruby 2.1.0 or higher

Installation

Add this line to your application's Gemfile:

gem 'rack-camel_snake', :git => 'https://github.com/junsumida/rack-camel_snake.git'

And then execute:

$ bundle

Or install it yourself as:

$ gem install rack-camel_snake

Usage

Please add use Rack::CamelSnake to your config.ru file. For example,

use Rack::CamelSnake
run YourRackApp

Contributing

  1. Fork it ( http://github.com//rack-camel_snake/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages