relaton-iso 1.0.5 → 1.1.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: abf60687d46a08d6b3f1ec1979849f8b13d33d174c7e65c992bf8f81db5a531c
4
- data.tar.gz: 22f99b919161f9a36fe5f8292da573b050b0abd80218a4dcc6105d53b71cb46f
3
+ metadata.gz: 23dbce13e2b3ded9fbcca9cc7c9193fdf8bdec270fdf52b416652f334f8af593
4
+ data.tar.gz: bb3482b113d31b79c7050f0d2206cb3df3588f8ef1cc45e72721c9c2dfd50201
5
5
  SHA512:
6
- metadata.gz: 5f357af63b1d9beeb1848a6f8a4a39d5f1a401a2d7947e59390144c9a9ab0bdc915a4ea342204f355cda395f739e963757d3e5b6e6a083cdb4230173f8b72c22
7
- data.tar.gz: 3b7e1cb107ae0b41d50db54c595b88fbb6ddac865893ac2b08a2001fa3494e4ec0cb832352d7a24657b437c3b81985310735dce041434933f29693f2077568ef
6
+ metadata.gz: a9bfbe60c42fb0ee0aee1e67c4b125715d3cad5ec9b52dfa87b1efb2484260ba768da03aabddc4794d28c2d18a840dc9f982eb28b1e41399f3166052806294d8
7
+ data.tar.gz: dd40529ac753e12996e0fc57abcf8b1bfa161059f726688ab0895f921cc8d65d3b6f224eb39a51081137b2338e0e891cc042d6cd470e2aa38195e53970bf6d63
@@ -373,14 +373,14 @@ module RelatonIso
373
373
  # Fetch copyright.
374
374
  # @param ref [String]
375
375
  # @param doc [Nokogiri::HTML::Document]
376
- # @return [Hash]
376
+ # @return [Array<Hash>]
377
377
  def fetch_copyright(ref, doc)
378
378
  owner_name = ref.match(/.*?(?=\s)/).to_s
379
379
  from = ref.match(/(?<=:)\d{4}/).to_s
380
380
  if from.empty?
381
381
  from = doc.xpath("//span[@itemprop='releaseDate']").text.match(/\d{4}/).to_s
382
382
  end
383
- { owner: { name: owner_name }, from: from }
383
+ [{ owner: [{ name: owner_name }], from: from }]
384
384
  end
385
385
  end
386
386
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module RelatonIso
4
- VERSION = "1.0.5"
4
+ VERSION = "1.1.0"
5
5
  end
@@ -37,6 +37,6 @@ Gem::Specification.new do |spec|
37
37
  spec.add_development_dependency "vcr"
38
38
  spec.add_development_dependency "webmock"
39
39
 
40
- spec.add_dependency "relaton-iec", ">= 1.0.1"
41
- spec.add_dependency "relaton-iso-bib", ">= 1.0.1"
40
+ spec.add_dependency "relaton-iec", "~> 1.1.0"
41
+ spec.add_dependency "relaton-iso-bib", "~> 1.1.0"
42
42
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: relaton-iso
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.5
4
+ version: 1.1.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-05-28 00:00:00.000000000 Z
11
+ date: 2020-06-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: byebug
@@ -154,30 +154,30 @@ dependencies:
154
154
  name: relaton-iec
155
155
  requirement: !ruby/object:Gem::Requirement
156
156
  requirements:
157
- - - ">="
157
+ - - "~>"
158
158
  - !ruby/object:Gem::Version
159
- version: 1.0.1
159
+ version: 1.1.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: 1.0.1
166
+ version: 1.1.0
167
167
  - !ruby/object:Gem::Dependency
168
168
  name: relaton-iso-bib
169
169
  requirement: !ruby/object:Gem::Requirement
170
170
  requirements:
171
- - - ">="
171
+ - - "~>"
172
172
  - !ruby/object:Gem::Version
173
- version: 1.0.1
173
+ version: 1.1.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: 1.0.1
180
+ version: 1.1.0
181
181
  description: 'RelatonIso: retrieve ISO Standards for bibliographic use using the IsoBibliographicItem
182
182
  model'
183
183
  email: