Skip to content

Commit

Permalink
support for Ruby 2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
leikind committed May 8, 2013
1 parent a88a750 commit c5cecf1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ Vice versa: if the TO field is set to a value before FROM, FROM is set to the va

Wice::Defaults::DATEPICKER_YEAR_RANGE added to the config to define the default year range in Datepicker (https://github.com/leikind/wice_grid/issues/61)

support for Ruby 2.0

3.2.1

action_column can now also take a block. If the block returns a falsy value, no checkbox will be rendered.
Expand Down
2 changes: 1 addition & 1 deletion lib/wice_grid_spreadsheet.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ class Spreadsheet #:nodoc:

attr_reader :tempfile
# CSV in 1.9.1 is a version of FasterCSV
if RUBY_VERSION =~ /1\.9\./
if RUBY_VERSION =~ /^1\.9\./ || RUBY_VERSION =~ /^2\./

def initialize(name, field_separator) #:nodoc:
@tempfile = Tempfile.new(name)
Expand Down

0 comments on commit c5cecf1

Please sign in to comment.