rspectacles 0.4.2 → 0.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/README.md +5 -4
- data/lib/rspectacles/version.rb +1 -1
- metadata +1 -2
- data/lib/rspectacles/formatter/legacy/base.rb +0 -48
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fc9de7a55d03898155d835f691af90967aa768e3
|
4
|
+
data.tar.gz: 03985db13eb72cd5c7c1f53fda58b55d5db582c8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2b0790aecd392c974b8a877ae5183e77198bef6bd7e09ab6ca99bcf57584c787e62c30b36c5333a94a2745c74f0a7411fc2fea71afe5d13e915205fb38daed07
|
7
|
+
data.tar.gz: 84d29ac86cbef4ea5c074658030d02ab9386bb59d1800b85bbddbdda563d760a051cc3bbc989a635bc54903c9fb222a532431d8a683d86ecbbf90faefd9e8c54
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -9,6 +9,10 @@ that you can tell at a glance where the time is spent in your test suite.
|
|
9
9
|
|
10
10
|
As a Sinatra app it can be run standalone, or else mounted on another Rack app.
|
11
11
|
|
12
|
+
## Compatibility
|
13
|
+
|
14
|
+
RSpectacles assumes you are using rspec 3 or later.
|
15
|
+
|
12
16
|
## Installation
|
13
17
|
|
14
18
|
gem install rspectacles
|
@@ -26,10 +30,7 @@ Then add the formatter to your .rspec file:
|
|
26
30
|
|
27
31
|
--format progress # or whatever other formatters you want to use
|
28
32
|
|
29
|
-
The formatter assumes you are using RSpec3.
|
30
|
-
|
31
|
-
--require rspectacles/formatter/legacy/base
|
32
|
-
--format RSpectacles::Formatter::Legacy::Base
|
33
|
+
The formatter assumes you are using RSpec3.
|
33
34
|
|
34
35
|
## Batched Formatter
|
35
36
|
|
data/lib/rspectacles/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rspectacles
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.5.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Michael Wheeler
|
@@ -172,7 +172,6 @@ files:
|
|
172
172
|
- lib/rspectacles/config/database.yml
|
173
173
|
- lib/rspectacles/formatter/base.rb
|
174
174
|
- lib/rspectacles/formatter/batched.rb
|
175
|
-
- lib/rspectacles/formatter/legacy/base.rb
|
176
175
|
- lib/rspectacles/version.rb
|
177
176
|
- puma.rb
|
178
177
|
- rspectacles.gemspec
|
@@ -1,48 +0,0 @@
|
|
1
|
-
require 'rspec/core/formatters/base_formatter'
|
2
|
-
require 'rspectacles/adapter/logger'
|
3
|
-
|
4
|
-
module RSpectacles
|
5
|
-
module Formatter
|
6
|
-
module Legacy
|
7
|
-
class Base < RSpec::Core::Formatters::BaseFormatter
|
8
|
-
attr_reader :output
|
9
|
-
|
10
|
-
def initialize(_)
|
11
|
-
end
|
12
|
-
|
13
|
-
def logger
|
14
|
-
@logger ||= RSpectacles::Adapter::Logger.new
|
15
|
-
end
|
16
|
-
|
17
|
-
def message(_message)
|
18
|
-
end
|
19
|
-
|
20
|
-
def start(_example_count)
|
21
|
-
logger.start
|
22
|
-
end
|
23
|
-
|
24
|
-
def stop
|
25
|
-
logger.stop
|
26
|
-
end
|
27
|
-
|
28
|
-
def example_started(example)
|
29
|
-
end
|
30
|
-
|
31
|
-
def example_passed(example)
|
32
|
-
logger.log example
|
33
|
-
end
|
34
|
-
|
35
|
-
def example_pending(example)
|
36
|
-
logger.log example
|
37
|
-
end
|
38
|
-
|
39
|
-
def example_failed(example)
|
40
|
-
logger.log example
|
41
|
-
end
|
42
|
-
|
43
|
-
def close
|
44
|
-
end
|
45
|
-
end
|
46
|
-
end
|
47
|
-
end
|
48
|
-
end
|