Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

A huge change in RDoc.

Started to use latest RDoc package instead of Rake one.
  • Loading branch information...
commit 6f3709f43f368da5f893305b34b7302672d11619 1 parent 9691110
@luislavena luislavena authored
Showing with 37 additions and 40 deletions.
  1. +17 −26 History.txt
  2. +7 −7 lib/rake/extensioncompiler.rb
  3. +13 −7 tasks/rdoc.rake
View
43 History.txt
@@ -1,70 +1,61 @@
-== 0.4.0 2009-04-03
-
-=== Enhancements
+=== 0.4.0 2009-04-03
+* Enhancements
* Bended the convention for extension folder.
Defining <tt>ext_dir</tt> for custom extension location.
- Rake::ExtensionTask.new('my_extension') do |ext|
- ext.ext_dir = 'custom/location' # look into custom/location
- end # instead of ext/my_extension
+ Rake::ExtensionTask.new('my_extension') do |ext|
+ ext.ext_dir = 'custom/location' # look into custom/location
+ end # instead of ext/my_extension
* Better detection of mingw target across Linux/OSX.
Exposed it as Rake::ExtensionCompiler
-
* Display list of available tasks when calling rake-compiler script
-
* Track Ruby full versioning (x.y.z).
This will help the compilation of extensions targetting 1.8.6/7 and 1.9.1
-=== Bugfixes
-
+* Bugfixes
* Better output of Rake development tasks (Thanks to Luis Parravicini).
* Proper usage of Gem::Platform for native gems (Thanks to Dirkjan Bussink).
* Don't use autoload for YAML (present problems with Ruby 1.9.1).
-== 0.3.1 / 2009-01-09
-
-=== Enhancements
+=== 0.3.1 / 2009-01-09
+* Enhancements
* Download cross-ruby source code using HTTP instead of FTP.
* Disabled Tcl/Tk extension building on cross-ruby (helps with 1.9).
-=== Bugfixes
-
+* Bugfixes
* Workaround bug introduced by lack of Gem::Specification cloning. Fixes DM LH #757.
* Use proper binary extension on OSX (reported by Dirkjan Bussink).
* Ensure lib/binary task is defined prior clear of requisites.
-== 0.3.0 / 2008-12-07
-
-=== New features
+=== 0.3.0 / 2008-12-07
+* New features
* Let you specify the Ruby version used for cross compilation instead
of default one.
rake cross compile RUBY_CC_VERSION=1.8
-=== Enhancements
-
+* Enhancements
* Properly update rake-compiler configuration when new version is installed.
* Automated release process to RubyForge, yay!
-=== Bugfixes
-
+* Bugfixes
* Corrected documentation to reflect the available options
-== 0.2.1 / 2008-11-30
+=== 0.2.1 / 2008-11-30
-=== New features
+* New features
* Allow cross compilation (cross compile) using mingw32 on Linux or OSX.
* Allow packaging of gems for Windows on Linux or OSX.
-=== Enhancements
+* Enhancements
* Made generation of extensions safe and target folders per-platform
-=== Bugfixes
+* Bugfixes
* Ensure binaries for the specific platform are copied before packaging.
View
14 lib/rake/extensioncompiler.rb
@@ -1,13 +1,13 @@
#!/usr/bin/env ruby
-#
-# HACK: Lousy API design, sue me. At least works ;-)
-#
-# Define a series of helpers to aid in search and usage of MinGW (GCC) Compiler
-# by gem developer/creators.
-#
-
module Rake
+
+ #
+ # HACK: Lousy API design, sue me. At least works ;-)
+ #
+ # Define a series of helpers to aid in search and usage of MinGW (GCC) Compiler
+ # by gem developer/creators.
+ #
module ExtensionCompiler
# return the host portion from the installed MinGW
def self.mingw_host
View
20 tasks/rdoc.rake
@@ -1,9 +1,15 @@
-require 'rake/rdoctask'
+begin
+ require 'rdoc/task'
+rescue LoadError
+ warn "RDoc 2.4.3+ gem is required, please install it (gem install rdoc)."
+end
-DOC = Rake::RDocTask.new(:rdoc) do |rd|
- rd.title = 'rake-compiler -- Documentation'
- rd.main = 'README.rdoc'
- rd.rdoc_dir = 'doc/api'
- rd.options << '--main' << 'README.rdoc' << '--title' << 'rake-compiler -- Documentation'
- rd.rdoc_files.include %w(README.rdoc LICENSE.txt History.txt lib/**/*.rb)
+if defined?(RDoc) then
+ DOC = RDoc::Task.new(:rdoc) do |rd|
+ rd.title = 'rake-compiler -- Documentation'
+ rd.main = 'README.rdoc'
+ rd.rdoc_dir = 'doc/api'
+ rd.options << '--line-numbers' << '--main' << 'README.rdoc' << '--title' << 'rake-compiler -- Documentation'
+ rd.rdoc_files.include %w(README.rdoc LICENSE.txt History.txt lib/**/*.rb)
+ end
end
Please sign in to comment.
Something went wrong with that request. Please try again.