Skip to content

Commit

Permalink
Merge pull request #59 from aredondo/add-rake-console-task
Browse files Browse the repository at this point in the history
Add rake console task
  • Loading branch information
semmons99 committed Sep 11, 2015
2 parents 3016bc1 + 958de42 commit 24211ce
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,4 @@
- Add Rubocop config to project
- Reformat code to adapt to Rubocop guidelines
- Add config setting to always enforce currency delimiters
- Add rake console task
12 changes: 12 additions & 0 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,15 @@ require 'rspec/core/rake_task'
task default: :spec

RSpec::Core::RakeTask.new

task :environment do
require_relative 'lib/monetize'
end

desc 'Start a console with library loaded'
task console: :environment do
require 'irb'
require 'irb/completion'
ARGV.clear
IRB.start
end

0 comments on commit 24211ce

Please sign in to comment.