Permalink
Browse files

Merge commit 'c50e3e6'

  • Loading branch information...
Sam Umbach and Craig Andera
Sam Umbach and Craig Andera committed Jul 6, 2011
2 parents 25b4d67 + c50e3e6 commit a8e313ac162aed514f9bfd823ed533c4da1f3cea
Showing with 8 additions and 3 deletions.
  1. +4 −0 Gemfile.lock
  2. +1 −0 glitr.gemspec
  3. +3 −3 lib/glitr/connection.rb
View
@@ -2,11 +2,13 @@ PATH
remote: .
specs:
glitr (0.0.1)
+ bamfcsv (~> 0.1.3)
typhoeus (~> 0.2.4)
GEM
remote: http://rubygems.org/
specs:
+ bamfcsv (0.1.3)
diff-lcs (1.1.2)
mime-types (1.16)
mocha (0.9.12)
@@ -26,6 +28,8 @@ PLATFORMS
ruby
DEPENDENCIES
+ bamfcsv (~> 0.1.3)
glitr!
mocha (~> 0.9.10)
rspec (~> 2.2.0)
+ typhoeus (~> 0.2.4)
View
@@ -21,6 +21,7 @@ Gem::Specification.new do |s|
# Runtime Dependencies
s.add_runtime_dependency 'typhoeus', ['~> 0.2.4']
+ s.add_runtime_dependency 'bamfcsv', ['~> 0.1.3']
# Developmnet Dependencies
s.add_development_dependency 'rspec', ['~> 2.2.0']
View
@@ -1,5 +1,5 @@
require 'cgi'
-require 'csv'
+require 'bamfcsv'
require 'typhoeus'
module Glitr
@@ -20,8 +20,8 @@ def initialize(opts)
def fetch(query)
csv = get_cached_response(query_uri query)
- CSV.parse(csv, :headers => true)
- rescue CSV::MalformedCSVError => e
+ BAMFCSV.parse(csv, :headers => true)
+ rescue BAMFCSV::MalformedCSVError => e
raise MalformedResponseError.new(csv)
end

0 comments on commit a8e313a

Please sign in to comment.