{"id":21519341,"url":"https://github.com/alexwayfer/faraday-encode_xml","last_synced_at":"2026-03-09T00:33:52.946Z","repository":{"id":38311515,"uuid":"408961384","full_name":"AlexWayfer/faraday-encode_xml","owner":"AlexWayfer","description":"Faraday middleware for encoding requests as XML","archived":false,"fork":false,"pushed_at":"2025-06-21T11:46:10.000Z","size":130,"stargazers_count":1,"open_issues_count":3,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-06-23T03:46:10.977Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/AlexWayfer.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-09-21T20:13:46.000Z","updated_at":"2022-01-17T05:33:52.000Z","dependencies_parsed_at":"2024-01-15T13:45:38.757Z","dependency_job_id":"f11630a7-435b-4fc1-8ca8-f1ad9906d588","html_url":"https://github.com/AlexWayfer/faraday-encode_xml","commit_stats":{"total_commits":51,"total_committers":2,"mean_commits":25.5,"dds":0.4901960784313726,"last_synced_commit":"27fd53e1a29196aba6356466c1e4af74e4c16e0f"},"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/AlexWayfer/faraday-encode_xml","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AlexWayfer%2Ffaraday-encode_xml","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AlexWayfer%2Ffaraday-encode_xml/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AlexWayfer%2Ffaraday-encode_xml/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AlexWayfer%2Ffaraday-encode_xml/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AlexWayfer","download_url":"https://codeload.github.com/AlexWayfer/faraday-encode_xml/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AlexWayfer%2Ffaraday-encode_xml/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262685661,"owners_count":23348450,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-24T00:57:29.384Z","updated_at":"2025-10-08T03:23:23.563Z","avatar_url":"https://github.com/AlexWayfer.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Faraday Encode XML\n\n[![Cirrus CI - Base Branch Build Status](https://img.shields.io/cirrus/github/AlexWayfer/faraday-encode_xml?style=flat-square)](https://cirrus-ci.com/github/AlexWayfer/faraday-encode_xml)\n[![Codecov branch](https://img.shields.io/codecov/c/github/AlexWayfer/faraday-encode_xml/main.svg?style=flat-square)](https://codecov.io/gh/AlexWayfer/faraday-encode_xml)\n[![Code Climate](https://img.shields.io/codeclimate/maintainability/AlexWayfer/faraday-encode_xml.svg?style=flat-square)](https://codeclimate.com/github/AlexWayfer/faraday-encode_xml)\n[![Depfu](https://img.shields.io/depfu/AlexWayfer/faraday-encode_xml?style=flat-square)](https://depfu.com/repos/github/AlexWayfer/faraday-encode_xml)\n[![Gem](https://img.shields.io/gem/v/faraday-encode_xml.svg?style=flat-square)](https://rubygems.org/gems/faraday-encode_xml)\n[![License](https://img.shields.io/github/license/AlexWayfer/faraday-encode_xml.svg?style=flat-square)](LICENSE.txt)\n\nThis repo is a [Faraday](https://github.com/lostisland/faraday) middleware for encoding requests as XML.\nFaraday is an HTTP client library that provides a common interface for making requests.\n\n## Installation\n\nAdd this line to your application's Gemfile:\n\n```ruby\ngem 'faraday-encode_xml'\n```\n\nAnd then execute:\n\n```shell\nbundle install\n```\n\nOr install it yourself as:\n\n```shell\ngem install faraday-encode_xml\n```\n\n## Usage\n\n```ruby\nrequire 'faraday/encode_xml'\n\nconnection = Faraday.new do |faraday|\n  ## This gem only encodes requests\n  faraday.request :xml\n\n  ## For responses deconding use `faraday_middleware` gem and such code:\n  # require 'faraday_middleware'\n  # faraday.response :xml\n\n  ## For example `httpbingo` responses as JSON, so let's enable it:\n  require 'faraday_middleware'\n  faraday.response :json\nend\n\nresponse = connection.post('https://httpbingo.org/post', { a: 1, b: 'foo', c: true })\n\nputs response.body['data'] ## =\u003e \u003ca\u003e1\u003c/a\u003e\u003cb\u003efoo\u003c/b\u003e\u003cc\u003etrue\u003c/c\u003e\n```\n\n### Gyoku options\n\nThe middleware uses [`gyoku` gem](https://rubygems.org/gems/gyoku) for XML encoding.\n\nYou can pass options for it:\n\n```ruby\nconnection = Faraday.new do |faraday|\n  ## https://www.rubydoc.info/gems/gyoku/#array-values\n  faraday.request :xml, gyoku_options: { unwrap: true }\nend\n```\n\n## Development\n\nAfter checking out the repo, run `bundle install` to install dependencies.\n\nThen, run `bundle exec rspec` to run the tests.\n\nTo install this gem onto your local machine, run `toys gem install`.\n\nTo release a new version, run `toys gem release %version%`.\nSee how it works [here](https://github.com/AlexWayfer/gem_toys#release).\n\n## Contributing\n\nBug reports and pull requests are welcome on [GitHub](https://github.com/AlexWayfer/faraday-encode_xml).\n\n## License\n\nThe gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falexwayfer%2Ffaraday-encode_xml","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falexwayfer%2Ffaraday-encode_xml","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falexwayfer%2Ffaraday-encode_xml/lists"}