remix-stash 1.1.2 → 1.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/AUTHORS +1 -0
- data/Rakefile +0 -1
- data/VERSION +1 -1
- data/lib/active_support/cache/remix_stash_store.rb +7 -3
- data/lib/remix/stash.rb +1 -1
- data/remix-stash.gemspec +1 -2
- metadata +3 -3
data/AUTHORS
CHANGED
data/Rakefile
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.1.
|
1
|
+
1.1.3
|
@@ -3,15 +3,19 @@ require 'remix/stash'
|
|
3
3
|
module ActiveSupport
|
4
4
|
module Cache
|
5
5
|
class RemixStashStore < Store
|
6
|
+
include Remix
|
6
7
|
|
7
8
|
def initialize(*servers)
|
9
|
+
name = :active_support_cache
|
8
10
|
if servers.last.is_a?(Hash)
|
9
11
|
# were passing extra settings
|
10
|
-
|
12
|
+
opts = servers.pop
|
13
|
+
name = opts.delete(:name) if opts[:name]
|
14
|
+
stash.default(opts)
|
11
15
|
end
|
12
16
|
Remix::Stash.define_cluster(:environment => servers)
|
13
|
-
stash.default(:cluster => :environment)
|
14
|
-
@stash =
|
17
|
+
stash(name).default(:cluster => :environment)
|
18
|
+
@stash = stash(name)
|
15
19
|
end
|
16
20
|
|
17
21
|
def read(name, options = nil)
|
data/lib/remix/stash.rb
CHANGED
data/remix-stash.gemspec
CHANGED
@@ -5,10 +5,9 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{remix-stash}
|
8
|
-
s.version = "1.1.
|
8
|
+
s.version = "1.1.3"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
|
-
s.authors = ["Brian Mitchell"]
|
12
11
|
s.date = %q{2009-12-02}
|
13
12
|
s.email = %q{binary42@gmail.com}
|
14
13
|
s.extra_rdoc_files = [
|
metadata
CHANGED