easycov 0.1.1 → 0.2.0
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.
- checksums.yaml +4 -4
- data/VERSION +1 -1
- data/easycov.gemspec +4 -4
- data/lib/easycov.rb +9 -0
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0795ca2401b632da544e478e02852ca9f641147d
|
4
|
+
data.tar.gz: a6e86afb423e790b376ef52faed67b1b05d57aec
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5f1b04bf759f7821e5aa5cf43be28a9ac2911a8495d3944ba9bc4abc991154600f83605bb6e99720aeb77f1d5dc47995d4954b316a0336373afb6c821b9f1969
|
7
|
+
data.tar.gz: 1697a27ac47ded4999e80d736203da4b8f10b936ffbf22e5488b3302001f29c0786f9c073ee0f7f037c01a7a5fa4354b24d67a1e46880b5d983e0281ee2d18c1
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.
|
1
|
+
0.2.0
|
data/easycov.gemspec
CHANGED
@@ -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.
|
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.
|
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-
|
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.
|
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
|
data/lib/easycov.rb
CHANGED
@@ -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.
|
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-
|
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.
|
130
|
+
rubygems_version: 2.1.5
|
131
131
|
signing_key:
|
132
132
|
specification_version: 4
|
133
133
|
summary: Ruby code coverage library
|