gplugin/gplugin

9102c7dce8ef
Parents 86c43c8bf941
Children bfbb592d3f69
Make sure that all plugins using gobject-introspection are calling out the proper version
--- a/lua/tests/plugins/basic.lua Sat Apr 18 07:03:13 2020 -0500
+++ b/lua/tests/plugins/basic.lua Sat Apr 18 07:11:58 2020 -0500
@@ -16,7 +16,7 @@
--]]
local lgi = require 'lgi'
-local GPlugin = lgi.GPlugin
+local GPlugin = lgi.require('GPlugin', '1.0')
function gplugin_query()
return GPlugin.PluginInfo {
--- a/lua/tests/plugins/dependent.lua Sat Apr 18 07:03:13 2020 -0500
+++ b/lua/tests/plugins/dependent.lua Sat Apr 18 07:11:58 2020 -0500
@@ -16,7 +16,7 @@
--]]
local lgi = require 'lgi'
-local GPlugin = lgi.GPlugin
+local GPlugin = lgi.require('GPlugin', '1.0')
function gplugin_query()
return GPlugin.PluginInfo {
--- a/lua/tests/plugins/load-exception.lua Sat Apr 18 07:03:13 2020 -0500
+++ b/lua/tests/plugins/load-exception.lua Sat Apr 18 07:11:58 2020 -0500
@@ -16,7 +16,7 @@
--]]
local lgi = require 'lgi'
-local GPlugin = lgi.GPlugin
+local GPlugin = lgi.require('GPlugin', '1.0')
function gplugin_query()
return GPlugin.PluginInfo {
--- a/lua/tests/plugins/load-failed.lua Sat Apr 18 07:03:13 2020 -0500
+++ b/lua/tests/plugins/load-failed.lua Sat Apr 18 07:11:58 2020 -0500
@@ -16,7 +16,7 @@
--]]
local lgi = require 'lgi'
-local GPlugin = lgi.GPlugin
+local GPlugin = lgi.require('GPlugin', '1.0')
function gplugin_query()
return GPlugin.PluginInfo {
--- a/lua/tests/plugins/unload-failed.lua Sat Apr 18 07:03:13 2020 -0500
+++ b/lua/tests/plugins/unload-failed.lua Sat Apr 18 07:11:58 2020 -0500
@@ -16,7 +16,7 @@
--]]
local lgi = require 'lgi'
-local GPlugin = lgi.GPlugin
+local GPlugin = lgi.require('GPlugin', '1.0')
function gplugin_query()
return GPlugin.PluginInfo {
--- a/python/tests/plugins/basic.py Sat Apr 18 07:03:13 2020 -0500
+++ b/python/tests/plugins/basic.py Sat Apr 18 07:11:58 2020 -0500
@@ -14,7 +14,10 @@
# You should have received a copy of the GNU Lesser General Public
# License along with this library; if not, see <http://www.gnu.org/licenses/>.
-from gi.repository import GPlugin
+import gi
+
+gi.require_version('GPlugin', '1.0')
+from gi.repository import GPlugin # noqa
def gplugin_query():
--- a/python/tests/plugins/dependent.py Sat Apr 18 07:03:13 2020 -0500
+++ b/python/tests/plugins/dependent.py Sat Apr 18 07:11:58 2020 -0500
@@ -14,7 +14,10 @@
# You should have received a copy of the GNU Lesser General Public
# License along with this library; if not, see <http://www.gnu.org/licenses/>.
-from gi.repository import GPlugin
+import gi
+
+gi.require_version('GPlugin', '1.0')
+from gi.repository import GPlugin # noqa
def gplugin_query():
--- a/python/tests/plugins/load-exception.py Sat Apr 18 07:03:13 2020 -0500
+++ b/python/tests/plugins/load-exception.py Sat Apr 18 07:11:58 2020 -0500
@@ -14,7 +14,10 @@
# You should have received a copy of the GNU Lesser General Public
# License along with this library; if not, see <http://www.gnu.org/licenses/>.
-from gi.repository import GPlugin
+import gi
+
+gi.require_version('GPlugin', '1.0')
+from gi.repository import GPlugin # noqa
def gplugin_query():
--- a/python/tests/plugins/load-failed.py Sat Apr 18 07:03:13 2020 -0500
+++ b/python/tests/plugins/load-failed.py Sat Apr 18 07:11:58 2020 -0500
@@ -14,7 +14,10 @@
# You should have received a copy of the GNU Lesser General Public
# License along with this library; if not, see <http://www.gnu.org/licenses/>.
-from gi.repository import GPlugin
+import gi
+
+gi.require_version('GPlugin', '1.0')
+from gi.repository import GPlugin # noqa
def gplugin_query():
--- a/python/tests/plugins/unload-failed.py Sat Apr 18 07:03:13 2020 -0500
+++ b/python/tests/plugins/unload-failed.py Sat Apr 18 07:11:58 2020 -0500
@@ -14,7 +14,10 @@
# You should have received a copy of the GNU Lesser General Public
# License along with this library; if not, see <http://www.gnu.org/licenses/>.
-from gi.repository import GPlugin
+import gi
+
+gi.require_version('GPlugin', '1.0')
+from gi.repository import GPlugin # noqa
def gplugin_query():