relaton-doi 1.16.1 → 1.17.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.adoc +11 -11
- data/lib/relaton_doi/crossref.rb +3 -3
- data/lib/relaton_doi/parser.rb +1 -1
- data/lib/relaton_doi/version.rb +1 -1
- data/relaton-doi.gemspec +5 -5
- metadata +12 -12
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cd7a42c8385682ebeaffdf2c5b552c62a71b776f971d8ff762c13348035b1136
|
4
|
+
data.tar.gz: 836ce430acc1746ad7b13fd41a0ff3d6d40f03dc3013f79d6f435deb7a57f697
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c8499a314b47222447948dfc44165843a1d6e9466ac43550a267248967d368d589792bfe48203085bf9fac8bb51633f69da93f9c3feebea95a29d34f38a9ba09
|
7
|
+
data.tar.gz: 9c660236a25bf4e09a7f8bee10fff38dd04a9ad6ee01eee956a94625450c6fab842f7f757cdb8854ae65bc00928edced39cb0af65e86a95e0a50881819d3c151
|
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]
|
70
|
-
[relaton-doi]
|
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]
|
77
|
-
[relaton-doi]
|
78
|
-
[relaton-ietf] WARNING:
|
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]
|
85
|
-
[relaton-doi]
|
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]
|
92
|
-
[relaton-doi]
|
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]
|
106
|
-
[relaton-doi]
|
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
|
----
|
data/lib/relaton_doi/crossref.rb
CHANGED
@@ -12,13 +12,13 @@ module RelatonDoi
|
|
12
12
|
# RelatonNist::NistBibliographicItem] The bibitem.
|
13
13
|
#
|
14
14
|
def get(doi)
|
15
|
-
Util.warn "(#{doi})
|
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})
|
18
|
+
Util.warn "(#{doi}) Found: `#{message['DOI']}`"
|
19
19
|
Parser.parse message
|
20
20
|
rescue Serrano::NotFound
|
21
|
-
Util.warn "(#{doi})
|
21
|
+
Util.warn "(#{doi}) Not found."
|
22
22
|
nil
|
23
23
|
end
|
24
24
|
|
data/lib/relaton_doi/parser.rb
CHANGED
data/lib/relaton_doi/version.rb
CHANGED
data/relaton-doi.gemspec
CHANGED
@@ -34,11 +34,11 @@ Gem::Specification.new do |spec|
|
|
34
34
|
# Uncomment to register a new dependency of your gem
|
35
35
|
# spec.add_dependency "example-gem", "~> 1.0"
|
36
36
|
|
37
|
-
spec.add_dependency "relaton-bib", "~> 1.
|
38
|
-
spec.add_dependency "relaton-bipm", "~> 1.
|
39
|
-
spec.add_dependency "relaton-ieee", "~> 1.
|
40
|
-
spec.add_dependency "relaton-ietf", "~> 1.
|
41
|
-
spec.add_dependency "relaton-nist", "~> 1.
|
37
|
+
spec.add_dependency "relaton-bib", "~> 1.17.0"
|
38
|
+
spec.add_dependency "relaton-bipm", "~> 1.17.0"
|
39
|
+
spec.add_dependency "relaton-ieee", "~> 1.17.0"
|
40
|
+
spec.add_dependency "relaton-ietf", "~> 1.17.0"
|
41
|
+
spec.add_dependency "relaton-nist", "~> 1.17.0"
|
42
42
|
# spec.add_dependency "relaton-w3c", "~> 1.10.0"
|
43
43
|
spec.add_dependency "serrano", "~> 1.4.0"
|
44
44
|
|
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.
|
4
|
+
version: 1.17.0
|
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-
|
11
|
+
date: 2023-11-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: relaton-bib
|
@@ -16,70 +16,70 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 1.
|
19
|
+
version: 1.17.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.
|
26
|
+
version: 1.17.0
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: relaton-bipm
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
31
|
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: 1.
|
33
|
+
version: 1.17.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.
|
40
|
+
version: 1.17.0
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: relaton-ieee
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
45
|
- - "~>"
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: 1.
|
47
|
+
version: 1.17.0
|
48
48
|
type: :runtime
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
52
|
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version: 1.
|
54
|
+
version: 1.17.0
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: relaton-ietf
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
59
|
- - "~>"
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version: 1.
|
61
|
+
version: 1.17.0
|
62
62
|
type: :runtime
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
66
|
- - "~>"
|
67
67
|
- !ruby/object:Gem::Version
|
68
|
-
version: 1.
|
68
|
+
version: 1.17.0
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: relaton-nist
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
72
72
|
requirements:
|
73
73
|
- - "~>"
|
74
74
|
- !ruby/object:Gem::Version
|
75
|
-
version: 1.
|
75
|
+
version: 1.17.0
|
76
76
|
type: :runtime
|
77
77
|
prerelease: false
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
79
79
|
requirements:
|
80
80
|
- - "~>"
|
81
81
|
- !ruby/object:Gem::Version
|
82
|
-
version: 1.
|
82
|
+
version: 1.17.0
|
83
83
|
- !ruby/object:Gem::Dependency
|
84
84
|
name: serrano
|
85
85
|
requirement: !ruby/object:Gem::Requirement
|