forked from derniercri/quickbooks-ruby
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Rakefile
27 lines (21 loc) · 551 Bytes
/
Rakefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
require 'rubygems'
require 'bundler'
require 'bundler/gem_tasks'
Bundler.setup
require 'rake'
require 'rspec'
require 'rspec/core/rake_task'
$LOAD_PATH.unshift File.expand_path('lib', __dir__)
require 'quickbooks-ruby'
task default: :spec
desc 'Run all specs'
RSpec::Core::RakeTask.new(:spec) do |t|
t.pattern = 'spec/**/*_spec.rb'
end
desc 'Open an irb (or pry) session preloaded with Quickbooks'
task :console do
require 'pry'
sh %{pry -I lib -r quickbooks-ruby.rb}
rescue LoadError => _
sh 'irb -rubygems -I lib -r quickbooks.rb'
end