continuus_lenimentus 0.0.3 → 0.0.4
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 +8 -8
- data/README.md +2 -2
- data/lib/continuus_lenimentus.rb +2 -23
- data/lib/continuus_lenimentus/formatters.rb +9 -0
- data/lib/continuus_lenimentus/formatters/rspec.rb +20 -0
- data/lib/continuus_lenimentus/formatters/simplecov.rb +10 -0
- data/lib/continuus_lenimentus/version.rb +1 -1
- metadata +5 -2
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
NjMwYjg1NjI5M2MxNTNlNzBhOTE5MDk5NGI5NDY1NDU1NTFiYjRlNw==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
MmQxNWYxMmZkYzRiNzQwYzU5ZWI0OWNjZjBiOGU4OGQxMzJlMzk1Ng==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
MzdmMDgyZTBmYmIyNmI2NjE1YTc1N2YxNTNlNDg3MWMzYWJhM2U5YmJmOTAw
|
10
|
+
YTZmYWFkMmUxMTNkNjVkMDJiMmM2MGQ1M2NkNWE3NWRiMzI5YjkyMmQ5MTNh
|
11
|
+
NDM2Y2ZkMTQzMTM3NTEyNjc1OTgxODY3ZTVhNTNlYzcwNjFkN2Q=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
MTcxNWUyYTU2MTg1MjAzZDg2ZmJjN2FlNGJkNTlmMjg2MzE0YTBiNWYwYjU2
|
14
|
+
ZDI2ZDM3MjYyNTIwZTU4NzcxNzE1MjQ1YWU0OWYzYWZiYWMxZTgwYjBkNmMz
|
15
|
+
ZmEyOWMxODE1YWZmN2IyOGJlMjMwYmFkODk2MWI5ODc3ZTVjMTk=
|
data/README.md
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
[](https://travis-ci.org/ChuckJHardy/ContinuusLenimentus) [](https://travis-ci.org/ChuckJHardy/ContinuusLenimentus) [](https://coveralls.io/r/ChuckJHardy/ContinuusLenimentus?branch=master) [](https://codeclimate.com/github/ChuckJHardy/ContinuusLenimentus) [](http://badge.fury.io/rb/continuus_lenimentus) [](https://gemnasium.com/ChuckJHardy/ContinuusLenimentus)
|
2
2
|
|
3
3
|
# Continuus Lenimentus
|
4
4
|
|
@@ -11,7 +11,7 @@ Add this line to your application's Gemfile:
|
|
11
11
|
group :test do
|
12
12
|
gem 'rspec', '~> 2.14.1'
|
13
13
|
gem 'simplecov', '~> 0.7.1', require: false
|
14
|
-
gem 'continuus_lenimentus', '~> 0.0.
|
14
|
+
gem 'continuus_lenimentus', '~> 0.0.4', require: false
|
15
15
|
end
|
16
16
|
|
17
17
|
And then execute:
|
data/lib/continuus_lenimentus.rb
CHANGED
@@ -1,4 +1,5 @@
|
|
1
1
|
require "continuus_lenimentus/configuration"
|
2
|
+
require "continuus_lenimentus/formatters"
|
2
3
|
require "continuus_lenimentus/runner"
|
3
4
|
require "continuus_lenimentus/version"
|
4
5
|
require "continuus_lenimentus/safe"
|
@@ -6,8 +7,6 @@ require "continuus_lenimentus/adapter"
|
|
6
7
|
require "continuus_lenimentus/path"
|
7
8
|
require "continuus_lenimentus/save"
|
8
9
|
|
9
|
-
require "rspec/core/formatters/base_text_formatter"
|
10
|
-
|
11
10
|
module ContinuusLenimentus
|
12
11
|
def self.configuration
|
13
12
|
@configuration ||= Configuration.new
|
@@ -25,24 +24,4 @@ module ContinuusLenimentus
|
|
25
24
|
end
|
26
25
|
end
|
27
26
|
|
28
|
-
|
29
|
-
def dump_summary(duration, example_count, failure_count, pending_count)
|
30
|
-
ContinuusLenimentus::Runner.rspec.results = {
|
31
|
-
duration: duration,
|
32
|
-
counts: {
|
33
|
-
example: example_count,
|
34
|
-
failure: failure_count,
|
35
|
-
pending: pending_count
|
36
|
-
}
|
37
|
-
}
|
38
|
-
|
39
|
-
super(duration, example_count, failure_count, pending_count)
|
40
|
-
end
|
41
|
-
end
|
42
|
-
|
43
|
-
class SimpleCov::Formatter::ContinuusLenimentusFormatter
|
44
|
-
def format(result)
|
45
|
-
ContinuusLenimentus.format(result)
|
46
|
-
result
|
47
|
-
end
|
48
|
-
end
|
27
|
+
include ContinuusLenimentus::Formatters
|
@@ -0,0 +1,20 @@
|
|
1
|
+
require "rspec/core/formatters/progress_formatter"
|
2
|
+
|
3
|
+
module ContinuusLenimentus::Formatters
|
4
|
+
module Rspec
|
5
|
+
class ContinuusLenimentusRspecFormatter < RSpec::Core::Formatters::ProgressFormatter
|
6
|
+
def dump_summary(duration, example_count, failure_count, pending_count)
|
7
|
+
ContinuusLenimentus::Runner.rspec.results = {
|
8
|
+
duration: duration,
|
9
|
+
counts: {
|
10
|
+
example: example_count,
|
11
|
+
failure: failure_count,
|
12
|
+
pending: pending_count
|
13
|
+
}
|
14
|
+
}
|
15
|
+
|
16
|
+
super(duration, example_count, failure_count, pending_count)
|
17
|
+
end
|
18
|
+
end
|
19
|
+
end
|
20
|
+
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: continuus_lenimentus
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Chuck J hardy
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-11-
|
11
|
+
date: 2013-11-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: simplecov
|
@@ -99,6 +99,9 @@ files:
|
|
99
99
|
- lib/continuus_lenimentus.rb
|
100
100
|
- lib/continuus_lenimentus/adapter.rb
|
101
101
|
- lib/continuus_lenimentus/configuration.rb
|
102
|
+
- lib/continuus_lenimentus/formatters.rb
|
103
|
+
- lib/continuus_lenimentus/formatters/rspec.rb
|
104
|
+
- lib/continuus_lenimentus/formatters/simplecov.rb
|
102
105
|
- lib/continuus_lenimentus/path.rb
|
103
106
|
- lib/continuus_lenimentus/runner.rb
|
104
107
|
- lib/continuus_lenimentus/safe.rb
|