rhomobile / rhodes

The Rhodes framework is a platform for building locally executing, device-optimized mobile applications for all major smartphone devices.
http://tau-platform.com/
MIT License
1.05k stars 237 forks source link

[win32] require 'date' breaks application when using rhosimulator #1010

Open leonardofalk opened 5 years ago

leonardofalk commented 5 years ago

The very first require 'date' fails with error:

Exception NoMethodError: undefined method 'new' for: #<NameError: undefined method 'strftime' for class 'Date'>

As a workaround:


# app/application.rb

require 'rho/rhoapplication'
begin
  require 'date'
rescue
  require 'date'
end
...

class AppApplication < Rho::RhoApplication
 ...
end