Releases: sparkapi/spark_api
v2.0.3
Fix ResoFaradayMiddleware NoMethodError on XML responses
Rescue in ResoFaradayMiddleware#on_complete referenced the local
body variable, but MultiJson.decode raised before body was
assigned — leaving it nil. .strip on nil raised NoMethodError
for every non-JSON response, including legitimate RESO XML metadata
(/Reso/OData/$metadata).
Reference env[:body] (the raw body) instead.
Adds spec coverage: legacy D-envelope passthrough, flat OData JSON,
XML metadata regression, and genuine non-JSON/non-XML still raising
MultiJson::ParseError.
Add HTTP PATCH method
PLAT-300: Add HTTP PATCH method
Adds a patch helper to SparkApi::Request alongside the existing
get/post/put/delete methods, plus a unit test covering the new path.
v2.0.0 Require Faraday 2.0+
What's Changed
Full Diff: v1.6.3...v2.0.0
Support for setting the user IP in the request headers
RESO Web API Versioning
This release supports contacting multiple versions of the RESO Web API backend. The default version for the reso_api middleware will be the non-versioned endpoint of the API. An explicit version will need to be added to hit the necessary endpoint for that version.
Fix omitted name dependency
Merge pull request #181 from sparkapi/addressable Name addressable gem as runtime dep
Fix omitted name dependency
Fix a deep comparison issue in spec file Not entirely sure what's going on here, but since this fixes the failure I'm banking on a deep comparison mismatch when the hash gets recreated. Only creating one hash works around it.
Adding support for Ruby 3.1
v1.6.0
- Adding support for Ruby 3.1
- Add support for psych 4.0 yaml loading
- Lock Faraday down to < 2.0
HighLine namespace fix
Modify the SparkApi::Authentication::OAuth2Impl::CLIProvider to use HighLine in a way that does not pollute the global namespace, to avoid collision with other gems.