faraday-mashify 0.1.0 → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +9 -1
- data/README.md +10 -4
- data/lib/faraday/mashify/version.rb +1 -1
- data/lib/faraday/mashify.rb +3 -2
- metadata +4 -4
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 16028f627eeec2f7ebdfc70f1f7edc08f19cdaa5d09329db55c428e067469d53
|
|
4
|
+
data.tar.gz: ce7c6975c2a55e00ec6882066c7c276eecef3f6a88efefe9b418ee872bedd130
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: b5aa61bb4526bb6d6bfb660edf0be29f9c365f82f359b3ea2277aaac3ea09005ad56f356e96d0367aff8606f5859c217b6250353216166a055bb51264a1e63df
|
|
7
|
+
data.tar.gz: 05bb04568a780f2994616ca05ff6116cee18f697b7e4e929ff2995a27590cc7dd88b48937388c809dab7538099db60202b6b88182f7a81fb20c2e1b97a96a2aa
|
data/CHANGELOG.md
CHANGED
|
@@ -1,7 +1,15 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
3
|
## Unreleased
|
|
4
|
-
[full changelog](http://github.com/sue445/
|
|
4
|
+
[full changelog](http://github.com/sue445/faraday-mashify/compare/v0.1.1...main)
|
|
5
|
+
|
|
6
|
+
## 0.1.1
|
|
7
|
+
[full changelog](http://github.com/sue445/faraday-mashify/compare/v0.1.0...v0.1.1)
|
|
8
|
+
|
|
9
|
+
* Fixed an error when not requiring `faraday` before requiring `faraday-mashify`
|
|
10
|
+
* https://github.com/sue445/faraday-mashify/pull/9
|
|
11
|
+
* Deploy yard to Pages
|
|
12
|
+
* https://github.com/sue445/faraday-mashify/pull/8
|
|
5
13
|
|
|
6
14
|
## 0.1.0
|
|
7
15
|
* Initial release.
|
data/README.md
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
# Faraday Mashify
|
|
2
2
|
|
|
3
|
-
[](https://github.com/sue445/faraday-mashify/actions?query=branch%3Amain)
|
|
4
4
|
[](https://rubygems.org/gems/faraday-mashify)
|
|
5
5
|
[](LICENSE.md)
|
|
6
6
|
|
|
7
|
-
Faraday middleware for wrapping responses into [
|
|
7
|
+
Faraday middleware for wrapping responses into [Hashie::Mash](https://github.com/hashie/hashie#mash).
|
|
8
8
|
|
|
9
|
-
This very specific middleware has been extracted from the [
|
|
9
|
+
This very specific middleware has been extracted from the [faraday_middleware](https://github.com/lostisland/faraday_middleware) project.
|
|
10
10
|
|
|
11
|
-
This is fully compatible with [
|
|
11
|
+
This is fully compatible with [FaradayMiddleware::Mashify](https://github.com/lostisland/faraday_middleware/blob/main/lib/faraday_middleware/response/mashify.rb)
|
|
12
12
|
|
|
13
13
|
## Installation
|
|
14
14
|
|
|
@@ -78,6 +78,12 @@ response.class
|
|
|
78
78
|
#=> MyHash
|
|
79
79
|
```
|
|
80
80
|
|
|
81
|
+
## Migrate from faraday_middleware
|
|
82
|
+
Please do the following
|
|
83
|
+
|
|
84
|
+
1. `gem "faraday_middleware"` -> `gem "faraday-mashify"` in `Gemfile`
|
|
85
|
+
2. `require "faraday_middleware"` -> `require "faraday/mashify"`
|
|
86
|
+
|
|
81
87
|
## Development
|
|
82
88
|
|
|
83
89
|
After checking out the repo, run `bin/setup` to install dependencies.
|
data/lib/faraday/mashify.rb
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
|
-
require_relative 'mashify/middleware'
|
|
4
|
-
require_relative 'mashify/version'
|
|
5
3
|
require 'faraday'
|
|
6
4
|
require 'hashie/mash'
|
|
7
5
|
|
|
6
|
+
require_relative 'mashify/middleware'
|
|
7
|
+
require_relative 'mashify/version'
|
|
8
|
+
|
|
8
9
|
module Faraday
|
|
9
10
|
# This will be your middleware main module, though the actual middleware implementation will go
|
|
10
11
|
# into Faraday::Mashify::Middleware for the correct namespacing.
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: faraday-mashify
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- sue445
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2022-01
|
|
11
|
+
date: 2022-10-01 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: faraday
|
|
@@ -198,8 +198,8 @@ licenses:
|
|
|
198
198
|
- MIT
|
|
199
199
|
metadata:
|
|
200
200
|
bug_tracker_uri: https://github.com/sue445/faraday-mashify/issues
|
|
201
|
-
changelog_uri: https://github.com/sue445/faraday-mashify/blob/v0.1.
|
|
202
|
-
documentation_uri:
|
|
201
|
+
changelog_uri: https://github.com/sue445/faraday-mashify/blob/v0.1.1/CHANGELOG.md
|
|
202
|
+
documentation_uri: https://sue445.github.io/faraday-mashify/
|
|
203
203
|
homepage_uri: https://github.com/sue445/faraday-mashify
|
|
204
204
|
source_code_uri: https://github.com/sue445/faraday-mashify
|
|
205
205
|
wiki_uri: https://github.com/sue445/faraday-mashify/wiki
|