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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f6165c455d9e93d58c276f6822b9f37d3c47b19a43daae5cbe9f4b13dafeb70e
4
- data.tar.gz: fbe2077d29570724250addffd80a07d53073303eb55066e007caa2943e0932c7
3
+ metadata.gz: 3b48dd4b37b780ce903cf5a8f55ac14d0af28b3d8b02fe62119bccddfe4526b3
4
+ data.tar.gz: 9ff9d9787377ac3707aaf15979215775cc2c8f09e5add367f086faac1ab45f8b
5
5
  SHA512:
6
- metadata.gz: 12d38b33fa066cf92cbecf2a0f4398aa264d941a0e6f09b8099c390e4eb31108ddec4862a395f60a031a3994090f7676ed54705a90d6e7f78ec4b2202f1f632c
7
- data.tar.gz: d2174bd65dfc7e96e1e1a4c0ec08387a32dd82d3432d8ebb9d792b2d964d21b46468c325f7402345ec702fdd66d1fd430c3309f064781b692f84caa531bc88fc
6
+ metadata.gz: 130af41cc36abc26376728b40fa798e10ef907c03e3a4fc9a2c2b156436071419e2cbf58d569f867b03900e1301c2dd05431e1a036c91c8dc595c71968aed78d
7
+ data.tar.gz: 56227622d4d4d2d6644b2feabdd5454d7b039db9ca8b8c9bfe56db02fbbf8279815fa20f40c747e15d3528b67dcb696310870fff657d729a3924413405d1433c
@@ -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/#{ERB::Util.url_encode(id)}"
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module RelatonDoi
4
- VERSION = "1.18.1"
4
+ VERSION = "1.18.2"
5
5
  end
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
- # spec.add_dependency "serrano", "~> 1.4.0"
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.1
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: