Skip to content

Commit

Permalink
Convert "console" into a command, instead of a rake task
Browse files Browse the repository at this point in the history
  • Loading branch information
weppos committed Jan 7, 2017
1 parent 3c0281e commit b6c8489
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 6 deletions.
6 changes: 0 additions & 6 deletions Rakefile
Expand Up @@ -27,12 +27,6 @@ end
CLOBBER.include "yardoc"


desc "Open an irb session preloaded with this library"
task :console do
sh "irb -rubygems -I lib -r public_suffix.rb"
end


desc "Downloads the Public Suffix List file from the repository and stores it locally."
task :"update-list" do
require "net/http"
Expand Down
14 changes: 14 additions & 0 deletions bin/console
@@ -0,0 +1,14 @@
#!/usr/bin/env ruby

require "bundler/setup"
require "public_suffix"

# You can add fixtures and/or initialization code here to make experimenting
# with your gem easier. You can also use a different console, if you like.

# (If you use this, don't forget to add pry to your Gemfile!)
# require "pry"
# Pry.start

require "irb"
IRB.start

0 comments on commit b6c8489

Please sign in to comment.