1. 30 1月, 2014 8 次提交
  2. 27 1月, 2014 7 次提交
  3. 20 1月, 2014 2 次提交
  4. 18 1月, 2014 1 次提交
  5. 17 1月, 2014 4 次提交
  6. 16 1月, 2014 2 次提交
  7. 14 1月, 2014 1 次提交
  8. 13 1月, 2014 1 次提交
  9. 11 1月, 2014 1 次提交
  10. 10 1月, 2014 3 次提交
  11. 09 1月, 2014 1 次提交
  12. 08 1月, 2014 3 次提交
    • Y
      Revert "Speedup String#to" · a03fed88
      Yves Senn 提交于
      This reverts commit 2ef1fb2c.
      
      As described in PR #13627 this commit broke functionality when passing
      a negative Fixnum to the `String#to` method:
      
      ```ruby
      assert_equal "hell", s.to(-2)
      ```
      
      Before the revert, this failed with:
      
      ```
        1) Failure:
      StringAccessTest#test_#to_with_negative_Fixnum,_position_is_counted_from_the_end [test/core_ext/string_ext_test.rb:275]:
      Expected: "hell"
        Actual: nil
      ```
      
      This revert is to keep the functionality on `master` working.
      If there is another way to get the performance benefit and keep
      the documented functionality we can add that.
      
      /cc @amatsuda @carlosantoniodasilva
      a03fed88
    • Y
      typo fix in test name. [ci skip]. · 40a83d74
      Yves Senn 提交于
      40a83d74
    • Y
      `core_ext/string/access.rb` test what we are documenting. · e37f1644
      Yves Senn 提交于
      I also extracted the tests from a single bulk method into a separate test-case.
      The new tests cover the API described in the docs.
      
      There are two skipped tests, which are broken as of 2ef1fb2c
      * #to with negative Fixnum, position is counted from the end
      * #from and #to can be combined
      
      This was brought to my attention by #13627.
      
      Closes #13627.
      e37f1644
  13. 07 1月, 2014 1 次提交
  14. 06 1月, 2014 3 次提交
  15. 04 1月, 2014 2 次提交
    • A
      Raise if MemCacheStore doenst receive a Dalli obj · e7f56a7f
      Arthur Neves 提交于
      :mem_cache_store should receive a list of hosts or a dalli client,
      otherwise raise it.
      Also adding a changelog.
      e7f56a7f
    • A
      mem_cache_store requires dalli, so only accept dalli/client · 98458eea
      Arthur Neves 提交于
      :mem_cache_store require dalli, rescue Dalli exceptions, and follow Dalli API.
      Memcached gem, for instance, doesnt work anymore, as the API are different.
      
      As we already require one client, we should make sure that client works, and not accept others, and if someone wants to use another memcache client they can write their own store adapter.
      98458eea