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 CHANGED
@@ -1 +1,2 @@
1
1
  Brian Mitchell (@binary42) <brian@streampunks.com>
2
+ Aaron Quint (@aq) <aaron@quirkey.com>
data/Rakefile CHANGED
@@ -6,7 +6,6 @@ begin
6
6
  gemspec.summary = 'Remix your memcache'
7
7
  gemspec.email = 'binary42@gmail.com'
8
8
  gemspec.homepage = 'http://github.com/binary42/remix-stash'
9
- gemspec.authors = ['Brian Mitchell']
10
9
  end
11
10
 
12
11
  Jeweler::GemcutterTasks.new
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.1.2
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
- stash.default(servers.pop)
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 = Remix::Stash.new(:active_support_cache)
17
+ stash(name).default(:cluster => :environment)
18
+ @stash = stash(name)
15
19
  end
16
20
 
17
21
  def read(name, options = nil)
@@ -39,7 +39,7 @@ class Remix::Stash
39
39
  @local = @opts = {:coherency => :action, :ttl => 0, :cluster => :default}
40
40
  else
41
41
  @local = {}
42
- @opts = stash.default.dup
42
+ @opts = Remix.stash.default.dup
43
43
  end
44
44
  end
45
45
 
@@ -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.2"
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
@@ -1,10 +1,10 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: remix-stash
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.2
4
+ version: 1.1.3
5
5
  platform: ruby
6
- authors:
7
- - Brian Mitchell
6
+ authors: []
7
+
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []