Releases: tzinfo/tzinfo
Releases · tzinfo/tzinfo
v1.2.1
- Support zoneinfo files generated with zic version 2014c and later.
- On platforms that only support positive 32-bit timestamps, ensure that conversions are accurate from the epoch instead of just from the first transition after the epoch.
- Minor documentation improvements.
v1.2.0
- Raise the minimum supported Ruby version to 1.8.7.
- Support loading system zoneinfo data on FreeBSD, OpenBSD and Solaris. Resolves #15.
- Add
canonical_identifier
andcanonical_zone
methods toTimezone
. Resolves #16. - Add a link to a
DataSourceNotFound
help page in theTZInfo::DataSourceNotFound
exception message. - Load iso3166.tab and zone.tab files as UTF-8.
- Fix
Timezone#local_to_utc
returning localTime
instances on systems using UTC as the local time zone. Resolves #13. - Fix
==
methods raising an exception when passed an instance of a different class by making<=>
return nil if passed a non-comparable argument. - Eliminate
require 'rational'
warnings. Resolves #10. - Eliminate "assigned but unused variable - info" warnings. Resolves #11.
- Switch to minitest v5 for unit tests. Resolves #18.
v0.3.39
- Updated to tzdata version 2014a (https://mm.icann.org/pipermail/tz-announce/2014-March/000018.html).
v0.3.38
- Updated to tzdata version 2013g (https://mm.icann.org/pipermail/tz-announce/2013-October/000015.html).
v1.1.0
- TZInfo is now thread safe.
ThreadSafe::Cache
is now used instead of Hash to cache Timezone and Country instances returned byTimezone.get
andCountry.get
. The tzinfo gem now depends on thread_safe ~> 0.1. - Added a
transitions_up_to
method toTimezone
that returns a list of the times where the UTC offset of the timezone changes. - Added an
offsets_up_to
method toTimezone
that returns the set of offsets that have been observed in a defined timezone. - Fixed a "can't modify frozen String" error when loading a
Timezone
from a zoneinfo file using an identifier String that is both tainted and frozen. Resolves #3. - Support TZif3 format zoneinfo files (now produced by zic from tzcode version 2013e onwards).
- Support using YARD to generate documentation (added a .yardopts file).
- Ignore the +VERSION file included in the zoneinfo directory on Mac OS X.
- Added a note to the documentation concerning 32-bit zoneinfo files (as
included with Mac OS X).
v1.0.1
v1.0.0
- Allow TZInfo to be used with different data sources instead of just the built-in Ruby module data files.
- Include a data source that allows TZInfo to load data from the binary zoneinfo files produced by zic and included with many Linux and Unix-like distributions.
- Remove the definition and index Ruby modules from TZInfo and move them into a separate TZInfo::Data library (available as the tzinfo-data gem).
- Default to using the TZInfo::Data library as the data source if it is installed, otherwise use zoneinfo files instead.
- Preserve the nanoseconds of local timezone Time objects when performing conversions (issue #29705).
- Don't add the tzinfo lib directory to the search path when requiring 'tzinfo'. The tzinfo lib directory must now be in the search path before 'tzinfo' is required.
- Add
utc_start_time
,utc_end_time
,local_start_time
andlocal_end_time
instance methods toTimezonePeriod
. These return an identical value as the existingutc_start
,utc_end
,local_start
andlocal_end
methods, but returnTime
instances instead ofDateTime
. - Make the
start_transition
,end_transition
andoffset
properties ofTimezonePeriod
protected. To access properties of the period, callers should use otherTimezonePeriod
instance methods instead (issue #7655).
v0.3.37
- Updated to tzdata version 2013b (https://mm.icann.org/pipermail/tz-announce/2013-March/000010.html).
v0.3.36
- Updated to tzdata version 2013a (https://mm.icann.org/pipermail/tz-announce/2013-March/000009.html).
- Fix
TimezoneTransitionInfo#eql?
incorrectly returning false when running on Ruby 2.0. - Change
eql?
and==
implementations to test the class of the passed in object instead of checking individual properties withrespond_to?
.
v0.3.35
- Updated to tzdata version 2012i (https://mm.icann.org/pipermail/tz-announce/2012-November/000007.html).