Sha256: 92c946d5fbc95ddce97b06e9ed2a4b95d9296360ad47e17ef9c455ce66aa4b53

Contents?: true

Size: 445 Bytes

Versions: 2

Compression:

Stored size: 445 Bytes

Contents

require "bundler/gem_tasks"
require "open-uri"

namespace :test do
  desc "Getting fresh page source data for specs"
  task :prepare do
    puts "Getting google search page..."
    page = open("https://www.google.com/search?hl=en&safe=off&q=site%3Aruby-lang.org&btnG=Search").read
    path = 'spec/data/google_search.html'
    File.open(path, 'w') {|f| f.write page}
    puts "Successfully saved google search result page into #{path}"
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
seo_info-0.0.2 Rakefile
seo_info-0.0.1 Rakefile