rspec-formatter-webkit 2.1.3 → 2.1.4

Sign up to get free protection for your applications and to get access to all the features.
data/History.rdoc ADDED
@@ -0,0 +1,26 @@
1
+ == v2.1.4 [2011-11-01] Michael Granger <ged@FaerieMUD.org>
2
+
3
+ Updates for Ruby 1.9.3-p0 and RSpec 2.7.x.
4
+
5
+
6
+ == v2.1.3 [2011-02-16] Michael Granger <ged@FaerieMUD.org>
7
+
8
+ Remove use of deprecated Config.datadir.
9
+
10
+
11
+ == v2.1.2 [2011-02-09] Michael Granger <ged@FaerieMUD.org>
12
+
13
+ Trying the dependency fix again.
14
+
15
+
16
+ == v2.1.1 [2011-01-26] Michael Granger <ged@FaerieMUD.org>
17
+
18
+ Adjust dependency on rspec to be less paranoid.
19
+
20
+
21
+ == v2.1.0 [2010-12-21] Michael Granger <ged@FaerieMUD.org>
22
+
23
+ * Converted to Hoe
24
+ * Renamed from 'rspec-formatter-webkit' to better match gem-naming convention
25
+ * Updated for RSpec 2.3.0.
26
+
data/Manifest.txt ADDED
@@ -0,0 +1,48 @@
1
+ History.rdoc
2
+ LICENSE
3
+ Manifest.txt
4
+ README.rdoc
5
+ Rakefile
6
+ data/rspec-formatter-webkit/css/textmate-rspec.css
7
+ data/rspec-formatter-webkit/images/clock.png
8
+ data/rspec-formatter-webkit/images/cross_circle.png
9
+ data/rspec-formatter-webkit/images/cross_circle_frame.png
10
+ data/rspec-formatter-webkit/images/cross_octagon.png
11
+ data/rspec-formatter-webkit/images/cross_octagon_frame.png
12
+ data/rspec-formatter-webkit/images/cross_shield.png
13
+ data/rspec-formatter-webkit/images/exclamation.png
14
+ data/rspec-formatter-webkit/images/exclamation_frame.png
15
+ data/rspec-formatter-webkit/images/exclamation_shield.png
16
+ data/rspec-formatter-webkit/images/exclamation_small.png
17
+ data/rspec-formatter-webkit/images/plus_circle.png
18
+ data/rspec-formatter-webkit/images/plus_circle_frame.png
19
+ data/rspec-formatter-webkit/images/question.png
20
+ data/rspec-formatter-webkit/images/question_frame.png
21
+ data/rspec-formatter-webkit/images/question_shield.png
22
+ data/rspec-formatter-webkit/images/question_small.png
23
+ data/rspec-formatter-webkit/images/tick.png
24
+ data/rspec-formatter-webkit/images/tick_circle.png
25
+ data/rspec-formatter-webkit/images/tick_circle_frame.png
26
+ data/rspec-formatter-webkit/images/tick_shield.png
27
+ data/rspec-formatter-webkit/images/tick_small.png
28
+ data/rspec-formatter-webkit/images/tick_small_circle.png
29
+ data/rspec-formatter-webkit/images/ticket.png
30
+ data/rspec-formatter-webkit/images/ticket_arrow.png
31
+ data/rspec-formatter-webkit/images/ticket_exclamation.png
32
+ data/rspec-formatter-webkit/images/ticket_minus.png
33
+ data/rspec-formatter-webkit/images/ticket_pencil.png
34
+ data/rspec-formatter-webkit/images/ticket_plus.png
35
+ data/rspec-formatter-webkit/images/ticket_small.png
36
+ data/rspec-formatter-webkit/js/jquery-1.4.2.min.js
37
+ data/rspec-formatter-webkit/js/textmate-rspec.js
38
+ data/rspec-formatter-webkit/templates/failed.rhtml
39
+ data/rspec-formatter-webkit/templates/footer.rhtml
40
+ data/rspec-formatter-webkit/templates/header.rhtml
41
+ data/rspec-formatter-webkit/templates/page.rhtml
42
+ data/rspec-formatter-webkit/templates/passed.rhtml
43
+ data/rspec-formatter-webkit/templates/pending-fixed.rhtml
44
+ data/rspec-formatter-webkit/templates/pending.rhtml
45
+ docs/tmrspec-example.png
46
+ docs/tmrspecopts-shellvar.png
47
+ lib/rspec/core/formatters/web_kit.rb
48
+ lib/rspec/core/formatters/webkit.rb
data/README.rdoc ADDED
@@ -0,0 +1,41 @@
1
+ = A WebKit RSpec Formatter
2
+
3
+ http://deveiate.org/webkit-rspec-formatter.html
4
+
5
+
6
+ == Description
7
+
8
+ This is a formatter for RSpec 2 that takes advantage of features in
9
+ WebKit[http://webkit.org/] to make the output from RSpec in Textmate more
10
+ fun.
11
+
12
+ Test output looks like this:
13
+
14
+ http://deveiate.org/images/tmrspec-example.png
15
+
16
+ == Installation
17
+
18
+ To get started, install the `rspec-formatter-webkit` gem:
19
+
20
+ $ gem install rspec-formatter-webkit
21
+
22
+ If you're running specs in Textmate via {the RSpec
23
+ bundle}[http://github.com/rspec/rspec-tmbundle], you can use the webkit
24
+ formatter by opening Textmate's 'Advanced' Preferences and adding a
25
+ `TM_RSPEC_OPTS` Shell Variable with the value `--format
26
+ RSpec::Core::Formatters::WebKit`:
27
+
28
+ http://deveiate.org/images/tmrspecopts-shellvar.png
29
+
30
+ That's it!
31
+
32
+
33
+ == Miscellaneous
34
+
35
+ It's also usable anywhere else the standard HTML formatter is, of course.
36
+ Also, while it's specifically intended to be used under the Textmate HTML
37
+ viewer that the RSpec bundle uses, the output should work fine under recent
38
+ Gecko/Firefox-based viewers, as well.
39
+
40
+ Patches/suggestions welcomed.
41
+
data/Rakefile CHANGED
@@ -9,44 +9,40 @@ end
9
9
  require 'rake/clean'
10
10
 
11
11
  Hoe.plugin :mercurial
12
- Hoe.plugin :yard
13
12
  Hoe.plugin :signing
14
13
 
15
14
  Hoe.plugins.delete :rubyforge
16
15
 
17
16
  hoespec = Hoe.spec 'rspec-formatter-webkit' do
18
- self.readme_file = 'README.md'
19
- self.history_file = 'History.md'
17
+ self.readme_file = 'README.rdoc'
18
+ self.history_file = 'History.rdoc'
19
+ self.extra_rdoc_files = Rake::FileList[ '*.rdoc' ]
20
20
 
21
21
  self.developer 'Michael Granger', 'ged@FaerieMUD.org'
22
22
 
23
- self.extra_deps.push *{
24
- 'rspec' => '~> 2.5',
25
- }
23
+ self.dependency 'rspec-core', '~> 2.7'
26
24
 
27
25
  self.spec_extras[:licenses] = ["BSD"]
28
26
  self.spec_extras[:post_install_message] = %{
29
27
 
30
- You can use this formatter from TextMate (if you're using RSpec 2.3.0
31
- or later) bysetting the TM_RSPEC_OPTS shell variable (in the
32
- 'Advanced' preference pane) to:
28
+ You can use this formatter from TextMate by setting the TM_RSPEC_OPTS
29
+ shell variable (in the 'Advanced' preference pane) to:
33
30
 
34
31
  --format RSpec::Core::Formatters::WebKit
35
32
 
36
33
  Have fun!
37
34
 
38
35
  }.gsub( /^\t+/m, '' )
39
- self.spec_extras[:signing_key] = '/Volumes/Keys/ged-private_gem_key.pem'
40
36
 
41
37
  self.require_ruby_version( '>=1.8.7' )
42
-
43
38
  self.hg_sign_tags = true if self.respond_to?( :hg_sign_tags )
44
-
45
39
  self.rdoc_locations << "deveiate:/usr/local/www/public/code/#{remote_rdoc_dir}"
46
40
  end
47
41
 
48
42
  ENV['VERSION'] ||= hoespec.spec.version.to_s
49
43
 
44
+ # Ensure history is updated before checking in
45
+ task 'hg:precheckin' => [ :check_history ]
50
46
 
51
47
  task :legacy_gem do
52
48
  Dir.chdir( 'legacy' ) do
@@ -1,7 +1,6 @@
1
1
  #!/usr/bin/env ruby
2
2
 
3
3
  require 'pp'
4
- require 'rbconfig'
5
4
  require 'erb'
6
5
  require 'pathname'
7
6
 
@@ -13,22 +12,21 @@ class RSpec::Core::Formatters::WebKit < RSpec::Core::Formatters::BaseTextFormatt
13
12
  include ERB::Util
14
13
 
15
14
  # Version constant
16
- VERSION = '2.1.3'
15
+ VERSION = '2.1.4'
17
16
 
18
17
  # Look up the datadir falling back to a relative path (mostly for prerelease testing)
19
- DEFAULT_DATADIR = Pathname( Gem.datadir('rspec-formatter-webkit') )
20
- if DEFAULT_DATADIR.exist?
21
- BASE_PATH = DEFAULT_DATADIR
22
- else
23
- BASE_PATH = Pathname( __FILE__ ).dirname.parent.parent.parent.parent +
24
- 'data/rspec-formatter-webkit'
18
+ DATADIR = begin
19
+ dir = Gem.datadir('rspec-formatter-webkit') ||
20
+ Pathname( __FILE__ ).dirname.parent.parent.parent.parent +
21
+ 'data/rspec-formatter-webkit'
22
+ Pathname( dir )
25
23
  end
26
24
 
27
25
  # The base HREF used in the header to map stuff to the datadir
28
- BASE_HREF = "file://#{BASE_PATH}/"
26
+ BASE_HREF = "file://#{DATADIR}/"
29
27
 
30
28
  # The directory to grab ERb templates out of
31
- TEMPLATE_DIR = BASE_PATH + 'templates'
29
+ TEMPLATE_DIR = DATADIR + 'templates'
32
30
 
33
31
  # The page part templates
34
32
  HEADER_TEMPLATE = TEMPLATE_DIR + 'header.rhtml'
@@ -38,6 +36,8 @@ class RSpec::Core::Formatters::WebKit < RSpec::Core::Formatters::BaseTextFormatt
38
36
  PENDFIX_EXAMPLE_TEMPLATE = TEMPLATE_DIR + 'pending-fixed.rhtml'
39
37
  FOOTER_TEMPLATE = TEMPLATE_DIR + 'footer.rhtml'
40
38
 
39
+ # Pattern to match for excluding lines from backtraces
40
+ BACKTRACE_EXCLUDE_PATTERN = %r{spec/mate|textmate-command|rspec(-(core|expectations|mocks))?/}
41
41
 
42
42
  ### Create a new formatter
43
43
  def initialize( output ) # :notnew:
@@ -170,7 +170,7 @@ class RSpec::Core::Formatters::WebKit < RSpec::Core::Formatters::BaseTextFormatt
170
170
  ### Format backtrace lines to include a textmate link to the file/line in question.
171
171
  def backtrace_line( line )
172
172
  return nil unless line = super
173
- return nil if line =~ %r{r?spec/mate|textmate-command}
173
+ return nil if line =~ BACKTRACE_EXCLUDE_PATTERN
174
174
  return h( line.strip ).gsub( /([^:]*\.rb):(\d*)/ ) do
175
175
  "<a href=\"txmt://open?url=file://#{File.expand_path($1)}&amp;line=#{$2}\">#{$1}:#{$2}</a> "
176
176
  end
@@ -182,7 +182,9 @@ class RSpec::Core::Formatters::WebKit < RSpec::Core::Formatters::BaseTextFormatt
182
182
  ### failure.
183
183
  def extra_failure_content( exception )
184
184
  return '' unless exception
185
- snippet = @snippet_extractor.snippet( exception )
185
+ backtrace = exception.backtrace.find {|line| line !~ BACKTRACE_EXCLUDE_PATTERN }
186
+ # $stderr.puts "Using backtrace line %p to extract snippet" % [ backtrace ]
187
+ snippet = @snippet_extractor.snippet([ backtrace ])
186
188
  return " <pre class=\"ruby\"><code>#{snippet}</code></pre>"
187
189
  end
188
190
 
@@ -215,7 +217,6 @@ class RSpec::Core::Formatters::WebKit < RSpec::Core::Formatters::BaseTextFormatt
215
217
 
216
218
 
217
219
  ### Load the ERB template at +templatepath+ and return it.
218
- ### @param [Pathname] templatepath the fully-qualified path to the template file
219
220
  def load_template( templatepath )
220
221
  return ERB.new( templatepath.read, nil, '%<>' ).freeze
221
222
  end
data.tar.gz.sig CHANGED
Binary file
metadata CHANGED
@@ -1,123 +1,123 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: rspec-formatter-webkit
3
- version: !ruby/object:Gem::Version
4
- hash: 13
3
+ version: !ruby/object:Gem::Version
4
+ version: 2.1.4
5
5
  prerelease:
6
- segments:
7
- - 2
8
- - 1
9
- - 3
10
- version: 2.1.3
11
6
  platform: ruby
12
- authors:
7
+ authors:
13
8
  - Michael Granger
14
9
  autorequire:
15
10
  bindir: bin
16
- cert_chain:
17
- - |
18
- -----BEGIN CERTIFICATE-----
11
+ cert_chain:
12
+ - ! '-----BEGIN CERTIFICATE-----
13
+
19
14
  MIIDLDCCAhSgAwIBAgIBADANBgkqhkiG9w0BAQUFADA8MQwwCgYDVQQDDANnZWQx
15
+
20
16
  FzAVBgoJkiaJk/IsZAEZFgdfYWVyaWVfMRMwEQYKCZImiZPyLGQBGRYDb3JnMB4X
17
+
21
18
  DTEwMDkxNjE0NDg1MVoXDTExMDkxNjE0NDg1MVowPDEMMAoGA1UEAwwDZ2VkMRcw
19
+
22
20
  FQYKCZImiZPyLGQBGRYHX2FlcmllXzETMBEGCgmSJomT8ixkARkWA29yZzCCASIw
21
+
23
22
  DQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBALy//BFxC1f/cPSnwtJBWoFiFrir
23
+
24
24
  h7RicI+joq/ocVXQqI4TDWPyF/8tqkvt+rD99X9qs2YeR8CU/YiIpLWrQOYST70J
25
+
25
26
  vDn7Uvhb2muFVqq6+vobeTkILBEO6pionWDG8jSbo3qKm1RjKJDwg9p4wNKhPuu8
27
+
26
28
  KGue/BFb67KflqyApPmPeb3Vdd9clspzqeFqp7cUBMEpFS6LWxy4Gk+qvFFJBJLB
29
+
27
30
  BUHE/LZVJMVzfpC5Uq+QmY7B+FH/QqNndn3tOHgsPadLTNimuB1sCuL1a4z3Pepd
31
+
28
32
  TeLBEFmEao5Dk3K/Q8o8vlbIB/jBDTUx6Djbgxw77909x6gI9doU4LD5XMcCAwEA
33
+
29
34
  AaM5MDcwCQYDVR0TBAIwADALBgNVHQ8EBAMCBLAwHQYDVR0OBBYEFJeoGkOr9l4B
35
+
30
36
  +saMkW/ZXT4UeSvVMA0GCSqGSIb3DQEBBQUAA4IBAQBG2KObvYI2eHyyBUJSJ3jN
37
+
31
38
  vEnU3d60znAXbrSd2qb3r1lY1EPDD3bcy0MggCfGdg3Xu54z21oqyIdk8uGtWBPL
39
+
32
40
  HIa9EgfFGSUEgvcIvaYqiN4jTUtidfEFw+Ltjs8AP9gWgSIYS6Gr38V0WGFFNzIH
41
+
33
42
  aOD2wmu9oo/RffW4hS/8GuvfMzcw7CQ355wFR4KB/nyze+EsZ1Y5DerCAagMVuDQ
43
+
34
44
  U0BLmWDFzPGGWlPeQCrYHCr+AcJz+NRnaHCKLZdSKj/RHuTOt+gblRex8FAh8NeA
45
+
35
46
  cmlhXe46pZNJgWKbxZah85jIjx95hR8vOI+NAM5iH9kOqK13DrxacTKPhqj5PjwF
47
+
36
48
  -----END CERTIFICATE-----
37
49
 
38
- date: 2011-02-16 00:00:00 -08:00
39
- default_executable:
40
- dependencies:
41
- - !ruby/object:Gem::Dependency
42
- name: rspec
43
- prerelease: false
44
- requirement: &id001 !ruby/object:Gem::Requirement
50
+ '
51
+ date: 2011-11-01 00:00:00.000000000 Z
52
+ dependencies:
53
+ - !ruby/object:Gem::Dependency
54
+ name: rspec-core
55
+ requirement: &70188297033940 !ruby/object:Gem::Requirement
45
56
  none: false
46
- requirements:
57
+ requirements:
47
58
  - - ~>
48
- - !ruby/object:Gem::Version
49
- hash: 9
50
- segments:
51
- - 2
52
- - 5
53
- version: "2.5"
59
+ - !ruby/object:Gem::Version
60
+ version: '2.7'
54
61
  type: :runtime
55
- version_requirements: *id001
56
- - !ruby/object:Gem::Dependency
57
- name: hoe-mercurial
58
62
  prerelease: false
59
- requirement: &id002 !ruby/object:Gem::Requirement
63
+ version_requirements: *70188297033940
64
+ - !ruby/object:Gem::Dependency
65
+ name: hoe-mercurial
66
+ requirement: &70188297033160 !ruby/object:Gem::Requirement
60
67
  none: false
61
- requirements:
68
+ requirements:
62
69
  - - ~>
63
- - !ruby/object:Gem::Version
64
- hash: 29
65
- segments:
66
- - 1
67
- - 2
68
- - 1
69
- version: 1.2.1
70
+ - !ruby/object:Gem::Version
71
+ version: 1.3.1
70
72
  type: :development
71
- version_requirements: *id002
72
- - !ruby/object:Gem::Dependency
73
- name: hoe-yard
74
73
  prerelease: false
75
- requirement: &id003 !ruby/object:Gem::Requirement
74
+ version_requirements: *70188297033160
75
+ - !ruby/object:Gem::Dependency
76
+ name: hoe-highline
77
+ requirement: &70188297031980 !ruby/object:Gem::Requirement
76
78
  none: false
77
- requirements:
78
- - - ">="
79
- - !ruby/object:Gem::Version
80
- hash: 31
81
- segments:
82
- - 0
83
- - 1
84
- - 2
85
- version: 0.1.2
79
+ requirements:
80
+ - - ~>
81
+ - !ruby/object:Gem::Version
82
+ version: 0.0.1
86
83
  type: :development
87
- version_requirements: *id003
88
- - !ruby/object:Gem::Dependency
89
- name: hoe
90
84
  prerelease: false
91
- requirement: &id004 !ruby/object:Gem::Requirement
85
+ version_requirements: *70188297031980
86
+ - !ruby/object:Gem::Dependency
87
+ name: hoe
88
+ requirement: &70188297030460 !ruby/object:Gem::Requirement
92
89
  none: false
93
- requirements:
94
- - - ">="
95
- - !ruby/object:Gem::Version
96
- hash: 43
97
- segments:
98
- - 2
99
- - 9
100
- - 0
101
- version: 2.9.0
90
+ requirements:
91
+ - - ~>
92
+ - !ruby/object:Gem::Version
93
+ version: '2.12'
102
94
  type: :development
103
- version_requirements: *id004
104
- description: |-
105
- This is a formatter for RSpec 2 that takes advantage of features in [WebKit](http://webkit.org/) to make the output from RSpec in Textmate more fun.
106
-
95
+ prerelease: false
96
+ version_requirements: *70188297030460
97
+ description: ! 'This is a formatter for RSpec 2 that takes advantage of features in
98
+
99
+ WebKit[http://webkit.org/] to make the output from RSpec in Textmate more
100
+
101
+ fun.
102
+
103
+
107
104
  Test output looks like this:
108
-
109
- ![Example Output](http://deveiate.org/images/tmrspec-example.png)
110
- email:
105
+
106
+
107
+ http://deveiate.org/images/tmrspec-example.png'
108
+ email:
111
109
  - ged@FaerieMUD.org
112
110
  executables: []
113
-
114
111
  extensions: []
115
-
116
- extra_rdoc_files:
117
- - History.md
118
- files:
112
+ extra_rdoc_files:
113
+ - Manifest.txt
114
+ - History.rdoc
115
+ - README.rdoc
116
+ files:
117
+ - History.rdoc
119
118
  - LICENSE
120
- - README.md
119
+ - Manifest.txt
120
+ - README.rdoc
121
121
  - Rakefile
122
122
  - data/rspec-formatter-webkit/css/textmate-rspec.css
123
123
  - data/rspec-formatter-webkit/images/clock.png
@@ -162,54 +162,34 @@ files:
162
162
  - docs/tmrspecopts-shellvar.png
163
163
  - lib/rspec/core/formatters/web_kit.rb
164
164
  - lib/rspec/core/formatters/webkit.rb
165
- - History.md
166
- has_rdoc: true
167
165
  homepage: http://deveiate.org/webkit-rspec-formatter.html
168
- licenses:
166
+ licenses:
169
167
  - BSD
170
- post_install_message: |+
171
-
172
-
173
- You can use this formatter from TextMate (if you're using RSpec 2.3.0
174
- or later) bysetting the TM_RSPEC_OPTS shell variable (in the
175
- 'Advanced' preference pane) to:
176
-
177
- --format RSpec::Core::Formatters::WebKit
178
-
179
- Have fun!
180
-
181
- rdoc_options:
182
- - --title
183
- - RspecFormatterWebkit Documentation
184
- - --quiet
185
- require_paths:
168
+ post_install_message: ! "\n\nYou can use this formatter from TextMate by setting the
169
+ TM_RSPEC_OPTS \nshell variable (in the 'Advanced' preference pane) to:\n\n --format
170
+ RSpec::Core::Formatters::WebKit\n\nHave fun!\n\n"
171
+ rdoc_options:
172
+ - --main
173
+ - README.rdoc
174
+ require_paths:
186
175
  - lib
187
- required_ruby_version: !ruby/object:Gem::Requirement
176
+ required_ruby_version: !ruby/object:Gem::Requirement
188
177
  none: false
189
- requirements:
190
- - - ">="
191
- - !ruby/object:Gem::Version
192
- hash: 57
193
- segments:
194
- - 1
195
- - 8
196
- - 7
178
+ requirements:
179
+ - - ! '>='
180
+ - !ruby/object:Gem::Version
197
181
  version: 1.8.7
198
- required_rubygems_version: !ruby/object:Gem::Requirement
182
+ required_rubygems_version: !ruby/object:Gem::Requirement
199
183
  none: false
200
- requirements:
201
- - - ">="
202
- - !ruby/object:Gem::Version
203
- hash: 3
204
- segments:
205
- - 0
206
- version: "0"
184
+ requirements:
185
+ - - ! '>='
186
+ - !ruby/object:Gem::Version
187
+ version: '0'
207
188
  requirements: []
208
-
209
189
  rubyforge_project: rspec-formatter-webkit
210
- rubygems_version: 1.5.2
190
+ rubygems_version: 1.8.10
211
191
  signing_key:
212
192
  specification_version: 3
213
- summary: This is a formatter for RSpec 2 that takes advantage of features in [WebKit](http://webkit.org/) to make the output from RSpec in Textmate more fun
193
+ summary: This is a formatter for RSpec 2 that takes advantage of features in WebKit[http://webkit.org/]
194
+ to make the output from RSpec in Textmate more fun
214
195
  test_files: []
215
-
metadata.gz.sig CHANGED
Binary file
data/History.md DELETED
@@ -1,21 +0,0 @@
1
- ## 2.1.3 [2011-02-16] Michael Granger <ged@FaerieMUD.org>
2
-
3
- Remove use of deprecated Config.datadir.
4
-
5
-
6
- ## 2.1.2 [2011-02-09] Michael Granger <ged@FaerieMUD.org>
7
-
8
- Trying the dependency fix again.
9
-
10
-
11
- ## 2.1.1 [2011-01-26] Michael Granger <ged@FaerieMUD.org>
12
-
13
- Adjust dependency on rspec to be less paranoid.
14
-
15
-
16
- ## 2.1.0 [2010-12-21] Michael Granger <ged@FaerieMUD.org>
17
-
18
- * Converted to Hoe
19
- * Renamed from 'rspec-formatter-webkit' to better match gem-naming convention
20
- * Updated for RSpec 2.3.0.
21
-
data/README.md DELETED
@@ -1,30 +0,0 @@
1
- # A WebKit RSpec Formatter
2
-
3
- http://deveiate.org/webkit-rspec-formatter.html
4
-
5
- ## Description
6
-
7
- This is a formatter for RSpec 2 that takes advantage of features in [WebKit](http://webkit.org/) to make the output from RSpec in Textmate more fun.
8
-
9
- Test output looks like this:
10
-
11
- ![Example Output](http://deveiate.org/images/tmrspec-example.png)
12
-
13
- ## Installation
14
-
15
- To get started, install the `rspec-formatter-webkit` gem:
16
-
17
- $ gem install rspec-formatter-webkit
18
-
19
- If you're running specs in Textmate via [the RSpec bundle](http://github.com/rspec/rspec-tmbundle), you can use the webkit formatter by opening Textmate's 'Advanced' Preferences and adding a `TM_RSPEC_OPTS` Shell Variable with the value `--format RSpec::Core::Formatters::WebKit`:
20
-
21
- ![Setting TM_RSPEC_OPTS](http://deveiate.org/images/tmrspecopts-shellvar.png)
22
-
23
- That's it!
24
-
25
- ## Miscellaneous
26
-
27
- It's also usable anywhere else the standard HTML formatter is, of course. Also, while it's specifically intended to be used under the Textmate HTML viewer that the RSpec bundle uses, the output should work fine under recent Gecko/Firefox-based viewers, as well.
28
-
29
- Patches/suggestions welcomed.
30
-