method_cacher 0.0.1 → 0.0.2
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/CHANGELOG.md +6 -1
- data/lib/method_cacher/version.rb +1 -1
- data/method_cacher.gemspec +6 -3
- metadata +18 -14
data/CHANGELOG.md
CHANGED
data/method_cacher.gemspec
CHANGED
@@ -5,9 +5,12 @@ require 'method_cacher/version'
|
|
5
5
|
Gem::Specification.new do |gem|
|
6
6
|
gem.authors = ["Yaron Walfish"]
|
7
7
|
gem.email = ["yaronw@yaronw.com"]
|
8
|
-
gem.description = %q{
|
9
|
-
gem.summary = %q{Wraps specified instance and singleton methods with
|
10
|
-
|
8
|
+
gem.description = %q{Easily cache instance and singleton (i.e. class) methods of ActiveRecord or any object.}
|
9
|
+
gem.summary = %q{Wraps specified instance and singleton methods with a caching mechanism.
|
10
|
+
Uniquely caches the results of method calls with different parameters.
|
11
|
+
Adds methods for clearing the cache and accessing the original uncached methods.
|
12
|
+
Automatically integrates with ActiveRecord.}
|
13
|
+
gem.homepage = "https://github.com/yaronw/method_cacher"
|
11
14
|
|
12
15
|
gem.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
|
13
16
|
gem.files = `git ls-files`.split("\n")
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: method_cacher
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.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: 2011-12-22 00:00:00.
|
12
|
+
date: 2011-12-22 00:00:00.000000000Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rspec
|
16
|
-
requirement: &
|
16
|
+
requirement: &2168539020 !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: :development
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *2168539020
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: supermodel
|
27
|
-
requirement: &
|
27
|
+
requirement: &2168538600 !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: *
|
35
|
+
version_requirements: *2168538600
|
36
36
|
- !ruby/object:Gem::Dependency
|
37
37
|
name: activesupport
|
38
|
-
requirement: &
|
38
|
+
requirement: &2168538180 !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: *
|
46
|
+
version_requirements: *2168538180
|
47
47
|
- !ruby/object:Gem::Dependency
|
48
48
|
name: ruby-debug19
|
49
|
-
requirement: &
|
49
|
+
requirement: &2168537760 !ruby/object:Gem::Requirement
|
50
50
|
none: false
|
51
51
|
requirements:
|
52
52
|
- - ! '>='
|
@@ -54,8 +54,9 @@ dependencies:
|
|
54
54
|
version: '0'
|
55
55
|
type: :development
|
56
56
|
prerelease: false
|
57
|
-
version_requirements: *
|
58
|
-
description:
|
57
|
+
version_requirements: *2168537760
|
58
|
+
description: Easily cache instance and singleton (i.e. class) methods of ActiveRecord
|
59
|
+
or any object.
|
59
60
|
email:
|
60
61
|
- yaronw@yaronw.com
|
61
62
|
executables: []
|
@@ -81,7 +82,7 @@ files:
|
|
81
82
|
- spec/method_cacher_spec.rb
|
82
83
|
- spec/rspec_matchers.rb
|
83
84
|
- spec/spec_helper.rb
|
84
|
-
homepage:
|
85
|
+
homepage: https://github.com/yaronw/method_cacher
|
85
86
|
licenses: []
|
86
87
|
post_install_message:
|
87
88
|
rdoc_options: []
|
@@ -101,10 +102,13 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
101
102
|
version: '0'
|
102
103
|
requirements: []
|
103
104
|
rubyforge_project:
|
104
|
-
rubygems_version: 1.8.
|
105
|
+
rubygems_version: 1.8.6
|
105
106
|
signing_key:
|
106
107
|
specification_version: 3
|
107
|
-
summary: Wraps specified instance and singleton methods with
|
108
|
+
summary: Wraps specified instance and singleton methods with a caching mechanism.
|
109
|
+
Uniquely caches the results of method calls with different parameters. Adds methods
|
110
|
+
for clearing the cache and accessing the original uncached methods. Automatically
|
111
|
+
integrates with ActiveRecord.
|
108
112
|
test_files:
|
109
113
|
- spec/method_cacher/base_spec.rb
|
110
114
|
- spec/method_cacher/base_test_helper.rb
|