isobib 0.2.2 → 0.2.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Gemfile.lock +2 -2
- data/isobib.gemspec +1 -1
- data/lib/isobib/scrapper.rb +1 -1
- data/lib/isobib/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 014de3839ec12b7fed6d51bdae6aa9184fc68d0ac9b0d3ce93e2612027131c23
|
|
4
|
+
data.tar.gz: 5b56a485e23bcd6b62a807c65f7ba8ce7f01781105cfaa2d7c998424a2c808c0
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 3768a1e26e41ebae555e4ce56cad226b4fed37e11c2068f5002f7d24da07c3bd33f97f04a4e73a07f1375ba465000899e7a573b86c11078951b8b9dc461b59a1
|
|
7
|
+
data.tar.gz: 2de63e7914bb7391048ff5d9dda3e47fe98ff2fac7d50326913b8588346f45e7f5d299ab49ac14b860222b508d8ac4ae2cfdde5d0a8c659462e72c6a128b1f62
|
data/Gemfile.lock
CHANGED
|
@@ -3,7 +3,7 @@ PATH
|
|
|
3
3
|
specs:
|
|
4
4
|
isobib (0.2.2)
|
|
5
5
|
algoliasearch
|
|
6
|
-
iso-bib-item (~> 0.2.
|
|
6
|
+
iso-bib-item (~> 0.2.4)
|
|
7
7
|
|
|
8
8
|
GEM
|
|
9
9
|
remote: https://rubygems.org/
|
|
@@ -18,7 +18,7 @@ GEM
|
|
|
18
18
|
equivalent-xml (0.6.0)
|
|
19
19
|
nokogiri (>= 1.4.3)
|
|
20
20
|
httpclient (2.8.3)
|
|
21
|
-
iso-bib-item (0.2.
|
|
21
|
+
iso-bib-item (0.2.4)
|
|
22
22
|
isoics (~> 0.1.6)
|
|
23
23
|
nokogiri (~> 1.8.4)
|
|
24
24
|
ruby_deep_clone (~> 0.8.0)
|
data/isobib.gemspec
CHANGED
data/lib/isobib/scrapper.rb
CHANGED
|
@@ -271,7 +271,7 @@ module Isobib
|
|
|
271
271
|
# @param lang [String]
|
|
272
272
|
# @return [Hash]
|
|
273
273
|
def fetch_title(doc, lang)
|
|
274
|
-
titles = doc.
|
|
274
|
+
titles = doc.at("//h3[@itemprop='description'] | //h2[@itemprop='description']")
|
|
275
275
|
.text.split ' -- '
|
|
276
276
|
case titles.size
|
|
277
277
|
when 0
|
data/lib/isobib/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: isobib
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.2.
|
|
4
|
+
version: 0.2.3
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Ribose Inc.
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2018-
|
|
11
|
+
date: 2018-08-09 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|
|
@@ -128,14 +128,14 @@ dependencies:
|
|
|
128
128
|
requirements:
|
|
129
129
|
- - "~>"
|
|
130
130
|
- !ruby/object:Gem::Version
|
|
131
|
-
version: 0.2.
|
|
131
|
+
version: 0.2.4
|
|
132
132
|
type: :runtime
|
|
133
133
|
prerelease: false
|
|
134
134
|
version_requirements: !ruby/object:Gem::Requirement
|
|
135
135
|
requirements:
|
|
136
136
|
- - "~>"
|
|
137
137
|
- !ruby/object:Gem::Version
|
|
138
|
-
version: 0.2.
|
|
138
|
+
version: 0.2.4
|
|
139
139
|
description: 'IsoBib: retrieve ISO Standards for bibliographic use using the BibliographicItem
|
|
140
140
|
model'
|
|
141
141
|
email:
|