dynarex-blog 0.3.4 → 0.3.5

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.
Files changed (2) hide show
  1. data/lib/dynarex-blog.rb +2 -2
  2. metadata +1 -1
data/lib/dynarex-blog.rb CHANGED
@@ -117,8 +117,8 @@ class DynarexBlog
117
117
  current_lookup = @current_lookup
118
118
  @current_lookup = '_entry_lookup.xml'
119
119
 
120
- if number == 1 and current_lookup == '_entry_lookup.xml' and @index.records.length == 10 then
121
- Document.new(@index.to_xml)
120
+ if (number == 1) and (current_lookup == '_entry_lookup.xml') and (@index.records.length == 10) then
121
+ Document.new(File.open(@file_path + 'index.xml','r').read)
122
122
  else
123
123
  @hc_result.read(current_lookup + number.to_s) { select_page(current_lookup, number) }
124
124
  end
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.3.4
4
+ version: 0.3.5
5
5
  platform: ruby
6
6
  authors: []
7
7