README.adoc in relaton-index-0.1.5 vs README.adoc in relaton-index-0.1.6
- old
+ new
@@ -30,11 +30,11 @@
Relaton::Index.find_or_create :IHO, url: "https://raw.githubusercontent.com/relaton/relaton-data-iho/master/index.zip", filename: "index-iho.yaml"
# Find an existing index object (created before).
Relaton::Index.find_or_create :IHO
-# If a new value of URL or filename is specified and has a new value (different from what it was before), the index object will be recreated.
+# If the URL or filename is specified and has a new value (different from what it was before), the index object will be recreated.
Relaton::Index.find_or_create :IHO, url: nil, filename: "index.yaml"
# Remove the index from the pool.
Relaton::Index.close :IHO
----
@@ -77,9 +77,16 @@
index.search do |row|
# do something with the index row
row[:id] == "B-4"
end
# => [{ id: "B-4 2.19.0", file: "data/b-4_2_19_0.xml" }]
+----
+
+=== Remove all index records
+
+[source,ruby]
+----
+index.remove_all
----
=== Configuration
The gem can be configured by using the `Relaton::Index.config` method. The following settings are available: