relaton-itu 0.2.3 → 0.3.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: 0e53b2a711cf2600a246b1ef35dff524624ae266
4
- data.tar.gz: 5b0234760082b97040111b7fe18814977e28fd6b
3
+ metadata.gz: 103c32b6163973f664486f91981884bd8c98074e
4
+ data.tar.gz: 2fd3e490d31f85b483516cb3a3cd9cbfff93745b
5
5
  SHA512:
6
- metadata.gz: a3dbf304c78838b895c6da7e869b70bbef5b60f00f12498b0a5101761d052828ebf8e45215e33d728d071cfbf9b536857826270ea09e71ca4e6bef3c9070cd9b
7
- data.tar.gz: fde81735c358c19beb765da48726306c7ff020f9f02d66bf1204b9d687b73bf6ff707d6c70727738afa56200312623e36fab33e21310eec49b3a280dcd6c4411
6
+ metadata.gz: 148c8b704230e3c6fe1e5d1ebadf8e7c1ee99c3729096e6a03848004e3a30a3a469b522ba82bc6be1318015308c3b53666e25a8c6d6a8582d6e678207fe6fe07
7
+ data.tar.gz: 257bec32aa5a84eab4674d6b75209bfd69acaaef4d84b4b6756ec390d83ebf037a7fbbdee583d21196722db550bb7bdf76ed82c07545856763d3b6dbc42931d7
data/Gemfile.lock CHANGED
@@ -1,8 +1,8 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- relaton-itu (0.2.3)
5
- relaton-iso-bib (~> 0.2.0)
4
+ relaton-itu (0.3.0)
5
+ relaton-iso-bib (~> 0.3.0)
6
6
 
7
7
  GEM
8
8
  remote: https://rubygems.org/
@@ -35,12 +35,12 @@ GEM
35
35
  pry (~> 0.10)
36
36
  public_suffix (3.1.1)
37
37
  rake (10.5.0)
38
- relaton-bib (0.2.5)
38
+ relaton-bib (0.3.0)
39
39
  addressable
40
40
  nokogiri (~> 1.10)
41
- relaton-iso-bib (0.2.4)
41
+ relaton-iso-bib (0.3.0)
42
42
  isoics (~> 0.1.6)
43
- relaton-bib (~> 0.2.0)
43
+ relaton-bib (~> 0.3.0)
44
44
  ruby_deep_clone (~> 0.8.0)
45
45
  rspec (3.8.0)
46
46
  rspec-core (~> 3.8.0)
data/itubib.gemspec CHANGED
@@ -37,5 +37,5 @@ Gem::Specification.new do |spec|
37
37
  spec.add_development_dependency "vcr", "~> 5.0.0"
38
38
  spec.add_development_dependency "webmock"
39
39
 
40
- spec.add_dependency "relaton-iso-bib", "~> 0.2.0"
40
+ spec.add_dependency "relaton-iso-bib", "~> 0.3.0"
41
41
  end
@@ -95,7 +95,7 @@ module RelatonItu
95
95
  fetch_pages(s, 3).each_with_index do |r, i|
96
96
  return { ret: r } if !year
97
97
 
98
- r.dates.select { |d| d.type == "published" }.each do |d|
98
+ r.date.select { |d| d.type == "published" }.each do |d|
99
99
  return { ret: r } if year.to_i == d.on.year
100
100
 
101
101
  missed_years << d.on.year
@@ -59,17 +59,17 @@ module RelatonItu
59
59
  edition: edition,
60
60
  language: ["en"],
61
61
  script: ["Latn"],
62
- titles: fetch_titles(hit_data),
62
+ title: fetch_titles(hit_data),
63
63
  type: hit_data[:type],
64
64
  docstatus: fetch_status(doc),
65
65
  ics: [], # fetch_ics(doc),
66
- dates: fetch_dates(doc),
67
- contributors: fetch_contributors(hit_data[:code]),
66
+ date: fetch_dates(doc),
67
+ contributor: fetch_contributors(hit_data[:code]),
68
68
  editorialgroup: fetch_workgroup(doc),
69
69
  abstract: fetch_abstract(doc),
70
70
  copyright: fetch_copyright(hit_data[:code], doc),
71
71
  link: fetch_link(doc, hit_data[:url]),
72
- relations: fetch_relations(doc),
72
+ relation: fetch_relations(doc),
73
73
  )
74
74
  end
75
75
  # rubocop:enable Metrics/AbcSize, Metrics/MethodLength
@@ -278,7 +278,7 @@ module RelatonItu
278
278
  name = "International Telecommunication Union"
279
279
  url = "www.itu.int"
280
280
  end
281
- [{ entity: { name: name, url: url, abbreviation: abbrev }, roles: ["publisher"] }]
281
+ [{ entity: { name: name, url: url, abbreviation: abbrev }, role: ["publisher"] }]
282
282
  end
283
283
 
284
284
  # Fetch ICS.
@@ -1,3 +1,3 @@
1
1
  module RelatonItu
2
- VERSION = "0.2.3".freeze
2
+ VERSION = "0.3.0".freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: relaton-itu
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.3
4
+ version: 0.3.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-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -156,14 +156,14 @@ dependencies:
156
156
  requirements:
157
157
  - - "~>"
158
158
  - !ruby/object:Gem::Version
159
- version: 0.2.0
159
+ version: 0.3.0
160
160
  type: :runtime
161
161
  prerelease: false
162
162
  version_requirements: !ruby/object:Gem::Requirement
163
163
  requirements:
164
164
  - - "~>"
165
165
  - !ruby/object:Gem::Version
166
- version: 0.2.0
166
+ version: 0.3.0
167
167
  description: 'RelatonItu: retrieve ITU Standards for bibliographic use using the BibliographicItem
168
168
  model'
169
169
  email: