dynarex-blog 0.2.4 → 0.2.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 +7 -4
  2. metadata +2 -2
data/lib/dynarex-blog.rb CHANGED
@@ -99,10 +99,13 @@ class DynarexBlog
99
99
  def open(file_path='./')
100
100
 
101
101
  @file_path = file_path
102
- @index = Dynarex.new @file_path + 'index.xml'
103
- @id = @index.records ? @index.records.to_a[-1][-1][:id].to_i : 0
104
-
105
- @entities = Polyrex.new @file_path + 'entities.xml'
102
+ threads = []
103
+ threads << Thread.new{
104
+ @index = Dynarex.new @file_path + 'index.xml'
105
+ @id = @index.records ? @index.records.to_a[-1][-1][:id].to_i : 0
106
+ }
107
+ threads << Thread.newP@entities = Polyrex.new @file_path + 'entities.xml'}
108
+ threads.each {|thread| thread.join}
106
109
 
107
110
  end
108
111
 
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.2.4
4
+ version: 0.2.5
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-07-14 00:00:00 +01:00
12
+ date: 2010-07-16 00:00:00 +01:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency