webfinger 2.1.0 → 2.1.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d259fcab87388831d5b980e891ee5f8022ada8935423ee665a95ab394d3cb1bc
4
- data.tar.gz: 2f66aff8dbbc2e65cf2ee903803561a769e4cf6da665714464407e1b1ccb6806
3
+ metadata.gz: 6b46a25444cdb10ea610330974cd6ac9b02a547b3dbe3be70662d0c7b2ad2eeb
4
+ data.tar.gz: f6cec0ceef5f6cce9b7b7645998d38079a9089b90d2faaf282122a3280a29fab
5
5
  SHA512:
6
- metadata.gz: edf7b4a21d1890549757a4d316b14dbc2cfb584e7fb84a2badf5a68d8bca201272b5ffa1717c89c4edd73b764df50b53cd71802a25cdeaf709a635310655e88f
7
- data.tar.gz: 2fbab83bf5ddb9dc7badb4f611281caf7fc04eeafecbfe72af9a006f68a6fecc24b88fd831c7bf60e06eef56e6590f2bd601fe82ea6115ce4fb5beae57807b11
6
+ metadata.gz: 1aead7e5646d0ac4e354bcf38f915d6d05bbcce805786d0b10c42c4b34f0e4cf666ca24e5aa9981b34884a7c36be1ba026cfc7f9aa86d730745d0bc17fad699b
7
+ data.tar.gz: 4d54467caf574a5cc4d9683e290ffdc6524bf49ce5169ff890dfeb522cd1e3366a300a718567ba7940cfea3ede4676716dea739820d5c8c9c075d5a7067af75b
data/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  ## [Unreleased]
2
2
 
3
+ ## [2.1.0] - 2022-10-08
4
+
5
+ ### Changed
6
+
7
+ - Moved to faraday v2 https://github.com/nov/webfinger/commit/e72fa7b7c7018c809ba9ce8aae2ee64d6c1d1d02
8
+
3
9
  ## [2.0.0] - 2022-10-08
4
10
 
5
11
  ### Added
data/VERSION CHANGED
@@ -1 +1 @@
1
- 2.1.0
1
+ 2.1.1
@@ -50,7 +50,7 @@ module WebFinger
50
50
  end
51
51
 
52
52
  def handle_response
53
- json = yield.body
53
+ json = yield.body.with_indifferent_access
54
54
  Response.new json
55
55
  rescue Faraday::Error => e
56
56
  case e.response_status
@@ -26,6 +26,9 @@ module WebMockHelper
26
26
 
27
27
  def response_for(response_file, options = {})
28
28
  response = {}
29
+ response[:headers] = {
30
+ 'Content-Type': 'application/json'
31
+ }
29
32
  response[:body] = File.new(File.join(File.dirname(__FILE__), '../mock_json', "#{response_file}.json"))
30
33
  if options[:status]
31
34
  response[:status] = options[:status]
@@ -157,7 +157,7 @@ describe WebFinger do
157
157
  describe '#http_client' do
158
158
  subject { WebFinger.http_client }
159
159
 
160
- describe '#request_filter' do
160
+ describe '#logger' do
161
161
  subject { WebFinger.http_client.builder.handlers.collect(&:klass) }
162
162
 
163
163
  context 'as default' do
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: webfinger
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.0
4
+ version: 2.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - nov matake