diff --git a/benchmark/fixtures/big.xml.gz b/benchmark/fixtures/big.xml.gz new file mode 100644 index 0000000..fde8a8c Binary files /dev/null and b/benchmark/fixtures/big.xml.gz differ diff --git a/task/fixtures.rake b/task/fixtures.rake index 06ccf43..9fb368e 100644 --- a/task/fixtures.rake +++ b/task/fixtures.rake @@ -1,9 +1,6 @@ -desc 'Generates large XML fixtures' -task :fixtures do - dest = File.expand_path('../../benchmark/fixtures/big.xml.gz', __FILE__) - - unless File.file?(dest) - sh "wget http://downloads.yorickpeterse.com/files/big_xml_file.xml.gz -O #{dest}" - sh "gunzip #{dest}" - end +rule '.xml' => '.xml.gz' do |task| + sh "gunzip #{task.source} --keep" end + +desc 'Generates large XML fixtures' +task :fixtures => ['benchmark/fixtures/big.xml']