xamplr 1.9.4 → 1.9.5
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION.yml +1 -1
- data/lib/xamplr/persisters/tokyo-cabinet.rb +5 -3
- data/xamplr.gemspec +1 -1
- metadata +1 -1
data/VERSION.yml
CHANGED
@@ -478,6 +478,7 @@ module Xampl
|
|
478
478
|
|
479
479
|
def write(xampl)
|
480
480
|
|
481
|
+
# puts "#{ File.basename __FILE__ }:#{ __LINE__ } [#{__method__}] write #{ xampl }"
|
481
482
|
raise XamplException.new(:no_index_so_no_persist) unless xampl.get_the_index
|
482
483
|
|
483
484
|
expunging = self.expunged.include?(xampl)
|
@@ -568,14 +569,14 @@ module Xampl
|
|
568
569
|
end
|
569
570
|
|
570
571
|
if secondary_descriptions then
|
571
|
-
|
572
|
+
secondary_xampl_hash = {
|
572
573
|
'class' => xampl.class.name,
|
573
574
|
'pid' => xampl.get_the_index,
|
574
575
|
'xampl-place' => place
|
575
576
|
}
|
576
577
|
|
577
578
|
secondary_descriptions.each do | secondary_description |
|
578
|
-
description = secondary_description.merge(
|
579
|
+
description = secondary_description.merge(secondary_xampl_hash)
|
579
580
|
index_info[:secondary] << secondary_description
|
580
581
|
|
581
582
|
note_errors("TC[[#{ @filename }]]:: write error: %s\n") do
|
@@ -591,7 +592,8 @@ module Xampl
|
|
591
592
|
FileUtils.mkdir_p(place_dir) unless File.exist?(place_dir)
|
592
593
|
file_place = "#{ @files_dir }/#{ place }"
|
593
594
|
File.open(file_place, "w") do |out|
|
594
|
-
out.write xampl_hash['xampl']
|
595
|
+
# out.write xampl_hash['xampl']
|
596
|
+
out.write xampl_in_xml
|
595
597
|
if :sync == Xampl.raw_persister_options[:write_through] then
|
596
598
|
out.fsync
|
597
599
|
if $is_darwin then
|
data/xamplr.gemspec
CHANGED