Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Commits on Mar 24, 2015
  1. @sferik

    Merge pull request #47 from ktdreyer/gemspec-summary-description

    sferik authored
    gemspec: switch summary and description
  2. @ktdreyer

    gemspec: switch summary and description

    ktdreyer authored
    The summary variable in the gemspec is intended to be a small bit of
    text that presents the purpose of the gem in a short "at a glance"
    format.
    
    The description variable is a longer characterization of the gem.
    
    Prior to this commit, the two settings were reversed in the gemspec.
    Flip them here.
Commits on Jun 7, 2014
  1. @thedarkone

    Fix url typo.

    thedarkone authored
Commits on Jun 6, 2014
Commits on May 27, 2014
  1. @thedarkone

    Bump version to 0.3.4.

    thedarkone authored
  2. @thedarkone
  3. @thedarkone

    Add TS::Cache#fetch_or_store.

    thedarkone authored
    The method is going to have semantics identical to those provided by
    Rails.cache#fetch.
  4. @thedarkone

    Fix default block race condition.

    thedarkone authored
    By the time `elsif !key?(key)` is called another thread might have
    created a `key` mapping, then `!key?(key)` check would then fail
    resulting in `[]` returning `nil` an incorrect `value`.
    
    This is most likely to be triggered by a code like this:
    
      ThreadSafe::Cache.new {|cache, key| cache[key] = some_value}
    
    Related: rails/rails#13961.
Commits on Apr 12, 2014
  1. @thedarkone
  2. @thedarkone
  3. @thedarkone
  4. @thedarkone

    Merge pull request #43 from ktdreyer/tests

    thedarkone authored
    tests: switch to minitest
Commits on Apr 7, 2014
  1. @ktdreyer

    tests: remove assert_nothing_raised

    ktdreyer authored
    Minitest doesn't support assert_nothing_raised. Remove our uses of
    assert_nothing_raised by either simply removing the call, or adding
    other basic asserts.
  2. @ktdreyer

    tests: switch to minitest

    ktdreyer authored
    Ruby 1.9+ uses Minitest as the backend for Test::Unit. As of Minitest 5,
    the shim no longer supports Test::Unit::TestCase.
    
    Adjust the thread_safe test suite to support Minitest 5's syntax.
    
    Minitest versions 4 and below do not support the newer Minitest::Test
    class that arrived in version 5. For that case, use the
    MiniTest::Unit::TestCase class as a fallback.
    
    Also add a backwards-compatible function to Minitest::Test for
    assert_nothing_raised, since Minitest doesn't support that assertion.
    Eventually the use of assert_nothing_raised in thread_safe ought to be
    removed in favor of something better (such as more specific asserts).
  3. @thedarkone

    Bump version to 0.3.3.

    thedarkone authored
  4. @thedarkone
  5. @MSch
Commits on Apr 5, 2014
  1. @thedarkone

    Bump version to 0.3.2.

    thedarkone authored
Commits on Apr 3, 2014
  1. @thedarkone
  2. @thedarkone
  3. @thedarkone

    Fix invariant/sanity check code.

    thedarkone authored
    The original code broke on an odd number of running threads.
  4. @thedarkone
  5. @thedarkone

    Revert "Fix tests for travis failures."

    thedarkone authored
    This reverts commit 61b5976.
Commits on Mar 21, 2014
  1. Bump version to 0.3.1.

    authored
Commits on Mar 18, 2014
  1. Bump version to 0.3.0.

    authored
Commits on Mar 17, 2014
  1. Merge pull request #38 from kares/single_module

    authored
    use a single **ThreadSafe** module (previously `Threadsafe::VERSION` used)
  2. Merge pull request #37 from kares/cache-key

    authored
    cache.key support
Commits on Mar 16, 2014
  1. @kares
Commits on Mar 2, 2014
  1. @kares

    ignore test/package.jar

    kares authored
  2. @kares
Commits on Feb 27, 2014
  1. @kares
  2. @kares
Commits on Feb 26, 2014
  1. Update version to 0.2.0.

    authored
  2. Fix tests for travis failures.

    authored
Something went wrong with that request. Please try again.