Permalink
Browse files

create our own extension task and copy the so to the right directory

  • Loading branch information...
1 parent 687795a commit 6b817c4faa9c81f2f28e2ec60af9533e28785c79 @tenderlove tenderlove committed Aug 7, 2012
Showing with 13 additions and 1 deletion.
  1. +6 −1 Rakefile
  2. +7 −0 test/test_lost.rb
View
@@ -2,11 +2,16 @@
require 'rubygems'
require 'hoe'
+require "rake/extensiontask"
-Hoe.plugin :compiler
+Hoe.plugin :minitest
Hoe.spec 'lost' do
developer('Evan Phoenix', 'evan@phx.io')
+
+ Rake::ExtensionTask.new "lost", spec do |ext|
+ ext.lib_dir = 'lib'
+ end
end
# vim: syntax=ruby
View
@@ -0,0 +1,7 @@
+require 'minitest/autorun'
+
+class TestLost < MiniTest::Unit::TestCase
+ def test_require_works
+ require 'lost'
+ end
+end

0 comments on commit 6b817c4

Please sign in to comment.