caxlsx / caxlsx_rails

A Rails plugin to provide templates for the axlsx gem
MIT License
742 stars 84 forks source link

deprecated function #109

Closed dribeiroexpertise closed 6 years ago

dribeiroexpertise commented 6 years ago

after trying the basic example I`ve got this warning message

.rvm/gems/ruby-2.5.1/gems/axlsx-2.1.0.pre/lib/axlsx/util/simple_typed_list.rb:150: warning: constant ::Fixnum is deprecated

require 'axlsx' puts "initial vars" p = Axlsx::Package.new wb = p.workbook puts "generate spreadsheet" wb.add_worksheet(:name => "Basic Worksheet") do |sheet| sheet.add_row ["First Column", "Second", "Third"] #<-----the warning happen HERE sheet.add_row [1, 2, 3] sheet.add_row [' preserving whitespace'] end

puts "end"

straydogstudio commented 6 years ago

Looks like an Axlsx issue. I suggest posting it there.