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 +4 -4
- data/CHANGELOG.md +11 -0
- data/VERSION +1 -1
- data/lib/webfinger.rb +8 -7
- data/webfinger.gemspec +2 -2
- metadata +9 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d259fcab87388831d5b980e891ee5f8022ada8935423ee665a95ab394d3cb1bc
|
4
|
+
data.tar.gz: 2f66aff8dbbc2e65cf2ee903803561a769e4cf6da665714464407e1b1ccb6806
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: edf7b4a21d1890549757a4d316b14dbc2cfb584e7fb84a2badf5a68d8bca201272b5ffa1717c89c4edd73b764df50b53cd71802a25cdeaf709a635310655e88f
|
7
|
+
data.tar.gz: 2fbab83bf5ddb9dc7badb4f611281caf7fc04eeafecbfe72af9a006f68a6fecc24b88fd831c7bf60e06eef56e6590f2bd601fe82ea6115ce4fb5beae57807b11
|
data/CHANGELOG.md
ADDED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
2.
|
1
|
+
2.1.0
|
data/lib/webfinger.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
require 'json'
|
2
2
|
require 'faraday'
|
3
|
-
require '
|
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 |
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
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', '~>
|
16
|
-
gem.add_runtime_dependency '
|
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.
|
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: '
|
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: '
|
26
|
+
version: '2.0'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
|
-
name:
|
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: '
|
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: '
|
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
|