load_stocks.rb in riakpb-0.2.3 vs load_stocks.rb in riakpb-0.3.0
- old
+ new
@@ -10,10 +10,10 @@
client = Riakpb::Client.new
bucket = client["goog"]
CSV.foreach('goog.csv', :headers => true) do |row|
- @noisy && puts(row.first[1].to_s)
+ puts(row.first[1].to_s) if @noisy
key = bucket[row.first[1].to_s]
key.content.value = Hash[row.to_a]
key.save
end