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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: fa6ff540d50e236a8e1aae32805840c0e24a4d17b7b1038b2357472ea74ff65a
4
- data.tar.gz: ee011e12cc9aab1b0e0928e13d46627a4b0772cb34e107a401c8d06c3445e27e
3
+ metadata.gz: e44b045b9780f7d267cebd6a0bc57608209804ae1d00f1197e14a55a0f3f2cd2
4
+ data.tar.gz: aec09dc2b94e3d7c8e5c6568c67b71f2480c104d2e7906870a896b123b388f85
5
5
  SHA512:
6
- metadata.gz: cc2f32138c399f241989b6288ca4682d55067d14e05ddb7a236119976e4ec725ac5f5362a431364c1704aab503a27112b5665592d3aa67563615380d06acfee1
7
- data.tar.gz: 6db6033ad4d01acaedf66fe1bf6ae8fe7ab23127bd690e86e38849897b05961e0c5669a04921db398336d29b3cec1df4cc30ed307905bb944e28776eea32e916
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
- === Search for a standard using keywords
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] ("OGC 19-025r1") fetching...
87
- [relaton-ogc] ("OGC 19-025r1") found 19-025r1
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
  ----