isobib 0.2.2 → 0.2.3

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: ff1175d6550a39c4f9a71de9df704450338cbc6b209fd428ca7246125301bc85
4
- data.tar.gz: '092ca049b61e5d2679186c089d3dd9c7cb815745dfe523b5f4bf617c15f6559b'
3
+ metadata.gz: 014de3839ec12b7fed6d51bdae6aa9184fc68d0ac9b0d3ce93e2612027131c23
4
+ data.tar.gz: 5b56a485e23bcd6b62a807c65f7ba8ce7f01781105cfaa2d7c998424a2c808c0
5
5
  SHA512:
6
- metadata.gz: c6ad16bec6986fd3a08dc267c07beedc40c6bf21466a538ca90088bb9a97246dc50bf9b140c75218b3780342baa1c6bd2a50ad31ae95295d13eb994da6e37769
7
- data.tar.gz: 6d13daf781bf41b62904b42c4642bfda4bc576617ce3776b4f47544f4c24009183ff1816a58f8c087f23e3fd893ab461e4ccf44e0826e7cc11779877d8fc8409
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.3)
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.3)
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
@@ -34,5 +34,5 @@ Gem::Specification.new do |spec|
34
34
  spec.add_development_dependency "equivalent-xml", "~> 0.6"
35
35
 
36
36
  spec.add_dependency 'algoliasearch'
37
- spec.add_dependency 'iso-bib-item', '~> 0.2.3'
37
+ spec.add_dependency 'iso-bib-item', '~> 0.2.4'
38
38
  end
@@ -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.css("h3[itemprop='description']")
274
+ titles = doc.at("//h3[@itemprop='description'] | //h2[@itemprop='description']")
275
275
  .text.split ' -- '
276
276
  case titles.size
277
277
  when 0
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Isobib
4
- VERSION = '0.2.2'
4
+ VERSION = '0.2.3'
5
5
  end
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.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-07-31 00:00:00.000000000 Z
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.3
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.3
138
+ version: 0.2.4
139
139
  description: 'IsoBib: retrieve ISO Standards for bibliographic use using the BibliographicItem
140
140
  model'
141
141
  email: