isobib 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +3 -3
- data/isobib.gemspec +1 -1
- data/lib/isobib/iso_bibliography.rb +2 -2
- 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: bf74496dde550035db49835da840400924291407cb76fe1a9dbc9a96cc8e12de
|
4
|
+
data.tar.gz: e7055116cc3c01c3e6efe3b5bce98e5e372333b49d809ff47a941fd02e845787
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 91e3413992182f15809e2eba4fb8b03dfb498540d9f51443178f990e6a1634969145b0ef7d1430226c7077350f1f49ac2835bbf50b867b145aa2cfde1acb18bc
|
7
|
+
data.tar.gz: 4006c209098d787dc209412ed5820e5c628ad2a804b18691e00bb2dbf08dc61c1b2dca92c4f8dfe247465353dd7185d4ccde05e22681e3890d6eb093999da846
|
data/Gemfile.lock
CHANGED
@@ -1,9 +1,9 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
isobib (0.
|
4
|
+
isobib (0.2.0)
|
5
5
|
algoliasearch
|
6
|
-
iso-bib-item (~> 0.2.
|
6
|
+
iso-bib-item (~> 0.2.1)
|
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.2)
|
22
22
|
isoics (~> 0.1.6)
|
23
23
|
nokogiri (~> 1.8.4)
|
24
24
|
ruby_deep_clone (~> 0.8.0)
|
data/isobib.gemspec
CHANGED
@@ -38,8 +38,8 @@ module Isobib
|
|
38
38
|
|
39
39
|
def fetch_ref_err(code, year, missed_years)
|
40
40
|
id = year ? "#{code}:#{year}" : code
|
41
|
-
warn "WARNING: no match found
|
42
|
-
"The code must be exactly like it is on the website."
|
41
|
+
warn "WARNING: no match found online for #{id}. "\
|
42
|
+
"The code must be exactly like it is on the standards website."
|
43
43
|
warn "(There was no match for #{year}, though there were matches "\
|
44
44
|
"found for #{missed_years.join(', ')}.)" unless missed_years.empty?
|
45
45
|
if /\d-\d/ =~ code
|
data/lib/isobib/scrapper.rb
CHANGED
@@ -194,7 +194,7 @@ module Isobib
|
|
194
194
|
def fetch_docid(doc)
|
195
195
|
item_ref = doc.xpath("//strong[@id='itemReference']").text
|
196
196
|
.match(/(?<=\s)(\d+)-?((?<=-)\d+|)/)
|
197
|
-
{ project_number: item_ref[1], part_number: item_ref[2] }
|
197
|
+
{ project_number: item_ref[1], part_number: item_ref[2], prefix: nil }
|
198
198
|
end
|
199
199
|
|
200
200
|
# Fetch status.
|
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.1
|
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-
|
11
|
+
date: 2018-07-25 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.3
|
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.3
|
139
139
|
description: 'IsoBib: retrieve ISO Standards for bibliographic use using the BibliographicItem
|
140
140
|
model'
|
141
141
|
email:
|