Sha256: 7bf1f6e5f34680cbfffd9ff01d016035adc89ed7864575fdc2aeee72e759e620

Contents?: true

Size: 484 Bytes

Versions: 1

Compression:

Stored size: 484 Bytes

Contents

require "rubygems"
require "rtask"

RTask.new

desc "Run the specs"
task :spec do
  sh "bacon"
end

desc 'Update forecastmap.rb'
task :forecastmap do
  # download forecastmap.xml
  url = "http://weather.livedoor.com/forecast/rss/forecastmap.xml"
  sh "wget -O forecastmap.xml #{url}"
  # generate
  out = "lib/weatherhacks/forecastmap.rb"
  xsl = "misc/forecastmap.xsl"
  sh "xsltproc -o #{out} #{xsl} forecastmap.xml"
  # remove
  sh "rm forecastmap.xml"
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
weatherhacks-0.2.0 Rakefile