lib/cairo-gobject.rb in cairo-gobject-3.3.0 vs lib/cairo-gobject.rb in cairo-gobject-3.3.1

- old
+ new

@@ -1,6 +1,6 @@ -# Copyright (C) 2013 Ruby-GNOME2 Project Team +# Copyright (C) 2013-2018 Ruby-GNOME2 Project Team # # This library is free software; you can redistribute it and/or # modify it under the terms of the GNU Lesser General Public # License as published by the Free Software Foundation; either # version 2.1 of the License, or (at your option) any later version. @@ -15,15 +15,10 @@ # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA require "cairo" require "glib2" -begin - major, minor, _ = RUBY_VERSION.split(/\./) - require "#{major}.#{minor}/cairo_gobject.so" -rescue LoadError - require "cairo_gobject.so" -end +require "cairo_gobject.so" module CairoGObject LOG_DOMAIN = "CairoGObject" GLib::Log.set_log_domain(LOG_DOMAIN) end