relaton-doi 1.18.1 → 1.18.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/relaton_doi/crossref.rb +3 -1
- data/lib/relaton_doi/version.rb +1 -1
- data/relaton-doi.gemspec +1 -1
- metadata +15 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3b48dd4b37b780ce903cf5a8f55ac14d0af28b3d8b02fe62119bccddfe4526b3
|
4
|
+
data.tar.gz: 9ff9d9787377ac3707aaf15979215775cc2c8f09e5add367f086faac1ab45f8b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 130af41cc36abc26376728b40fa798e10ef907c03e3a4fc9a2c2b156436071419e2cbf58d569f867b03900e1301c2dd05431e1a036c91c8dc595c71968aed78d
|
7
|
+
data.tar.gz: 56227622d4d4d2d6644b2feabdd5454d7b039db9ca8b8c9bfe56db02fbbf8279815fa20f40c747e15d3528b67dcb696310870fff657d729a3924413405d1433c
|
data/lib/relaton_doi/crossref.rb
CHANGED
@@ -1,3 +1,5 @@
|
|
1
|
+
require "faraday"
|
2
|
+
|
1
3
|
module RelatonDoi
|
2
4
|
module Crossref
|
3
5
|
extend self
|
@@ -38,7 +40,7 @@ module RelatonDoi
|
|
38
40
|
def get_by_id(id)
|
39
41
|
# resp = Serrano.works ids: id
|
40
42
|
n = 0
|
41
|
-
url = "https://api.crossref.org/works/#{
|
43
|
+
url = "https://api.crossref.org/works/#{CGI.escape(id)}"
|
42
44
|
loop do
|
43
45
|
resp = Faraday.get url, nil, HEADER
|
44
46
|
case resp.status
|
data/lib/relaton_doi/version.rb
CHANGED
data/relaton-doi.gemspec
CHANGED
@@ -40,7 +40,7 @@ Gem::Specification.new do |spec|
|
|
40
40
|
spec.add_dependency "relaton-ietf", "~> 1.18.0"
|
41
41
|
spec.add_dependency "relaton-nist", "~> 1.18.0"
|
42
42
|
# spec.add_dependency "relaton-w3c", "~> 1.10.0"
|
43
|
-
|
43
|
+
spec.add_dependency "faraday", "~> 2.7"
|
44
44
|
|
45
45
|
# For more information and examples about making a new gem, checkout our
|
46
46
|
# guide at: https://bundler.io/guides/creating_gem.html
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: relaton-doi
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.18.
|
4
|
+
version: 1.18.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ribose Inc.
|
@@ -80,6 +80,20 @@ dependencies:
|
|
80
80
|
- - "~>"
|
81
81
|
- !ruby/object:Gem::Version
|
82
82
|
version: 1.18.0
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: faraday
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - "~>"
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '2.7'
|
90
|
+
type: :runtime
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - "~>"
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: '2.7'
|
83
97
|
description: 'RelatonDOI: retrieve Standards for bibliographic using DOI through Crossrefand
|
84
98
|
provide Relaton object.'
|
85
99
|
email:
|