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
jnstq-acts_as_sms-0.1.0 test/vendor/plugins/rspec/lib/spec/runner/formatter/text_mate_formatter.rb
jnstq-acts_as_sms-0.1.1 test/vendor/plugins/rspec/lib/spec/runner/formatter/text_mate_formatter.rb
jnstq-acts_as_sms-0.1.3 test/vendor/plugins/rspec/lib/spec/runner/formatter/text_mate_formatter.rb
jnstq-acts_as_sms-0.1.4 test/vendor/plugins/rspec/lib/spec/runner/formatter/text_mate_formatter.rb
newbamboo-evented-rspec-1.1.12 lib/spec/runner/formatter/text_mate_formatter.rb
newbamboo-rspec-1.1.12 lib/spec/runner/formatter/text_mate_formatter.rb
rspec-instructure-1.3.3 lib/spec/runner/formatter/text_mate_formatter.rb
radiant-1.0.0 ruby-debug/ruby/1.8/gems/rspec-1.3.2/lib/spec/runner/formatter/text_mate_formatter.rb
rspec-1.3.2 lib/spec/runner/formatter/text_mate_formatter.rb
rspec-1.3.1 lib/spec/runner/formatter/text_mate_formatter.rb
rspec-1.3.1.rc lib/spec/runner/formatter/text_mate_formatter.rb
merb-core-1.1.3 spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/lib/spec/runner/formatter/text_mate_formatter.rb
merb-core-1.1.2 spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/lib/spec/runner/formatter/text_mate_formatter.rb
merb-core-1.1.1 spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/lib/spec/runner/formatter/text_mate_formatter.rb
merb-core-1.1.0 spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/lib/spec/runner/formatter/text_mate_formatter.rb
merb-core-1.1.0.rc1 spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/lib/spec/runner/formatter/text_mate_formatter.rb
rspec-1.3.0 lib/spec/runner/formatter/text_mate_formatter.rb
hubbub-0.0.11 lib/vendor/plugins/rspec/lib/spec/runner/formatter/text_mate_formatter.rb
hubbub-0.0.10 lib/vendor/plugins/rspec/lib/spec/runner/formatter/text_mate_formatter.rb
hubbub-0.0.9 lib/vendor/plugins/rspec/lib/spec/runner/formatter/text_mate_formatter.rb