isni 1.1 → 1.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +5 -5
  2. data/CHANGELOG +3 -0
  3. data/lib/isni.rb +1 -1
  4. metadata +8 -9
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 873a6ca106b538309ade92b0397528cb8ac4d589
4
- data.tar.gz: 9e90b9577865425bdcbfad82c3178f6be4ec1a28
2
+ SHA256:
3
+ metadata.gz: 5cdba762f192bf1cc94c459e3e570bd81781247bdb6cb9923e302e08cf61acbe
4
+ data.tar.gz: 54b8938f9f0b2f97601357c16463cae121a77612ca9118788e6c03d42c6f1b9b
5
5
  SHA512:
6
- metadata.gz: ef4f87402c07f03a6ee5245fa4ac1bf587156d786640e4ff17abbdb3cef1cd31fa3d6532c62657ca1922e3684e46fd54aebaa123fb96d226e618ebcda13f7d8c
7
- data.tar.gz: 6ce7fa6619e75f8bd2161733945909ecbcccc8b99a786a9030604aee9be541dfd16d285a9506d54d28b28d5d2e4ec86246d8cbfac0cff5548de28d4dc0ebe75d
6
+ metadata.gz: 7bec4d0f3f1958821734b6bda7d8e4ee5951f1e3d9eef3d8eab858b695a9d392e003c5d585ecbefc34232bab4d1a00eecd84972260a277cdbb2017762af285a9
7
+ data.tar.gz: 37739803eea6f8d255bd44c30cd1e9fc26527fec63295d1cb8821867dd2c0296e26ae605573c77d503568575df8aaaf8d736690b77dabf0fdbe8e4481665b907
data/CHANGELOG CHANGED
@@ -1,3 +1,6 @@
1
+ v1.2 (2nd December 2022)
2
+ - Fix bug in checksum calculations for some identifiers ([#1](https://github.com/yob/isni/pull/1))
3
+
1
4
  v1.1 (16th July 2017)
2
5
  - Updated packaging to work well with ruby 1.9.3 to 2.4
3
6
 
data/lib/isni.rb CHANGED
@@ -38,7 +38,7 @@ class ISNI
38
38
  accum = (accum + i) * 2
39
39
  end
40
40
  end
41
- remainder = 12 - (sum % 11) % 11
41
+ remainder = (12 - (sum % 11)) % 11
42
42
  if remainder == 10
43
43
  check = "X"
44
44
  else
metadata CHANGED
@@ -1,27 +1,27 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: isni
3
3
  version: !ruby/object:Gem::Version
4
- version: '1.1'
4
+ version: '1.2'
5
5
  platform: ruby
6
6
  authors:
7
7
  - James Healy
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-07-16 00:00:00.000000000 Z
11
+ date: 2022-12-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - "~>"
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
19
  version: '10.0'
20
20
  type: :development
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - "~>"
24
+ - - ">="
25
25
  - !ruby/object:Gem::Version
26
26
  version: '10.0'
27
27
  - !ruby/object:Gem::Dependency
@@ -68,7 +68,7 @@ homepage: http://github.com/yob/isni
68
68
  licenses:
69
69
  - MIT
70
70
  metadata: {}
71
- post_install_message:
71
+ post_install_message:
72
72
  rdoc_options:
73
73
  - "--title"
74
74
  - ISNI
@@ -86,9 +86,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
86
86
  - !ruby/object:Gem::Version
87
87
  version: '0'
88
88
  requirements: []
89
- rubyforge_project:
90
- rubygems_version: 2.6.11
91
- signing_key:
89
+ rubygems_version: 3.3.26
90
+ signing_key:
92
91
  specification_version: 4
93
92
  summary: a (very) small library for working with ISNI and ORCID
94
93
  test_files: []