Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Work around rbx bug that prevents caches from being restored #50

Closed
wants to merge 2 commits into from

2 participants

Mislav Marohnić Ryan Tomayko
Mislav Marohnić

The bug affects rbx 1.2.4 and its master branch at time of this writing.

mislav added some commits
Mislav Marohnić mislav add rake to bundle, bump memcached version
Previous memcached version didn't compile for me on 1.9.3p0
fa45a72
Mislav Marohnić mislav work around rbx bug with `reject!`
The bug affects rbx 1.2.4 and its master branch at time of this writing.
rubinius/rubinius#1522
9f6683e
Ryan Tomayko
Owner

Hoping this is no longer an issue. I don't really get it.

Ryan Tomayko rtomayko closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Jan 18, 2012
  1. Mislav Marohnić

    add rake to bundle, bump memcached version

    mislav authored
    Previous memcached version didn't compile for me on 1.9.3p0
  2. Mislav Marohnić

    work around rbx bug with `reject!`

    mislav authored
    The bug affects rbx 1.2.4 and its master branch at time of this writing.
    rubinius/rubinius#1522
This page is out of date. Refresh to see the latest.
Showing with 7 additions and 6 deletions.
  1. +1 −0  Gemfile
  2. +5 −3 Gemfile.lock
  3. +1 −3 lib/rack/cache/metastore.rb
1  Gemfile
View
@@ -1,2 +1,3 @@
source :rubygems
+gem 'rake'
gemspec
8 Gemfile.lock
View
@@ -1,7 +1,7 @@
PATH
remote: .
specs:
- rack-cache (1.0.3)
+ rack-cache (1.1)
rack (>= 0.4)
GEM
@@ -9,8 +9,9 @@ GEM
specs:
bacon (1.1.0)
dalli (1.0.5)
- memcached (1.3)
- rack (1.3.2)
+ memcached (1.3.5)
+ rack (1.4.0)
+ rake (0.9.2.2)
PLATFORMS
ruby
@@ -20,3 +21,4 @@ DEPENDENCIES
dalli
memcached
rack-cache!
+ rake
4 lib/rack/cache/metastore.rb
View
@@ -114,9 +114,7 @@ def invalidate(request, entity_store)
# necessary modifications in preparation for persistence. The Hash
# returned must be marshalable.
def persist_request(request)
- env = request.env.dup
- env.reject! { |key,val| key =~ /[^0-9A-Z_]/ || !val.respond_to?(:to_str) }
- env
+ request.env.reject { |key,val| key =~ /[^0-9A-Z_]/ || !val.respond_to?(:to_str) }
end
# Converts a stored response hash into a Response object. The caller
Something went wrong with that request. Please try again.