Sha256: 64976517b5dadcc0b079d141ab0debde0915d44bd85feb6bc96b18d59df07d4a

Contents?: true

Size: 624 Bytes

Versions: 1

Compression:

Stored size: 624 Bytes

Contents

require 'rubygems'

begin
  require 'bundler/setup'
rescue LoadError => e
  abort e.message
end

require 'rake'

require 'rubygems/tasks'
Gem::Tasks.new

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

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

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

namespace :update do
  Dir['data/ore/templates/*'].each do |template|
    name = File.basename(template)

    if File.exist?(File.join(template,'.git'))
      desc "Updates the #{name} template"
      task name do
        Dir.chdir(template) { sh 'git pull' }
        sh 'git', 'commit', template
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ore-0.11.0 Rakefile