Update dependency tzinfo to v2 #20
                
     Open
            
            
          
  Add this suggestion to a batch that can be applied as a single commit.
  This suggestion is invalid because no changes were made to the code.
  Suggestions cannot be applied while the pull request is closed.
  Suggestions cannot be applied while viewing a subset of changes.
  Only one suggestion per line can be applied in a batch.
  Add this suggestion to a batch that can be applied as a single commit.
  Applying suggestions on deleted lines is not supported.
  You must change the existing code in this line in order to create a valid suggestion.
  Outdated suggestions cannot be applied.
  This suggestion has been applied or marked resolved.
  Suggestions cannot be applied from pending reviews.
  Suggestions cannot be applied on multi-line comments.
  Suggestions cannot be applied while the pull request is queued to merge.
  Suggestion cannot be applied right now. Please check back later.
  
    
  
    
This PR contains the following updates:
"~> 1.2"->"~> 2.0"Release Notes
tzinfo/tzinfo (tzinfo)
v2.0.6Compare Source
Object#untaintdeprecation warnings on JRuby 9.4.0.0. #145.v2.0.5Compare Source
DateTimeresults to always use the proleptic Gregorian calendar.This affects
DateTimeresults prior to 1582-10-15 and any arithmeticperformed on the results that would produce a secondary result prior to
1582-10-15.
either
TZInfo::DataSource#eager_load!orTZInfo.eager_load!. Compatiblewith Ruby On Rails'
eager_load_namespaces. #129.v2.0.4Compare Source
InvalidTimezoneIdentifierexception raised when loading azoneinfo file that includes rules specifying an additional transition to the
final defined offset (for example, Africa/Casablanca in version 2018e of the
Time Zone Database). #123.
v2.0.3Compare Source
default by zic version 2020b and later. The POSIX-style TZ string is now used
calculate DST transition times after the final defined transition in the file.
#120.
TimeWithOffset#getlocalreturning aTimeWithOffsetwith thetimezone_offsetstill assigned when called with an offset argument on JRuby9.3.
v2.0.2Compare Source
v2.0.1Compare Source
data with recent Ruby releases in safe mode. #100.
TZInfo::Timezone#=~method that performs a regex match on the timezone identifier. #99.
TZInfo::Country#=~method that performs a regex match on the countrycode.
v2.0.0Compare Source
Added
to_localandperiod_forinstance methods have been added toTZInfo::Timezone. These are similar toutc_to_localandperiod_for_utc,but take the UTC offset of the given time into account.
abbreviation,dst?,base_utc_offsetandobserved_utc_offsetinstancemethods have been added to
TZInfo::Timezone, returning the abbreviation,whether daylight savings time is in effect and the UTC offset of the time zone
at a specified time.
TZInfo::Timestampclass has been added. It can be used withTZInfo::Timezonein place of aTimeorDateTime.local_time,local_datetimeandlocal_timestampinstance methods havebeen added to
TZInfo::Timezone. These methods construct localTime,DateTimeandTZInfo::Timestampinstances with the correct UTC offset andabbreviation for the time zone.
addition to support for version 1. The new version will remove the (no longer
needed)
DateTimeparameters from transition times, reduce memory consumptionand improve the efficiency of loading timezone and country indexes.
TZInfo::VERSIONconstant has been added, indicating the TZInfo versionnumber.
Changed
or later mode) and Rubinius 3.
UTC). #49 and #52.
TimeWithOffset,DateTimeWithOffsetorTZInfo::TimestampWithOffset. These classes subclassTime,DateTimeandTZInfo::Timestamprespectively. They override thedefault behaviour of the base classes to return information about the observed
offset at the indicated time. For example, the zone abbreviation is returned
when using the
%Zdirective withstrftime.transitions_up_to,offsets_up_toandstrftimeinstance methods ofTZInfo::Timezonenow take the UTC offsets of given times into account(instead of ignoring them as was previously the case).
TZInfo::TimezonePeriodclass has been split into two subclasses:TZInfo::OffsetTimezonePeriodandTZInfo::TransitionsTimezonePeriod.TZInfo::OffsetTimezonePeriodis returned for time zones that only have asingle offset.
TZInfo::TransitionsTimezonePeriodis returned for periodsthat start or end with a transition.
TZInfo::TimezoneOffset#abbreviation,TZInfo::TimezonePeriod#abbreviationand
TZInfo::TimezonePeriod#zone_identifiernow return frozenStringinstances instead of instances of
Symbol.utc_offsetandutc_total_offsetattributes ofTZInfo::TimezonePeriodand
TZInfo::TimezoneOffsethave been renamedbase_utc_offsetandobserved_utc_offsetrespectively. The former names have been retained asaliases.
TZInfo::Timezone.get,TZInfo::Timezone.get_proxyandTZInfo::Country.getcan now be used with strings having any encoding. Previously, only encodings
that are directly comparable with UTF-8 were supported.
TZInfo::InvalidTimezoneIdentifierexception messages.
TZInfo::InvalidCountryCodeexception messages.
files produced with version 2014c of the
zictool contain an initialtransition
2**63seconds before the epoch. Zoneinfo files produced withversion 2014d or later of
ziccontain an initial transition2**59secondsbefore the epoch. These transitions would previously have been ignored, but
are now returned in methods such as
TZInfo::Timezone#transitions_up_to.TZInfo::RubyDataSourceandTZInfo::ZoneinfoDataSourceclasses havebeen moved into a new
TZInfo::DataSourcesmodule. Code that is settingTZInfo::ZoneinfoDataSource.search_pathorTZInfo::ZoneinfoDataSource.alternate_iso3166_tab_search_pathwill need to beupdated accordingly.
TZInfo::InvalidZoneinfoDirectoryandTZInfo::ZoneinfoDirectoryNotFoundexception classes raised by
TZInfo::DataSources::ZoneinfoDataSourcehavebeen moved into the
TZInfo::DataSourcesmodule.:rubyor instantiatingTZInfo::DataSources::RubyDataSourcewill now immediately raise aTZInfo::DataSources::TZInfoDataNotFoundexception ifrequire 'tzinfo/data'fails. Previously, a failure would only occur later when accessing an index or
loading a timezone or country.
DEFAULT_SEARCH_PATHandDEFAULT_ALTERNATE_ISO3166_TAB_SEARCH_PATHconstants of
TZInfo::DataSources::ZoneinfoDataSourcehave been made private.TZInfo::Country.data_source,TZInfo::DataSource.create_default_data_source,TZInfo::DataSources::ZoneinfoDataSource.process_search_path,TZInfo::Timezone.get_proxiesandTZInfo::Timezone.data_sourcemethods havebeen made private.
improved.
Stringinstances when loadingcountry and time zone data.
by concurrent-ruby.
TZInfo::DataSourceimplementations have been moved into theTZInfo::DataSourcesmodule.TZInfo::TransitionDataTimezoneInfoclass has been removed and replacedwith
TZInfo::DataSources::TransitionsDataTimezoneInfoandTZInfo::DataSources::ConstantOffsetDataTimezoneInfo.TZInfo::DataSources::TransitionsDataTimezoneInfois constructed with anArrayofTZInfo::TimezoneTransitioninstances representing times when theoffset changes.
TZInfo::DataSources::ConstantOffsetDataTimezoneInfoisconstructed with a
TZInfo::TimezoneOffsetinstance representing the offsetconstantly observed in a time zone.
TZInfo::DataSource#timezone_identifiersmethod should no longer beoverridden in custom data source implementations. The implementation in the
base class now calculates a result from
TZInfo::DataSource#data_timezone_identifiersandTZInfo::DataSource#linked_timezone_identifiers.TZInfo::DataSources::RubyDataSourceto_sandinspectmethods now include the time zone database and tzinfo-data versions.
Removed
TZInfo::Timezonethat accept time arguments no longer allowIntegertimestamp values.Time,DateTimeorTZInfo::Timestampvaluesor objects that respond to
to_i,subsecand optionallyutc_offsetmustbe used instead.
%:::zformat directive can now only be used withTZInfo::Timezone#strftimeif it is supported byTime#strftimeon theruntime platform.
TZInfo::Timezone.new(identifier)andTZInfo::Country.new(code)toobtain a specific
TZInfo::TimezoneorTZInfo::Countrywill no longer work.TZInfo::Timezone.get(identifier)andTZInfo::Country.get(code)should beused instead.
TZInfo::TimeOrDateTimeclass has been removed.valid_for_utc?,utc_after_start?,utc_before_end?,valid_for_local?,local_after_start?andlocal_before_end?instancemethods of
TZInfo::TimezonePeriodhave been removed. Comparisons can beperformed with the results of the
starts_at,ends_at,local_starts_atand
local_ends_atmethods instead.to_localandto_utcinstance methods ofTZInfo::TimezonePeriodandTZInfo::TimezoneOffsethave been removed. Conversions should be performedusing the
TZInfo::Timezoneclass instead.TZInfo::TimezonePeriod#utc_total_offset_rationalmethod has beenremoved. Equivalent information can be obtained using the
TZInfo::TimezonePeriod#observed_utc_offsetmethod.datetime,time,local_end,local_end_time,local_startandlocal_start_timeinstance methods ofTZInfo::TimezoneTransitionhave beenremoved. The
at,local_end_atandlocal_start_atmethods should be usedinstead and the result (a
TZInfo::TimestampWithOffset) converted to either aDateTimeorTimeby callingto_datetimeorto_timeon the result.us_zonesandus_zone_identifiersclass methods ofTZInfo::Timezonehave been removed.
TZInfo::Country.get('US').zonesandTZInfo::Country.get('US').zone_identifiersshould be used instead.Configuration
📅 Schedule: Branch creation - "on the first day of the month" (UTC), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
disabled