Changeset 18760 for lang/ruby

Show
Ignore:
Timestamp:
09/03/08 21:21:49 (3 months ago)
Author:
whym
Message:

make compatible to 1.8.6 and newer tokyocabinet

Location:
lang/ruby/echola
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • lang/ruby/echola/hatenahaiku-download.rb

    r18438 r18760  
    1818    $logger.info "writing entries between #{content[0]['created_at']} and #{content[-1]['created_at']} ..." 
    1919    content.each do |item| 
    20       db.putasync(item.id.to_s, item.to_yaml) 
     20      db.putasync(item['id'].to_s, item.to_yaml) 
    2121    end 
    2222  end 
  • lang/ruby/echola/lib/mycabinet.rb

    r16762 r18760  
    22 
    33module MyCabinet 
    4   [TokyoCabinet::HDB, TokyoCabinet::BDB, TokyoCabinet::FDB].each do |db| 
     4  [TokyoCabinet::HDB, TokyoCabinet::BDB].each do |db| 
    55    k = Class.new(db) 
    66    k.class_eval do