0.0
No commit activity in last 3 years
No release in over 3 years
Tiny rake tasks to manage extconf.rb
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.3
>= 0
 Project Readme

ExtconfTask

Tiny rake tasks to manage extconf.rb.

Installation

Add this line to your application's Gemfile:

gem 'extconf-task'

And then execute:

$ bundle

Or install it yourself as:

$ gem install extconf-task

Usage

To define tasks to manage extconf.rb, we write in Rakefile

require "extconf_task"
ExtconfTask.new

Then, we can use some tasks, which are displayed by the following command;

rake -T

Utility methods

extconf-task includes utility methods to be used in extconf.rb.

The method "find_header_in_gem" provides search direcories of a gem package for a header file. The following code is the example of extconf.rb to find "ruby_mpfr.h" from directories of gem "ruby-mpfr".

require "extconf_task/mkmf_utils"

find_header_in_gem("ruby_mpfr.h", "ruby-mpfr")

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request