Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/soberstadt/faraday-decode_xml
- Owner: soberstadt
- License: mit
- Created: 2022-06-13T17:08:11.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-08-24T16:58:35.000Z (about 2 years ago)
- Last Synced: 2024-11-02T18:41:37.472Z (8 days ago)
- Language: Ruby
- Size: 26.4 KB
- Stars: 1
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE.md
Awesome Lists containing this project
- awesome-faraday - decode_xml - decode XML responses (Middleware)
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).