easycov 0.1.1 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (5) hide show
  1. checksums.yaml +4 -4
  2. data/VERSION +1 -1
  3. data/easycov.gemspec +4 -4
  4. data/lib/easycov.rb +9 -0
  5. metadata +3 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a9cc75888813bc2e2ced0bbad3682ff0a39929eb
4
- data.tar.gz: 118fd178e29579f9f3c45e7f117c73e5bf87ea89
3
+ metadata.gz: 0795ca2401b632da544e478e02852ca9f641147d
4
+ data.tar.gz: a6e86afb423e790b376ef52faed67b1b05d57aec
5
5
  SHA512:
6
- metadata.gz: aa513d933696f56fb9ba16d9f476a73dc9c8eed7b993f108ed320a09c2a8acbb75a9de1ecf782193a859f7ed2fb1728f98f3e23d5c25b6454405dbf01430260d
7
- data.tar.gz: 003d8ff12521b9b08f5469f5697d1bbdc2d380c2dfa2ab089d136b764d13bd26adb313994baef4cd63bd39fade35528bc76d314f47ed9a16a10be452c3b5a918
6
+ metadata.gz: 5f1b04bf759f7821e5aa5cf43be28a9ac2911a8495d3944ba9bc4abc991154600f83605bb6e99720aeb77f1d5dc47995d4954b316a0336373afb6c821b9f1969
7
+ data.tar.gz: 1697a27ac47ded4999e80d736203da4b8f10b936ffbf22e5488b3302001f29c0786f9c073ee0f7f037c01a7a5fa4354b24d67a1e46880b5d983e0281ee2d18c1
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.1
1
+ 0.2.0
@@ -2,15 +2,15 @@
2
2
  # DO NOT EDIT THIS FILE DIRECTLY
3
3
  # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
4
4
  # -*- encoding: utf-8 -*-
5
- # stub: easycov 0.1.1 ruby lib
5
+ # stub: easycov 0.2.0 ruby lib
6
6
 
7
7
  Gem::Specification.new do |s|
8
8
  s.name = "easycov"
9
- s.version = "0.1.1"
9
+ s.version = "0.2.0"
10
10
 
11
11
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
12
12
  s.authors = ["Chetan Sarva"]
13
- s.date = "2013-09-26"
13
+ s.date = "2013-10-03"
14
14
  s.description = "An easy to use, simplecov-compatibile code coverage library for Ruby"
15
15
  s.email = "chetan@pixelcop.net"
16
16
  s.files = [
@@ -25,7 +25,7 @@ Gem::Specification.new do |s|
25
25
  s.homepage = "http://github.com/chetan/easycov"
26
26
  s.licenses = ["MIT"]
27
27
  s.require_paths = ["lib"]
28
- s.rubygems_version = "2.1.0"
28
+ s.rubygems_version = "2.1.5"
29
29
  s.summary = "Ruby code coverage library"
30
30
 
31
31
  if s.respond_to? :specification_version then
@@ -87,6 +87,8 @@ module EasyCov
87
87
  File.delete(f)
88
88
  end
89
89
 
90
+ prune(data)
91
+
90
92
  # write to final dest
91
93
  File.open(output+".tmp", 'w'){ |f| f.write(MultiJson.dump(data)) }
92
94
  File.rename(output+".tmp", output)
@@ -120,6 +122,13 @@ module EasyCov
120
122
 
121
123
  private
122
124
 
125
+ def prune(data)
126
+ cutoff = Time.new.to_i - 3600
127
+ data.reject! { |name, result|
128
+ result["timestamp"] < cutoff
129
+ }
130
+ end
131
+
123
132
  # Apply filters
124
133
  def apply_filters(result)
125
134
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: easycov
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chetan Sarva
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-09-26 00:00:00.000000000 Z
11
+ date: 2013-10-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: simplecov
@@ -127,7 +127,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
127
127
  version: '0'
128
128
  requirements: []
129
129
  rubyforge_project:
130
- rubygems_version: 2.1.0
130
+ rubygems_version: 2.1.5
131
131
  signing_key:
132
132
  specification_version: 4
133
133
  summary: Ruby code coverage library