beso 0.3.2 → 0.3.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/lib/beso/csv.rb +9 -11
  2. data/lib/beso/version.rb +1 -1
  3. metadata +2 -2
data/lib/beso/csv.rb CHANGED
@@ -9,20 +9,18 @@ module Beso
9
9
  protected
10
10
 
11
11
  def csv
12
- @csv ||= Object.const_get( :CSV ) || begin
13
- if require 'csv'
14
- ::CSV
15
- else
16
- begin
17
- require 'fastercsv'
18
- FasterCSV
19
- rescue
20
- raise "Ruby version #{RUBY_VERSION} users need to require 'fastercsv'"
21
- end
12
+ @csv ||= Object.const_get( :CSSV ) rescue begin
13
+ require 'csv'
14
+ ::CSV
15
+ rescue
16
+ begin
17
+ require 'fastercsv'
18
+ FasterCSV
19
+ rescue
20
+ raise "Ruby version #{RUBY_VERSION} users need to require 'fastercsv'"
22
21
  end
23
22
  end
24
23
  end
25
-
26
24
  end
27
25
  end
28
26
  end
data/lib/beso/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Beso
2
- VERSION = '0.3.2'
2
+ VERSION = '0.3.3'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: beso
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.2
4
+ version: 0.3.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-05-14 00:00:00.000000000 Z
12
+ date: 2012-05-15 00:00:00.000000000Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails