datascope 0.0.10 → 0.0.11

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9bb6df7ac31e658a07b0daa8ef74c98e4817aa1d
4
- data.tar.gz: a860a5cd025dc941daea7f83783123f0f04d3853
3
+ metadata.gz: 17462167c1cff40692e76b61069a44cd6280214d
4
+ data.tar.gz: 1c78138513c32978c26810204f61ba5317d67985
5
5
  SHA512:
6
- metadata.gz: 17a083db8668388d865458fe28338df6f1fa35ed14db13d042d63462284f8dbff4df021ae935373ae7901d3d2eefe1b2fe045f4185c7ebc12dfe3e0f8f8e50d0
7
- data.tar.gz: e118a8d3d3b81d5208cbd64cba6504e0be30b51bf1acc3a0016215acba33a328c183ee82071831744f69ea276c192ee8869b6dbbfbf93133a083a642b275f4a1
6
+ metadata.gz: 5023570bf34feafaa58da9de22601c1504cbd3a43cca200dfd85e924d5ecaa688e9ab0f4c58d96ea0fd0580f20aa642ad527f15d1733f7d035a9c9beb959b8e8
7
+ data.tar.gz: 2741ab73f71cab8976048f5f7d776c1f50db7f4591ef11a59a452fbd81f0eeb114ce4f2a3a2fcbf007fe3adf455d9986b6206799f93a9f9984c36ddfb707e840
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
4
 
5
5
  Gem::Specification.new do |gem|
6
6
  gem.name = "datascope"
7
- gem.version = "0.0.10"
7
+ gem.version = "0.0.11"
8
8
  gem.authors = ["Will Leinweber"]
9
9
  gem.email = []
10
10
  gem.description = %q{postgres 9.2 visibility}
@@ -18,7 +18,7 @@ module StatCollector
18
18
  end
19
19
 
20
20
  def prune_stats!
21
- DB[:stats].where('created_at < ?', Date.today - 1).delete
21
+ DB[:stats].where('created_at < ?', Time.now - (12 * 60 * 60)).delete
22
22
  end
23
23
 
24
24
  def capture_stats!
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: datascope
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.10
4
+ version: 0.0.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - Will Leinweber
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-03-13 00:00:00.000000000 Z
11
+ date: 2014-03-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: sinatra