has_searcher 0.0.92 → 0.0.93

Sign up to get free protection for your applications and to get access to all the features.
@@ -30,7 +30,7 @@ class Searcher::Boostificator
30
30
  end
31
31
 
32
32
  def now
33
- @now ||= DateTime.now.change(:min => 0)
33
+ @now ||= HasSearcher.cacheble_now
34
34
  end
35
35
 
36
36
  def recip
@@ -1,3 +1,3 @@
1
1
  module HasSearcher
2
- VERSION = "0.0.92"
2
+ VERSION = "0.0.93"
3
3
  end
data/lib/has_searcher.rb CHANGED
@@ -11,4 +11,8 @@ module HasSearcher
11
11
  searcher.search_object.attributes = params
12
12
  end
13
13
  end
14
+
15
+ def self.cacheble_now
16
+ 1.minute.since.change(:min => 0)
17
+ end
14
18
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: has_searcher
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.92
4
+ version: 0.0.93
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-09-07 00:00:00.000000000 Z
12
+ date: 2012-10-08 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails
@@ -146,7 +146,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
146
146
  version: '0'
147
147
  segments:
148
148
  - 0
149
- hash: 1317227550788914086
149
+ hash: -2762202968902653318
150
150
  required_rubygems_version: !ruby/object:Gem::Requirement
151
151
  none: false
152
152
  requirements:
@@ -155,7 +155,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
155
155
  version: '0'
156
156
  segments:
157
157
  - 0
158
- hash: 1317227550788914086
158
+ hash: -2762202968902653318
159
159
  requirements: []
160
160
  rubyforge_project:
161
161
  rubygems_version: 1.8.24