gplugin/gplugin

b85bc4dd3051
flow: Merged '0.0.22' to ('default').
--- a/CMakeLists.txt Mon Jun 29 21:05:51 2015 -0500
+++ b/CMakeLists.txt Tue Jun 30 20:23:18 2015 -0500
@@ -26,7 +26,7 @@
set(GPLUGIN_MAJOR_VERSION 0)
set(GPLUGIN_MINOR_VERSION 0)
-set(GPLUGIN_MICRO_VERSION 21)
+set(GPLUGIN_MICRO_VERSION 22)
set(GPLUGIN_EXTRA_VERSION)
set(GPLUGIN_VERSION ${GPLUGIN_MAJOR_VERSION}.${GPLUGIN_MINOR_VERSION}.${GPLUGIN_MICRO_VERSION}${GPLUGIN_EXTRA_VERSION})
@@ -163,6 +163,7 @@
if(CMAKE_COMPILER_IS_GNUCC)
add_definitions(
-DGPLUGIN_UNUSED=__attribute__\(\(unused\)\)
+ -ggdb
)
else(CMAKE_COMPILER_IS_GNUCC)
add_definitions(
--- a/ChangeLog Mon Jun 29 21:05:51 2015 -0500
+++ b/ChangeLog Tue Jun 30 20:23:18 2015 -0500
@@ -1,3 +1,8 @@
+0.0.22: 2015/06/30
+ * Made the moonscripts tests not interfer with the lua tests unless they're
+ explicitly turned on
+ * Set the -ggdb cflag if we're being compiled by gcc
+
0.0.21: 2015/06/29
* Use the GNUInstallDirs cmake module to install everything to the correct
locations. - Elliott Sales de Andrade
--- a/lua/tests/CMakeLists.txt Mon Jun 29 21:05:51 2015 -0500
+++ b/lua/tests/CMakeLists.txt Tue Jun 30 20:23:18 2015 -0500
@@ -17,7 +17,8 @@
add_definitions(
-DLUA_LOADER_DIR="${CMAKE_BINARY_DIR}/lua"
- -DLUA_PLUGIN_DIR="${CMAKE_CURRENT_SOURCE_DIR}/plugins"
+ -DLUA_PLUGIN_DIR="${CMAKE_CURRENT_SOURCE_DIR}/lua-plugins"
+ -DMOONSCRIPT_PLUGIN_DIR="${CMAKE_CURRENT_SOURCE_DIR}/moonscript-plugins"
)
add_lua_gtest(test-lua-loader)
@@ -36,7 +37,7 @@
COMMAND ${GTESTER} -k --verbose -o ${GTESTER_LUA_LOG} ${LUA_TESTS}
OUTPUT ${GTESTER_LUA_LOG}
DEPENDS gplugin ${GPLUGIN_GIR_TARGETS} gplugin-lua
- ${LUA_TESTS} ${CMAKE_CURRENT_SOURCE_DIR}/plugins
+ ${LUA_TESTS} ${CMAKE_CURRENT_SOURCE_DIR}/lua-plugins
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
)
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/lua/tests/lua-plugins/basic.lua Tue Jun 30 20:23:18 2015 -0500
@@ -0,0 +1,43 @@
+--[[
+ Copyright (C) 2011-2014 Gary Kramlich <grim@reaperworld.com>
+
+ 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 of the License, or (at your option) any later version.
+
+ This library is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ Lesser General Public License for more details.
+
+ 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/>.
+--]]
+
+local lgi = require 'lgi'
+local GPlugin = lgi.GPlugin
+
+function gplugin_query()
+ return GPlugin.PluginInfo {
+ id = "gplugin/lua-basic-plugin",
+ abi_version = 0x01020304,
+ name = "basic plugin",
+ category = "test",
+ version = "version",
+ license_id = "license",
+ summary = "summary",
+ description = "description",
+ authors = { "author1" },
+ website = "website"
+ }
+end
+
+function gplugin_load(plugin)
+ return true
+end
+
+function gplugin_unload(plugin)
+ return true
+end
+
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/lua/tests/lua-plugins/dependent.lua Tue Jun 30 20:23:18 2015 -0500
@@ -0,0 +1,35 @@
+--[[
+ Copyright (C) 2011-2014 Gary Kramlich <grim@reaperworld.com>
+
+ 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 of the License, or (at your option) any later version.
+
+ This library is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ Lesser General Public License for more details.
+
+ 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/>.
+--]]
+
+local lgi = require 'lgi'
+local GPlugin = lgi.GPlugin
+
+function gplugin_query()
+ return GPlugin.PluginInfo {
+ id="gplugin/lua-dependent-plugin",
+ dependencies={"dependency1", "dependency2"},
+ }
+end
+
+function gplugin_load(plugin)
+ return false
+end
+
+function gplugin_unload(plugin)
+ return false
+end
+
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/lua/tests/lua-plugins/load-exception.lua Tue Jun 30 20:23:18 2015 -0500
@@ -0,0 +1,34 @@
+--[[
+ Copyright (C) 2011-2014 Gary Kramlich <grim@reaperworld.com>
+
+ 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 of the License, or (at your option) any later version.
+
+ This library is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ Lesser General Public License for more details.
+
+ 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/>.
+--]]
+
+local lgi = require 'lgi'
+local GPlugin = lgi.GPlugin
+
+function gplugin_query()
+ return GPlugin.PluginInfo {
+ id="gplugin/lua-load-exception",
+ }
+end
+
+function gplugin_load(plugin)
+ error('explosion!')
+end
+
+function gplugin_unload(plugin)
+ return false
+end
+
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/lua/tests/lua-plugins/load-failed.lua Tue Jun 30 20:23:18 2015 -0500
@@ -0,0 +1,34 @@
+--[[
+ Copyright (C) 2011-2014 Gary Kramlich <grim@reaperworld.com>
+
+ 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 of the License, or (at your option) any later version.
+
+ This library is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ Lesser General Public License for more details.
+
+ 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/>.
+--]]
+
+local lgi = require 'lgi'
+local GPlugin = lgi.GPlugin
+
+function gplugin_query()
+ return GPlugin.PluginInfo {
+ id="gplugin/lua-load-failed",
+ }
+end
+
+function gplugin_load(plugin)
+ return false
+end
+
+function gplugin_unload(plugin)
+ return true
+end
+
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/lua/tests/lua-plugins/unload-failed.lua Tue Jun 30 20:23:18 2015 -0500
@@ -0,0 +1,34 @@
+--[[
+ Copyright (C) 2011-2014 Gary Kramlich <grim@reaperworld.com>
+
+ 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 of the License, or (at your option) any later version.
+
+ This library is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ Lesser General Public License for more details.
+
+ 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/>.
+--]]
+
+local lgi = require 'lgi'
+local GPlugin = lgi.GPlugin
+
+function gplugin_query()
+ return GPlugin.PluginInfo {
+ id="gplugin/lua-unload-failed",
+ }
+end
+
+function gplugin_load(plugin)
+ return true
+end
+
+function gplugin_unload(plugin)
+ return false
+end
+
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/lua/tests/moonscript-plugins/basic.moon Tue Jun 30 20:23:18 2015 -0500
@@ -0,0 +1,39 @@
+-- Copyright (C) 2011-2014 Gary Kramlich <grim@reaperworld.com>
+--
+-- 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 of the License, or (at your option) any later version.
+--
+-- This library is distributed in the hope that it will be useful,
+-- but WITHOUT ANY WARRANTY; without even the implied warranty of
+-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+-- Lesser General Public License for more details.
+--
+-- 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/>.
+
+lgi = require 'lgi'
+GPlugin = lgi.GPlugin
+
+export gplugin_query = ->
+ return GPlugin.PluginInfo {
+ id: "gplugin/moon-basic-plugin",
+ abi_version: 0x01020304,
+ name: "basic plugin",
+ category: "test",
+ version: "version",
+ license_id: "license",
+ summary: "summary",
+ description: "description",
+ authors: { "author1" },
+ website: "website"
+ }
+
+export gplugin_load = ->
+ return true
+
+
+export gplugin_unload = ->
+ return true
+
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/lua/tests/moonscript-plugins/dependent.moon Tue Jun 30 20:23:18 2015 -0500
@@ -0,0 +1,30 @@
+-- Copyright (C) 2011-2014 Gary Kramlich <grim@reaperworld.com>
+--
+-- 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 of the License, or (at your option) any later version.
+--
+-- This library is distributed in the hope that it will be useful,
+-- but WITHOUT ANY WARRANTY; without even the implied warranty of
+-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+-- Lesser General Public License for more details.
+--
+-- 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/>.
+
+lgi = require 'lgi'
+GPlugin = lgi.GPlugin
+
+export gplugin_query = ->
+ return GPlugin.PluginInfo {
+ id: "gplugin/moon-dependent-plugin",
+ dependencies: {"dependency1", "dependency2"}
+ }
+
+export gplugin_load = ->
+ return false
+
+
+export gplugin_unload = ->
+ return false
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/lua/tests/moonscript-plugins/load-exception.moon Tue Jun 30 20:23:18 2015 -0500
@@ -0,0 +1,30 @@
+-- Copyright (C) 2011-2014 Gary Kramlich <grim@reaperworld.com>
+--
+-- 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 of the License, or (at your option) any later version.
+--
+-- This library is distributed in the hope that it will be useful,
+-- but WITHOUT ANY WARRANTY; without even the implied warranty of
+-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+-- Lesser General Public License for more details.
+--
+-- 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/>.
+
+lgi = require 'lgi'
+GPlugin = lgi.GPlugin
+
+export gplugin_query = ->
+ return GPlugin.PluginInfo {
+ id: "gplugin/moon-load-exception"
+ }
+
+export gplugin_load = ->
+ error("explode")
+ return false
+
+
+export gplugin_unload = ->
+ return false
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/lua/tests/moonscript-plugins/load-failed.moon Tue Jun 30 20:23:18 2015 -0500
@@ -0,0 +1,30 @@
+-- Copyright (C) 2011-2014 Gary Kramlich <grim@reaperworld.com>
+--
+-- 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 of the License, or (at your option) any later version.
+--
+-- This library is distributed in the hope that it will be useful,
+-- but WITHOUT ANY WARRANTY; without even the implied warranty of
+-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+-- Lesser General Public License for more details.
+--
+-- 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/>.
+
+lgi = require 'lgi'
+GPlugin = lgi.GPlugin
+
+export gplugin_query = ->
+ return GPlugin.PluginInfo {
+ id: "gplugin/moon-load-failed"
+ }
+
+
+export gplugin_load = ->
+ return false
+
+
+export gplugin_unload = ->
+ return true
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/lua/tests/moonscript-plugins/unload-failed.moon Tue Jun 30 20:23:18 2015 -0500
@@ -0,0 +1,30 @@
+-- Copyright (C) 2011-2014 Gary Kramlich <grim@reaperworld.com>
+--
+-- 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 of the License, or (at your option) any later version.
+--
+-- This library is distributed in the hope that it will be useful,
+-- but WITHOUT ANY WARRANTY; without even the implied warranty of
+-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+-- Lesser General Public License for more details.
+--
+-- 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/>.
+
+lgi = require 'lgi'
+GPlugin = lgi.GPlugin
+
+export gplugin_query = ->
+ return GPlugin.PluginInfo {
+ id: "gplugin/moon-unload-failed"
+ }
+
+
+export gplugin_load = ->
+ return true
+
+
+export gplugin_unload = ->
+ return false
--- a/lua/tests/plugins/basic.lua Mon Jun 29 21:05:51 2015 -0500
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,43 +0,0 @@
---[[
- Copyright (C) 2011-2014 Gary Kramlich <grim@reaperworld.com>
-
- 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 of the License, or (at your option) any later version.
-
- This library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- 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/>.
---]]
-
-local lgi = require 'lgi'
-local GPlugin = lgi.GPlugin
-
-function gplugin_query()
- return GPlugin.PluginInfo {
- id = "gplugin/lua-basic-plugin",
- abi_version = 0x01020304,
- name = "basic plugin",
- category = "test",
- version = "version",
- license_id = "license",
- summary = "summary",
- description = "description",
- authors = { "author1" },
- website = "website"
- }
-end
-
-function gplugin_load(plugin)
- return true
-end
-
-function gplugin_unload(plugin)
- return true
-end
-
--- a/lua/tests/plugins/basic.moon Mon Jun 29 21:05:51 2015 -0500
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,39 +0,0 @@
--- Copyright (C) 2011-2014 Gary Kramlich <grim@reaperworld.com>
---
--- 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 of the License, or (at your option) any later version.
---
--- This library is distributed in the hope that it will be useful,
--- but WITHOUT ANY WARRANTY; without even the implied warranty of
--- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
--- Lesser General Public License for more details.
---
--- 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/>.
-
-lgi = require 'lgi'
-GPlugin = lgi.GPlugin
-
-export gplugin_query = ->
- return GPlugin.PluginInfo {
- id: "gplugin/moon-basic-plugin",
- abi_version: 0x01020304,
- name: "basic plugin",
- category: "test",
- version: "version",
- license_id: "license",
- summary: "summary",
- description: "description",
- authors: { "author1" },
- website: "website"
- }
-
-export gplugin_load = ->
- return true
-
-
-export gplugin_unload = ->
- return true
-
--- a/lua/tests/plugins/dependent.lua Mon Jun 29 21:05:51 2015 -0500
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,35 +0,0 @@
---[[
- Copyright (C) 2011-2014 Gary Kramlich <grim@reaperworld.com>
-
- 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 of the License, or (at your option) any later version.
-
- This library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- 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/>.
---]]
-
-local lgi = require 'lgi'
-local GPlugin = lgi.GPlugin
-
-function gplugin_query()
- return GPlugin.PluginInfo {
- id="gplugin/lua-dependent-plugin",
- dependencies={"dependency1", "dependency2"},
- }
-end
-
-function gplugin_load(plugin)
- return false
-end
-
-function gplugin_unload(plugin)
- return false
-end
-
--- a/lua/tests/plugins/dependent.moon Mon Jun 29 21:05:51 2015 -0500
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,30 +0,0 @@
--- Copyright (C) 2011-2014 Gary Kramlich <grim@reaperworld.com>
---
--- 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 of the License, or (at your option) any later version.
---
--- This library is distributed in the hope that it will be useful,
--- but WITHOUT ANY WARRANTY; without even the implied warranty of
--- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
--- Lesser General Public License for more details.
---
--- 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/>.
-
-lgi = require 'lgi'
-GPlugin = lgi.GPlugin
-
-export gplugin_query = ->
- return GPlugin.PluginInfo {
- id: "gplugin/moon-dependent-plugin",
- dependencies: {"dependency1", "dependency2"}
- }
-
-export gplugin_load = ->
- return false
-
-
-export gplugin_unload = ->
- return false
--- a/lua/tests/plugins/load-exception.lua Mon Jun 29 21:05:51 2015 -0500
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,34 +0,0 @@
---[[
- Copyright (C) 2011-2014 Gary Kramlich <grim@reaperworld.com>
-
- 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 of the License, or (at your option) any later version.
-
- This library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- 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/>.
---]]
-
-local lgi = require 'lgi'
-local GPlugin = lgi.GPlugin
-
-function gplugin_query()
- return GPlugin.PluginInfo {
- id="gplugin/lua-load-exception",
- }
-end
-
-function gplugin_load(plugin)
- error('explosion!')
-end
-
-function gplugin_unload(plugin)
- return false
-end
-
--- a/lua/tests/plugins/load-exception.moon Mon Jun 29 21:05:51 2015 -0500
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,30 +0,0 @@
--- Copyright (C) 2011-2014 Gary Kramlich <grim@reaperworld.com>
---
--- 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 of the License, or (at your option) any later version.
---
--- This library is distributed in the hope that it will be useful,
--- but WITHOUT ANY WARRANTY; without even the implied warranty of
--- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
--- Lesser General Public License for more details.
---
--- 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/>.
-
-lgi = require 'lgi'
-GPlugin = lgi.GPlugin
-
-export gplugin_query = ->
- return GPlugin.PluginInfo {
- id: "gplugin/moon-load-exception"
- }
-
-export gplugin_load = ->
- error("explode")
- return false
-
-
-export gplugin_unload = ->
- return false
--- a/lua/tests/plugins/load-failed.lua Mon Jun 29 21:05:51 2015 -0500
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,34 +0,0 @@
---[[
- Copyright (C) 2011-2014 Gary Kramlich <grim@reaperworld.com>
-
- 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 of the License, or (at your option) any later version.
-
- This library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- 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/>.
---]]
-
-local lgi = require 'lgi'
-local GPlugin = lgi.GPlugin
-
-function gplugin_query()
- return GPlugin.PluginInfo {
- id="gplugin/lua-load-failed",
- }
-end
-
-function gplugin_load(plugin)
- return false
-end
-
-function gplugin_unload(plugin)
- return true
-end
-
--- a/lua/tests/plugins/load-failed.moon Mon Jun 29 21:05:51 2015 -0500
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,30 +0,0 @@
--- Copyright (C) 2011-2014 Gary Kramlich <grim@reaperworld.com>
---
--- 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 of the License, or (at your option) any later version.
---
--- This library is distributed in the hope that it will be useful,
--- but WITHOUT ANY WARRANTY; without even the implied warranty of
--- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
--- Lesser General Public License for more details.
---
--- 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/>.
-
-lgi = require 'lgi'
-GPlugin = lgi.GPlugin
-
-export gplugin_query = ->
- return GPlugin.PluginInfo {
- id: "gplugin/moon-load-failed"
- }
-
-
-export gplugin_load = ->
- return false
-
-
-export gplugin_unload = ->
- return true
--- a/lua/tests/plugins/unload-failed.lua Mon Jun 29 21:05:51 2015 -0500
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,34 +0,0 @@
---[[
- Copyright (C) 2011-2014 Gary Kramlich <grim@reaperworld.com>
-
- 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 of the License, or (at your option) any later version.
-
- This library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- 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/>.
---]]
-
-local lgi = require 'lgi'
-local GPlugin = lgi.GPlugin
-
-function gplugin_query()
- return GPlugin.PluginInfo {
- id="gplugin/lua-unload-failed",
- }
-end
-
-function gplugin_load(plugin)
- return true
-end
-
-function gplugin_unload(plugin)
- return false
-end
-
--- a/lua/tests/plugins/unload-failed.moon Mon Jun 29 21:05:51 2015 -0500
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,30 +0,0 @@
--- Copyright (C) 2011-2014 Gary Kramlich <grim@reaperworld.com>
---
--- 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 of the License, or (at your option) any later version.
---
--- This library is distributed in the hope that it will be useful,
--- but WITHOUT ANY WARRANTY; without even the implied warranty of
--- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
--- Lesser General Public License for more details.
---
--- 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/>.
-
-lgi = require 'lgi'
-GPlugin = lgi.GPlugin
-
-export gplugin_query = ->
- return GPlugin.PluginInfo {
- id: "gplugin/moon-unload-failed"
- }
-
-
-export gplugin_load = ->
- return true
-
-
-export gplugin_unload = ->
- return false
--- a/lua/tests/test-lua-moon-loader.c Mon Jun 29 21:05:51 2015 -0500
+++ b/lua/tests/test-lua-moon-loader.c Tue Jun 30 20:23:18 2015 -0500
@@ -24,7 +24,7 @@
main(gint argc, gchar **argv) {
g_test_init(&argc, &argv, NULL);
- gplugin_loader_tests_main(LUA_LOADER_DIR, LUA_PLUGIN_DIR, "moon");
+ gplugin_loader_tests_main(LUA_LOADER_DIR, MOONSCRIPT_PLUGIN_DIR, "moon");
return g_test_run();
}