relaton-ietf 0.11.1 → 0.12.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
  SHA256:
3
- metadata.gz: d96cdf0d47494963332b91ea95df35453c7f0ac74c101bbd089e96cf598f9d98
4
- data.tar.gz: b4da320d32db4c7eb2057be778da4922e900e54ed124e5143ab81b018c982592
3
+ metadata.gz: 3651e6424d875521f5460fcfe63b3de8607b7e20a97af92a13ecab7594557965
4
+ data.tar.gz: 986bbf087fa8e7b4c9fc1fa2ca44867093f54a5c7e181f8ed0bf72719ef2a58b
5
5
  SHA512:
6
- metadata.gz: 0554060657feb82f510a59ea5339d7f974fd32ad2d23956b4d23a6b3d08e1cf23e4b23318080ef3951014629470de962361e7251026ac1e023265011bcfecafe
7
- data.tar.gz: 508f8d3522a27c9292b189b322a573ac1ddf23c32d17da20a924555db14a2f67edd8e3c3d92084f33f2c76d345145adefd16127b2f9bfd47c96a7903060f9ce6
6
+ metadata.gz: 3b1de5bfa3d2922e36246b700ef5d8c8ba3897cb313c53c4023e4e3647c2407c18566e0c284b5967c476737270a49f3f8489fbe9fe6caf669cd2fc16c5e208cc
7
+ data.tar.gz: f0aef9420cf1dc1d24f309ecd9265f85b021361516df0a37827a0c7a5f7dd5fd91df715ed49105d80f133e1cd305980a886c2b8b9f65b7abf0c118c75c46344f
@@ -14,10 +14,14 @@ module RelatonIetf
14
14
 
15
15
  # @param code [String] the ISO standard Code to look up (e..g "ISO 9000")
16
16
  # @param year [String] the year the standard was published (optional)
17
- # @param opts [Hash] options; restricted to :all_parts if all-parts reference is required
17
+ # @param opts [Hash] options; restricted to :all_parts if all-parts
18
+ # reference is required
18
19
  # @return [RelatonIetf::IetfBibliographicItem] Relaton of reference
19
20
  def get(code, _year = nil, _opts = {})
20
- search code
21
+ warn "[relaton-ietf] (\"#{code}\") fetching..."
22
+ result = search code
23
+ warn "[relaton-ietf] (\"#{code}\") found #{result.docidentifier.first.id}"
24
+ result
21
25
  end
22
26
  end
23
27
  end
@@ -264,14 +264,14 @@ module RelatonIetf
264
264
  end
265
265
 
266
266
  # @param author [Nokogiri::XML::Document]
267
- # @return [RelatonBib::Affilation]
267
+ # @return [RelatonBib::Affiliation]
268
268
  def affiliation(author)
269
269
  organization = author.at("./organization")
270
270
  org = RelatonBib::Organization.new(
271
271
  name: organization.text.empty? ? "IETF" : organization.text,
272
272
  abbreviation: organization[:abbrev] || "IETF",
273
273
  )
274
- RelatonBib::Affilation.new organization: org
274
+ RelatonBib::Affiliation.new organization: org
275
275
  end
276
276
 
277
277
  # @param author [Nokogiri::XML::Document]
@@ -1,3 +1,3 @@
1
1
  module RelatonIetf
2
- VERSION = "0.11.1".freeze
2
+ VERSION = "0.12.0".freeze
3
3
  end
data/relaton_ietf.gemspec CHANGED
@@ -35,10 +35,10 @@ Gem::Specification.new do |spec|
35
35
  spec.add_development_dependency "rake", "~> 10.0"
36
36
  spec.add_development_dependency "rspec", "~> 3.0"
37
37
  spec.add_development_dependency "ruby-debug-ide"
38
+ spec.add_development_dependency "ruby-jing"
38
39
  spec.add_development_dependency "simplecov"
39
40
  spec.add_development_dependency "vcr"
40
41
  spec.add_development_dependency "webmock"
41
- spec.add_development_dependency "ruby-jing"
42
42
 
43
- spec.add_dependency "relaton-bib", "~> 0.8.0"
43
+ spec.add_dependency "relaton-bib", "~> 0.9.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.11.1
4
+ version: 0.12.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: 2020-02-26 00:00:00.000000000 Z
11
+ date: 2020-03-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: debase
@@ -95,7 +95,7 @@ dependencies:
95
95
  - !ruby/object:Gem::Version
96
96
  version: '0'
97
97
  - !ruby/object:Gem::Dependency
98
- name: simplecov
98
+ name: ruby-jing
99
99
  requirement: !ruby/object:Gem::Requirement
100
100
  requirements:
101
101
  - - ">="
@@ -109,7 +109,7 @@ dependencies:
109
109
  - !ruby/object:Gem::Version
110
110
  version: '0'
111
111
  - !ruby/object:Gem::Dependency
112
- name: vcr
112
+ name: simplecov
113
113
  requirement: !ruby/object:Gem::Requirement
114
114
  requirements:
115
115
  - - ">="
@@ -123,7 +123,7 @@ dependencies:
123
123
  - !ruby/object:Gem::Version
124
124
  version: '0'
125
125
  - !ruby/object:Gem::Dependency
126
- name: webmock
126
+ name: vcr
127
127
  requirement: !ruby/object:Gem::Requirement
128
128
  requirements:
129
129
  - - ">="
@@ -137,7 +137,7 @@ dependencies:
137
137
  - !ruby/object:Gem::Version
138
138
  version: '0'
139
139
  - !ruby/object:Gem::Dependency
140
- name: ruby-jing
140
+ name: webmock
141
141
  requirement: !ruby/object:Gem::Requirement
142
142
  requirements:
143
143
  - - ">="
@@ -156,14 +156,14 @@ dependencies:
156
156
  requirements:
157
157
  - - "~>"
158
158
  - !ruby/object:Gem::Version
159
- version: 0.8.0
159
+ version: 0.9.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.8.0
166
+ version: 0.9.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: