Skip to content

Instantly share code, notes, and snippets.

@zzak
Created November 27, 2012 18:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zzak/4155983 to your computer and use it in GitHub Desktop.
Save zzak/4155983 to your computer and use it in GitHub Desktop.
deprecate dl
Index: ext/dl/lib/dl.rb
===================================================================
--- ext/dl/lib/dl.rb (revision 37908)
+++ ext/dl/lib/dl.rb (working copy)
@@ -5,6 +5,8 @@
rescue LoadError
end
+warn "DL is deprecated, please use Fiddle"
+
module DL
# Returns true if DL is using Fiddle, the libffi wrapper.
def self.fiddle?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment