petrarca 0.5.12 → 0.5.14

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: 55a91d1047b6083b8725066d039484e9e3b26e6ffd9cbb9d4f04195c633f7860
4
- data.tar.gz: 65810569a12c6b72d5547936e5217758db998da93916bc35838701c8d0badb53
3
+ metadata.gz: aa2df2a6f1e30014fc0e5b291b95376cfda3dc371e9fb15c9ac3923fc91483cc
4
+ data.tar.gz: 93535ba910573efe2278e8b5f410154493f7b1b8016b5ec8e6f4803493400fb4
5
5
  SHA512:
6
- metadata.gz: 8161c540ff0429e1b5a757f68b19e1a6d10c7d0fe1e3b3343ba465e77c9cffef85f96bee6de91d91f1a5cdbff0d53057fa467fe51bd1641cb1c2f37ac1167625
7
- data.tar.gz: ca12daf5911258a7bc45925b493738a1f72cbde79f360fb9a7b2e71270d0da974c021c19fd3a6647eb75c6adab3a37c442cf67a5b0b81eb8a13da3815cc8ad5d
6
+ metadata.gz: c706a41152e219875d9f877c9bd4773e448cc6cc978653e46e866abf4e113594b7c1c5c74a9a0e914be88c6ac159af3d82bf5cfd5d3e92f1b006d6300df1802d
7
+ data.tar.gz: 72467858ec4e902c05c024d03d3898e415c315083e005382081f02767099f9c9f16934582d9db8255253f6207cac80ae8f2ecd616243db9df62db4652ae6fcbd
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 June 3, 2023.
15
+ NOTE: Updated range files to latest version on August 5, 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, consider registration group and registrant in `Petrarca.valid?`. The second example below has the invalid registrant.
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
@@ -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
- # Sat, 3 Jun 2023 06:14:04 BST
4
+ # Sat, 5 Aug 2023 03:08:36 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,9500-9999
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
@@ -210,7 +212,7 @@
210
212
  # Mongolia
211
213
  978-9919:0-0,20-29,500-599,9000-9999
212
214
  # Morocco
213
- 978-9920:30-41,500-799,8750-9999
215
+ 978-9920:30-42,500-799,8750-9999
214
216
  # Kuwait
215
217
  978-9921:0-0,30-39,700-899,9700-9999
216
218
  # Iraq
@@ -498,9 +500,9 @@
498
500
  # Tajikistan
499
501
  978-99975:0-2,300-399,40-79,800-999
500
502
  # Srpska, Republic of
501
- 978-99976:0-0,10-15,160-199,20-59,600-799,85-89,900-999
503
+ 978-99976:0-0,10-15,160-199,20-59,600-819,82-89,900-999
502
504
  # Rwanda
503
- 978-99977:0-1,40-69,700-799,995-999
505
+ 978-99977:0-1,40-69,700-799,975-999
504
506
  # Mongolia
505
507
  978-99978:0-4,50-69,700-999
506
508
  # Honduras
@@ -508,7 +510,7 @@
508
510
  # Bhutan
509
511
  978-99980:0-0,30-59,750-999
510
512
  # Macau
511
- 978-99981:0-1,27-74,750-999
513
+ 978-99981:0-1,200-219,24-74,750-999
512
514
  # Benin
513
515
  978-99982:0-1,50-68,900-999
514
516
  # El Salvador
@@ -529,6 +531,8 @@
529
531
  978-99990:0-0,50-54,975-999
530
532
  # Oman
531
533
  978-99992:0-1,50-64,950-999
534
+ # Mauritius
535
+ 978-99993:0-0,50-54,980-999
532
536
  # France
533
537
  979-10:00-19,200-699,7000-8999,90000-97599,976000-999999
534
538
  # Korea, Republic
@@ -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
- # Sat, 3 Jun 2023 06:14:04 BST
4
+ # Sat, 5 Aug 2023 03:08:36 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
@@ -1,3 +1,3 @@
1
1
  module Petrarca
2
- VERSION = "0.5.12"
2
+ VERSION = "0.5.14"
3
3
  end
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.12
4
+ version: 0.5.14
5
5
  platform: ruby
6
6
  authors:
7
7
  - takatoh
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-06-03 00:00:00.000000000 Z
11
+ date: 2023-08-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler