Commit 739110de authored by Ralf Bitter's avatar Ralf Bitter

Merge branch 'release/2.0.0'

parents c2665dce 86ab7b7a
# revIgniter JSONfeed module (v. 1.0.1)
# revIgniter JSONfeed module (v. 2.0.0)
This module enables your revIgniter app to publish JSON feeds.
In case you never heard of JSON feed, it is a format similar
......@@ -100,6 +100,6 @@ For the license terms see the `LICENSE.txt` file.
### Meta
- Version: 1.0.1
- Version: 2.0.0
- Web Site: https://revigniter.com/
- Author: [Ralf Bitter](mailto:rabit@revigniter.com)
\ No newline at end of file
put gAPPPATH & "db/feedjson.sqlite" into sDB["feedjson"]["hostname"]
put gRigA["APPPATH"] & "db/feedjson.sqlite" into sDB["feedjson"]["hostname"]
put "" into sDB["feedjson"]["username"]
......@@ -18,7 +18,7 @@ put "" into sDB["feedjson"]["dbRedirectOnError"]
put FALSE into sDB["feedjson"]["cacheon"]
put gBASEPATH & "database/cache/" into sDB["feedjson"]["cachedir"]
put gRigA["BASEPATH"] & "database/cache/" into sDB["feedjson"]["cachedir"]
put "utf8" into sDB["feedjson"]["charset"]
......
<?lc
put gBASEPATH into gBASEPATH
if gBASEPATH is "gBASEPATH" then
if gRigA is not an array then
put "No direct script access allowed."
exit to top
end if
......@@ -27,18 +25,22 @@ end if
#
# 1. Libraries
# 2. Stacks
# 3. Helper files
# 4. Plugins
# 5. Custom config files
# 6. Language files
# 7. Models
# 3. Database
# 4. Helper files
# 5. Extensions (LiveCode Builder libraries)
# 6. Custom config files
# 7. Language files
# 8. Models
#
##
global gModuleAutoload
##
# -------------------------------------------------------------------
# Auto-load Libraries
# Auto-load Libraries / Database
# -------------------------------------------------------------------
# These are the libraries located in the system/libraries folder,
# in the system/application/libraries folder or in your
......@@ -104,18 +106,23 @@ put sAutoHelper into gModuleAutoload["helper"]
##
# -------------------------------------------------------------------
# Auto-load Plugins
# Auto-load Extensions
# -------------------------------------------------------------------
# Prototype:
#
# put "footerlinks,jsCalendar,myPlugin" into sAutoPlugins
# split sAutoPlugins using comma
# put "com.livecode.library.json,com.mydomain.library.myextension" into sAutoExtensions
# split sAutoExtensions using comma
#
# put sAutoExtensions into gModuleAutoload["extension"]
#
# put sAutoPlugins into gModuleAutoload["plugin"]
# NOTE: The array values are the names of the folders including the particular module.lcm file.
# Please follow the naming convention used by LiveCode Ltd. This means such a folder
# name should be composed of a reverse domain, followed by "library" and a library name
# all delimited by a period.
##
put "" into sAutoPlugins[1]
put sAutoPlugins into gModuleAutoload["plugin"]
put "" into sAutoExtensions[1]
put sAutoExtensions into gModuleAutoload["extension"]
##
......
<?lc
put gBASEPATH into gBASEPATH
if gBASEPATH is "gBASEPATH" then
if gRigA is not an array then
put "No direct script access allowed."
exit to top
end if
......
<?lc
put gBASEPATH into gBASEPATH
if gBASEPATH is "gBASEPATH" then
if gRigA is not an array then
put "No direct script access allowed."
exit to top
end if
......
......@@ -5,7 +5,7 @@ put "feedjsonHeaderLink" into gModuleHandlers
command feedjsonHeaderLink
# NEEDED TO GENERATE A FEED LINK
rigLoadPlugin "feedjsonlinkPi", "feedjson"
rigLoadHelper "feedjsonlink", "feedjson"
end feedjsonHeaderLink
......
......@@ -16,7 +16,7 @@ command feedjsoncontainer
rigLoadHelper tHelpers
# NEEDED TO GENERATE A FEED LINK
rigLoadPlugin "feedjsonlinkPi", "feedjson"
rigLoadHelper "feedjsonlink", "feedjson"
# MAKE SURE YOU IMPLEMENTED A DATABASE GROUP "feedjson" IN YOUR database.lc CONFIG FILE! SEE modules/feedjson/config/config.lc
get rigLoadDatabase(rigFetchConfigItem("databaseGroupName", "feedjson"))
......
......@@ -10,7 +10,7 @@ command feedjsonitem
rigLoadHelper tHelpers
# NEEDED TO GENERATE A FEED LINK
rigLoadPlugin "feedjsonlinkPi", "feedjson"
rigLoadHelper "feedjsonlink", "feedjson"
rigLoadModel "feedjsonmodel", , "feedjson"
......
<?lc
put gBASEPATH into gBASEPATH
script "feedjsonlinkHelper"
if gBASEPATH is "gBASEPATH" then
global gRigA
/*----------------------------------------------------------------------
--| COMMAND libraryStack
--|
--| Author: rabit
--| Version: 1.0
--| Created: 2019-02-18
--| Last Mod: --
--| Requires: --
--|
--| Summary: Run security check.
--|
--| Parameters: --
--|
--| Return: empty
----------------------------------------------------------------------*/
on libraryStack
if (gRigA is not an array) and (the environment is "server") then
put "No direct script access allowed."
exit to top
end if
end if
if the short name of the target <> the short name of me then
pass libraryStack
end if -- if the short name of the target = the short name of me
end libraryStack
......@@ -46,6 +74,6 @@ end getHTMLjsonfeedLink
--| END OF feedjsonlinkPi.lc
--| Location: ./modules/feedjson/plugins/feedjsonlinkPi.lc
--| END OF feedjsonlinkHelper.livecodescript
--| Location: ./modules/feedjson/helpers/feedjsonlinkHelper.livecodescript
----------------------------------------------------------------------
\ No newline at end of file
<?lc
put gBASEPATH into gBASEPATH
script "feedjsonmodel"
if gBASEPATH is "gBASEPATH" then
global gRigA
/*----------------------------------------------------------------------
--| COMMAND libraryStack
--|
--| Author: rabit
--| Version: 1.0
--| Created: 2019-02-18
--| Last Mod: --
--| Requires: --
--|
--| Summary: Run security check.
--|
--| Parameters: --
--|
--| Return: empty
----------------------------------------------------------------------*/
on libraryStack
if (gRigA is not an array) and (the environment is "server") then
put "No direct script access allowed."
exit to top
end if
end if
if the short name of the target <> the short name of me then
pass libraryStack
end if -- if the short name of the target <> the short name of me
end libraryStack
......@@ -401,6 +430,6 @@ end mostRecentModDate
--| END OF feedjsonmodel.lc
--| Location: ./modules/feedjson/models/feedjsonmodel.lc
--| END OF feedjsonmodel.livecodescript
--| Location: ./modules/feedjson/models/feedjsonmodel.livecodescript
----------------------------------------------------------------------
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment