Sha256: fbfdd212e7871cd508e34f53c9d37ac19ce96aaeddc038ee377cec3f9fb129ca

Contents?: true

Size: 1.36 KB

Versions: 3

Compression:

Stored size: 1.36 KB

Contents

require 'rubygems'
require 'rake'
require 'rake/rdoctask'
require 'spec/rake/spectask'

begin
  require 'jeweler'
  Jeweler::Tasks.new do |gem|
    gem.name = "chess_icu"
    gem.summary = "For parsing files of chess tournament data into ruby classes."
    gem.homepage = "http://github.com/sanichi/chess_icu"
    gem.authors = ["Mark Orr"]
    gem.email = "mark.j.l.orr@googlemail.com"
    gem.files = FileList['[A-Z]*', '{lib,spec}/**/*', '.gitignore']
    gem.has_rdoc = true
  end
rescue LoadError
  puts "Jeweler not available. Install it with: sudo gem install technicalpickles-jeweler -s http://gems.github.com"
end

task :default => :spec

Spec::Rake::SpecTask.new(:spec) do |spec|
  spec.libs << 'lib' << 'spec'
  spec.spec_files = FileList['spec/**/*_spec.rb']
  spec.spec_opts = ['--colour --format nested --loadby mtime --reverse']
end

Spec::Rake::SpecTask.new(:fcsv) do |spec|
  spec.libs << 'lib' << 'spec'
  spec.spec_files = FileList['spec/tournament_fcsv_spec.rb']
  spec.spec_opts = ['--colour --format nested']
end

Rake::RDocTask.new(:doc) do |doc|
  if File.exist?('VERSION.yml')
    config = YAML.load(File.read('VERSION.yml'))
    version = "#{config[:major]}.#{config[:minor]}.#{config[:patch]}"
  else
    version = ""
  end

  doc.rdoc_dir = 'doc'
  doc.title = "ChessIcu #{version}"
  doc.rdoc_files.include('README*')
  doc.rdoc_files.include('lib/**/*.rb')
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
sanichi-chess_icu-0.2.0 Rakefile
sanichi-chess_icu-0.2.1 Rakefile
sanichi-chess_icu-0.2.4 Rakefile