Browse files

require only 'libnotify/version' in gemspec

The gemspec was requiring in 'libnotify' which loads 'libnotify/api' and
finally 'libnotify/ffi'. Because 'libnotify/ffi' requires 'ffi' the gem,
if ffi is not yet available (ie. not in global gems), then reading
of the gemspec will fail.

This changeset requires in only libnotify/version, which has no external
dependencies and will allow for a clean bundle install.
  • Loading branch information...
1 parent dcf0b80 commit 6ab80e42b655b5e83928537c0b87e8feb319cd6e @statianzo statianzo committed Jun 6, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 libnotify.gemspec
View
2 libnotify.gemspec
@@ -1,6 +1,6 @@
# -*- encoding: utf-8 -*-
$:.push File.expand_path("../lib", __FILE__)
-require "libnotify"
+require "libnotify/version"
platform = Gem::Platform::RUBY
needs_ffi = true

0 comments on commit 6ab80e4

Please sign in to comment.