Rakefile
require 'bundler/gem_tasks'
require 'rspec/core/rake_task'
require 'dotenv/tasks'
desc 'Run RSpec examples (all)'
RSpec::Core::RakeTask.new(:spec)
namespace :spec do
desc 'Run RSpec core examples'
RSpec::Core::RakeTask.new(:core) do |task|
task.pattern = "./spec/**/*_spec.rb"
task.rspec_opts = '--tag core'
end
desc 'Run additional RSpec examples (e.g., integration specs)'
RSpec::Core::RakeTask.new(:more) do |task|
task.pattern = "./spec/**/*_spec.rb"
task.rspec_opts = '--tag more'
end
end
task console: :dotenv do
require 'irb'
require 'irb/completion'
require 'patentscope'
Patentscope.configure_from_env
ARGV.clear
IRB.start
end
task default: :spec
task test: :spec