tzinfo 1.1.0 → 1.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of tzinfo might be problematic. Click here for more details.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +0 -0
- data/CHANGES.md +33 -0
- data/LICENSE +1 -1
- data/README.md +36 -31
- data/Rakefile +17 -23
- data/lib/tzinfo.rb +0 -22
- data/lib/tzinfo/country.rb +3 -22
- data/lib/tzinfo/country_index_definition.rb +0 -22
- data/lib/tzinfo/country_info.rb +0 -22
- data/lib/tzinfo/country_timezone.rb +46 -31
- data/lib/tzinfo/data_source.rb +7 -24
- data/lib/tzinfo/data_timezone.rb +7 -22
- data/lib/tzinfo/data_timezone_info.rb +0 -22
- data/lib/tzinfo/info_timezone.rb +0 -22
- data/lib/tzinfo/linked_timezone.rb +7 -22
- data/lib/tzinfo/linked_timezone_info.rb +0 -22
- data/lib/tzinfo/offset_rationals.rb +0 -22
- data/lib/tzinfo/ruby_core_support.rb +14 -22
- data/lib/tzinfo/ruby_country_info.rb +3 -25
- data/lib/tzinfo/ruby_data_source.rb +1 -23
- data/lib/tzinfo/time_or_datetime.rb +13 -27
- data/lib/tzinfo/timezone.rb +51 -23
- data/lib/tzinfo/timezone_definition.rb +0 -22
- data/lib/tzinfo/timezone_index_definition.rb +0 -22
- data/lib/tzinfo/timezone_info.rb +0 -22
- data/lib/tzinfo/timezone_offset.rb +0 -22
- data/lib/tzinfo/timezone_period.rb +1 -23
- data/lib/tzinfo/timezone_proxy.rb +6 -23
- data/lib/tzinfo/timezone_transition.rb +2 -24
- data/lib/tzinfo/timezone_transition_definition.rb +1 -23
- data/lib/tzinfo/transition_data_timezone_info.rb +0 -22
- data/lib/tzinfo/zoneinfo_country_info.rb +1 -23
- data/lib/tzinfo/zoneinfo_data_source.rb +177 -61
- data/lib/tzinfo/zoneinfo_timezone_info.rb +0 -22
- data/test/tc_country.rb +6 -24
- data/test/tc_country_index_definition.rb +1 -23
- data/test/tc_country_info.rb +1 -23
- data/test/tc_country_timezone.rb +82 -62
- data/test/tc_data_source.rb +22 -24
- data/test/tc_data_timezone.rb +12 -24
- data/test/tc_data_timezone_info.rb +1 -23
- data/test/tc_info_timezone.rb +1 -23
- data/test/tc_linked_timezone.rb +37 -24
- data/test/tc_linked_timezone_info.rb +1 -23
- data/test/tc_offset_rationals.rb +1 -23
- data/test/tc_ruby_core_support.rb +84 -33
- data/test/tc_ruby_country_info.rb +5 -27
- data/test/tc_ruby_data_source.rb +1 -23
- data/test/tc_time_or_datetime.rb +44 -36
- data/test/tc_timezone.rb +32 -48
- data/test/tc_timezone_definition.rb +1 -23
- data/test/tc_timezone_index_definition.rb +1 -23
- data/test/tc_timezone_info.rb +1 -23
- data/test/tc_timezone_london.rb +1 -23
- data/test/tc_timezone_melbourne.rb +1 -23
- data/test/tc_timezone_new_york.rb +1 -23
- data/test/tc_timezone_offset.rb +1 -23
- data/test/tc_timezone_period.rb +5 -27
- data/test/tc_timezone_proxy.rb +34 -28
- data/test/tc_timezone_transition.rb +1 -23
- data/test/tc_timezone_transition_definition.rb +1 -23
- data/test/tc_timezone_utc.rb +1 -23
- data/test/tc_transition_data_timezone_info.rb +3 -25
- data/test/tc_zoneinfo_country_info.rb +13 -35
- data/test/tc_zoneinfo_data_source.rb +358 -34
- data/test/tc_zoneinfo_timezone_info.rb +3 -27
- data/test/test_utils.rb +26 -30
- data/test/ts_all.rb +0 -22
- data/test/ts_all_ruby.rb +0 -22
- data/test/ts_all_zoneinfo.rb +0 -22
- data/test/tzinfo-data/tzinfo/data.rb +0 -22
- data/test/tzinfo-data/tzinfo/data/version.rb +0 -22
- data/tzinfo.gemspec +2 -2
- metadata +80 -80
- metadata.gz.sig +1 -3
| @@ -1,35 +1,11 @@ | |
| 1 1 | 
             
            # encoding: UTF-8
         | 
| 2 2 |  | 
| 3 | 
            -
            #--
         | 
| 4 | 
            -
            # Copyright (c) 2012-2013 Philip Ross
         | 
| 5 | 
            -
            # 
         | 
| 6 | 
            -
            # Permission is hereby granted, free of charge, to any person obtaining a copy
         | 
| 7 | 
            -
            # of this software and associated documentation files (the "Software"), to deal
         | 
| 8 | 
            -
            # in the Software without restriction, including without limitation the rights
         | 
| 9 | 
            -
            # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
         | 
| 10 | 
            -
            # copies of the Software, and to permit persons to whom the Software is
         | 
| 11 | 
            -
            # furnished to do so, subject to the following conditions:
         | 
| 12 | 
            -
            # 
         | 
| 13 | 
            -
            # The above copyright notice and this permission notice shall be included in all
         | 
| 14 | 
            -
            # copies or substantial portions of the Software.
         | 
| 15 | 
            -
            #
         | 
| 16 | 
            -
            # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
         | 
| 17 | 
            -
            # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
         | 
| 18 | 
            -
            # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
         | 
| 19 | 
            -
            # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
         | 
| 20 | 
            -
            # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
         | 
| 21 | 
            -
            # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
         | 
| 22 | 
            -
            # THE SOFTWARE.
         | 
| 23 | 
            -
            #++
         | 
| 24 | 
            -
             | 
| 25 | 
            -
             | 
| 26 | 
            -
             | 
| 27 3 | 
             
            require File.join(File.expand_path(File.dirname(__FILE__)), 'test_utils')
         | 
| 28 4 | 
             
            require 'tempfile'
         | 
| 29 5 |  | 
| 30 6 | 
             
            include TZInfo
         | 
| 31 7 |  | 
| 32 | 
            -
            class TCZoneinfoTimezoneInfo < Test | 
| 8 | 
            +
            class TCZoneinfoTimezoneInfo < Minitest::Test
         | 
| 33 9 |  | 
| 34 10 | 
             
              begin
         | 
| 35 11 | 
             
                Time.at(-2147483649)
         | 
| @@ -55,14 +31,14 @@ class TCZoneinfoTimezoneInfo < Test::Unit::TestCase | |
| 55 31 | 
             
                assert_equal(dst, period.dst?)
         | 
| 56 32 |  | 
| 57 33 | 
             
                if start_at
         | 
| 58 | 
            -
                   | 
| 34 | 
            +
                  refute_nil(period.utc_start_time)
         | 
| 59 35 | 
             
                  assert_equal(start_at, period.utc_start_time)
         | 
| 60 36 | 
             
                else
         | 
| 61 37 | 
             
                  assert_nil(period.utc_start_time)
         | 
| 62 38 | 
             
                end
         | 
| 63 39 |  | 
| 64 40 | 
             
                if end_at
         | 
| 65 | 
            -
                   | 
| 41 | 
            +
                  refute_nil(period.utc_end_time)
         | 
| 66 42 | 
             
                  assert_equal(end_at, period.utc_end_time)
         | 
| 67 43 | 
             
                else
         | 
| 68 44 | 
             
                  assert_nil(period.utc_end_time)
         | 
    
        data/test/test_utils.rb
    CHANGED
    
    | @@ -1,25 +1,3 @@ | |
| 1 | 
            -
            #--
         | 
| 2 | 
            -
            # Copyright (c) 2008-2013 Philip Ross
         | 
| 3 | 
            -
            # 
         | 
| 4 | 
            -
            # Permission is hereby granted, free of charge, to any person obtaining a copy
         | 
| 5 | 
            -
            # of this software and associated documentation files (the "Software"), to deal
         | 
| 6 | 
            -
            # in the Software without restriction, including without limitation the rights
         | 
| 7 | 
            -
            # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
         | 
| 8 | 
            -
            # copies of the Software, and to permit persons to whom the Software is
         | 
| 9 | 
            -
            # furnished to do so, subject to the following conditions:
         | 
| 10 | 
            -
            # 
         | 
| 11 | 
            -
            # The above copyright notice and this permission notice shall be included in all
         | 
| 12 | 
            -
            # copies or substantial portions of the Software.
         | 
| 13 | 
            -
            #
         | 
| 14 | 
            -
            # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
         | 
| 15 | 
            -
            # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
         | 
| 16 | 
            -
            # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
         | 
| 17 | 
            -
            # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
         | 
| 18 | 
            -
            # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
         | 
| 19 | 
            -
            # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
         | 
| 20 | 
            -
            # THE SOFTWARE.
         | 
| 21 | 
            -
            #++
         | 
| 22 | 
            -
             | 
| 23 1 | 
             
            TESTS_DIR = File.expand_path(File.dirname(__FILE__)).untaint
         | 
| 24 2 | 
             
            TZINFO_LIB_DIR = File.expand_path(File.join(TESTS_DIR, '..', 'lib'))
         | 
| 25 3 | 
             
            TZINFO_TEST_DATA_DIR = File.join(TESTS_DIR, 'tzinfo-data')
         | 
| @@ -31,7 +9,7 @@ $:.unshift(TZINFO_LIB_DIR) unless $:.include?(TZINFO_LIB_DIR) | |
| 31 9 | 
             
            # Add it to the load path.
         | 
| 32 10 | 
             
            $:.unshift(TZINFO_TEST_DATA_DIR) unless $:.include?(TZINFO_TEST_DATA_DIR)
         | 
| 33 11 |  | 
| 34 | 
            -
            require ' | 
| 12 | 
            +
            require 'minitest/autorun'
         | 
| 35 13 | 
             
            require 'tzinfo'
         | 
| 36 14 | 
             
            require 'fileutils'
         | 
| 37 15 | 
             
            require 'rbconfig'
         | 
| @@ -46,7 +24,7 @@ module TestUtils | |
| 46 24 | 
             
                ZONEINFO_SYMLINKS.each do |file, target|
         | 
| 47 25 | 
             
                  path = File.join(TZINFO_TEST_ZONEINFO_DIR, file)
         | 
| 48 26 |  | 
| 49 | 
            -
                  File.delete(path) if File. | 
| 27 | 
            +
                  File.delete(path) if File.exist?(path)
         | 
| 50 28 |  | 
| 51 29 | 
             
                  begin
         | 
| 52 30 | 
             
                    FileUtils.ln_s(target, path)
         | 
| @@ -88,12 +66,10 @@ module Kernel | |
| 88 66 | 
             
                end
         | 
| 89 67 | 
             
              end
         | 
| 90 68 |  | 
| 91 | 
            -
              def assert_array_same_items(expected, actual,  | 
| 92 | 
            -
                full_message =  | 
| 93 | 
            -
                
         | 
| 94 | 
            -
                 | 
| 95 | 
            -
                  (expected.size == actual.size) && (expected - actual == [])
         | 
| 96 | 
            -
                end
         | 
| 69 | 
            +
              def assert_array_same_items(expected, actual, msg = nil)
         | 
| 70 | 
            +
                full_message = message(msg, '') { diff(expected, actual) }
         | 
| 71 | 
            +
                condition = (expected.size == actual.size) && (expected - actual == [])
         | 
| 72 | 
            +
                assert(condition, full_message)
         | 
| 97 73 | 
             
              end
         | 
| 98 74 |  | 
| 99 75 | 
             
              def assert_sub_process_returns(expected_lines, code, extra_load_path = [], required = ['tzinfo'])
         | 
| @@ -133,4 +109,24 @@ module Kernel | |
| 133 109 | 
             
                  assert_equal(expected_lines, actual_lines)
         | 
| 134 110 | 
             
                end
         | 
| 135 111 | 
             
              end
         | 
| 112 | 
            +
             | 
| 113 | 
            +
              def assert_nothing_raised(msg = nil)
         | 
| 114 | 
            +
                begin
         | 
| 115 | 
            +
                  yield
         | 
| 116 | 
            +
                rescue => e
         | 
| 117 | 
            +
                  full_message = message(msg) { exception_details(e, 'Exception raised: ') }
         | 
| 118 | 
            +
                  assert(false, full_message)
         | 
| 119 | 
            +
                end
         | 
| 120 | 
            +
              end
         | 
| 136 121 | 
             
            end
         | 
| 122 | 
            +
             | 
| 123 | 
            +
             | 
| 124 | 
            +
            # JRuby 1.7.5 to 1.7.9 consider DateTime instances that differ by less than 
         | 
| 125 | 
            +
            # 1 millisecond to be equivalent (https://github.com/jruby/jruby/issues/1311).
         | 
| 126 | 
            +
            #
         | 
| 127 | 
            +
            # A few test cases compare at a resolution of 1 microsecond, so this causes
         | 
| 128 | 
            +
            # failures on JRuby 1.7.5 to 1.7.9.
         | 
| 129 | 
            +
            #
         | 
| 130 | 
            +
            # Determine what the platform supports and adjust the tests accordingly.
         | 
| 131 | 
            +
            DATETIME_RESOLUTION = (0..5).collect {|i| 10**i}.find {|i| (DateTime.new(2013,1,1,0,0,0) <=> DateTime.new(2013,1,1,0,0,Rational(i,1000000))) < 0}
         | 
| 132 | 
            +
            raise 'Unable to compare DateTimes at a resolution less than one second on this platform' unless DATETIME_RESOLUTION
         | 
    
        data/test/ts_all.rb
    CHANGED
    
    | @@ -1,25 +1,3 @@ | |
| 1 | 
            -
            #--
         | 
| 2 | 
            -
            # Copyright (c) 2005-2013 Philip Ross
         | 
| 3 | 
            -
            # 
         | 
| 4 | 
            -
            # Permission is hereby granted, free of charge, to any person obtaining a copy
         | 
| 5 | 
            -
            # of this software and associated documentation files (the "Software"), to deal
         | 
| 6 | 
            -
            # in the Software without restriction, including without limitation the rights
         | 
| 7 | 
            -
            # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
         | 
| 8 | 
            -
            # copies of the Software, and to permit persons to whom the Software is
         | 
| 9 | 
            -
            # furnished to do so, subject to the following conditions:
         | 
| 10 | 
            -
            # 
         | 
| 11 | 
            -
            # The above copyright notice and this permission notice shall be included in all
         | 
| 12 | 
            -
            # copies or substantial portions of the Software.
         | 
| 13 | 
            -
            #
         | 
| 14 | 
            -
            # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
         | 
| 15 | 
            -
            # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
         | 
| 16 | 
            -
            # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
         | 
| 17 | 
            -
            # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
         | 
| 18 | 
            -
            # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
         | 
| 19 | 
            -
            # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
         | 
| 20 | 
            -
            # THE SOFTWARE.
         | 
| 21 | 
            -
            #++
         | 
| 22 | 
            -
             | 
| 23 1 | 
             
            # Force a particular timezone to be local (helps find issues when local
         | 
| 24 2 | 
             
            # timezone isn't GMT). This won't work on Windows.
         | 
| 25 3 | 
             
            ENV['TZ'] = 'America/Los_Angeles'
         | 
    
        data/test/ts_all_ruby.rb
    CHANGED
    
    | @@ -1,25 +1,3 @@ | |
| 1 | 
            -
            #--
         | 
| 2 | 
            -
            # Copyright (c) 2012-2013 Philip Ross
         | 
| 3 | 
            -
            # 
         | 
| 4 | 
            -
            # Permission is hereby granted, free of charge, to any person obtaining a copy
         | 
| 5 | 
            -
            # of this software and associated documentation files (the "Software"), to deal
         | 
| 6 | 
            -
            # in the Software without restriction, including without limitation the rights
         | 
| 7 | 
            -
            # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
         | 
| 8 | 
            -
            # copies of the Software, and to permit persons to whom the Software is
         | 
| 9 | 
            -
            # furnished to do so, subject to the following conditions:
         | 
| 10 | 
            -
            # 
         | 
| 11 | 
            -
            # The above copyright notice and this permission notice shall be included in all
         | 
| 12 | 
            -
            # copies or substantial portions of the Software.
         | 
| 13 | 
            -
            #
         | 
| 14 | 
            -
            # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
         | 
| 15 | 
            -
            # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
         | 
| 16 | 
            -
            # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
         | 
| 17 | 
            -
            # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
         | 
| 18 | 
            -
            # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
         | 
| 19 | 
            -
            # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
         | 
| 20 | 
            -
            # THE SOFTWARE.
         | 
| 21 | 
            -
            #++
         | 
| 22 | 
            -
             | 
| 23 1 | 
             
            require File.join(File.expand_path(File.dirname(__FILE__)), 'test_utils.rb')
         | 
| 24 2 |  | 
| 25 3 | 
             
            TZInfo::DataSource.set(:ruby)
         | 
    
        data/test/ts_all_zoneinfo.rb
    CHANGED
    
    | @@ -1,25 +1,3 @@ | |
| 1 | 
            -
            #--
         | 
| 2 | 
            -
            # Copyright (c) 2012-2013 Philip Ross
         | 
| 3 | 
            -
            # 
         | 
| 4 | 
            -
            # Permission is hereby granted, free of charge, to any person obtaining a copy
         | 
| 5 | 
            -
            # of this software and associated documentation files (the "Software"), to deal
         | 
| 6 | 
            -
            # in the Software without restriction, including without limitation the rights
         | 
| 7 | 
            -
            # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
         | 
| 8 | 
            -
            # copies of the Software, and to permit persons to whom the Software is
         | 
| 9 | 
            -
            # furnished to do so, subject to the following conditions:
         | 
| 10 | 
            -
            # 
         | 
| 11 | 
            -
            # The above copyright notice and this permission notice shall be included in all
         | 
| 12 | 
            -
            # copies or substantial portions of the Software.
         | 
| 13 | 
            -
            #
         | 
| 14 | 
            -
            # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
         | 
| 15 | 
            -
            # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
         | 
| 16 | 
            -
            # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
         | 
| 17 | 
            -
            # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
         | 
| 18 | 
            -
            # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
         | 
| 19 | 
            -
            # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
         | 
| 20 | 
            -
            # THE SOFTWARE.
         | 
| 21 | 
            -
            #++
         | 
| 22 | 
            -
             | 
| 23 1 | 
             
            require File.join(File.expand_path(File.dirname(__FILE__)), 'test_utils.rb')
         | 
| 24 2 |  | 
| 25 3 | 
             
            # Use a zoneinfo directory containing files needed by the tests.
         | 
| @@ -1,23 +1 @@ | |
| 1 | 
            -
            #--
         | 
| 2 | 
            -
            # Copyright (c) 2012 Philip Ross
         | 
| 3 | 
            -
            # 
         | 
| 4 | 
            -
            # Permission is hereby granted, free of charge, to any person obtaining a copy
         | 
| 5 | 
            -
            # of this software and associated documentation files (the "Software"), to deal
         | 
| 6 | 
            -
            # in the Software without restriction, including without limitation the rights
         | 
| 7 | 
            -
            # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
         | 
| 8 | 
            -
            # copies of the Software, and to permit persons to whom the Software is
         | 
| 9 | 
            -
            # furnished to do so, subject to the following conditions:
         | 
| 10 | 
            -
            # 
         | 
| 11 | 
            -
            # The above copyright notice and this permission notice shall be included in all
         | 
| 12 | 
            -
            # copies or substantial portions of the Software.
         | 
| 13 | 
            -
            #
         | 
| 14 | 
            -
            # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
         | 
| 15 | 
            -
            # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
         | 
| 16 | 
            -
            # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
         | 
| 17 | 
            -
            # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
         | 
| 18 | 
            -
            # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
         | 
| 19 | 
            -
            # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
         | 
| 20 | 
            -
            # THE SOFTWARE.
         | 
| 21 | 
            -
            #++
         | 
| 22 | 
            -
             | 
| 23 1 | 
             
            require 'tzinfo/data/version'
         | 
| @@ -1,25 +1,3 @@ | |
| 1 | 
            -
            #--
         | 
| 2 | 
            -
            # Copyright (c) 2012-2013 Philip Ross
         | 
| 3 | 
            -
            # 
         | 
| 4 | 
            -
            # Permission is hereby granted, free of charge, to any person obtaining a copy
         | 
| 5 | 
            -
            # of this software and associated documentation files (the "Software"), to deal
         | 
| 6 | 
            -
            # in the Software without restriction, including without limitation the rights
         | 
| 7 | 
            -
            # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
         | 
| 8 | 
            -
            # copies of the Software, and to permit persons to whom the Software is
         | 
| 9 | 
            -
            # furnished to do so, subject to the following conditions:
         | 
| 10 | 
            -
            # 
         | 
| 11 | 
            -
            # The above copyright notice and this permission notice shall be included in all
         | 
| 12 | 
            -
            # copies or substantial portions of the Software.
         | 
| 13 | 
            -
            #
         | 
| 14 | 
            -
            # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
         | 
| 15 | 
            -
            # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
         | 
| 16 | 
            -
            # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
         | 
| 17 | 
            -
            # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
         | 
| 18 | 
            -
            # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
         | 
| 19 | 
            -
            # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
         | 
| 20 | 
            -
            # THE SOFTWARE.
         | 
| 21 | 
            -
            #++
         | 
| 22 | 
            -
             | 
| 23 1 | 
             
            module TZInfo
         | 
| 24 2 | 
             
              module Data
         | 
| 25 3 | 
             
                # TZInfo::Data version information.
         | 
    
        data/tzinfo.gemspec
    CHANGED
    
    | @@ -1,6 +1,6 @@ | |
| 1 1 | 
             
            Gem::Specification.new do |s|
         | 
| 2 2 | 
             
              s.name = 'tzinfo'
         | 
| 3 | 
            -
              s.version = '1. | 
| 3 | 
            +
              s.version = '1.2.0'  
         | 
| 4 4 | 
             
              s.summary = 'Daylight savings aware timezone library'
         | 
| 5 5 | 
             
              s.description = 'TZInfo provides daylight savings aware transformations between times in different time zones.'
         | 
| 6 6 | 
             
              s.author = 'Philip Ross'
         | 
| @@ -16,6 +16,6 @@ Gem::Specification.new do |s| | |
| 16 16 | 
             
              s.rdoc_options << '--title' << 'TZInfo' << 
         | 
| 17 17 | 
             
                                '--main' << 'README.md'
         | 
| 18 18 | 
             
              s.extra_rdoc_files = ['README.md', 'CHANGES.md', 'LICENSE']
         | 
| 19 | 
            -
              s.required_ruby_version = '>= 1.8. | 
| 19 | 
            +
              s.required_ruby_version = '>= 1.8.7'
         | 
| 20 20 | 
             
              s.add_dependency 'thread_safe', '~> 0.1'
         | 
| 21 21 | 
             
            end
         | 
    
        metadata
    CHANGED
    
    | @@ -1,7 +1,7 @@ | |
| 1 1 | 
             
            --- !ruby/object:Gem::Specification
         | 
| 2 2 | 
             
            name: tzinfo
         | 
| 3 3 | 
             
            version: !ruby/object:Gem::Version
         | 
| 4 | 
            -
              version: 1. | 
| 4 | 
            +
              version: 1.2.0
         | 
| 5 5 | 
             
            platform: ruby
         | 
| 6 6 | 
             
            authors:
         | 
| 7 7 | 
             
            - Philip Ross
         | 
| @@ -30,20 +30,20 @@ cert_chain: | |
| 30 30 | 
             
              fs7XSYlwQp0zY7PFSMwJeBpQFDBnShcweRQ+0QdUUS4FHrwfXex0QsXp9UROUX+4
         | 
| 31 31 | 
             
              6BVw9ZDNFnDH4PQjZGbdwanB7kzm+TEi
         | 
| 32 32 | 
             
              -----END CERTIFICATE-----
         | 
| 33 | 
            -
            date:  | 
| 33 | 
            +
            date: 2014-05-26 00:00:00.000000000 Z
         | 
| 34 34 | 
             
            dependencies:
         | 
| 35 35 | 
             
            - !ruby/object:Gem::Dependency
         | 
| 36 36 | 
             
              name: thread_safe
         | 
| 37 37 | 
             
              requirement: !ruby/object:Gem::Requirement
         | 
| 38 38 | 
             
                requirements:
         | 
| 39 | 
            -
                - - ~>
         | 
| 39 | 
            +
                - - "~>"
         | 
| 40 40 | 
             
                  - !ruby/object:Gem::Version
         | 
| 41 41 | 
             
                    version: '0.1'
         | 
| 42 42 | 
             
              type: :runtime
         | 
| 43 43 | 
             
              prerelease: false
         | 
| 44 44 | 
             
              version_requirements: !ruby/object:Gem::Requirement
         | 
| 45 45 | 
             
                requirements:
         | 
| 46 | 
            -
                - - ~>
         | 
| 46 | 
            +
                - - "~>"
         | 
| 47 47 | 
             
                  - !ruby/object:Gem::Version
         | 
| 48 48 | 
             
                    version: '0.1'
         | 
| 49 49 | 
             
            description: TZInfo provides daylight savings aware transformations between times
         | 
| @@ -56,135 +56,135 @@ extra_rdoc_files: | |
| 56 56 | 
             
            - CHANGES.md
         | 
| 57 57 | 
             
            - LICENSE
         | 
| 58 58 | 
             
            files:
         | 
| 59 | 
            +
            - ".yardopts"
         | 
| 59 60 | 
             
            - CHANGES.md
         | 
| 60 61 | 
             
            - LICENSE
         | 
| 61 | 
            -
            - Rakefile
         | 
| 62 62 | 
             
            - README.md
         | 
| 63 | 
            -
            -  | 
| 64 | 
            -
            - .yardopts
         | 
| 63 | 
            +
            - Rakefile
         | 
| 65 64 | 
             
            - lib/tzinfo.rb
         | 
| 66 | 
            -
            - lib/tzinfo/ | 
| 67 | 
            -
            - lib/tzinfo/ | 
| 68 | 
            -
            - lib/tzinfo/ | 
| 69 | 
            -
            - lib/tzinfo/ruby_data_source.rb
         | 
| 70 | 
            -
            - lib/tzinfo/timezone_period.rb
         | 
| 71 | 
            -
            - lib/tzinfo/timezone_transition_definition.rb
         | 
| 65 | 
            +
            - lib/tzinfo/country.rb
         | 
| 66 | 
            +
            - lib/tzinfo/country_index_definition.rb
         | 
| 67 | 
            +
            - lib/tzinfo/country_info.rb
         | 
| 72 68 | 
             
            - lib/tzinfo/country_timezone.rb
         | 
| 73 | 
            -
            - lib/tzinfo/ruby_country_info.rb
         | 
| 74 | 
            -
            - lib/tzinfo/linked_timezone.rb
         | 
| 75 69 | 
             
            - lib/tzinfo/data_source.rb
         | 
| 76 | 
            -
            - lib/tzinfo/ | 
| 77 | 
            -
            - lib/tzinfo/timezone_transition.rb
         | 
| 70 | 
            +
            - lib/tzinfo/data_timezone.rb
         | 
| 78 71 | 
             
            - lib/tzinfo/data_timezone_info.rb
         | 
| 79 | 
            -
            - lib/tzinfo/ | 
| 80 | 
            -
            - lib/tzinfo/ | 
| 81 | 
            -
            - lib/tzinfo/ | 
| 82 | 
            -
            - lib/tzinfo/ | 
| 72 | 
            +
            - lib/tzinfo/info_timezone.rb
         | 
| 73 | 
            +
            - lib/tzinfo/linked_timezone.rb
         | 
| 74 | 
            +
            - lib/tzinfo/linked_timezone_info.rb
         | 
| 75 | 
            +
            - lib/tzinfo/offset_rationals.rb
         | 
| 83 76 | 
             
            - lib/tzinfo/ruby_core_support.rb
         | 
| 84 | 
            -
            - lib/tzinfo/ | 
| 77 | 
            +
            - lib/tzinfo/ruby_country_info.rb
         | 
| 78 | 
            +
            - lib/tzinfo/ruby_data_source.rb
         | 
| 79 | 
            +
            - lib/tzinfo/time_or_datetime.rb
         | 
| 85 80 | 
             
            - lib/tzinfo/timezone.rb
         | 
| 86 | 
            -
            - lib/tzinfo/ | 
| 81 | 
            +
            - lib/tzinfo/timezone_definition.rb
         | 
| 87 82 | 
             
            - lib/tzinfo/timezone_index_definition.rb
         | 
| 88 | 
            -
            - lib/tzinfo/ | 
| 83 | 
            +
            - lib/tzinfo/timezone_info.rb
         | 
| 89 84 | 
             
            - lib/tzinfo/timezone_offset.rb
         | 
| 90 | 
            -
            - lib/tzinfo/ | 
| 91 | 
            -
            - lib/tzinfo/ | 
| 92 | 
            -
            - lib/tzinfo/ | 
| 85 | 
            +
            - lib/tzinfo/timezone_period.rb
         | 
| 86 | 
            +
            - lib/tzinfo/timezone_proxy.rb
         | 
| 87 | 
            +
            - lib/tzinfo/timezone_transition.rb
         | 
| 88 | 
            +
            - lib/tzinfo/timezone_transition_definition.rb
         | 
| 89 | 
            +
            - lib/tzinfo/transition_data_timezone_info.rb
         | 
| 93 90 | 
             
            - lib/tzinfo/zoneinfo_country_info.rb
         | 
| 94 | 
            -
            -  | 
| 95 | 
            -
            -  | 
| 91 | 
            +
            - lib/tzinfo/zoneinfo_data_source.rb
         | 
| 92 | 
            +
            - lib/tzinfo/zoneinfo_timezone_info.rb
         | 
| 93 | 
            +
            - test/tc_country.rb
         | 
| 94 | 
            +
            - test/tc_country_index_definition.rb
         | 
| 95 | 
            +
            - test/tc_country_info.rb
         | 
| 96 | 
            +
            - test/tc_country_timezone.rb
         | 
| 96 97 | 
             
            - test/tc_data_source.rb
         | 
| 97 | 
            -
            - test/ | 
| 98 | 
            -
            - test/tc_timezone.rb
         | 
| 99 | 
            -
            - test/tc_zoneinfo_country_info.rb
         | 
| 98 | 
            +
            - test/tc_data_timezone.rb
         | 
| 100 99 | 
             
            - test/tc_data_timezone_info.rb
         | 
| 101 | 
            -
            - test/ | 
| 102 | 
            -
            - test/ | 
| 100 | 
            +
            - test/tc_info_timezone.rb
         | 
| 101 | 
            +
            - test/tc_linked_timezone.rb
         | 
| 103 102 | 
             
            - test/tc_linked_timezone_info.rb
         | 
| 104 | 
            -
            - test/ | 
| 105 | 
            -
            - test/tc_timezone_definition.rb
         | 
| 106 | 
            -
            - test/tc_ruby_data_source.rb
         | 
| 107 | 
            -
            - test/tc_timezone_period.rb
         | 
| 108 | 
            -
            - test/tc_country_timezone.rb
         | 
| 109 | 
            -
            - test/tc_timezone_offset.rb
         | 
| 103 | 
            +
            - test/tc_offset_rationals.rb
         | 
| 110 104 | 
             
            - test/tc_ruby_core_support.rb
         | 
| 111 | 
            -
            - test/ | 
| 105 | 
            +
            - test/tc_ruby_country_info.rb
         | 
| 106 | 
            +
            - test/tc_ruby_data_source.rb
         | 
| 107 | 
            +
            - test/tc_time_or_datetime.rb
         | 
| 108 | 
            +
            - test/tc_timezone.rb
         | 
| 109 | 
            +
            - test/tc_timezone_definition.rb
         | 
| 110 | 
            +
            - test/tc_timezone_index_definition.rb
         | 
| 111 | 
            +
            - test/tc_timezone_info.rb
         | 
| 112 | 
            +
            - test/tc_timezone_london.rb
         | 
| 112 113 | 
             
            - test/tc_timezone_melbourne.rb
         | 
| 114 | 
            +
            - test/tc_timezone_new_york.rb
         | 
| 115 | 
            +
            - test/tc_timezone_offset.rb
         | 
| 116 | 
            +
            - test/tc_timezone_period.rb
         | 
| 117 | 
            +
            - test/tc_timezone_proxy.rb
         | 
| 118 | 
            +
            - test/tc_timezone_transition.rb
         | 
| 119 | 
            +
            - test/tc_timezone_transition_definition.rb
         | 
| 120 | 
            +
            - test/tc_timezone_utc.rb
         | 
| 121 | 
            +
            - test/tc_transition_data_timezone_info.rb
         | 
| 122 | 
            +
            - test/tc_zoneinfo_country_info.rb
         | 
| 113 123 | 
             
            - test/tc_zoneinfo_data_source.rb
         | 
| 124 | 
            +
            - test/tc_zoneinfo_timezone_info.rb
         | 
| 125 | 
            +
            - test/test_utils.rb
         | 
| 126 | 
            +
            - test/ts_all.rb
         | 
| 127 | 
            +
            - test/ts_all_ruby.rb
         | 
| 128 | 
            +
            - test/ts_all_zoneinfo.rb
         | 
| 114 129 | 
             
            - test/tzinfo-data/tzinfo/data.rb
         | 
| 130 | 
            +
            - test/tzinfo-data/tzinfo/data/definitions/America/Argentina/Buenos_Aires.rb
         | 
| 131 | 
            +
            - test/tzinfo-data/tzinfo/data/definitions/America/New_York.rb
         | 
| 132 | 
            +
            - test/tzinfo-data/tzinfo/data/definitions/Australia/Melbourne.rb
         | 
| 115 133 | 
             
            - test/tzinfo-data/tzinfo/data/definitions/EST.rb
         | 
| 116 | 
            -
            - test/tzinfo-data/tzinfo/data/definitions/Etc/GMT__p__1.rb
         | 
| 117 134 | 
             
            - test/tzinfo-data/tzinfo/data/definitions/Etc/GMT__m__1.rb
         | 
| 135 | 
            +
            - test/tzinfo-data/tzinfo/data/definitions/Etc/GMT__p__1.rb
         | 
| 118 136 | 
             
            - test/tzinfo-data/tzinfo/data/definitions/Etc/UTC.rb
         | 
| 119 | 
            -
            - test/tzinfo-data/tzinfo/data/definitions/Australia/Melbourne.rb
         | 
| 120 | 
            -
            - test/tzinfo-data/tzinfo/data/definitions/Europe/London.rb
         | 
| 121 137 | 
             
            - test/tzinfo-data/tzinfo/data/definitions/Europe/Amsterdam.rb
         | 
| 122 | 
            -
            - test/tzinfo-data/tzinfo/data/definitions/Europe/Paris.rb
         | 
| 123 138 | 
             
            - test/tzinfo-data/tzinfo/data/definitions/Europe/Andorra.rb
         | 
| 139 | 
            +
            - test/tzinfo-data/tzinfo/data/definitions/Europe/London.rb
         | 
| 140 | 
            +
            - test/tzinfo-data/tzinfo/data/definitions/Europe/Paris.rb
         | 
| 124 141 | 
             
            - test/tzinfo-data/tzinfo/data/definitions/Europe/Prague.rb
         | 
| 125 | 
            -
            - test/tzinfo-data/tzinfo/data/definitions/America/New_York.rb
         | 
| 126 | 
            -
            - test/tzinfo-data/tzinfo/data/definitions/America/Argentina/Buenos_Aires.rb
         | 
| 127 142 | 
             
            - test/tzinfo-data/tzinfo/data/definitions/UTC.rb
         | 
| 128 | 
            -
            - test/tzinfo-data/tzinfo/data/version.rb
         | 
| 129 | 
            -
            - test/tzinfo-data/tzinfo/data/indexes/timezones.rb
         | 
| 130 143 | 
             
            - test/tzinfo-data/tzinfo/data/indexes/countries.rb
         | 
| 131 | 
            -
            - test/ | 
| 132 | 
            -
            - test/ | 
| 133 | 
            -
            - test/ | 
| 134 | 
            -
            - test/ | 
| 135 | 
            -
            - test/ | 
| 136 | 
            -
            - test/tc_ruby_country_info.rb
         | 
| 137 | 
            -
            - test/tc_transition_data_timezone_info.rb
         | 
| 138 | 
            -
            - test/tc_timezone_utc.rb
         | 
| 139 | 
            -
            - test/tc_timezone_info.rb
         | 
| 140 | 
            -
            - test/ts_all.rb
         | 
| 141 | 
            -
            - test/tc_timezone_new_york.rb
         | 
| 142 | 
            -
            - test/tc_timezone_proxy.rb
         | 
| 143 | 
            -
            - test/tc_linked_timezone.rb
         | 
| 144 | 
            -
            - test/tc_timezone_transition.rb
         | 
| 145 | 
            -
            - test/tc_data_timezone.rb
         | 
| 146 | 
            -
            - test/tc_country_info.rb
         | 
| 147 | 
            -
            - test/zoneinfo/right/Europe/London
         | 
| 144 | 
            +
            - test/tzinfo-data/tzinfo/data/indexes/timezones.rb
         | 
| 145 | 
            +
            - test/tzinfo-data/tzinfo/data/version.rb
         | 
| 146 | 
            +
            - test/zoneinfo/America/Argentina/Buenos_Aires
         | 
| 147 | 
            +
            - test/zoneinfo/America/New_York
         | 
| 148 | 
            +
            - test/zoneinfo/Australia/Melbourne
         | 
| 148 149 | 
             
            - test/zoneinfo/EST
         | 
| 149 150 | 
             
            - test/zoneinfo/Etc/UTC
         | 
| 150 | 
            -
            - test/zoneinfo/ | 
| 151 | 
            -
            - test/zoneinfo/zone.tab
         | 
| 152 | 
            -
            - test/zoneinfo/Europe/Prague
         | 
| 151 | 
            +
            - test/zoneinfo/Europe/Amsterdam
         | 
| 153 152 | 
             
            - test/zoneinfo/Europe/Andorra
         | 
| 154 | 
            -
            - test/zoneinfo/Europe/Paris
         | 
| 155 153 | 
             
            - test/zoneinfo/Europe/London
         | 
| 156 | 
            -
            - test/zoneinfo/Europe/ | 
| 154 | 
            +
            - test/zoneinfo/Europe/Paris
         | 
| 155 | 
            +
            - test/zoneinfo/Europe/Prague
         | 
| 157 156 | 
             
            - test/zoneinfo/Factory
         | 
| 158 | 
            -
            - test/zoneinfo/America/Argentina/Buenos_Aires
         | 
| 159 | 
            -
            - test/zoneinfo/America/New_York
         | 
| 160 | 
            -
            - test/zoneinfo/posix/Europe/London
         | 
| 161 157 | 
             
            - test/zoneinfo/iso3166.tab
         | 
| 158 | 
            +
            - test/zoneinfo/posix/Europe/London
         | 
| 162 159 | 
             
            - test/zoneinfo/posixrules
         | 
| 160 | 
            +
            - test/zoneinfo/right/Europe/London
         | 
| 161 | 
            +
            - test/zoneinfo/zone.tab
         | 
| 162 | 
            +
            - tzinfo.gemspec
         | 
| 163 163 | 
             
            homepage: http://tzinfo.github.io
         | 
| 164 164 | 
             
            licenses:
         | 
| 165 165 | 
             
            - MIT
         | 
| 166 166 | 
             
            metadata: {}
         | 
| 167 167 | 
             
            post_install_message: 
         | 
| 168 168 | 
             
            rdoc_options:
         | 
| 169 | 
            -
            - --title
         | 
| 169 | 
            +
            - "--title"
         | 
| 170 170 | 
             
            - TZInfo
         | 
| 171 | 
            -
            - --main
         | 
| 171 | 
            +
            - "--main"
         | 
| 172 172 | 
             
            - README.md
         | 
| 173 173 | 
             
            require_paths:
         | 
| 174 174 | 
             
            - lib
         | 
| 175 175 | 
             
            required_ruby_version: !ruby/object:Gem::Requirement
         | 
| 176 176 | 
             
              requirements:
         | 
| 177 | 
            -
              - -  | 
| 177 | 
            +
              - - ">="
         | 
| 178 178 | 
             
                - !ruby/object:Gem::Version
         | 
| 179 | 
            -
                  version: 1.8. | 
| 179 | 
            +
                  version: 1.8.7
         | 
| 180 180 | 
             
            required_rubygems_version: !ruby/object:Gem::Requirement
         | 
| 181 181 | 
             
              requirements:
         | 
| 182 | 
            -
              - -  | 
| 182 | 
            +
              - - ">="
         | 
| 183 183 | 
             
                - !ruby/object:Gem::Version
         | 
| 184 184 | 
             
                  version: '0'
         | 
| 185 185 | 
             
            requirements: []
         | 
| 186 186 | 
             
            rubyforge_project: 
         | 
| 187 | 
            -
            rubygems_version: 2. | 
| 187 | 
            +
            rubygems_version: 2.2.2
         | 
| 188 188 | 
             
            signing_key: 
         | 
| 189 189 | 
             
            specification_version: 4
         | 
| 190 190 | 
             
            summary: Daylight savings aware timezone library
         |