webfinger 2.0.0 → 2.1.0

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: 453c181e3514a3c48a35bf9313439ce3e010b55381a825551563361e6ff1a10b
4
- data.tar.gz: 6eea576a4c6402866a98ade6a92ab14f4823b81a03210b3ff156b800250f8c0a
3
+ metadata.gz: d259fcab87388831d5b980e891ee5f8022ada8935423ee665a95ab394d3cb1bc
4
+ data.tar.gz: 2f66aff8dbbc2e65cf2ee903803561a769e4cf6da665714464407e1b1ccb6806
5
5
  SHA512:
6
- metadata.gz: a350849707db88ae1a09d9fb86e6fbb05a9b20528f1ed9ff726830aa2f17ac3fb31659d7c83eb1ec56ef3243966066812d65926de088e62ac6604304f258d14a
7
- data.tar.gz: 4f52b74f9f365229dfa41017cf2e06ff8d5d1e6497f40fc8acda26630829a43cd3fbd005f25a3c263bbc19b886357b005cf6e2f1b4dd7b422d675eeb3849f535
6
+ metadata.gz: edf7b4a21d1890549757a4d316b14dbc2cfb584e7fb84a2badf5a68d8bca201272b5ffa1717c89c4edd73b764df50b53cd71802a25cdeaf709a635310655e88f
7
+ data.tar.gz: 2fbab83bf5ddb9dc7badb4f611281caf7fc04eeafecbfe72af9a006f68a6fecc24b88fd831c7bf60e06eef56e6590f2bd601fe82ea6115ce4fb5beae57807b11
data/CHANGELOG.md ADDED
@@ -0,0 +1,11 @@
1
+ ## [Unreleased]
2
+
3
+ ## [2.0.0] - 2022-10-08
4
+
5
+ ### Added
6
+
7
+ - start recording CHANGELOG
8
+
9
+ ### Changed
10
+
11
+ - Switch from httpclient to faraday https://github.com/nov/webfinger/pull/9
data/VERSION CHANGED
@@ -1 +1 @@
1
- 2.0.0
1
+ 2.1.0
data/lib/webfinger.rb CHANGED
@@ -1,6 +1,6 @@
1
1
  require 'json'
2
2
  require 'faraday'
3
- require 'faraday_middleware'
3
+ require 'faraday/follow_redirects'
4
4
  require 'active_support'
5
5
  require 'active_support/core_ext'
6
6
 
@@ -43,12 +43,13 @@ module WebFinger
43
43
  end
44
44
 
45
45
  def http_client
46
- Faraday.new(headers: {user_agent: "WebFinger #{VERSION}"}) do |f|
47
- f.response :raise_error
48
- f.response :json
49
- f.response :logger, WebFinger.logger if debugging?
50
- f.use FaradayMiddleware::FollowRedirects
51
- http_config.try(:call, f)
46
+ Faraday.new(headers: {user_agent: "WebFinger #{VERSION}"}) do |faraday|
47
+ faraday.response :raise_error
48
+ faraday.response :json
49
+ faraday.response :follow_redirects
50
+ faraday.response :logger, WebFinger.logger if debugging?
51
+ faraday.adapter Faraday.default_adapter
52
+ http_config.try(:call, faraday)
52
53
  end
53
54
  end
54
55
 
data/webfinger.gemspec CHANGED
@@ -12,8 +12,8 @@ Gem::Specification.new do |gem|
12
12
  gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
13
13
  gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
14
14
  gem.require_paths = ['lib']
15
- gem.add_runtime_dependency 'faraday', '~> 1.7'
16
- gem.add_runtime_dependency 'faraday_middleware', '~> 1.1'
15
+ gem.add_runtime_dependency 'faraday', '~> 2.0'
16
+ gem.add_runtime_dependency 'faraday-follow_redirects'
17
17
  gem.add_runtime_dependency 'activesupport'
18
18
  gem.add_development_dependency 'rake'
19
19
  gem.add_development_dependency 'rspec'
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.0.0
4
+ version: 2.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - nov matake
@@ -16,28 +16,28 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '1.7'
19
+ version: '2.0'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: '1.7'
26
+ version: '2.0'
27
27
  - !ruby/object:Gem::Dependency
28
- name: faraday_middleware
28
+ name: faraday-follow_redirects
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - "~>"
31
+ - - ">="
32
32
  - !ruby/object:Gem::Version
33
- version: '1.1'
33
+ version: '0'
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - "~>"
38
+ - - ">="
39
39
  - !ruby/object:Gem::Version
40
- version: '1.1'
40
+ version: '0'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: activesupport
43
43
  requirement: !ruby/object:Gem::Requirement
@@ -132,6 +132,7 @@ files:
132
132
  - ".github/FUNDING.yml"
133
133
  - ".github/workflows/spec.yml"
134
134
  - ".gitignore"
135
+ - CHANGELOG.md
135
136
  - Gemfile
136
137
  - LICENSE.txt
137
138
  - README.rdoc