jashmenn-method_cache 0.8.1.0 → 0.8.1.1

Sign up to get free protection for your applications and to get access to all the features.
data/.gitignore ADDED
@@ -0,0 +1,3 @@
1
+ pkg
2
+ *~
3
+ *.swp
data/VERSION.yml CHANGED
@@ -2,4 +2,4 @@
2
2
  :major: 0
3
3
  :minor: 8
4
4
  :patch: 1
5
- :build: 0
5
+ :build: 1
@@ -59,9 +59,12 @@ module MethodCache
59
59
  value = nil unless valid?(:load, value)
60
60
 
61
61
  if value.nil?
62
+ puts "cache miss: #{key}" if Eigenjoy::MethodCache.verbose?
62
63
  value = target.send(method_name_without_caching, *args)
63
64
  raise "non-integer value returned by counter method" if opts[:counter] and not value.kind_of?(Fixnum)
64
65
  write_to_cache(key, value) if valid?(:save, value)
66
+ else
67
+ puts "cache hit: #{key}" if Eigenjoy::MethodCache.verbose?
65
68
  end
66
69
 
67
70
  value = nil if value == NULL
@@ -129,8 +132,8 @@ module MethodCache
129
132
  end.join('|')
130
133
  @key = ['m', version, arg_string].compact.join('|')
131
134
  @key = "m|#{Digest::SHA1.hexdigest(@key)}" if @key.length > 250
135
+ puts "cache key: #{@key}" if Eigenjoy::MethodCache.verbose?
132
136
  end
133
- puts "cache key: #{@key}" if Eigenjoy::MethodCache.verbose?
134
137
  @key
135
138
  end
136
139
 
metadata CHANGED
@@ -1,24 +1,35 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: jashmenn-method_cache
3
- version: !ruby/object:Gem::Version
4
- version: 0.8.1.0
5
- prerelease:
3
+ version: !ruby/object:Gem::Version
4
+ prerelease: false
5
+ segments:
6
+ - 0
7
+ - 8
8
+ - 1
9
+ - 1
10
+ version: 0.8.1.1
6
11
  platform: ruby
7
- authors:
12
+ authors:
8
13
  - Justin Balthrop
9
14
  autorequire:
10
15
  bindir: bin
11
16
  cert_chain: []
12
- date: 2012-02-22 00:00:00.000000000Z
17
+
18
+ date: 2012-02-23 00:00:00 -08:00
19
+ default_executable:
13
20
  dependencies: []
21
+
14
22
  description: Simple memcache-based memoization library for Ruby
15
23
  email: code@justinbalthrop.com
16
24
  executables: []
25
+
17
26
  extensions: []
18
- extra_rdoc_files:
27
+
28
+ extra_rdoc_files:
19
29
  - LICENSE
20
30
  - README.rdoc
21
- files:
31
+ files:
32
+ - .gitignore
22
33
  - LICENSE
23
34
  - README.rdoc
24
35
  - Rakefile
@@ -28,28 +39,37 @@ files:
28
39
  - test/method_cache_remote_test.rb
29
40
  - test/method_cache_test.rb
30
41
  - test/test_helper.rb
42
+ has_rdoc: true
31
43
  homepage: http://github.com/ninjudd/method_cache
32
44
  licenses: []
45
+
33
46
  post_install_message:
34
- rdoc_options: []
35
- require_paths:
47
+ rdoc_options:
48
+ - --charset=UTF-8
49
+ require_paths:
36
50
  - lib
37
- required_ruby_version: !ruby/object:Gem::Requirement
38
- none: false
39
- requirements:
40
- - - ! '>='
41
- - !ruby/object:Gem::Version
42
- version: '0'
43
- required_rubygems_version: !ruby/object:Gem::Requirement
44
- none: false
45
- requirements:
46
- - - ! '>='
47
- - !ruby/object:Gem::Version
48
- version: '0'
51
+ required_ruby_version: !ruby/object:Gem::Requirement
52
+ requirements:
53
+ - - ">="
54
+ - !ruby/object:Gem::Version
55
+ segments:
56
+ - 0
57
+ version: "0"
58
+ required_rubygems_version: !ruby/object:Gem::Requirement
59
+ requirements:
60
+ - - ">="
61
+ - !ruby/object:Gem::Version
62
+ segments:
63
+ - 0
64
+ version: "0"
49
65
  requirements: []
66
+
50
67
  rubyforge_project:
51
- rubygems_version: 1.8.6
68
+ rubygems_version: 1.3.6
52
69
  signing_key:
53
70
  specification_version: 3
54
71
  summary: Simple memcache-based memoization library for Ruby
55
- test_files: []
72
+ test_files:
73
+ - test/method_cache_remote_test.rb
74
+ - test/method_cache_test.rb
75
+ - test/test_helper.rb