Permalink
Browse files

Updates to make it Ruby 1.9.3 compatible

  • Loading branch information...
1 parent 8f3d6f0 commit dd6dcaac697629e70b08e670daa342bbf2e275da @wdperson committed May 16, 2012
View
@@ -1,4 +1,3 @@
-require 'fastercsv'
require 'gooddata'
require 'pp'
require 'logger'
@@ -81,7 +81,7 @@ def grab_data_from_file(filename)
YAML.parse(data)
when ".csv"
output = []
- FasterCSV.parse(data, :headers => true) do |row|
+ CSV.parse(data, :headers => true) do |row|
output << row.to_hash
end
output
@@ -79,7 +79,7 @@ def values
end
def get_values
- data = FasterCSV.read(filename)
+ data = CSV.read(filename)
vals = {}
data.each do |line|
vals.has_key?(line.first) ? vals[line.first].concat(line[1..-1]) : vals[line.first] = line[1..-1]
@@ -21,7 +21,6 @@ Gem::Specification.new do |s|
s.add_dependency "rspec"
s.add_dependency "rake"
- s.add_dependency "fastercsv"
s.add_dependency "gooddata"
end

0 comments on commit dd6dcaa

Please sign in to comment.