dynarex-blog 0.3.16 → 0.4.0

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 +1 -1
  2. metadata +1 -1
data/lib/dynarex-blog.rb CHANGED
@@ -46,7 +46,7 @@ class DynarexBlog
46
46
 
47
47
  def entry(id)
48
48
  doc_lookup = @hc_lookup.read(@current_lookup) { Document.new File.open(@file_path + @current_lookup,'r').read }
49
- file = XPath.first(doc_lookup.root, "records/entry[id='#{id}']/file")
49
+ file = XPath.first(doc_lookup.root, "records/entry[id='#{id}']/file/text()").to_s
50
50
  doc_entries = Document.new(@hc_entry_file.read(file) { File.open(@file_path + file,'r').read })
51
51
  XPath.first(doc_entries.root, "records/entry[@id='#{id}']")
52
52
  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.16
4
+ version: 0.4.0
5
5
  platform: ruby
6
6
  authors: []
7
7