Allow the Rakefile to be used in isolation for test runs
This commit is contained in:
parent
fe1e3d563c
commit
0907a5e7a1
|
@ -24,7 +24,7 @@ end
|
||||||
desc "Build a file pointing at the database"
|
desc "Build a file pointing at the database"
|
||||||
task :default do
|
task :default do
|
||||||
mime_database_path = locate_mime_database
|
mime_database_path = locate_mime_database
|
||||||
target_dir = "#{ENV.fetch("RUBYARCHDIR")}/mimemagic"
|
target_dir = "#{ENV.fetch("RUBYARCHDIR", "../lib")}/mimemagic"
|
||||||
mkdir_p target_dir
|
mkdir_p target_dir
|
||||||
|
|
||||||
open("#{target_dir}/path.rb", "w") do |f|
|
open("#{target_dir}/path.rb", "w") do |f|
|
||||||
|
|
Loading…
Reference in New Issue