README in flyrb-1.0.0.a vs README in flyrb-1.0.0.b
- old
+ new
@@ -2,15 +2,15 @@
previously utility_belt by Giles Bowkett (and many others): http://utilitybelt.rubyforge.org
== Why Hijack The Project?
-Giles isn't maintaining it anymore and it didn't work with Ruby 1.9. Since I depend on the library quite a bit, I've decided to maintain a fork myself and others.
+Giles isn't maintaining it anymore and it didn't work with Ruby 1.9. Since I depend on the library quite a bit, I've decided to maintain a fork for myself and others.
== Why Rename It?
-Well Giles owns the namespace on Gemcutter and various other folks are maintaining their own forks. I think it'll be less confusing to simply leave utility_belt in 1.8 land and move forward with Flyrb in 1.9.
+Well Giles owns the namespace on Gemcutter and various other folks are maintaining their own forks. I think it'll be less confusing to simply leave utility_belt in 1.8 land and move forward with flyrb in 1.9.
== DESCRIPTION
Flyrb is a grab-bag of tricks, tools, techniques, trifles, and toys for IRB, including convenience methods, language patches, and useful extensions. It also includes a couple command-line widgets. Its primary inspirations were an awesome gem called Wirble and a blog post by Amy Hoy called "Secrets Of The Rails Console Ninjas".
@@ -22,10 +22,11 @@
== FEATURES
* Interactively edit IRB code in your preferred text editor
* Read from and write to OS X clipboard
+* Gist your code with one command
* Post your code to Pastie with one command (OS X only)
* Kick-ass Unix-style history buffer
* Write command history to file or vi
* Grep classes and methods for strings
* Verbosity controls for regular IRB and Rails console
@@ -77,11 +78,11 @@
edit_interactively("/the/path/to/my/editor")
If you're wondering why the method name is so ridiculously long, there's a story there:
-http://gilesbowkett.blogspot.com/2007/12/flyrb-vs-rails.html
+http://gilesbowkett.blogspot.com/2007/12/utility-belt-vs-rails.html
== Read from and write to OS X or Windows clipboard
In order to use Clipboard on Windows you must install the 'win32-clipboard' gem.
@@ -91,13 +92,29 @@
To write:
Clipboard.write("something")
+== Gist your code
+
+You must first equip Flyrb with gist in your .irbrc:
+
+ Flyrb.equip(:gist)
+
+This line will also automatically equip the Clipboard, which is required to use gist.
+
+First copy come code into your clipboard, or put it there with the Clipboard.write() class method. Then use the command:
+
+ gist
+
+Note that this method currently also sets the gist filename to fly.rb which triggers Ruby syntax highlighting in your gist. The optional second argument to gist is a filename which GitHub will interpret for syntax highlighting.
+
+ gist 'PS1=\[\033[0;36m\]\w\[\033[0;33m\]$(parse_git_branch)\[\033[0;36m\] $> \[\033[0;37m\]', ".profile"
+
== Post your code to Pastie with one command (OS X and Windows only)
-You must first equip the Flyrb with pastie in your .irbrc:
+You must first equip Flyrb with pastie in your .irbrc:
Flyrb.equip(:pastie)
This line will also automatically equip the Clipboard, which is required to use pastie.
@@ -325,10 +342,11 @@
== LICENSE
(The MIT License)
- Copyright (c) 2006-2007 Giles Bowkett
+ Copyright (c) 2010 John Trupiano
+ Portions Copyright (c) 2006-2007 Giles Bowkett
Portions Copyright (c) 2006-2007 Ben Bleything
Portions Copyright (c) 2006-2007 Reginald Braithwaite
Portions Copyright (c) 2006-2007 Gregory Brown
Portions Copyright (c) 2006-2007 Jamis Buck
Portions Copyright (c) 2006-2007 Mike Clark