covered 0.17.0 → 0.17.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data/lib/covered/rspec.rb +1 -15
- data/lib/covered/version.rb +1 -1
- data.tar.gz.sig +0 -0
- metadata +1 -1
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3b906f699dc0a8c5ab648200ae5330cf12a0da31e5c6966bb105d1df387c7179
|
4
|
+
data.tar.gz: 6692c75aa8764654a5a278e248bf4b9f224a10e84363a7cbf0dfc68ba5d84be6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6656a91ce7b29c67c66dd9e1d63f9c38231b1bfbdedae4ce29b638468d55d0476d308522ecf24d07fee905081653d192cd90d73cf1772b59fd7534f87bfd2cbb
|
7
|
+
data.tar.gz: 21f2d81e59417f81bcf63c7c95e0a6023c67bd68985811f3e2184c1fdbd447be5dd4e74b373546ea5eb307365799b5bf9ea24d2243301cbd9c2abe5112f8382f
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data/lib/covered/rspec.rb
CHANGED
@@ -11,19 +11,6 @@ $covered = Covered::Config.load
|
|
11
11
|
|
12
12
|
module Covered
|
13
13
|
module RSpec
|
14
|
-
class Formatter
|
15
|
-
# The name `dump_summary` of this method is significant:
|
16
|
-
::RSpec::Core::Formatters.register self, :dump_summary
|
17
|
-
|
18
|
-
def initialize(output)
|
19
|
-
@output = output
|
20
|
-
end
|
21
|
-
|
22
|
-
def dump_summary notification
|
23
|
-
$covered.call(@output)
|
24
|
-
end
|
25
|
-
end
|
26
|
-
|
27
14
|
module Policy
|
28
15
|
def load_spec_files
|
29
16
|
$covered.enable
|
@@ -46,10 +33,9 @@ if $covered.record?
|
|
46
33
|
RSpec::Core::Configuration.prepend(Covered::RSpec::Policy)
|
47
34
|
|
48
35
|
RSpec.configure do |config|
|
49
|
-
config.add_formatter(Covered::RSpec::Formatter)
|
50
|
-
|
51
36
|
config.after(:suite) do
|
52
37
|
$covered.disable
|
38
|
+
$covered.call(config.output_stream)
|
53
39
|
end
|
54
40
|
end
|
55
41
|
end
|
data/lib/covered/version.rb
CHANGED
data.tar.gz.sig
CHANGED
Binary file
|
metadata
CHANGED
metadata.gz.sig
CHANGED
Binary file
|