isobib 0.2.5 → 0.2.6
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/lib/isobib/scrapper.rb +1 -1
- data/lib/isobib/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 2da9b3d54cd5d9d2cb445f408f02d66277ffad53d2c8ffaf66fa1fc661c90fc1
|
|
4
|
+
data.tar.gz: 95bd69ed6ef1aba5bc9d070b0749490686c297e6f9dd193e888369a26d4fa54d
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 0bea7ff7ba588d59fbdd880c0d2ab84b9378586ec326c5456f11fe9185b72428a3c936a16f5bcd633bd5b8d1a204c8503fbe7c679e0460f28dbe8751b0b3e4a7
|
|
7
|
+
data.tar.gz: ddea54a266e48af26e9eb93e40cb2abc853a7e16af0af5fa76e30cff269ae8f11c24f006de19856963f32a43836e676b68ad845cda139cac5f32f7e0353c473a
|
data/Gemfile.lock
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
isobib (0.2.
|
|
4
|
+
isobib (0.2.6)
|
|
5
5
|
algoliasearch
|
|
6
6
|
iso-bib-item (~> 0.2.4)
|
|
7
7
|
|
|
@@ -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.5)
|
|
22
22
|
isoics (~> 0.1.6)
|
|
23
23
|
nokogiri (~> 1.8.4)
|
|
24
24
|
ruby_deep_clone (~> 0.8.0)
|
data/lib/isobib/scrapper.rb
CHANGED
|
@@ -194,7 +194,7 @@ module Isobib
|
|
|
194
194
|
# @return [Hash]
|
|
195
195
|
def fetch_docid(doc)
|
|
196
196
|
item_ref = doc.xpath("//strong[@id='itemReference']").text
|
|
197
|
-
|
|
197
|
+
.match(/^(.*?\d+)-?((?<=-)\d+|)/)
|
|
198
198
|
{ project_number: item_ref[1], part_number: item_ref[2], prefix: nil }
|
|
199
199
|
end
|
|
200
200
|
|
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.6
|
|
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-09-01 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|