comma-heaven 0.5.4 → 0.5.5

Sign up to get free protection for your applications and to get access to all the features.
data/lib/comma-heaven.rb CHANGED
@@ -1,4 +1,8 @@
1
- require 'fastercsv'
1
+ require RUBY_VERSION > "1.9" ? "csv" : 'fastercsv'
2
+
3
+ if RUBY_VERSION > "1.9"
4
+ FasterCSV = CSV
5
+ end
2
6
 
3
7
  require 'comma-heaven/active_record/to_comma_heaven'
4
8
  require 'comma-heaven/sqler'
data/spec/spec_helper.rb CHANGED
@@ -1,7 +1,7 @@
1
1
  $LOAD_PATH.unshift(File.dirname(__FILE__))
2
2
  $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
3
3
  require 'rubygems'
4
- require 'fastercsv'
4
+ require RUBY_VERSION > "1.9" ? "csv" : 'fastercsv'
5
5
 
6
6
  require 'activerecord'
7
7
 
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: comma-heaven
3
3
  version: !ruby/object:Gem::Version
4
- hash: 3
4
+ hash: 1
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 5
9
- - 4
10
- version: 0.5.4
9
+ - 5
10
+ version: 0.5.5
11
11
  platform: ruby
12
12
  authors:
13
13
  - Silvano Stralla