Skip to content
Browse files

Add some test harness to latest changes

And also update History to reflect the new change in codebase
  • Loading branch information...
1 parent 9b14b44 commit 11ce92d8cfb8596a3d8980e17a6fc67e3589d81d @luislavena luislavena committed
Showing with 17 additions and 1 deletion.
  1. +8 −0 History.txt
  2. +8 −0 features/compile.feature
  3. +1 −1 lib/rake/extensiontask.rb
View
8 History.txt
@@ -1,3 +1,11 @@
+=== (In Git)
+
+* Enhancements:
+ * Invocation from command line now support extra options similar to RubyGems.
+ Closes #4 from pull #47 [jonforums]
+
+ $ rake compile -- --with-opt-dir=/opt/local
+
=== 0.7.9 / 2011-06-08
* Enhancements:
View
8 features/compile.feature
@@ -13,6 +13,14 @@ Feature: Compile C code into Ruby extensions.
And binary extension 'extension_one' do exist in 'lib'
And 'tmp' folder is created
+ Scenario: compile an extension with extra options
+ Given a safe project directory
+ And a extension named 'extension_one'
+ And 'tmp' folder is deleted
+ When rake task 'compile -- --with-opt-dir=/opt/local' is invoked
+ Then rake task 'compile -- --with-opt-dir=/opt/local' succeeded
+ And output of rake task 'compile -- --with-opt-dir=/opt/local' contains /with-opt-dir/
+
Scenario: not recompile unmodified extension
Given a safe project directory
And a extension named 'extension_one'
View
2 lib/rake/extensiontask.rb
@@ -142,7 +142,7 @@ def define_compile_tasks(for_platform = nil, ruby_ver = RUBY_VERSION)
# add any extra command line options
unless extra_options.empty?
- cmd.push('--', *extra_options)
+ cmd.push(*extra_options)
end
chdir tmp_path do

0 comments on commit 11ce92d

Please sign in to comment.
Something went wrong with that request. Please try again.