rspec_pacman_formatter 0.1.3 → 0.1.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a0fdc0854ef8720cb35544c17ce314fc218c1eb61f0f911763a267e8b4a34f79
4
- data.tar.gz: be70ad0288edd978dcfca78e5afb2a5b8168905978ae9f620973aa670db49745
3
+ metadata.gz: 198bbc3273f050d5b1fa643af9c173b74ce2eaaa77b1c4783e8b45ab86d74a5b
4
+ data.tar.gz: fc5469d069cec318ae7a880b7bfbbf5c313050afc70971dff3f9da5abe3be58f
5
5
  SHA512:
6
- metadata.gz: fc922b545755370dcb71b83725fcfee1dea761a4c5358e3b6aabbb85cd9dd1d9352941289b48d66e84f6686ccf8e6d36d84ae6e4cf110013d9d1f2cbe60d2200
7
- data.tar.gz: 664300459c9162cbe2048aa57fe4a8dbe6ae84e6289ea9506d15dbbd77b54eb0c32651893cb67976e7a2140ba671b586ad204927d05d4590f81e3f71e7997bd0
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
- $ GAME STARTED
35
- $ ..*.ᗣ.........ᗣ............ᗧ••••••••••
36
- $ ...rspec results stuff here...
37
- $ GAME OVER
34
+ ![animated](https://user-images.githubusercontent.com/4663192/37238259-270b87b4-23e8-11e8-92eb-cfedb6cab3f1.gif)
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 = Integer(`tput 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
@@ -1,3 +1,3 @@
1
1
  module RspecPacmanFormatter
2
- VERSION = '0.1.3'.freeze
2
+ VERSION = '0.1.4'.freeze
3
3
  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.3
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-03-10 00:00:00.000000000 Z
11
+ date: 2018-04-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec