relaton-ietf 0.5.5 → 0.6.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: 8db93f4d163526e40847be024fe8806d78ce9654
4
- data.tar.gz: a38e8292393b0c897a65cc0cc185833c29d0a0e9
3
+ metadata.gz: d1a02321969acca073a48c62ae75a320b3c522e7
4
+ data.tar.gz: 275620cf52c41de79ef4cfc5e7757e510320c52e
5
5
  SHA512:
6
- metadata.gz: 0a2239409ca40e4780cfa51b5c173d71da576476f33b3dfbada191576b6e5a1b5382eda1b5b4b8f7ec2573a2425777f7ec4988970eb917617574293de42158e1
7
- data.tar.gz: 3984ce849f170aed1582e1644802687d08d633ddf13dcafa9050ba76675cd98de405969c1120e1c4e590722518eb249ad1cdcdec4cccc978aa4dc360b6eb89e9
6
+ metadata.gz: 104dad9c9bb3990c68d6a49391f623f99e1e8f20d173f6bbd914b9cff0767e3d91c4b9622f61e2504698d4501daf2c53c610a43fea76ca39c9cddae9c66aa4a8
7
+ data.tar.gz: 00d29c43e3320f587518408c040e90158477ff5cc3fbc719debe01f50f1d0d51e8af8d716b8c686627ace940e15a458b96353602c07ed8b494f16028197034d2
data/Gemfile.lock CHANGED
@@ -1,8 +1,8 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- relaton-ietf (0.5.5)
5
- relaton-iso-bib (~> 0.2.0)
4
+ relaton-ietf (0.6.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)
@@ -49,10 +49,10 @@ module RelatonIetf
49
49
  status: status(reference),
50
50
  language: [language(reference)],
51
51
  link: [{ type: "src", content: reference[:target] }],
52
- titles: titles(reference),
52
+ title: titles(reference),
53
53
  abstract: abstracts(reference),
54
- contributors: contributors(reference),
55
- dates: dates(reference),
54
+ contributor: contributors(reference),
55
+ date: dates(reference),
56
56
  series: series(reference),
57
57
  keywords: reference.xpath("front/keyword").map(&:text),
58
58
  )
@@ -90,13 +90,7 @@ module RelatonIetf
90
90
  docid: [RelatonBib::DocumentIdentifier.new(type: "IETF", id: reference)],
91
91
  language: ["en"],
92
92
  link: [{ type: "src", content: uri }],
93
- relations: fetch_relations(doc),
94
- # titles: titles(reference),
95
- # abstract: abstracts(reference),
96
- # contributors: contributors(reference),
97
- # dates: dates(reference),
98
- # series: series(reference),
99
- # keywords: reference.xpath("front/keyword").map(&:text),
93
+ relation: fetch_relations(doc),
100
94
  )
101
95
  end
102
96
 
@@ -154,9 +148,9 @@ module RelatonIetf
154
148
  entity = RelatonBib::Person.new(
155
149
  name: full_name(author, reference),
156
150
  affiliation: [affiliation(author)],
157
- contacts: contacts(author.at("./address")),
151
+ contact: contacts(author.at("./address")),
158
152
  )
159
- { entity: entity, roles: [contributor_role(author)] }
153
+ { entity: entity, role: [contributor_role(author)] }
160
154
  end
161
155
  end
162
156
 
@@ -166,7 +160,7 @@ module RelatonIetf
166
160
  next unless si[:stream]
167
161
 
168
162
  entity = RelatonBib::Organization.new name: si[:stream]
169
- { entity: entity, roles: ["author"] }
163
+ { entity: entity, role: ["author"] }
170
164
  end.compact
171
165
  end
172
166
 
@@ -176,7 +170,7 @@ module RelatonIetf
176
170
  def full_name(author, ref)
177
171
  RelatonBib::FullName.new(
178
172
  completename: localized_string(author[:fullname], ref),
179
- initials: [localized_string(author[:initials], ref)],
173
+ initial: [localized_string(author[:initials], ref)],
180
174
  surname: [localized_string(author[:surname], ref)],
181
175
  )
182
176
  end
@@ -1,3 +1,3 @@
1
1
  module RelatonIetf
2
- VERSION = "0.5.5".freeze
2
+ VERSION = "0.6.0".freeze
3
3
  end
data/relaton_ietf.gemspec CHANGED
@@ -40,5 +40,5 @@ Gem::Specification.new do |spec|
40
40
  spec.add_development_dependency "vcr"
41
41
  spec.add_development_dependency "webmock"
42
42
 
43
- spec.add_dependency "relaton-iso-bib", "~> 0.2.0"
43
+ spec.add_dependency "relaton-iso-bib", "~> 0.3.0"
44
44
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: relaton-ietf
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.5
4
+ version: 0.6.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
@@ -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: "RelatonIetf: retrieve IETF Standards for bibliographic use \nusing the
168
168
  BibliographicItem model.\n\nFormerly known as rfcbib.\n"
169
169
  email: