Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Adding a new simple rake console task (opens an irb console with the gem

lib automatically required)

Based on advice from Ernie Miller here, http://tinyurl.com/q56hpk9
  • Loading branch information...
commit 92f9d02693f63ccea2187917fc72fe6b209c3296 1 parent 0d576d3
@matthutchinson authored
Showing with 11 additions and 0 deletions.
  1. +11 −0 Rakefile
View
11 Rakefile
@@ -3,6 +3,17 @@ gem 'rdoc'
# default rake
task :default => [:test]
+# helpful console
+desc "Irb console that requires this gem"
+task :console do
+ require 'irb'
+ require 'irb/completion'
+ require 'acts_as_textcaptcha'
+ ARGV.clear
+ IRB.start
+end
+
+
# bundler tasks
require 'bundler'
Bundler::GemHelper.install_tasks
Please sign in to comment.
Something went wrong with that request. Please try again.