relaton-ogc 1.18.1 → 1.20.0
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/README.adoc +5 -12
- data/{docs.json → docs1.json} +2111 -1444
- data/grammars/basicdoc.rng +3 -0
- data/lib/relaton_ogc/data_fetcher.rb +3 -4
- data/lib/relaton_ogc/document_type.rb +1 -1
- data/lib/relaton_ogc/hash_converter.rb +1 -1
- data/lib/relaton_ogc/ogc_bibliographic_item.rb +1 -1
- data/lib/relaton_ogc/ogc_bibliography.rb +5 -5
- data/lib/relaton_ogc/util.rb +1 -4
- data/lib/relaton_ogc/version.rb +1 -1
- data/lib/relaton_ogc/xml_parser.rb +1 -3
- data/lib/relaton_ogc.rb +0 -1
- data/relaton_ogc.gemspec +1 -1
- metadata +9 -10
- data/lib/relaton_ogc/config.rb +0 -10
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2fb5518408325a02364ea1938708089804f1b61493a3dfa01c99239314ce4bf4
|
4
|
+
data.tar.gz: 660f8779f7209f80bf8498bc2022259aaf40b9a6bf998267814b0300b14328db
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 58c9d21aa2ce4fc50dc626225d24cc495fc20078497a360a218bfc1f1133be4a2b2bd24238c09dc046aef15a20b3ab41438b20a7a93d40311b7ecda74e3a22a6
|
7
|
+
data.tar.gz: 452073a916ffae4eec0efcd3074641547ea7a80199194a1d453830985c22a129364ede8812e84e48664d3ee989064eea3b962baa26f0fb53c0fc01694ee00d79
|
data/README.adoc
CHANGED
@@ -31,24 +31,13 @@ Or install it yourself as:
|
|
31
31
|
|
32
32
|
== Usage
|
33
33
|
|
34
|
-
===
|
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.
|
34
|
+
=== Search for a standard using keywords
|
37
35
|
|
38
36
|
[source,ruby]
|
39
37
|
----
|
40
38
|
require 'relaton_ogc'
|
41
39
|
=> true
|
42
40
|
|
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
|
-
----
|
52
41
|
hits = RelatonOgc::OgcBibliography.search("OGC 19-025r1")
|
53
42
|
=> <RelatonOgc::HitCollection:0x007fcc8e085ba8 @ref=OGC 19-025r1 @fetched=true>
|
54
43
|
|
@@ -149,6 +138,10 @@ Stopped at: 2021-09-14 11:21:48 +0200
|
|
149
138
|
=> nil
|
150
139
|
----
|
151
140
|
|
141
|
+
=== Logging
|
142
|
+
|
143
|
+
RelatonOgc uses the relaton-logger gem for logging. By default, it logs to STDOUT. To change the log levels and add other loggers, read the https://github.com/relaton/relaton-logger#usage[relaton-logger] documentation.
|
144
|
+
|
152
145
|
== Development
|
153
146
|
|
154
147
|
After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
|