rspec-go-go-go 0.1.0 → 0.1.1
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/Gemfile.lock +1 -1
- data/lib/rspec_go_go_go/version.rb +1 -1
- data/lib/rspec_go_go_go.rb +24 -1
- metadata +1 -2
- data/lib/rspec_go_go_go/formatter.rb +0 -24
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fc7ad2b0c5760e66d50974741dcf4e124b3bba29956f872e62f46af43d01ca15
|
4
|
+
data.tar.gz: 10694247f574fc4237d57eb4bf0817e46323293ad2caf0c1a9349d65505e5220
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3c1ff2858be5789b6b4e4add254b164e01ebaff6275bef897464de73f18b9d7f140866829d9eedfc26ced6e205274e0bf0198a7c8570862e022f01558355c842
|
7
|
+
data.tar.gz: 1bd820b8943f67a21d7b1de0c615e7fdd3728351a80a1e22e1a2f0aef6813a39b55129cf8dcaa562ed10c920502e0f9c283694047ddf4e5cd0a1f26aa0da56b5
|
data/Gemfile.lock
CHANGED
data/lib/rspec_go_go_go.rb
CHANGED
@@ -3,4 +3,27 @@
|
|
3
3
|
require "rspec_go_go_go/version"
|
4
4
|
require "rspec_go_go_go/progress_counter"
|
5
5
|
require "rspec_go_go_go/progress_framer"
|
6
|
-
|
6
|
+
|
7
|
+
require "rspec/core"
|
8
|
+
require "rspec/core/formatters/base_text_formatter"
|
9
|
+
|
10
|
+
module RSpecGoGoGo
|
11
|
+
class Formater < RSpec::Core::Formatters::BaseTextFormatter
|
12
|
+
RSpec::Core::Formatters.register self, :start, :example_passed, :example_failed
|
13
|
+
|
14
|
+
def start(notification)
|
15
|
+
super
|
16
|
+
@counter = ProgressCounter.new(notification.count)
|
17
|
+
end
|
18
|
+
|
19
|
+
def example_passed(_notification)
|
20
|
+
@counter.passed
|
21
|
+
@output << ProgressFramer.display(@counter)
|
22
|
+
end
|
23
|
+
|
24
|
+
def example_failed(_notification)
|
25
|
+
@counter.failed
|
26
|
+
@output << ProgressFramer.display(@counter)
|
27
|
+
end
|
28
|
+
end
|
29
|
+
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rspec-go-go-go
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- fukurose
|
@@ -29,7 +29,6 @@ files:
|
|
29
29
|
- Rakefile
|
30
30
|
- docker-compose.yml
|
31
31
|
- lib/rspec_go_go_go.rb
|
32
|
-
- lib/rspec_go_go_go/formatter.rb
|
33
32
|
- lib/rspec_go_go_go/progress_counter.rb
|
34
33
|
- lib/rspec_go_go_go/progress_framer.rb
|
35
34
|
- lib/rspec_go_go_go/version.rb
|
@@ -1,24 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
require "rspec/core/formatters/base_text_formatter"
|
4
|
-
|
5
|
-
module RSpecGoGoGo
|
6
|
-
class Formater < RSpec::Core::Formatters::BaseTextFormatter
|
7
|
-
RSpec::Core::Formatters.register self, :start, :example_passed, :example_failed
|
8
|
-
|
9
|
-
def start(notification)
|
10
|
-
super
|
11
|
-
@counter = ProgressCounter.new(notification.count)
|
12
|
-
end
|
13
|
-
|
14
|
-
def example_passed(_notification)
|
15
|
-
@counter.passed
|
16
|
-
@output << ProgressFramer.display(@counter)
|
17
|
-
end
|
18
|
-
|
19
|
-
def example_failed(_notification)
|
20
|
-
@counter.failed
|
21
|
-
@output << ProgressFramer.display(@counter)
|
22
|
-
end
|
23
|
-
end
|
24
|
-
end
|