Sha256: 4420d4e7130d21f4dba77e6ce0860ab7482292ccb65311e1d91acb7e9ba98bca

Contents?: true

Size: 1.5 KB

Versions: 3

Compression:

Stored size: 1.5 KB

Contents

require 'rubygems'
require 'rake'
require 'rake/clean'
require 'rake/testtask'

CLEAN << FileList[ 'ext/Makefile', 'ext/*.so', 'ext/*.o' ]

begin
  require 'jeweler'
rescue LoadError
  puts "Jeweler (or a dependency) not available. Install it with: gem install jeweler"
end

Jeweler::Tasks.new do |gem|
  gem.name        = 'idn-ruby'
  gem.summary     = 'LibIDN Ruby Bindings.'
  gem.description = %q{
    Ruby Bindings for the GNU LibIDN library, an implementation of the
    Stringprep, Punycode and IDNA specifications defined by the IETF
    Internationalized Domain Names (IDN) working group.

    Included are the most important parts of the Stringprep, Punycode
    and IDNA APIs like performing Stringprep processings, encoding to
    and decoding from Punycode strings and converting entire domain names
    to and from the ACE encoded form.
  }
  gem.email       = 'deepfryed@gmail.com'
  gem.homepage    = 'http://github.com/deepfryed/idn-ruby'
  gem.authors     = ['Erik Abele', 'Bharanee Rathna']
  gem.files       = FileList['CHANGES', 'LICENSE', 'NOTICE', 'Rakefile', 'README', 'ext/*.{c,h}']
  gem.extensions  = FileList[ 'ext/**/extconf.rb' ]
  gem.test_files  = FileList[ 'test/*.rb' ]
end

Jeweler::GemcutterTasks.new

task :compile do
  Dir.chdir('ext') do
    system('ruby extconf.rb && make') or raise 'failed to compile extension'
  end
end

Rake::TestTask.new(:test) do |test|
  test.libs    << 'ext'
  test.pattern = 'test/*.rb'
  test.verbose = true
end

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

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
idn-ruby-0.1.5 Rakefile
idn-ruby-0.1.4 Rakefile
idn-ruby-0.1.2 Rakefile