nyan-cat-formatter 0.0.5 → 0.0.6

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.
data/README.md CHANGED
@@ -1,7 +1,7 @@
1
1
  Nyan Cat RSpec Formatter [![Build Status](https://secure.travis-ci.org/mattsears/nyan-cat-formatter.png)](http://travis-ci.org/mattsears/nyan-cat-formatter)
2
2
  ========
3
3
 
4
- ```
4
+ ```code
5
5
  -_-_-_-_-_-_-_,------,
6
6
  _-_-_-_-_-_-_-| /\_/\
7
7
  -_-_-_-_-_-_-~|__( ^ .^)
@@ -81,11 +81,15 @@ NyanCatFormatter = Class.new(parent_class) do
81
81
  end
82
82
 
83
83
  # A Unix trick using stty to get the console columns
84
- # does not work in JRuby :-(
85
84
  #
86
85
  # @return [Fixnum]
87
86
  def terminal_width
88
- @terminal_width ||= `stty size`.split.map { |x| x.to_i }.reverse.first - 1
87
+ if defined? JRUBY_VERSION
88
+ default_width = 80
89
+ else
90
+ default_width = `stty size`.split.map { |x| x.to_i }.reverse.first - 1
91
+ end
92
+ @terminal_width ||= default_width
89
93
  end
90
94
 
91
95
  # Creates a data store of pass, failed, and pending example results
@@ -2,7 +2,7 @@ $:.push File.expand_path("../lib", __FILE__)
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = "nyan-cat-formatter"
5
- s.version = "0.0.5"
5
+ s.version = "0.0.6"
6
6
  s.authors = ["Matt Sears"]
7
7
  s.email = ["matt@mattsears.com"]
8
8
  s.homepage = "http://mtts.rs/nyancat"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: nyan-cat-formatter
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.0.6
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2011-12-28 00:00:00.000000000 Z
12
+ date: 2012-01-14 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rake
16
- requirement: &70280722760060 !ruby/object:Gem::Requirement
16
+ requirement: &70338037960060 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: '0'
22
22
  type: :development
23
23
  prerelease: false
24
- version_requirements: *70280722760060
24
+ version_requirements: *70338037960060
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: rspec
27
- requirement: &70280722759620 !ruby/object:Gem::Requirement
27
+ requirement: &70338037959620 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ! '>='
@@ -32,7 +32,7 @@ dependencies:
32
32
  version: '0'
33
33
  type: :development
34
34
  prerelease: false
35
- version_requirements: *70280722759620
35
+ version_requirements: *70338037959620
36
36
  description: ! 'Nyan Cat inspired RSpec formatter! '
37
37
  email:
38
38
  - matt@mattsears.com