Sha256: 8a2a4a2b3a3cb7970b7e861fc414bbb08d2830aa9aff822311dedb3dbfa9f728

Contents?: true

Size: 435 Bytes

Versions: 128

Compression:

Stored size: 435 Bytes

Contents

require 'spec/runner/formatter/html_formatter'

module Spec
  module Runner
    module Formatter
      # Formats backtraces so they're clickable by TextMate
      class TextMateFormatter < HtmlFormatter
        def backtrace_line(line)
          line.gsub(/([^:]*\.rb):(\d*)/) do
            "<a href=\"txmt://open?url=file://#{File.expand_path($1)}&line=#{$2}\">#{$1}:#{$2}</a> "
          end
        end
      end
    end
  end
end

Version data entries

128 entries across 128 versions & 21 rubygems

Version Path
rackjour-0.1.8 vendor/gems/gems/rspec-1.2.9/lib/spec/runner/formatter/text_mate_formatter.rb
middleman-0.10.14 vendor/gems/gems/rspec-1.2.9/lib/spec/runner/formatter/text_mate_formatter.rb
ageweke-rspec-1.2.9 lib/spec/runner/formatter/text_mate_formatter.rb
rspec-1.2.9 lib/spec/runner/formatter/text_mate_formatter.rb
rspec-1.2.7 lib/spec/runner/formatter/text_mate_formatter.rb
rspec-1.2.8 lib/spec/runner/formatter/text_mate_formatter.rb
mack-0.8.2 lib/gems/rspec-1.1.11/lib/spec/runner/formatter/text_mate_formatter.rb
mack-0.8.3.1 lib/gems/rspec-1.1.12/lib/spec/runner/formatter/text_mate_formatter.rb
mack-0.8.3 lib/gems/rspec-1.1.12/lib/spec/runner/formatter/text_mate_formatter.rb
picolena-0.0.99 app_generators/picolena/templates/vendor/plugins/rspec/lib/spec/runner/formatter/text_mate_formatter.rb
picolena-0.1.1 rails_plugins/rspec/lib/spec/runner/formatter/text_mate_formatter.rb
picolena-0.1.0 rails_plugins/rspec/lib/spec/runner/formatter/text_mate_formatter.rb
picolena-0.1.4 rails_plugins/rspec/lib/spec/runner/formatter/text_mate_formatter.rb
picolena-0.1.2 rails_plugins/rspec/lib/spec/runner/formatter/text_mate_formatter.rb
picolena-0.1.3 rails_plugins/rspec/lib/spec/runner/formatter/text_mate_formatter.rb
picolena-0.1.6 rails_plugins/rspec/lib/spec/runner/formatter/text_mate_formatter.rb
picolena-0.1.5 rails_plugins/rspec/lib/spec/runner/formatter/text_mate_formatter.rb
picolena-0.1.7 rails_plugins/rspec/lib/spec/runner/formatter/text_mate_formatter.rb
picolena-0.1.8 rails_plugins/rspec/lib/spec/runner/formatter/text_mate_formatter.rb
pictrails-0.5.0 vendor/plugins/rspec/lib/spec/runner/formatter/text_mate_formatter.rb