Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Require 'Date' in date_extensions.rb
When calling gem from a little command-line script, I was getting the following error: ``` ~/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tod-2.0.2/lib/tod/date_extensions.rb:15:in `<top (required)>': uninitialized constant Date (NameError) from /Users/ambirdsall/.rbenv/versions/2.2.2/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in `require' from /Users/ambirdsall/.rbenv/versions/2.2.2/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in `require' from /Users/ambirdsall/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tod-2.0.2/lib/tod/core_extensions.rb:1:in `<top (required)>' from /Users/ambirdsall/.rbenv/versions/2.2.2/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in `require' from /Users/ambirdsall/.rbenv/versions/2.2.2/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in `require' ``` This adds an explicit `require 'Date'` to the offending file so that this can be used outside of bundled environments where the `Date` class is preloaded.
- Loading branch information