simple_cache_rs 0.9.1 → 0.9.2

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.9.1
1
+ 0.9.2
data/lib/simple_cache.rb CHANGED
@@ -25,14 +25,14 @@ module SimpleCache
25
25
  singleton_class.class_eval do
26
26
  attr :url, true
27
27
 
28
- def store
28
+ def cache_store
29
29
  Thread.current["simple_cache_store"] ||= new(url)
30
30
  end
31
31
  end
32
32
 
33
33
  singleton_class.class_eval do
34
34
  extend Forwardable
35
- delegate [:fetch, :store, :cached, :clear] => :store
35
+ delegate [:fetch, :store, :cached, :clear] => :cache_store
36
36
  end
37
37
 
38
38
  def cached(key, ttl = nil, &block)
@@ -0,0 +1,73 @@
1
+ # Generated by jeweler
2
+ # DO NOT EDIT THIS FILE DIRECTLY
3
+ # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
4
+ # -*- encoding: utf-8 -*-
5
+
6
+ Gem::Specification.new do |s|
7
+ s.name = "simple_cache_rs"
8
+ s.version = "0.9.2"
9
+
10
+ s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
+ s.authors = ["radiospiel"]
12
+ s.date = "2012-04-09"
13
+ s.description = "A sensibly fast, yet simplistic file based cache."
14
+ s.email = "eno@open-lab.org"
15
+ s.extra_rdoc_files = [
16
+ "LICENSE.txt",
17
+ "README.rdoc"
18
+ ]
19
+ s.files = [
20
+ ".document",
21
+ "Gemfile",
22
+ "Gemfile.lock",
23
+ "LICENSE.txt",
24
+ "README.rdoc",
25
+ "Rakefile",
26
+ "VERSION",
27
+ "lib/simple_cache.rb",
28
+ "lib/simple_cache/marshal.rb",
29
+ "lib/simple_cache/redis_store.rb",
30
+ "lib/simple_cache/sqlite_store.rb",
31
+ "simple_cache.gemspec",
32
+ "simple_cache_rs.gemspec",
33
+ "test/redis_store_test.rb",
34
+ "test/sqlite_store_test.rb",
35
+ "test/test_helper.rb"
36
+ ]
37
+ s.homepage = "http://github.com/radiospiel/simple_cache"
38
+ s.licenses = ["MIT"]
39
+ s.require_paths = ["lib"]
40
+ s.rubygems_version = "1.8.10"
41
+ s.summary = "You need a cache? Just throw me in."
42
+
43
+ if s.respond_to? :specification_version then
44
+ s.specification_version = 3
45
+
46
+ if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
47
+ s.add_runtime_dependency(%q<sqlite3>, [">= 0"])
48
+ s.add_development_dependency(%q<bundler>, [">= 0"])
49
+ s.add_development_dependency(%q<jeweler>, [">= 0"])
50
+ s.add_development_dependency(%q<simplecov>, [">= 0"])
51
+ s.add_development_dependency(%q<ruby-debug19>, [">= 0"])
52
+ s.add_development_dependency(%q<timecop>, [">= 0"])
53
+ s.add_development_dependency(%q<redis>, [">= 0"])
54
+ else
55
+ s.add_dependency(%q<sqlite3>, [">= 0"])
56
+ s.add_dependency(%q<bundler>, [">= 0"])
57
+ s.add_dependency(%q<jeweler>, [">= 0"])
58
+ s.add_dependency(%q<simplecov>, [">= 0"])
59
+ s.add_dependency(%q<ruby-debug19>, [">= 0"])
60
+ s.add_dependency(%q<timecop>, [">= 0"])
61
+ s.add_dependency(%q<redis>, [">= 0"])
62
+ end
63
+ else
64
+ s.add_dependency(%q<sqlite3>, [">= 0"])
65
+ s.add_dependency(%q<bundler>, [">= 0"])
66
+ s.add_dependency(%q<jeweler>, [">= 0"])
67
+ s.add_dependency(%q<simplecov>, [">= 0"])
68
+ s.add_dependency(%q<ruby-debug19>, [">= 0"])
69
+ s.add_dependency(%q<timecop>, [">= 0"])
70
+ s.add_dependency(%q<redis>, [">= 0"])
71
+ end
72
+ end
73
+
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: simple_cache_rs
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.1
4
+ version: 0.9.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-04-09 00:00:00.000000000Z
12
+ date: 2012-04-09 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: sqlite3
16
- requirement: &70237177950000 !ruby/object:Gem::Requirement
16
+ requirement: &70334088972580 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: '0'
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *70237177950000
24
+ version_requirements: *70334088972580
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: bundler
27
- requirement: &70237177949240 !ruby/object:Gem::Requirement
27
+ requirement: &70334088972000 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ! '>='
@@ -32,10 +32,10 @@ dependencies:
32
32
  version: '0'
33
33
  type: :development
34
34
  prerelease: false
35
- version_requirements: *70237177949240
35
+ version_requirements: *70334088972000
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: jeweler
38
- requirement: &70237177948560 !ruby/object:Gem::Requirement
38
+ requirement: &70334088971220 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - ! '>='
@@ -43,10 +43,10 @@ dependencies:
43
43
  version: '0'
44
44
  type: :development
45
45
  prerelease: false
46
- version_requirements: *70237177948560
46
+ version_requirements: *70334088971220
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: simplecov
49
- requirement: &70237177947820 !ruby/object:Gem::Requirement
49
+ requirement: &70334088970660 !ruby/object:Gem::Requirement
50
50
  none: false
51
51
  requirements:
52
52
  - - ! '>='
@@ -54,10 +54,10 @@ dependencies:
54
54
  version: '0'
55
55
  type: :development
56
56
  prerelease: false
57
- version_requirements: *70237177947820
57
+ version_requirements: *70334088970660
58
58
  - !ruby/object:Gem::Dependency
59
59
  name: ruby-debug19
60
- requirement: &70237177947140 !ruby/object:Gem::Requirement
60
+ requirement: &70334088970060 !ruby/object:Gem::Requirement
61
61
  none: false
62
62
  requirements:
63
63
  - - ! '>='
@@ -65,10 +65,10 @@ dependencies:
65
65
  version: '0'
66
66
  type: :development
67
67
  prerelease: false
68
- version_requirements: *70237177947140
68
+ version_requirements: *70334088970060
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: timecop
71
- requirement: &70237177946480 !ruby/object:Gem::Requirement
71
+ requirement: &70334088969540 !ruby/object:Gem::Requirement
72
72
  none: false
73
73
  requirements:
74
74
  - - ! '>='
@@ -76,10 +76,10 @@ dependencies:
76
76
  version: '0'
77
77
  type: :development
78
78
  prerelease: false
79
- version_requirements: *70237177946480
79
+ version_requirements: *70334088969540
80
80
  - !ruby/object:Gem::Dependency
81
81
  name: redis
82
- requirement: &70237177945820 !ruby/object:Gem::Requirement
82
+ requirement: &70334088968200 !ruby/object:Gem::Requirement
83
83
  none: false
84
84
  requirements:
85
85
  - - ! '>='
@@ -87,7 +87,7 @@ dependencies:
87
87
  version: '0'
88
88
  type: :development
89
89
  prerelease: false
90
- version_requirements: *70237177945820
90
+ version_requirements: *70334088968200
91
91
  description: A sensibly fast, yet simplistic file based cache.
92
92
  email: eno@open-lab.org
93
93
  executables: []
@@ -108,6 +108,7 @@ files:
108
108
  - lib/simple_cache/redis_store.rb
109
109
  - lib/simple_cache/sqlite_store.rb
110
110
  - simple_cache.gemspec
111
+ - simple_cache_rs.gemspec
111
112
  - test/redis_store_test.rb
112
113
  - test/sqlite_store_test.rb
113
114
  - test/test_helper.rb
@@ -126,7 +127,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
126
127
  version: '0'
127
128
  segments:
128
129
  - 0
129
- hash: -2088364848885140711
130
+ hash: -1582995027855660094
130
131
  required_rubygems_version: !ruby/object:Gem::Requirement
131
132
  none: false
132
133
  requirements: