dynarex-blog 0.6.5 → 0.6.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/dynarex-blog.rb +3 -2
  2. metadata +1 -1
data/lib/dynarex-blog.rb CHANGED
@@ -156,7 +156,7 @@ class DynarexBlog
156
156
  result = @hc_result.read(lookup + number.to_s) do
157
157
 
158
158
  if (number == 1) and (lookup == '_entry_lookup.xml') and (@index.records.length == 10) then
159
- doc = @hc_lookup.read(lookup)
159
+ doc = @hc_lookup.refresh(lookup)
160
160
  r = Document.new(File.open(@file_path + 'index.xml','r').read)
161
161
  else
162
162
  doc = @hc_lookup.read(lookup) { Document.new File.open(@file_path + lookup,'r').read }
@@ -335,7 +335,8 @@ class DynarexBlog
335
335
  node_records.parent.delete node_records
336
336
  records = Element.new 'records'
337
337
 
338
- doc = @hc_lookup.read!(lookup) { Document.new File.open(@file_path + '_entry_lookup.xml','r').read }
338
+ lookup = '_entry_lookup.xml'
339
+ doc = @hc_lookup.read!(lookup) { Document.new File.open(@file_path + lookup,'r').read }
339
340
  new_records = select_page(doc, 1)
340
341
  new_records.each {|record| records.add record}
341
342
  doc_index.root.add records
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.5
4
+ version: 0.6.6
5
5
  platform: ruby
6
6
  authors: []
7
7