Sha256: 95a14a55324ffc1de9c993363021a48c2d65a9f49f5139218fb0409d970181a9

Contents?: true

Size: 725 Bytes

Versions: 3

Compression:

Stored size: 725 Bytes

Contents

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

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
patentscope-0.0.5 Rakefile
patentscope-0.0.4 Rakefile
patentscope-0.0.2 Rakefile