Sha256: d22550d72c691aa513dc4fb8a5cb83623493f851da3e2dad93ebf2476755dec2

Contents?: true

Size: 437 Bytes

Versions: 2

Compression:

Stored size: 437 Bytes

Contents

require 'bundler'
Bundler::GemHelper.install_tasks

require 'rspec/core/rake_task'
RSpec::Core::RakeTask.new(:spec)

task :test => :spec
task :default => :spec

namespace :cache do
  require 'mlb'
  desc "Update the teams file cache"
  task :update do
    doc = MLB::Team.results_from_freebase(true)
    File.open('cache/teams.json', 'w') do |file|
      file.write(doc.body)
    end
  end
end

require 'yard'
YARD::Rake::YardocTask.new

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
mlb-0.6.3 Rakefile
mlb-0.6.2 Rakefile