D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
proc
/
thread-self
/
root
/
usr
/
share
/
gems
/
gems
/
did_you_mean-1.2.0
/
Filename :
Rakefile
back
Copy
require 'bundler/gem_tasks' require 'rake/testtask' Rake::TestTask.new do |task| task.libs << "test" task.test_files = Dir['test/**/*_test.rb'].reject {|path| /(experimental)/ =~ path } task.verbose = true task.warning = true end Rake::TestTask.new("test:experimental") do |task| task.libs << "test" task.pattern = 'test/experimental/**/*_test.rb' task.verbose = true task.warning = true task.ruby_opts << "-rdid_you_mean/experimental" end task default: %i(test test:experimental) namespace :test do namespace :accuracy do desc "Download Wiktionary's Simple English data and save it as a dictionary" task :prepare do sh 'ruby evaluation/dictionary_generator.rb' end end desc "Calculate accuracy of the gems' spell checker" task :accuracy do if !File.exist?("evaluation/dictionary.yml") puts 'Generating dictionary for evaluation:' Rake::Task["test:accuracy:prepare"].execute puts "\n" end sh 'ruby evaluation/calculator.rb' end end namespace :benchmark do desc "Measure memory usage by the did_you_mean gem" task :memory do sh 'ruby benchmark/memory_usage.rb' end end
Name
Size
Last Modified
Owner
Permissions
Actions
benchmark
Dir
December 09 2024 3:40:16
root
0755
doc
Dir
December 09 2024 3:40:16
root
0755
evaluation
Dir
December 09 2024 3:40:16
root
0755
lib
Dir
December 09 2024 3:40:16
root
0755
test
Dir
December 09 2024 3:40:16
root
0755
CHANGELOG.md
15.175
KB
April 05 2021 11:46:37
root
0644
Gemfile
0.167
KB
April 05 2021 11:46:37
root
0644
LICENSE.txt
1.051
KB
April 05 2021 11:46:37
root
0644
README.md
3.163
KB
April 05 2021 11:46:37
root
0644
Rakefile
1.141
KB
April 05 2021 11:46:37
root
0644
did_you_mean.gemspec
4.024
KB
December 06 2024 2:18:45
root
0644
2017 © D7net | D704T team