-
Notifications
You must be signed in to change notification settings - Fork 19
/
Rakefile
32 lines (25 loc) · 803 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
28
29
30
31
32
# frozen_string_literal: true
require "bundler/gem_tasks"
require "rspec/core/rake_task"
require "cucumber/rake/task"
require "rubocop/rake_task"
require "rake/dsl_definition"
require "rake"
require "rake/extensiontask"
require "rspec"
RSpec::Core::RakeTask.new(:spec) do |rspec|
rspec.pattern = FileList["spec/**/*_spec.rb"]
end
Cucumber::Rake::Task.new(:features)
Rake::ExtensionTask.new("damerau_levenshtein") do |extension|
extension.ext_dir = "ext/damerau_levenshtein"
extension.lib_dir = "lib/damerau-levenshtein"
end
Rake::Task[:spec].prerequisites << :compile
Rake::Task[:features].prerequisites << :compile
RuboCop::RakeTask.new
task default: %i[rubocop spec]
desc "open an irb session preloaded with this gem"
task :console do
sh "irb -r pp -r ./lib/damerau-levenshtein.rb"
end