petrarca 0.5.12 → 0.5.13
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/README.md +4 -4
- data/data/registrant_ranges.txt +5 -3
- data/data/registration_group_ranges.txt +1 -1
- data/lib/petrarca/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: ac22512343e367f085d47ebc8d8f895d7a0f97f73b3026ba630444638fc65f78
|
|
4
|
+
data.tar.gz: 3ea84dd61eb7ac7ae1a482c5c29e9d976524807fd6fa6194423f242ee858bc51
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: a52df216ae4cf51f6db4ba7e6ccf892560d366846bfb0fe8afd523518b37c2501acc274babd76633a2aefa8e147dd67f7fe124940eaff5f9cddb7badad202d51
|
|
7
|
+
data.tar.gz: ef90ca7c0febd69976c7b3610b02c8e0da30baf7a9f39b565448755d9c8f3f6773a36785bb799a29e2ae0209cb3b102e9ea1a319de1a9709f12a8dc9fc9afc85
|
data/README.md
CHANGED
|
@@ -12,7 +12,7 @@ All functions support both ISBN-13 and ISBN-10.
|
|
|
12
12
|
All ranges of registration groups and registrants are supported.
|
|
13
13
|
Those depends on 'RangeMessage.xml' file, downloaded from [International ISBN Agency](https://www.isbn-international.org/range_file_generation).
|
|
14
14
|
|
|
15
|
-
NOTE: Updated range files to latest version on
|
|
15
|
+
NOTE: Updated range files to latest version on July 2, 2023.
|
|
16
16
|
|
|
17
17
|
## Installation
|
|
18
18
|
|
|
@@ -45,10 +45,10 @@ Or install it yourself as:
|
|
|
45
45
|
irb(main):006:0> Petrarca.hyphenate("9784815606442")
|
|
46
46
|
=> "978-4-8156-0644-2"
|
|
47
47
|
|
|
48
|
-
SINCE v0.5.0
|
|
49
|
-
|
|
50
48
|
Accept Integer as ISBN, only if no `-` and `X` including.
|
|
51
49
|
|
|
50
|
+
New in v0.5.0.
|
|
51
|
+
|
|
52
52
|
irb(main):001:0> require 'petrarca'
|
|
53
53
|
=> true
|
|
54
54
|
irb(main):002:0> Petrarca.calc_check_digit(978481560644)
|
|
@@ -60,7 +60,7 @@ Accept Integer as ISBN, only if no `-` and `X` including.
|
|
|
60
60
|
irb(main):005:0> Petrarca.hyphenate(9784815606442)
|
|
61
61
|
=> "978-4-8156-0644-2"
|
|
62
62
|
|
|
63
|
-
If the ISBN is hyphenated,
|
|
63
|
+
If the ISBN is hyphenated, registration group and registrant are considered in `Petrarca.valid?`. The second example below has the invalid registrant.
|
|
64
64
|
|
|
65
65
|
irb(main):006:0> Petrarca.valid?("978-4-8156-0644-2")
|
|
66
66
|
=> true
|
data/data/registrant_ranges.txt
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
# Generated from RangeMessage.xml file, downloaded from https://www.isbn-international.org/range_file_generation.
|
|
2
2
|
#
|
|
3
3
|
# International ISBN Agency
|
|
4
|
-
#
|
|
4
|
+
# Sun, 2 Jul 2023 12:33:07 BST
|
|
5
5
|
#
|
|
6
6
|
# English language
|
|
7
7
|
978-0:00-19,200-227,2280-2289,229-368,3690-3699,370-638,6390-6397,6398000-6399999,640-644,6450000-6459999,646-647,6480000-6489999,649-654,6550-6559,656-699,7000-8499,85000-89999,900000-949999,9500000-9999999
|
|
8
8
|
# English language
|
|
9
9
|
978-1:000-009,01-02,030-034,0350-0399,040-049,05-06,0700-0999,100-397,3980-5499,55000-64999,6500-6799,68000-68599,6860-7139,714-716,7170-7319,7320000-7399999,74000-77499,7750000-7753999,77540-77639,7764000-7764999,77650-77699,7770000-7782999,77830-78999,7900-7999,80000-80049,80050-80499,80500-83799,8380000-8384999,83850-86719,8672-8675,86760-86979,869800-915999,9160000-9165059,916506-916869,9168700-9169079,916908-919599,9196000-9196549,919655-972999,9730-9877,987800-991149,9911500-9911999,991200-998989,9989900-9999999
|
|
10
10
|
# French language
|
|
11
|
-
978-2:00-19,200-349,35000-39999,400-486,487000-494999,495-495,4960-4966,49670-49699,497-699,7000-8399,84000-89999,900000-919799,91980-91980,919810-919942,9199430-9199689,919969-949999,9500000-9999999
|
|
11
|
+
978-2:00-19,200-349,35000-39999,400-486,487000-494999,495-495,4960-4966,49670-49699,497-527,5280-5299,530-699,7000-8399,84000-89999,900000-919799,91980-91980,919810-919942,9199430-9199689,919969-949999,9500000-9999999
|
|
12
12
|
# German language
|
|
13
13
|
978-3:00-02,030-033,0340-0369,03700-03999,04-19,200-699,7000-8499,85000-89999,900000-949999,9500000-9539999,95400-96999,9700000-9849999,98500-99999
|
|
14
14
|
# Japan
|
|
@@ -191,6 +191,8 @@
|
|
|
191
191
|
978-988:00-11,12000-19999,200-699,70000-79999,8000-9699,97000-99999
|
|
192
192
|
# Portugal
|
|
193
193
|
978-989:0-1,20-34,35000-36999,37-52,53000-54999,550-799,8000-9499,95000-99999
|
|
194
|
+
# Uzbekistan
|
|
195
|
+
978-9910:730-749,9650-9999
|
|
194
196
|
# Montenegro
|
|
195
197
|
978-9911:20-24,550-749
|
|
196
198
|
# Tanzania
|
|
@@ -202,7 +204,7 @@
|
|
|
202
204
|
# Uruguay
|
|
203
205
|
978-9915:40-59,650-799,9300-9999
|
|
204
206
|
# Estonia
|
|
205
|
-
978-9916:0-0,10-39,4-5,600-799,
|
|
207
|
+
978-9916:0-0,10-39,4-5,600-799,80-84,850-899,9250-9999
|
|
206
208
|
# Bolivia
|
|
207
209
|
978-9917:0-0,30-34,600-699,9800-9999
|
|
208
210
|
# Malta
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# Generated from RangeMessage.xml file, downloaded from https://www.isbn-international.org/range_file_generation.
|
|
2
2
|
#
|
|
3
3
|
# International ISBN Agency
|
|
4
|
-
#
|
|
4
|
+
# Sun, 2 Jul 2023 12:33:07 BST
|
|
5
5
|
#
|
|
6
6
|
# International ISBN Agency
|
|
7
7
|
978:0-5,600-649,65-65,7-7,80-94,950-989,9900-9989,99900-99999
|
data/lib/petrarca/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: petrarca
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.5.
|
|
4
|
+
version: 0.5.13
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- takatoh
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2023-
|
|
11
|
+
date: 2023-07-02 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|