relaton-ogc 1.16.2 → 1.17.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.adoc +14 -3
- data/docs.json +29488 -0
- data/grammars/basicdoc.rng +18 -2
- data/grammars/biblio.rng +1 -0
- data/lib/relaton_ogc/document_type.rb +22 -0
- data/lib/relaton_ogc/hash_converter.rb +19 -14
- data/lib/relaton_ogc/ogc_bibliographic_item.rb +2 -11
- data/lib/relaton_ogc/ogc_bibliography.rb +4 -5
- data/lib/relaton_ogc/scrapper.rb +6 -1
- data/lib/relaton_ogc/version.rb +1 -1
- data/lib/relaton_ogc.rb +1 -0
- data/relaton_ogc.gemspec +1 -1
- metadata +6 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e44b045b9780f7d267cebd6a0bc57608209804ae1d00f1197e14a55a0f3f2cd2
|
4
|
+
data.tar.gz: aec09dc2b94e3d7c8e5c6568c67b71f2480c104d2e7906870a896b123b388f85
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6c9dfba110bdd68ca546aba0ec498dec13b4e78287284e95080d2b3e3150d442cf38460d79b43d2355fd87c7cc3378e2bf6fbf43b4d26d0da238ac964590d9ea
|
7
|
+
data.tar.gz: 55eb97d1f7ffab0c0d7735b94a8a335a7fb6a6a3c2e6b9835d3e515de5a44a154aea20280978f68e2b6a4f45da638a5f919d31a18531330dea5b6482ca44ec2b
|
data/README.adoc
CHANGED
@@ -31,13 +31,24 @@ Or install it yourself as:
|
|
31
31
|
|
32
32
|
== Usage
|
33
33
|
|
34
|
-
===
|
34
|
+
=== Configuration
|
35
|
+
|
36
|
+
Configuration is optional. The available option is `logger` which is a `Logger` instance. By default, the logger is `Logger.new($stderr)` with `Logger::WARN` level. To change the logger level, use `RelatonOgc.configure` block.
|
35
37
|
|
36
38
|
[source,ruby]
|
37
39
|
----
|
38
40
|
require 'relaton_ogc'
|
39
41
|
=> true
|
40
42
|
|
43
|
+
RelatonOgc.configure do |config|
|
44
|
+
config.logger.level = Logger::DEBUG
|
45
|
+
end
|
46
|
+
----
|
47
|
+
|
48
|
+
=== Search for a standard using keywords
|
49
|
+
|
50
|
+
[source,ruby]
|
51
|
+
----
|
41
52
|
hits = RelatonOgc::OgcBibliography.search("OGC 19-025r1")
|
42
53
|
=> <RelatonOgc::HitCollection:0x007fcc8e085ba8 @ref=OGC 19-025r1 @fetched=true>
|
43
54
|
|
@@ -83,8 +94,8 @@ item.to_xml bibdata: true
|
|
83
94
|
[source,ruby]
|
84
95
|
----
|
85
96
|
RelatonOgc::OgcBibliography.get "OGC 19-025r1", "2019", {}
|
86
|
-
[relaton-ogc] (
|
87
|
-
[relaton-ogc] (
|
97
|
+
[relaton-ogc] (OGC 19-025r1) Fetching from Relaton repository ...
|
98
|
+
[relaton-ogc] (OGC 19-025r1) Found: `19-025r1`
|
88
99
|
=> #<RelatonOgc::OgcBibliographicItem:0x007fc322e9aba0
|
89
100
|
...
|
90
101
|
----
|