forked from instructure/canvas-lms
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fastercsv is not supported in 1.9, instead csv in the stdlib has been modified to be api compatible with fastercsv. in this first step, we alias CSV to FasterCSV when running under 1.9. This allows 1.8.7 to continue working with no changes. Change-Id: I34c3a9031b6f4946380510e4833203e29a05073a Reviewed-on: https://gerrit.instructure.com/5835 Tested-by: Hudson <[email protected]> Reviewed-by: Zach Wily <[email protected]>
- Loading branch information
1 parent
e07e64b
commit 1fe1b1a
Showing
6 changed files
with
11 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# 1.9 has a built-in equivalent to fastercsv | ||
if RUBY_VERSION > "1.9." | ||
require 'csv' | ||
FasterCSV = CSV | ||
else | ||
require 'fastercsv' | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,7 +17,6 @@ | |
# | ||
|
||
# This is used for the GradebookImporter | ||
require 'fastercsv' | ||
require 'ostruct' | ||
|
||
class CSVParser | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters