relaton-isbn 1.18.0 → 1.18.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a40299890b8c876a1397a66412981b29dd420e55f469b0d1d751f3ecfe76ad0a
4
- data.tar.gz: f6f18a46d654dc22fa0cdac813c023904b7a622b483f4ae9127c1e350a2f546b
3
+ metadata.gz: ec7bde42f98693e22129a90cd430b87eff8200d2efdf507d1f65c0c250b1b459
4
+ data.tar.gz: 4f6c8ea2d557fa5cead11673a685533338779032b8e85743e5ea54890a73370e
5
5
  SHA512:
6
- metadata.gz: ebc9da4bc8e27e6a3b5c9f664dba1db1e878e7b059af03eae7c19de912ada3a31f82364327e886fae55da77ce60441fc5b07bd4d83a23189b68371892857ea41
7
- data.tar.gz: 557d400855efa4cb4ca264860ba525d1b0bbed5c2002788ad5d8bd41cbc70b4571431addf8c57f0e492d43969f4f7c606834afb77934b85258dce6440bb892ef
6
+ metadata.gz: 83c0031a254e37b55f1c1f3a5a3003be0058f0a6355e93f7f3cb8b6566a0fd8e33bc1f5d25acaf9b642d936cb08e7e1f6256e18b272b42d4460b2c6351c57ae0
7
+ data.tar.gz: f637880b51318e33f72553ea0e71f2cde606474844297f2590acebe9cc708add88dd94528db6797dcd06ae93d4de5bdae148f67db41dcb4cf885e0fbf04c3a87
data/README.adoc CHANGED
@@ -55,21 +55,21 @@ end
55
55
 
56
56
  === Retrieving bibliographic items using OpenLibrary API
57
57
 
58
- To retrieve bibliographic items, use `RelatonIsbn::OpenLibrary.get` method with ISBN-10 or ISBN-13 as an argument. Prefix `ISBN` and hyphens are optional. The method returns `RelatonBib::BibliographicItem` object.
58
+ To retrieve bibliographic items, use `RelatonIsbn::OpenLibrary.get` method with ISBN-10 or ISBN-13 as an argument. Allowed prefixes are `ISBN`, `isbn:`. Prefix and hyphens are optional. The method returns `RelatonBib::BibliographicItem` object.
59
59
 
60
60
  [source,ruby]
61
61
  ----
62
62
  # get document by ISBN-13
63
- > bibitem = RelatonIsbn::OpenLibrary.get "ISBN 978-0-12-064481-0"
63
+ > ibitem = RelatonIsbn::OpenLibrary.get "ISBN 978-0-12-064481-0"
64
64
  [relaton-isbn] (ISBN 9780120644810) Fetching from OpenLibrary ...
65
65
  [relaton-isbn] (ISBN 9780120644810) Found: `9780120644810`
66
66
  => #<RelatonBib::BibliographicItem:0x0000000113889258
67
67
  ...
68
68
 
69
69
  # get document by ISBN-10
70
- > RelatonIsbn::OpenLibrary.get "0120644819"
71
- [relaton-isbn] (ISBN 0120644819) Fetching from OpenLibrary ...
72
- [relaton-isbn] (ISBN 0120644819) Found: `9780120644810`
70
+ > RelatonIsbn::OpenLibrary.get "isbn:0120644819"
71
+ [relaton-isbn] (isbn:0120644819) Fetching from OpenLibrary ...
72
+ [relaton-isbn] (isbn:0120644819) Found: `9780120644810`
73
73
  => #<RelatonBib::BibliographicItem:0x00000001098ac960
74
74
  ...
75
75
  ----
@@ -6,7 +6,7 @@ module RelatonIsbn
6
6
  # @param [String] isbn ISBN 13 number
7
7
  #
8
8
  def initialize(isbn)
9
- @isbn = isbn&.delete("-")&.sub(/^ISBN\s/, "")
9
+ @isbn = isbn&.delete("-")&.sub(/^ISBN[\s:]/i, "")
10
10
  end
11
11
 
12
12
  def parse
@@ -1,3 +1,3 @@
1
1
  module RelatonIsbn
2
- VERSION = "1.18.0".freeze
2
+ VERSION = "1.18.1".freeze
3
3
  end
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.18.0
4
+ version: 1.18.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: 2024-01-07 00:00:00.000000000 Z
11
+ date: 2024-02-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: relaton-bib