Sha256: 945d29205f162d99f6da83ecb5e12a17e1aed85fc9222400404d38c154b49a11

Contents?: true

Size: 1.99 KB

Versions: 1

Compression:

Stored size: 1.99 KB

Contents

require 'rubygems'
require 'rake'

begin
  require 'jeweler'
  require 'colored'
  
  Jeweler::Tasks.new do |gem|
    gem.name = "xpcomcore-rubygem"
    gem.executables = %w[xpcomcore-rubygem-install xpcomcore-firefox]
    gem.summary = %Q{Gem to allow for using XPCOMCore via RubyGems}
    gem.description = %Q{Gem to allow for using XPCOMCore via RubyGems}
    gem.email = "gabriel.gironda@gmail.com"
    gem.homepage = "http://github.com/gabrielg/xpcomcore-rubygem"
    gem.authors = ["ggironda"]
    gem.files = (gem.files + FileList["xpcomcore/**/*"]).uniq
    gem.post_install_message = <<-EOF;

#{"".ljust(80).red_on_blue.bold}
#{"PAY HEED TO THIS ANNOYING MESSAGE".center(80).red_on_blue.bold}
#{"".ljust(80).red_on_blue.bold}

The XPCOMCore gem has been installed but you still need to complete installation
by hand. Run the command #{'xpcomcore-rubygem-install'.underline.bold} without options to get
usage information on using it to install the bootstrapper code for this gem.

EOF

    gem.add_dependency "sys-uname"
    gem.add_development_dependency "colored"
  end
  Jeweler::GemcutterTasks.new
rescue LoadError
  puts "Jeweler (or a dependency) not available. Install it with: sudo gem install jeweler"
end

require 'rake/testtask'
Rake::TestTask.new(:test) do |test|
  test.libs << 'lib' << 'test'
  test.pattern = 'test/**/*_test.rb'
  test.verbose = true
end

begin
  require 'rcov/rcovtask'
  Rcov::RcovTask.new do |test|
    test.libs << 'test'
    test.pattern = 'test/**/*_test.rb'
    test.verbose = true
  end
rescue LoadError
  task :rcov do
    abort "RCov is not available. In order to run rcov, you must: sudo gem install spicycode-rcov"
  end
end

task :test => :check_dependencies

task :default => :test

require 'rake/rdoctask'
Rake::RDocTask.new do |rdoc|
  if File.exist?('VERSION')
    version = File.read('VERSION')
  else
    version = ""
  end

  rdoc.rdoc_dir = 'rdoc'
  rdoc.title = "xpcomcore-rubygem #{version}"
  rdoc.rdoc_files.include('README*')
  rdoc.rdoc_files.include('lib/**/*.rb')
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
xpcomcore-rubygem-0.3.2 Rakefile