relaton-iec 0.3.2 → 0.4.0

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: 39823bb2ce85889ef0f32b013d8cd9abf9f5a2e2
4
- data.tar.gz: 1e960de033ac1d430b9260742a6ab779e3f2f2e3
3
+ metadata.gz: 23eafbff8adc2eeb681a3294dcd33ee9bbba5e46
4
+ data.tar.gz: 6073ba90262a12ab5c2584424754b5a657705084
5
5
  SHA512:
6
- metadata.gz: dc8c6e5c58767bbbd56c82b092d888e132a412f5f4230bc1f5ffedc43d3b15015d4e55556dcaebeaed1f5075b75e3cb9aa583774480de4aa3f4e7903a5d4809a
7
- data.tar.gz: 461357b85402b3cc8b921aa3ace9accd91f6a7936896c146267695c8b1e6cb7ffb2860c622d12c4b0cb357c19c263b79f99d9c554a556c08bf706b74399b5693
6
+ metadata.gz: 5f1fcb49417d2baa88219296f5c31db8333b3c360e477fa56217e190d1992506ec3b15a059ac9e5e47c3e922a2c6bfabda28f2b502458f2e1fade6cede058577
7
+ data.tar.gz: 42fe6b9fac32553cedf6b7b5d8eef34f0f1c023cd99d63fd40fe72ca65d7ef3c1f588bb2bc2df2a11fb5cd3a86dd5d1880ac79f3322a5654ce39ae5d99434d36
data/Gemfile.lock CHANGED
@@ -1,9 +1,9 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- relaton-iec (0.3.2)
4
+ relaton-iec (0.4.0)
5
5
  addressable
6
- relaton-iso-bib (~> 0.2.0)
6
+ relaton-iso-bib (~> 0.3.0)
7
7
 
8
8
  GEM
9
9
  remote: https://rubygems.org/
@@ -36,12 +36,12 @@ GEM
36
36
  pry (~> 0.10)
37
37
  public_suffix (3.1.1)
38
38
  rake (10.5.0)
39
- relaton-bib (0.2.5)
39
+ relaton-bib (0.3.0)
40
40
  addressable
41
41
  nokogiri (~> 1.10)
42
- relaton-iso-bib (0.2.4)
42
+ relaton-iso-bib (0.3.0)
43
43
  isoics (~> 0.1.6)
44
- relaton-bib (~> 0.2.0)
44
+ relaton-bib (~> 0.3.0)
45
45
  ruby_deep_clone (~> 0.8.0)
46
46
  rspec (3.8.0)
47
47
  rspec-core (~> 3.8.0)
@@ -131,7 +131,7 @@ module RelatonIec
131
131
  fetch_pages(s, 3).each_with_index do |r, _i|
132
132
  return { ret: r } if !year
133
133
 
134
- r.dates.select { |d| d.type == "published" }.each do |d|
134
+ r.date.select { |d| d.type == "published" }.each do |d|
135
135
  return { ret: r } if year.to_i == d.on.year
136
136
 
137
137
  missed_years << d.on.year
@@ -62,17 +62,17 @@ module RelatonIec
62
62
  edition: edition,
63
63
  language: ["en"],
64
64
  script: ["Latn"],
65
- titles: fetch_titles(hit_data),
65
+ title: fetch_titles(hit_data),
66
66
  type: fetch_type(doc),
67
67
  docstatus: status,
68
68
  ics: fetch_ics(doc),
69
- dates: fetch_dates(doc),
70
- contributors: fetch_contributors(hit_data[:code]),
69
+ date: fetch_dates(doc),
70
+ contributor: fetch_contributors(hit_data[:code]),
71
71
  editorialgroup: fetch_workgroup(doc),
72
72
  abstract: fetch_abstract(doc),
73
73
  copyright: fetch_copyright(hit_data[:code], doc),
74
74
  link: fetch_link(doc, hit_data[:url]),
75
- relations: relations,
75
+ relation: relations,
76
76
  )
77
77
  end
78
78
  # rubocop:enable Metrics/AbcSize, Metrics/MethodLength
@@ -371,7 +371,7 @@ module RelatonIec
371
371
  url = "www.iec.ch"
372
372
  end
373
373
  { entity: { name: name, url: url, abbreviation: abbrev },
374
- roles: ["publisher"] }
374
+ role: ["publisher"] }
375
375
  end
376
376
  end
377
377
 
@@ -1,3 +1,3 @@
1
1
  module RelatonIec
2
- VERSION = "0.3.2".freeze
2
+ VERSION = "0.4.0".freeze
3
3
  end
data/relaton_iec.gemspec CHANGED
@@ -35,5 +35,5 @@ Gem::Specification.new do |spec|
35
35
  spec.add_development_dependency "webmock"
36
36
 
37
37
  spec.add_dependency "addressable"
38
- spec.add_dependency "relaton-iso-bib", "~> 0.2.0"
38
+ spec.add_dependency "relaton-iso-bib", "~> 0.3.0"
39
39
  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.3.2
4
+ version: 0.4.0
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-07-22 00:00:00.000000000 Z
11
+ date: 2019-07-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -170,14 +170,14 @@ dependencies:
170
170
  requirements:
171
171
  - - "~>"
172
172
  - !ruby/object:Gem::Version
173
- version: 0.2.0
173
+ version: 0.3.0
174
174
  type: :runtime
175
175
  prerelease: false
176
176
  version_requirements: !ruby/object:Gem::Requirement
177
177
  requirements:
178
178
  - - "~>"
179
179
  - !ruby/object:Gem::Version
180
- version: 0.2.0
180
+ version: 0.3.0
181
181
  description: 'RelatonIec: retrieve IEC Standards for bibliographic use using the IsoBibliographicItem
182
182
  model'
183
183
  email: