No release in over a year
Parse dates from response.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 2.0
~> 0.12.0
~> 3.0
~> 1.32.0
~> 0.21.0
~> 0.13.0

Runtime

~> 2.0
 Project Readme

Faraday Parse Dates

Cirrus CI - Base Branch Build Status Codecov branch Code Climate Depfu Inline docs Gem License

Parse dates from response.

Installation

Add this line to your application's Gemfile:

gem 'faraday-parse_dates'

And then execute:

bundle install

Or install it yourself as:

gem install faraday-parse_dates

Usage

require 'faraday/parse_dates'

connection = Faraday.new do |faraday|
  ## This gem only decodes responses
  faraday.response :parse_dates

  ## Alternatively, you can use `use`
  # faraday.use :parse_dates
end

Order note

It can doesn't work being placed after faraday.response :json or similar middlewares, but can work before them. Check the order and results.

The issue about this: lostisland/faraday#1458

And please read middlewares documentation carefully: https://lostisland.github.io/faraday/middleware/

Development

After checking out the repo, run bin/setup to install dependencies.

Then, run bin/test to run the tests.

To install this gem onto your local machine, run toys gem install.

To release a new version, run toys gem release %version%. See how it works here.

Contributing

Bug reports and pull requests are welcome on GitHub.

License

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