relaton-isbn 1.20.0 → 1.20.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.rubocop.yml +1 -1
- data/lib/relaton_isbn/parser.rb +3 -1
- data/lib/relaton_isbn/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d961c0cec51c29aa88f6fad4ef2d58983639702fcba31cd8cf055f45c076e2e6
|
4
|
+
data.tar.gz: 31f1d75ae435ce9a8ffca0f4f5717a2091bdf80ff85c8e4546530945c48d1c17
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6e611b4a3b4c3daefa5711f460eb56bee5c386036f48b5b9a3e32f37179e2b72ca99497edfe2d1306769af3c3d308460ab3c15a0ed8e5530b3b5a38b6f0a8276
|
7
|
+
data.tar.gz: d6a3067ef1bb1da1e8a1754d0de441aa3ea2a9334a24d11b831c86e583313070da550f52e23ff4e3a62b1857fe96ddb867ab29e15b435a0405bd7363a260bfed
|
data/.rubocop.yml
CHANGED
data/lib/relaton_isbn/parser.rb
CHANGED
@@ -3,7 +3,7 @@ module RelatonIsbn
|
|
3
3
|
# OpenLibrary document parser.
|
4
4
|
#
|
5
5
|
class Parser
|
6
|
-
ATTRS = %i[title docid link contributor date place].freeze
|
6
|
+
ATTRS = %i[fetched title docid link contributor date place].freeze
|
7
7
|
|
8
8
|
def initialize(doc)
|
9
9
|
@doc = doc
|
@@ -20,6 +20,8 @@ module RelatonIsbn
|
|
20
20
|
|
21
21
|
private
|
22
22
|
|
23
|
+
def fetched = Date.today.to_s
|
24
|
+
|
23
25
|
def title
|
24
26
|
t = [RelatonBib::TypedTitleString.new(content: @doc["data"]["title"], type: "main")]
|
25
27
|
if @doc["data"]["subtitle"]
|
data/lib/relaton_isbn/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: relaton-isbn
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.20.
|
4
|
+
version: 1.20.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ribose Inc.
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2025-04-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: relaton-bib
|
@@ -59,14 +59,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
59
59
|
requirements:
|
60
60
|
- - ">="
|
61
61
|
- !ruby/object:Gem::Version
|
62
|
-
version:
|
62
|
+
version: 3.1.0
|
63
63
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
64
64
|
requirements:
|
65
65
|
- - ">="
|
66
66
|
- !ruby/object:Gem::Version
|
67
67
|
version: '0'
|
68
68
|
requirements: []
|
69
|
-
rubygems_version: 3.
|
69
|
+
rubygems_version: 3.5.22
|
70
70
|
signing_key:
|
71
71
|
specification_version: 4
|
72
72
|
summary: 'RelatonIsbn: retrieve publications by ISBN for bibliographic use using the
|