relaton-iso 1.4.0 → 1.5.pre
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/relaton_iso/scrapper.rb +2 -2
- data/lib/relaton_iso/version.rb +1 -1
- data/relaton_iso.gemspec +2 -2
- metadata +8 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0e719a41c79adcfe2abe6077cd01eadc0a45486d41ec4d1569603174fae16f6e
|
4
|
+
data.tar.gz: f2f8027f2988c5bec982f49b19fb0d53e92ded9c81dc3eae2f9e3f0976418da7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 35ba3e6b301f5daabfa60c7bf4a5a41b8eb39914ad4e7a963e4cb9038cd9bdbbc1bf9080f2f0eb1f2ffafa0e54d00205ced6ebbb7d80f6ec39b1dbd9dbfb325b
|
7
|
+
data.tar.gz: 963fb3f2dc634534739e2db773fc626552e9346d70a9002c78a5a6b1ccac517f2de96cc2e2986b09768bb9707845219531e4ce98625b82ca377715e9a12346b3
|
data/lib/relaton_iso/scrapper.rb
CHANGED
@@ -96,7 +96,7 @@ module RelatonIso
|
|
96
96
|
# @return [Array<Array>]
|
97
97
|
# rubocop:disable Metrics/AbcSize, Metrics/MethodLength
|
98
98
|
def fetch_titles_abstract(doc, lang)
|
99
|
-
titles =
|
99
|
+
titles = RelatonBib::TypedTitleStringCollection.new
|
100
100
|
abstract = []
|
101
101
|
langs = languages(doc, lang).reduce([]) do |s, l|
|
102
102
|
# Don't need to get page for en. We already have it.
|
@@ -319,7 +319,7 @@ module RelatonIso
|
|
319
319
|
"//nav[contains(@class,'heading-condensed')]/h2 | "\
|
320
320
|
"//nav[contains(@class,'heading-condensed')]/h3"
|
321
321
|
)&.text&.gsub(/\u2014/, "-")
|
322
|
-
return
|
322
|
+
return RelatonBib::TypedTitleStringCollection.new unless content
|
323
323
|
|
324
324
|
RelatonBib::TypedTitleString.from_string content, lang, script(lang)
|
325
325
|
end
|
data/lib/relaton_iso/version.rb
CHANGED
data/relaton_iso.gemspec
CHANGED
@@ -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.
|
41
|
-
spec.add_dependency "relaton-iso-bib", "~> 1.
|
40
|
+
spec.add_dependency "relaton-iec", "~> 1.5.pre"
|
41
|
+
spec.add_dependency "relaton-iso-bib", "~> 1.5.pre"
|
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.
|
4
|
+
version: 1.5.pre
|
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-
|
11
|
+
date: 2020-10-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: byebug
|
@@ -156,28 +156,28 @@ dependencies:
|
|
156
156
|
requirements:
|
157
157
|
- - "~>"
|
158
158
|
- !ruby/object:Gem::Version
|
159
|
-
version: 1.
|
159
|
+
version: 1.5.pre
|
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.
|
166
|
+
version: 1.5.pre
|
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.
|
173
|
+
version: 1.5.pre
|
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.
|
180
|
+
version: 1.5.pre
|
181
181
|
description: 'RelatonIso: retrieve ISO Standards for bibliographic use using the IsoBibliographicItem
|
182
182
|
model'
|
183
183
|
email:
|
@@ -236,9 +236,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
236
236
|
version: 2.4.0
|
237
237
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
238
238
|
requirements:
|
239
|
-
- - "
|
239
|
+
- - ">"
|
240
240
|
- !ruby/object:Gem::Version
|
241
|
-
version:
|
241
|
+
version: 1.3.1
|
242
242
|
requirements: []
|
243
243
|
rubygems_version: 3.0.6
|
244
244
|
signing_key:
|