lib/hoe/compiler.rb in hoe-3.14.0 vs lib/hoe/compiler.rb in hoe-3.14.1
- old
+ new
@@ -38,10 +38,11 @@
end
def extension name
@extensions ||= []
@extensions << name
+ spec_extras[:extensions] = @extensions.map! { |name| "ext/#{name}/extconf.rb" }
end
##
# Define tasks for compiler plugin.
@@ -53,11 +54,9 @@
Rake::ExtensionTask.new name, spec do |ext|
ext.lib_dir = File.join(*["lib", name.to_s, ENV["FAT_DIR"]].compact)
end
end
-
- spec_extras[:extensions] = @extensions.map! { |name| "ext/#{name}/extconf.rb" }
compile_tasks.each do |t|
task t => :compile
end
rescue LoadError