Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/soberstadt/faraday-decode_xml

Faraday middleware for decoding XML requests
https://github.com/soberstadt/faraday-decode_xml

Last synced: 2 days ago
JSON representation

Faraday middleware for decoding XML requests

Awesome Lists containing this project

README

        

# Faraday Decode XML

[![GitHub Workflow Status](https://github.com/soberstadt/faraday-decode_xml/actions/workflows/ci.yaml/badge.svg?branch=main)](https://github.com/soberstadt/faraday-decode_xml/actions?query=branch%3Amain)
[![Gem](https://img.shields.io/gem/v/faraday-decode_xml.svg?style=flat-square)](https://rubygems.org/gems/faraday-decode_xml)
[![License](https://img.shields.io/github/license/soberstadt/faraday-decode_xml.svg?style=flat-square)](LICENSE.md)

Faraday middleware for decoding XML requests.

## Installation

Add this line to your application's Gemfile:

```ruby
gem "faraday-decode_xml"
```

And then execute:

```shell
bundle install
```

Or install it yourself as:

```shell
gem install faraday-decode_xml
```

## Usage

```ruby
require "faraday/decode_xml"

Faraday.new { |faraday| faraday.response :xml }
```

## 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 `rake build`.

To release a new version, make a commit with a message such as "Bumped to 0.0.2" and then run `rake release`.
See how it works [here](https://bundler.io/guides/creating_gem.html#releasing-the-gem).

To run prettier, run `rake prettier`

## Contributing

Bug reports and pull requests are welcome on [GitHub](https://github.com/soberstadt/faraday-decode_xml).

## License

The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).