relaton-iec 0.4.6 → 0.4.8

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
  SHA1:
3
- metadata.gz: 382616c833c9a8c8b9bba8e4bc8402ad16964512
4
- data.tar.gz: 5748210bf40ef66e0eeea6e3abd945e3298fcdaa
3
+ metadata.gz: 7f223511bcf5da27381a805deae65c76f0f4a162
4
+ data.tar.gz: 6edce17c72bd41fdd860db9b8ce639d601f06f30
5
5
  SHA512:
6
- metadata.gz: 5536938f0990091ab32a56ae344831210b4c26fe7469c1f5225644ee51c3458189a49f790758f728e170abbab5c18ec9219f3b1cf2ee6ae5335d89a537457ea6
7
- data.tar.gz: c7ca012b59181f4d79912d55c3fa43037f82217a0a5ea447f4b8270f4b6321dc517978e852ae78d94cb6c05a9dcedfa01807e360b19b252c1e7e70328acbd54f
6
+ metadata.gz: bc39291b67506f26cf760f1528d15d8b1fb8c44c160d044a9fe031fa13d99cb0751cf285bb2381c1f7de7214c4d6f8f5e2a002daf46893048ead454e5917fcb8
7
+ data.tar.gz: 5c04836bad95cc3988bd7431c1c1251a83c8319c40b9399600723d2d2b9ff3c292c98fc35ee9127f8818ba3d4bbc61902270cba705b42f74c9891bd82cba8070
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- relaton-iec (0.4.6)
4
+ relaton-iec (0.4.8)
5
5
  addressable
6
6
  relaton-iso-bib (~> 0.3.0)
7
7
 
@@ -22,7 +22,7 @@ GEM
22
22
  equivalent-xml (0.6.0)
23
23
  nokogiri (>= 1.4.3)
24
24
  hashdiff (1.0.0)
25
- isoics (0.1.7)
25
+ isoics (0.1.8)
26
26
  json (2.2.0)
27
27
  method_source (0.9.2)
28
28
  mini_portile2 (2.4.0)
@@ -36,10 +36,10 @@ GEM
36
36
  pry (~> 0.10)
37
37
  public_suffix (4.0.1)
38
38
  rake (10.5.0)
39
- relaton-bib (0.3.8)
39
+ relaton-bib (0.3.9)
40
40
  addressable
41
41
  nokogiri
42
- relaton-iso-bib (0.3.7)
42
+ relaton-iso-bib (0.3.9)
43
43
  isoics (~> 0.1.6)
44
44
  relaton-bib (~> 0.3.0)
45
45
  ruby_deep_clone (~> 0.8.0)
@@ -57,13 +57,14 @@ module RelatonIec
57
57
  status, relations = fetch_status_relations hit_data[:url]
58
58
 
59
59
  RelatonIsoBib::IsoBibliographicItem.new(
60
+ fetched: Date.today.to_s,
60
61
  docid: [RelatonBib::DocumentIdentifier.new(id: hit_data[:code], type: "IEC")],
61
62
  structuredidentifier: fetch_structuredidentifier(doc),
62
63
  edition: edition,
63
64
  language: ["en"],
64
65
  script: ["Latn"],
65
66
  title: fetch_titles(hit_data),
66
- type: fetch_type(doc),
67
+ doctype: fetch_type(doc),
67
68
  docstatus: status,
68
69
  ics: fetch_ics(doc),
69
70
  date: fetch_dates(doc),
@@ -293,8 +294,8 @@ module RelatonIec
293
294
  # @param doc [Nokogiri::HTML::Document]
294
295
  # @return [String]
295
296
  def fetch_type(doc)
296
- doc.at('//th[contains(., "Publication type")]/following-sibling::td/span')
297
- .text.downcase.tr " ", "-"
297
+ doc.at('//th[contains(., "Publication type")]/following-sibling::td/span').
298
+ text.downcase.tr " ", "-"
298
299
  # type_match = title.match(%r{^(ISO|IWA|IEC)(?:(/IEC|/IEEE|/PRF|
299
300
  # /NP)*\s|/)(TS|TR|PAS|AWI|CD|FDIS|NP|DIS|WD|R|Guide|(?=\d+))}x)
300
301
  # #return "international-standard" if type_match.nil?
@@ -1,3 +1,3 @@
1
1
  module RelatonIec
2
- VERSION = "0.4.6".freeze
2
+ VERSION = "0.4.8".freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: relaton-iec
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.6
4
+ version: 0.4.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose Inc.
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-09-27 00:00:00.000000000 Z
11
+ date: 2019-10-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler