Sha256: eaf2e9cc8f9d16407eb6447298858d4a140b857ff253d829e73e7d791a64223c
Contents?: true
Size: 1.25 KB
Versions: 9
Compression:
Stored size: 1.25 KB
Contents
Here is a list of backward-incompatible changes that were introduced while Her is pre-1.0. After reaching 1.0, it will follow the [Semantic Versioning](http://semver.org/) system. ## 0.2.4 * Her no longer includes default middleware when making HTTP requests. The user has now to define all the needed middleware. Before: Her::API.setup :url => "https://api.example.com" do |connection| connection.insert(0, FaradayMiddle::OAuth) end Now: Her::API.setup :url => "https://api.example.com" do |connection| connection.use FaradayMiddle::OAuth connection.use Her::Middleware::FirstLevelParseJSON connection.use Faraday::Request::UrlEncoded connection.use Faraday::Adapter::NetHttp end ## 0.2 * The default parser middleware has been replaced to treat first-level JSON data as the resource or collection data. Before it expected this: { "data": { "id": 1, "name": "Foo" }, "errors": [] } Now it expects this (the `errors` key is not treated as resource data): { "id": 1, "name": "Foo", "errors": [] } If you still want to get the old behavior, you can use `Her::Middleware::SecondLevelParseJSON` instead of `Her::Middleware::FirstLevelParseJSON` in your middleware stack.
Version data entries
9 entries across 9 versions & 1 rubygems
Version | Path |
---|---|
her-0.3.7 | UPGRADE.md |
her-0.3.6 | UPGRADE.md |
her-0.3.5 | UPGRADE.md |
her-0.3.4 | UPGRADE.md |
her-0.3.3 | UPGRADE.md |
her-0.3.2 | UPGRADE.md |
her-0.3.1 | UPGRADE.md |
her-0.3 | UPGRADE.md |
her-0.2.6 | UPGRADE.md |