lib/sched/client.rb in sched-0.0.5 vs lib/sched/client.rb in sched-0.0.6
- old
+ new
@@ -14,10 +14,10 @@
end
def events
unless @events
results = FasterCSV.parse(request('event/list', nil, :get))
- attributes = results.shift.map{|a| a.to_sym}
+ attributes = results.shift.map{|a| a.strip.to_sym}
@events = results.map do |row|
row_hash = {}
attributes.each_with_index do |a, i|
row_hash[a] = row[i]
end
\ No newline at end of file