Seeing Is Believing records the result of every line of Ruby code.
The editor integrations allow you to press a button while editing a Ruby file, and have it passed through Seeing Is Believing, which will add an annotation (comment) after each line, showing what it evaluated to.
This repository builds the integration code for each of the editors. Well... currently it doesn't do shit, but eventually it will, assuming I succeed.
- Atom editor, and current integration
- Sublime Text 2 and 3 editors, and current integration
- Textmate 1/2 editors, and current integration for
- Vim editor. There are two integrations, but I didn't write either of them.
- Emacs editor. Currently, integration is performed via this script:
(defun seeing-is-believing () "Replace the current region (or the whole buffer, if none) with the output of seeing_is_believing." (interactive) (let ((beg (if (region-active-p) (region-beginning) (point-min))) (end (if (region-active-p) (region-end) (point-max)))) (shell-command-on-region beg end "seeing_is_believing" nil 'replace)))
I literally had a student tell me that installing SiB made her cry and wonder if she was cut out for programming :(
So, to make it not a total PITA to install this, I'm packaging Ruby along with it. This way, if your editor has a package manager, you can just tell it to install the thing, and you won't have to deal with the headache of hooking it into your environment.
Ruby packaging is done with Traveling Ruby.
- Traveling Ruby homepage
- The tutorials
- Tutorial 1 hello, world
- Tutorial 2 gem dependencies
- Tutorial 3 native extensions
- Tutorial 4 creating packages for Windows
- Ruby Installer for Windows integration.
- Traveling Ruby Binaries: