0.0
No commit activity in last 3 years
No release in over 3 years
Check the homepage because I can't describe it probably here.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
 Dependencies

Development

Runtime

 Project Readme

Backtrace_Array

A Ruby gem to alter structure of a backtrace:

Original Backtrace:

[ String, String, String ]

New Array:

[
   [ unique file 1, [ [line, code], [line, code], ... ] ]
   [ unique file 2, [ [line, code], [line, code], ... ] ]
   [ unique file 3, [ [line, code], [line, code], ... ] ]
  
]

This lets you present it in your views as:

  unique file 1
  line: code
  line: code
  line: code

unique file 2 line: code line: code line: code

Installation

gem install Backtrace_Array

Usage

require "Backtrace_Array"

# Pass it an Array
Backtrace_Array my_exception.backtrace

# ... or a String
Backtrace_Array %~
  file1:1: in `new'
  file2:2: in `<main>'
  file3:3: in `eval'
~

Run Tests

git clone git@github.com:da99/Backtrace_Array.git
cd Backtrace_Array
bundle update
bundle exec bacon spec/lib/main.rb

"I hate writing."

If you know of existing software that makes the above redundant, please tell me. The last thing I want to do is maintain code.