Skip to content

Commit

Permalink
Added missing require "stringio" statement
Browse files Browse the repository at this point in the history
  • Loading branch information
AndyObtiva committed Jun 28, 2020
1 parent 0af9e76 commit 7383b73
Showing 1 changed file with 4 additions and 10 deletions.
14 changes: 4 additions & 10 deletions Rakefile
Expand Up @@ -19,19 +19,13 @@ Jeweler::Tasks.new do |gem|
gem.license = "MIT"
gem.summary = %Q{Ruby library for improved puts debugging, automatically displaying bonus useful information such as source line number and source code.}
gem.description = <<-MULTI
Yes, many of us avoid debuggers like the plague and clamp on to our puts statements like an umbrella in a stormy day. Why not make it official and have puts debugging become its own perfectly legitimate thing?!!
Enter puts_debuggerer. A guilt-free puts debugger Ruby gem FTW!
In other words, puts_debuggerer is a Ruby library for improved puts debugging, automatically displaying bonus useful information such as source line number and source code.
Partially inspired (only partially ;) by this blog post:
https://tenderlovemaking.com/2016/02/05/i-am-a-puts-debuggerer.html
(Credit to Tenderlove.)
Debuggers are great! They help us troubleshoot complicated programming problems by inspecting values produced by code, line by line. They are invaluable when trying to understand what is going on in a large application composed of thousands or millions of lines of code.
In day-to-day test-driven development and simple debugging though, a puts statement can be a lot quicker in revealing what is going on than halting execution completely just to inspect a single value or a few. This is certainly true when writing the simplest possible code that could possibly work, and running a test every few seconds or minutes. Problem is you need to locate puts statements in large output logs, know which methods were invoked, find out what variable names are being printed, and see nicely formatted output. Enter puts_debuggerer. A guilt-free puts debugging Ruby gem FTW that prints file names, line numbers, code statements, and formats output nicely courtesy of awesome_print.
Partially inspired by this blog post: https://tenderlovemaking.com/2016/02/05/i-am-a-puts-debuggerer.html (Credit to Tenderlove.)
MULTI
gem.email = "andy.am@gmail.com"
gem.authors = ["Andy Maleh"]
gem.files = Dir['lib/**/*.rb']
gem.files = Dir['VERSION', 'LICENSE.txt', 'README.md', 'lib/**/*.rb']
# dependencies defined in Gemfile
end
Jeweler::RubygemsDotOrgTasks.new
Expand Down

0 comments on commit 7383b73

Please sign in to comment.