Permalink
Commits on Sep 13, 2017
  1. Updates to Readme regarding default stubs (#77)

    TheRusskiy committed with panthomakos Sep 13, 2017
    * Updates to Readme regarding default stubs
    
    documenting this feature:
    https://github.com/panthomakos/timezone/blob/master/lib/timezone/lookup/test.rb#L19
    
    * readme update
Commits on Aug 13, 2017
  1. Upgrade to RuboCop 0.49.1

    panthomakos committed Aug 13, 2017
  2. Support fractional seconds (#76)

    Aupajo committed with panthomakos Aug 13, 2017
    A `Time` instance can be instantiated with the seconds as a fraction:
    
    ```ruby
    time = Time.new(2017, 8, 7, 11, 29, 16.123)
    time.usec # => 123000
    ```
    
    However, when using `Timezone`, the conversion to a time with offset
    loses the fractional seconds:
    
    ```ruby
    time_with_offset = Timezone['America/Chicago'].time_with_offset(time)
    time_with_offset.usec # => 0
    ```
    
    This happens because we construct a new `Time` object by calling
    `sec` on a time object - which will [only return whole seconds](https://ruby-doc.org/core-2.4.1/Time.html#method-i-sec).
Commits on Jul 7, 2017
Commits on Jun 30, 2017
  1. [1.2.8] Cut Release

    panthomakos committed Jun 30, 2017
  2. Document Multiple Lookups

    panthomakos committed Jun 30, 2017
    It is possible to use multiple lookup providers in a single application
    by storing and re-using the return value from a
    `::Timezone::Lookup.config` call.
    
    Closes #73
Commits on Jun 9, 2017
Commits on Mar 27, 2017
  1. [1.2.7] Cut Release

    panthomakos committed Mar 27, 2017
Commits on Mar 8, 2017
  1. [1.2.6] Cut Release

    panthomakos committed Mar 8, 2017
Commits on Jan 27, 2017
  1. [1.2.5] Cut Release

    panthomakos committed Jan 27, 2017
  2. [Fix #71] Make lookups thread-safe

    panthomakos committed on GitHub Jan 27, 2017
    `Net::HTTP`, in Ruby's standard library, is not thread-safe. The issue
    is easy to sidestep by creating a new `Net::HTTP` object for every
    lookup. The overhead of creating a new object compared to the network
    lookup call is trivial.
Commits on Dec 7, 2016
  1. [1.2.4] Cut Release

    panthomakos committed Dec 7, 2016
Commits on Nov 8, 2016
  1. [1.2.3] Cut Release

    panthomakos committed Nov 8, 2016
Commits on Nov 7, 2016
Commits on Nov 1, 2016
  1. Bump Ruby Test Versions (#70)

    panthomakos committed on GitHub Nov 1, 2016
Commits on Oct 27, 2016
  1. [1.2.2] Cut Release

    panthomakos committed Oct 27, 2016
Commits on Oct 26, 2016
Commits on Oct 5, 2016
  1. [1.2.1] Cut Release

    panthomakos committed Oct 5, 2016
Commits on Sep 22, 2016
  1. [1.2.0] Cut Release

    panthomakos committed Sep 22, 2016
Commits on Sep 21, 2016
  1. Handle GeoNames Error Code 15

    panthomakos committed Sep 21, 2016
    This error code is returned when the lat/lng resolves to an actual point
    on the planet which has no associated timezone information. It is more
    appropriate in this case to return `nil` (which will result in an
    `InvalidZone` error) instead of raising a `GeoNames` exception because
    the lat/lng is valid, the lookup has succeeded, but there is no
    associated timezone information for the point.
Commits on Sep 4, 2016
  1. Added Timezone::Zone#abbr Method (#69)

    panthomakos committed on GitHub Sep 4, 2016
    Given a source time, return the timezone abbreviation. For example, the
    `America/Los_Angeles` timezone is `PST` or `PDT`.
    
    Closes #64
Commits on Jul 16, 2016
  1. [1.1.1] Cut Release

    panthomakos committed Jul 16, 2016
Commits on Jul 13, 2016
Commits on Jun 22, 2016
  1. [1.1.0] Cut Release

    panthomakos committed Jun 22, 2016
Commits on Jun 17, 2016