dynarex-blog 0.1.6 → 0.1.7

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 +4 -5
  2. metadata +1 -1
data/lib/dynarex-blog.rb CHANGED
@@ -44,7 +44,6 @@ class DynarexBlog
44
44
  # look the id up in lookup.xml
45
45
 
46
46
  doc_entry, entry = open_lookup_record 'entry', id
47
- puts entry.to_s
48
47
 
49
48
  dynarex_file = @file_path + entry.text('file').to_s
50
49
  dynarex = Document.new(File.open(dynarex_file,'r').read)
@@ -58,10 +57,10 @@ class DynarexBlog
58
57
  lookup = "%s%s" % [@file_path, 'entry_lookup.xml']
59
58
  File.open(lookup,'w'){|f| doc_entry.write f}
60
59
 
61
- tags.each do |tag|
60
+ tags.each do |tag_name|
62
61
  # find the lookup
63
- doc_tag, tag_entry = open_lookup_record tag, id
64
- delete_entry(doc_tag, tag_entry, tag, id)
62
+ doc_tag, node_entry = open_lookup_record tag_name, id
63
+ delete_entry(doc_tag, node_entry, tag_name, id)
65
64
  end
66
65
 
67
66
  doc = Document.new File.open(@file_path + 'index.xml','r').read
@@ -123,7 +122,7 @@ class DynarexBlog
123
122
  Dynarex.new(file).delete(id).save file
124
123
 
125
124
  node.parent.delete node
126
- lookup = "%s%s" % [@file_path, lookup_filename]
125
+ lookup = "%s%s_lookup.xml" % [@file_path, lookup_filename]
127
126
  File.open(lookup,'w'){|f| doc.write f}
128
127
  end
129
128
 
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.1.6
4
+ version: 0.1.7
5
5
  platform: ruby
6
6
  authors: []
7
7