dynarex-blog 0.6.7 → 0.6.8
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.
- data/lib/dynarex-blog.rb +5 -6
- metadata +2 -2
data/lib/dynarex-blog.rb
CHANGED
@@ -335,15 +335,14 @@ class DynarexBlog
|
|
335
335
|
|
336
336
|
def refresh_index()
|
337
337
|
doc_index = Document.new File.open(@file_path + 'index.xml','r').read
|
338
|
+
|
338
339
|
node_records = XPath.first(doc_index.root, 'records')
|
339
340
|
node_records.parent.delete node_records
|
340
|
-
|
341
|
-
|
341
|
+
|
342
342
|
lookup = '_entry_lookup.xml'
|
343
|
-
doc =
|
344
|
-
|
345
|
-
|
346
|
-
doc_index.root.add records
|
343
|
+
doc = Document.new File.open(@file_path + lookup,'r').read
|
344
|
+
page = select_page(doc, 1)
|
345
|
+
doc_index.root.add XPath.first(page, 'records')
|
347
346
|
|
348
347
|
File.open(@file_path + 'index.xml', 'w'){|f| doc_index.write f}
|
349
348
|
@index = Dynarex.new @file_path + 'index.xml'
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dynarex-blog
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.6.
|
4
|
+
version: 0.6.8
|
5
5
|
platform: ruby
|
6
6
|
authors: []
|
7
7
|
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2010-09-
|
12
|
+
date: 2010-09-10 00:00:00 +01:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|