Rakefile in monetize-1.3.1 vs Rakefile in monetize-1.4.0
- old
+ new
@@ -1,6 +1,18 @@
-require "bundler/gem_tasks"
+require 'bundler/gem_tasks'
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