dynarex-blog 0.3.0 → 0.3.1

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 +2 -2
  2. metadata +1 -1
data/lib/dynarex-blog.rb CHANGED
@@ -16,7 +16,7 @@ class DynarexBlog
16
16
  @file_path = file_path[/\/$/] ? file_path : file_path + '/'
17
17
  if File.exists? (@file_path + 'index.xml') then open(@file_path) else fresh_start() end
18
18
  @current_lookup = '_entry_lookup.xml'
19
- @hc_lookup = HashCache.new(size: 5)
19
+ @hc_lookup = HashCache.new(size: 15)
20
20
  @hc_result = HashCache.new(size: 5)
21
21
  @hc_entry_file = HashCache.new(size: 5)
22
22
  super()
@@ -156,7 +156,7 @@ class DynarexBlog
156
156
 
157
157
  temp_doc = Document.new '<root/>'
158
158
  a.map{|x| x.text('file').to_s}.uniq.each do |file|
159
- doc_entryx = Document.new( @@hc_entry_file.read(file) {File.open(@file_path + file,'r').read})
159
+ doc_entryx = Document.new( @hc_entry_file.read(file) {File.open(@file_path + file,'r').read})
160
160
  XPath.each(doc_entryx.root,'records/entry') do |entry|
161
161
  temp_doc.root.add entry
162
162
  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.0
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors: []
7
7