Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 901b9783a9
Fetching contributors…

Cannot retrieve contributors at this time

file 36 lines (32 sloc) 1.058 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36
require 'rake/testtask'

task :default => [ :compile, :test ]

Rake::TestTask.new do |t|
  t.libs << 'test'
  t.test_files = FileList['test/*test.rb']
end

begin
  require 'rake/extensiontask'
  Rake::ExtensionTask.new('version_sorter')
  task :test => :compile
rescue LoadError
  puts 'The rake-compiler gem is required'
end

begin
  require 'jeweler'
  Jeweler::Tasks.new do |gemspec|
    gemspec.name = "version_sorter"
    gemspec.summary = "Fast sorting of version strings"
    gemspec.description = "Fast sorting of version strings"
    gemspec.email = "chris@ozmm.org"
    gemspec.homepage = "http://github.com/defunkt/version_sorter"
    gemspec.authors = ["Chris Wanstrath", "K. Adam Christensen"]
    require 'lib/version_sorter/version'
    gemspec.version = VersionSorter::Version
    gemspec.require_paths = ["lib", "ext"]
    gemspec.files.include("ext")
    gemspec.extensions << 'ext/version_sorter/extconf.rb'
  end
rescue LoadError
  puts "Jeweler not available. Install it with: "
  puts "gem install jeweler -s http://gemcutter.org"
end
Something went wrong with that request. Please try again.