Sha256: 5e8a07e499a2d24d4467158e2bef4c12db237c3286db85df46f66468678075a8

Contents?: true

Size: 270 Bytes

Versions: 3

Compression:

Stored size: 270 Bytes

Contents

module ErrorLocator
  def self.call(env)
    req = Rack::Request.new(env)
    line = req.params['line']
    filename = line[/[^:]+[:]\d+/]
    f = File.expand_path(filename)
    `$EDITOR "#{f}"`
    [200, {}, [] ]
  end
end

require 'error-locator/action_dispatch_ext'

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
error-locator-0.0.3 lib/error-locator.rb
error-locator-0.0.2 lib/error-locator.rb
error-locator-0.0.1 lib/error-locator.rb