lib/tzinfo/offset_rationals.rb in tzinfo-0.3.20 vs lib/tzinfo/offset_rationals.rb in tzinfo-0.3.21

- old
+ new

@@ -1,7 +1,7 @@ #-- -# Copyright (c) 2006 Philip Ross +# Copyright (c) 2006-2010 Philip Ross # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell @@ -18,11 +18,10 @@ # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN # THE SOFTWARE. #++ -require 'rational' -require 'tzinfo/ruby_core_support' +require 'rational' unless defined?(Rational) module TZInfo # Provides a method for getting Rationals for a timezone offset in seconds. # Pre-reduced rationals are returned for all the half-hour intervals between