rspec_pacman_formatter 0.1.3 → 0.1.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 +4 -4
- data/README.md +1 -4
- data/lib/rspec_pacman_formatter/pacman.rb +7 -1
- data/lib/rspec_pacman_formatter/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 198bbc3273f050d5b1fa643af9c173b74ce2eaaa77b1c4783e8b45ab86d74a5b
|
|
4
|
+
data.tar.gz: fc5469d069cec318ae7a880b7bfbbf5c313050afc70971dff3f9da5abe3be58f
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 574f40643dc2e055695364d1130bcbbfaa563f6d4dfcf5ee593665a0e0e547fbe020f2c02ba0a78b1a0d9bfeae54edb7ca9db867a255b7fefee475ff3f997209
|
|
7
|
+
data.tar.gz: 500e17eb364931ea41fdafb588db12695aa72b34540cc0b7eafac7c32ca01024993ff2251de5773ba3bcfe891d1a2e29131cdb0fe5d46da1d329473b102b2aea
|
data/README.md
CHANGED
|
@@ -31,10 +31,7 @@ Or, if you want to use RspecPacmanFormatter::Pacman as your default formatter, s
|
|
|
31
31
|
|
|
32
32
|
## Sample Output
|
|
33
33
|
|
|
34
|
-
|
|
35
|
-
$ ..*.ᗣ.........ᗣ............ᗧ••••••••••
|
|
36
|
-
$ ...rspec results stuff here...
|
|
37
|
-
$ GAME OVER
|
|
34
|
+

|
|
38
35
|
|
|
39
36
|
## Contributing
|
|
40
37
|
|
|
@@ -21,11 +21,17 @@ module RspecPacmanFormatter
|
|
|
21
21
|
|
|
22
22
|
def start(notification)
|
|
23
23
|
puts 'GAME STARTED'
|
|
24
|
-
@cols =
|
|
24
|
+
@cols = terminal_width
|
|
25
25
|
@notification = notification.count
|
|
26
26
|
update_progress_line
|
|
27
27
|
end
|
|
28
28
|
|
|
29
|
+
def terminal_width
|
|
30
|
+
`tput cols`.chomp.to_i
|
|
31
|
+
rescue StandardError
|
|
32
|
+
CI_TERMINAL_WIDTH
|
|
33
|
+
end
|
|
34
|
+
|
|
29
35
|
def example_started(_)
|
|
30
36
|
step(Characters::PACMAN)
|
|
31
37
|
end
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: rspec_pacman_formatter
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.4
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Carlos Luis Rojas Aragonés
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2018-
|
|
11
|
+
date: 2018-04-07 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rspec
|