dynarex-blog 0.1.1 → 0.1.2

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 +8 -0
  2. metadata +2 -2
data/lib/dynarex-blog.rb CHANGED
@@ -8,11 +8,14 @@ require 'dynarex'
8
8
 
9
9
  class DynarexBlog
10
10
  include REXML
11
+
12
+ attr_accessor :id
11
13
 
12
14
  def initialize(file_path='./')
13
15
  @file_path = file_path[/\/$/] ? file_path : file_path + '/'
14
16
  if File.exists? (@file_path + 'index.xml') then open() else fresh_start() end
15
17
  @current_lookup = 'entry_lookup.xml'
18
+ super()
16
19
  end
17
20
 
18
21
  def create_entry(record={})
@@ -108,6 +111,11 @@ class DynarexBlog
108
111
  select_page(@current_lookup, number)
109
112
  end
110
113
 
114
+ def tag(tag)
115
+ @current_lookup = tag + '_lookup.xml'
116
+ end
117
+
118
+
111
119
  private
112
120
 
113
121
  def delete_entry(doc, node, lookup_filename, id)
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.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors: []
7
7
 
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2010-06-03 00:00:00 +01:00
12
+ date: 2010-06-23 00:00:00 +01:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency