relaton-nist 1.19.3 → 1.19.4

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: 7a4b4d939bc25c7c8968747b391784b5e0238a6961b5544d6f48cd77848addf9
4
- data.tar.gz: f5684a7aa32f04b30fed89c1d43dc0c5247562a94bf97b1d65f6b0c80de2f054
3
+ metadata.gz: d3852462f5f9cc9e5ad9d0ea51e9c6c18ca339db6b7212333fa7a2251d37fc22
4
+ data.tar.gz: 57135db61fee07d214543141fd87543b1efc81f9fdfd926fca38af8f8659709c
5
5
  SHA512:
6
- metadata.gz: aa2d613dc42ac689b422b73d0b930459bbfdad99ca8e0e4302a8f586931f89f90ae0189d6d052e8e003659b75df4f5a07941835d4f03f4e98ead50ebcfef738d
7
- data.tar.gz: 19b7411e9f15891b7513dd934a678702fcfaccc80512385e2354d69ca66f2cf3617b2f8e88ce47b7141ee885dc933e59931731dec14e1b90e550964184f4ff92
6
+ metadata.gz: 3800ffae4986f2d50dd05e7944d17fd1233d6b82865a38163760eb80a348518b26ad4d5dcd27d5900b80a202a20331a55a782159192c756c52edde655765d095
7
+ data.tar.gz: c0ded3c9ecdf02fe2fb6e05df9cce69817340ebcd7d51efe2741f4e02de0534ae7d53a7082e4300572c271ff0b3553808584b52d0ca373fb24b59eb9d782b585
@@ -6,7 +6,7 @@ require_relative "mods_parser"
6
6
 
7
7
  module RelatonNist
8
8
  class DataFetcher
9
- URL = "https://github.com/usnistgov/NIST-Tech-Pubs/releases/download/May2024/allrecords-MODS.xml"
9
+ URL = "https://github.com/usnistgov/NIST-Tech-Pubs/releases/download/Sept2024/allrecords-MODS.xml"
10
10
 
11
11
  def initialize(output, format)
12
12
  @output = output
@@ -39,7 +39,7 @@ module RelatonNist
39
39
  end
40
40
 
41
41
  def get_id_from_str(str)
42
- str.match(/\/((?:NBS|NIST).+)/)[1].gsub(".", " ")
42
+ str.match(/\/((?:NBS|NIST).+)/i)[1].gsub(".", " ").sub(/^([^\d]+)/, '\1'.upcase)
43
43
  end
44
44
 
45
45
  # @return [String]
@@ -1,3 +1,3 @@
1
1
  module RelatonNist
2
- VERSION = "1.19.3".freeze
2
+ VERSION = "1.19.4".freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: relaton-nist
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.19.3
4
+ version: 1.19.4
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-09-06 00:00:00.000000000 Z
11
+ date: 2024-09-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: base64