Changeset 7992 for platform/pragger

Show
Ignore:
Timestamp:
03/16/08 13:35:08 (5 years ago)
Author:
yasuyuki
Message:

platform/pragger/Feed/nicovideo_rank.rb: テスト時にデータを保存する個所をコメントアウトしたままにしていたのを修正 21

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • platform/pragger/Feed/nicovideo_rank.rb

    r7973 r7992  
    6161      pp raw_items[key] 
    6262    end 
    63         end 
    64 #  open( "#{config['rank_data']}.dump", 'w' ) do |f| 
    65 #       YAML.dump(raw_items, f) 
    66 # end 
    67         open(config['root_dir'] + last_fetched.strftime("/%Y/%m/%d/") + "rank.yaml", 'w' ) do |f| 
    68                 YAML.dump(rank_items, f) 
    69         end 
    70         rank_items 
     63  end 
     64   
     65  open( "#{config['rank_data']}.dump", 'w' ) do |f| 
     66    YAML.dump(raw_items, f) 
     67  end 
     68  open(config['root_dir'] + last_fetched.strftime("/%Y/%m/%d/") + "rank.yaml", 'w' ) do |f| 
     69    YAML.dump(rank_items, f) 
     70  end 
     71  rank_items 
    7172end 
    7273