relaton-doi 1.16.1 → 1.16.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: '058c5f5551b87b97c9233448210c2e19394a590fc83fffbb28a925d9b9a88c5c'
4
- data.tar.gz: a2231749ac4c0e15b626dba1b95977562e7f19a2f9937193383e421f1cafc020
3
+ metadata.gz: 1fc8ca041ddc95e57f5cc9ed9a92c82f2084d6d6c85bb388fe6517eb735c13a2
4
+ data.tar.gz: 76b59b80620b074a1612989d8235c4de08a3871eb0719193a87bdbb6c769e4bc
5
5
  SHA512:
6
- metadata.gz: b80efebfe1483f54f358b55cc451fc6786d9f79ebad8ca511a6a979e284f9c59b9b7335b66bbf34734e874fb6fefac19d38fa7c87ab5ce5891cc7cf91fc8018b
7
- data.tar.gz: af171143ae77d7550d01dc45616a667f951efe49551ce202e2dea71f6410fc52c837f8407718d496810143f985d937c400303dd7acd56c39098300608df4d05d
6
+ metadata.gz: 0d030e88dda6f574255c2f74c650490d3abc3d1b2885dc087e4b8a8e618362b36e56d4170fe4fa9ee9825f7b38212b995ddf35bf1d00a10aa4932866a6339d62
7
+ data.tar.gz: 0204b1fd7fd912c7c49ccb83a4f62ef370f529f34a136edc077e1aacb3c71247442c6d9a8194b3591d38b9e858ce2058e50fde8d02f3d1217e941c32029a5ac2
data/README.adoc CHANGED
@@ -66,30 +66,30 @@ require 'relaton_doi'
66
66
 
67
67
  # get NIST standard
68
68
  RelatonDoi::Crossref.get "doi:10.6028/nist.ir.8245"
69
- [relaton-doi] ["doi:10.6028/nist.ir.8245"] fetching...
70
- [relaton-doi] ["doi:10.6028/nist.ir.8245"] found 10.6028/nist.ir.8245
69
+ [relaton-doi] (doi:10.6028/nist.ir.8245) Fetching from search.crossref.org ...
70
+ [relaton-doi] (doi:10.6028/nist.ir.8245) Found: `10.6028/nist.ir.8245`
71
71
  => #<RelatonNist::NistBibliographicItem:0x00007ff22420d820
72
72
  ...
73
73
 
74
74
  # get RFC standard
75
75
  RelatonDoi::Crossref.get "doi:10.17487/RFC0001"
76
- [relaton-doi] ["doi:10.17487/RFC0001"] fetching...
77
- [relaton-doi] ["doi:10.17487/RFC0001"] found 10.17487/rfc0001
78
- [relaton-ietf] WARNING: invalid doctype report
76
+ [relaton-doi] (doi:10.17487/RFC0001) Fetching from search.crossref.org ...
77
+ [relaton-doi] (doi:10.17487/RFC0001) Found: `10.17487/rfc0001`
78
+ [relaton-ietf] WARNING: Invalid doctype report
79
79
  => #<RelatonIetf::IetfBibliographicItem:0x00007ff2241be6d0
80
80
  ...
81
81
 
82
82
  # get BIPM standard
83
83
  RelatonDoi::Crossref.get "doi:10.1088/0026-1394/29/6/001"
84
- [relaton-doi] ["doi:10.1088/0026-1394/29/6/001"] fetching...
85
- [relaton-doi] ["doi:10.1088/0026-1394/29/6/001"] found 10.1088/0026-1394/29/6/001
84
+ [relaton-doi] (doi:10.1088/0026-1394/29/6/001) Fetching from search.crossref.org ...
85
+ [relaton-doi] (doi:10.1088/0026-1394/29/6/001) Found: `10.1088/0026-1394/29/6/001`
86
86
  => #<RelatonBipm::BipmBibliographicItem:0x00007f9c846f0a68
87
87
  ...
88
88
 
89
89
  # get IEEE standard
90
90
  RelatonDoi::Crossref.get "doi:10.1109/ieeestd.2014.6835311"
91
- [relaton-doi] ["doi:10.1109/ieeestd.2014.6835311"] fetching...
92
- [relaton-doi] ["doi:10.1109/ieeestd.2014.6835311"] found 10.1109/ieeestd.2014.6835311
91
+ [relaton-doi] (doi:10.1109/ieeestd.2014.6835311) Fetching from search.crossref.org ...
92
+ [relaton-doi] (doi:10.1109/ieeestd.2014.6835311) Found: `10.1109/ieeestd.2014.6835311`
93
93
  => #<RelatonIeee::IeeeBibliographicItem:0x00007f9cb46db688
94
94
  ...
95
95
  ----
@@ -102,8 +102,8 @@ to Relaton, an instance of RelatonBib::BibliographicItem will be returned.
102
102
  [source,ruby]
103
103
  ----
104
104
  RelatonDoi::Crossref.get "doi:10.1109/ACCESS.2017.2739804"
105
- [relaton-doi] ["doi:10.1109/ACCESS.2017.2739804"] fetching...
106
- [relaton-doi] ["doi:10.1109/ACCESS.2017.2739804"] found 10.1109/access.2017.2739804
105
+ [relaton-doi] (doi:10.1109/ACCESS.2017.2739804) Fetching from search.crossref.org ...
106
+ [relaton-doi] (doi:10.1109/ACCESS.2017.2739804) Found: `10.1109/access.2017.2739804`
107
107
  => #<RelatonBib::BibliographicItem:0x00007ff22435e490
108
108
  ...
109
109
  ----
@@ -12,13 +12,13 @@ module RelatonDoi
12
12
  # RelatonNist::NistBibliographicItem] The bibitem.
13
13
  #
14
14
  def get(doi)
15
- Util.warn "(#{doi}) fetching..."
15
+ Util.warn "(#{doi}) Fetching from search.crossref.org ..."
16
16
  id = doi.sub(%r{^doi:}, "")
17
17
  message = get_by_id id
18
- Util.warn "(#{doi}) found `#{message['DOI']}`"
18
+ Util.warn "(#{doi}) Found: `#{message['DOI']}`"
19
19
  Parser.parse message
20
20
  rescue Serrano::NotFound
21
- Util.warn "(#{doi}) not found"
21
+ Util.warn "(#{doi}) Not found."
22
22
  nil
23
23
  end
24
24
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module RelatonDoi
4
- VERSION = "1.16.1"
4
+ VERSION = "1.16.2"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: relaton-doi
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.16.1
4
+ version: 1.16.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose Inc.
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-09-22 00:00:00.000000000 Z
11
+ date: 2023-10-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: relaton-bib