isobib 0.1.2 → 0.1.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 +4 -4
- data/README.adoc +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
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 99d6a2bc95e20bf725a2ebb975d0c743dcf95912
|
|
4
|
+
data.tar.gz: 893d09e8750b2fa4b9c449e36d18d4ff2ee4e68a
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 231d92813a6c052f12fb21aaa9623bf1a04246d4aea9ff6a2f2d2b62e10714b563768450055e99f1fdeaebd1640ec22e4779cd56bb2b6bd516b8921d084cbf08
|
|
7
|
+
data.tar.gz: dd1bd4cb0d50a22a7778f0e6c98944d0934329243c2af7697cd6dc574706277ca1981e23335bcdeff651b85e748fb92d396dbd89423765b02e04c5eb71999276
|
data/Gemfile.lock
CHANGED
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
isobib (0.1.
|
|
4
|
+
isobib (0.1.3)
|
|
5
5
|
algoliasearch
|
|
6
6
|
iso-bib-item
|
|
7
7
|
|
|
8
8
|
GEM
|
|
9
9
|
remote: https://rubygems.org/
|
|
10
10
|
specs:
|
|
11
|
-
algoliasearch (1.
|
|
12
|
-
httpclient (~> 2.8.3)
|
|
11
|
+
algoliasearch (1.20.0)
|
|
12
|
+
httpclient (~> 2.8, >= 2.8.3)
|
|
13
13
|
json (>= 1.5.1)
|
|
14
14
|
byebug (10.0.0)
|
|
15
15
|
coderay (1.1.2)
|
|
16
16
|
diff-lcs (1.3)
|
|
17
17
|
docile (1.1.5)
|
|
18
18
|
httpclient (2.8.3)
|
|
19
|
-
iso-bib-item (0.1.
|
|
19
|
+
iso-bib-item (0.1.1)
|
|
20
20
|
isoics
|
|
21
21
|
nokogiri
|
|
22
22
|
isoics (0.1.5)
|
data/README.adoc
CHANGED
|
@@ -12,14 +12,14 @@ You can use it to retrieve metadata of ISO Standards from https://www.iso.org, a
|
|
|
12
12
|
|
|
13
13
|
[source,ruby]
|
|
14
14
|
----
|
|
15
|
-
IsoBibliography.search("19115")
|
|
15
|
+
Isobib::IsoBibliography.search("19115")
|
|
16
16
|
=> [
|
|
17
17
|
<<IsoBibliographicItem: docIdentifier <<projectNumber:19115; partNumber: 1>>; edition: 1 ...>>,
|
|
18
18
|
<<IsoBibliographicItem: docIdentifier <<projectNumber:19115; partNumber: 1>>; edition: 2 ...>>,
|
|
19
19
|
...
|
|
20
20
|
]
|
|
21
21
|
|
|
22
|
-
collection = IsoBibliography.search("19115")
|
|
22
|
+
collection = Isobib::IsoBibliography.search("19115")
|
|
23
23
|
iso191151 = collection.first
|
|
24
24
|
iso191152 = collection[1]
|
|
25
25
|
----
|
data/lib/isobib/scrapper.rb
CHANGED
|
@@ -297,7 +297,7 @@ module Isobib
|
|
|
297
297
|
dates = []
|
|
298
298
|
publish_date = doc.xpath("//span[@itemprop='releaseDate']").text
|
|
299
299
|
unless publish_date.empty?
|
|
300
|
-
dates << { type: 'published',
|
|
300
|
+
dates << { type: 'published', on: publish_date }
|
|
301
301
|
end
|
|
302
302
|
dates
|
|
303
303
|
end
|
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.1.
|
|
4
|
+
version: 0.1.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-05-
|
|
11
|
+
date: 2018-05-25 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|