dynarex-blog 0.1.4 → 0.1.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 +4 -4
  2. metadata +1 -1
data/lib/dynarex-blog.rb CHANGED
@@ -175,7 +175,7 @@ class DynarexBlog
175
175
  def create_record(record, id, name, type)
176
176
 
177
177
  entry_count = @entities.xpath "records/section[summary/name='#{type}']/records/entity/summary[name='#{name}']/count"
178
- lookup_path = "%s%s_lookup.xml" % [@file_path, name]
178
+ lookup_file = "%s_lookup.xml" % name
179
179
 
180
180
  if entry_count.nil?
181
181
  @entities.id('tags').create.entity(name: name, count: '1')
@@ -188,7 +188,7 @@ class DynarexBlog
188
188
  dynarex_path = @file_path + name + '1.xml'
189
189
  dynarex.save dynarex_path
190
190
 
191
- new_lookup_file lookup_path
191
+ new_lookup_file lookup_file
192
192
 
193
193
  end
194
194
 
@@ -201,9 +201,9 @@ class DynarexBlog
201
201
 
202
202
  # add the record to lookup
203
203
 
204
- lookup = Dynarex.new lookup_path
204
+ lookup = Dynarex.new @file_path + lookup_file
205
205
  lookup.create id: id, file: entry_file, year: Time.now.strftime("%Y"), month: Time.now.strftime("%m"), uri: record[:title].gsub(/\s/,'-')
206
- lookup.save lookup_path
206
+ lookup.save @file_path + lookup_file
207
207
 
208
208
  # if there is 15 items create a new entries file
209
209
  if dynarex.records.length >= 15 then
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.4
4
+ version: 0.1.5
5
5
  platform: ruby
6
6
  authors: []
7
7