Skip to content

Commit

Permalink
Merge branch 'release/2.3.2'
Browse files Browse the repository at this point in the history
  • Loading branch information
revig committed Nov 24, 2021
2 parents 21d679d + 3e7a542 commit 6c8495e
Show file tree
Hide file tree
Showing 207 changed files with 432 additions and 248 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ To join the discussion relating to using revIgniter subscribe and review archive

### Meta

- Version: 2.3.1
- Version: 2.3.2
- Web Site: <https://revigniter.com/>
- User Guide: <https://revigniter.com/userGuide/index.html>
- Author: [Ralf Bitter](mailto:rabit@revigniter.com)
37 changes: 21 additions & 16 deletions system/libraries/Loader.livecodescript
Original file line number Diff line number Diff line change
Expand Up @@ -1485,9 +1485,9 @@ end _rigAutoloader
--| COMMAND _rigLoadStack
--|
--| Author: rabit
--| Version: 1.3
--| Version: 1.4
--| Created: 2011-07-30
--| Last Mod: 2019-09-01
--| Last Mod: 2021-11-24
--| Requires: rigFetchConfigItem(), rigLogMessage, rigShowError, _rigRiInitStack
--|
--| Summary: This handler loads the requested stack.
Expand All @@ -1508,7 +1508,7 @@ private command _rigLoadStack pStack pParams pPosition pModule
local tPrefix, tSubStack, tSubStackTempA, tSubStackTempB, tSubStackExists
local tBaseStack, tStackInArray, tIsDuplicate, tPathVariants, tPathVar
local tFilePath, tFilePathTempA, tFilePathTempB, tFilePathExists
local tFileIsInArray, tPathNotSpecified
local tFileIsInArray, tPathNotSpecified, tBaseStackName, tStackName

if sLoaderA["riLoadedStackFiles"] is an array then
put the number of lines in the keys of sLoaderA["riLoadedStackFiles"] into tNumLoadedStacks
Expand Down Expand Up @@ -1631,16 +1631,18 @@ private command _rigLoadStack pStack pParams pPosition pModule
-- go stack tSubStack
# go stack IS CURRENTLY NOT WORKING PROPERLY, SO THIS
# IS A WORKAROUND UNTIL THIS HAS CHANGED
put the short name of stack tBaseStack into tBaseStackName

start using stack tSubStack
set the defaultStack to tStackToLoad
set the defaultStack to tBaseStackName
else
start using stack tSubStack
end if

add 1 to tNumLoadedStacks
put tSubStack into sLoaderA["riLoadedStackFiles"][tNumLoadedStacks]

_rigRiInitStack tStackToLoad, tPrefix, pParams
_rigRiInitStack tStackToLoad, tPrefix, pParams, tBaseStackName
exit _rigLoadStack

end if -- if there is a file tSubStack then
Expand Down Expand Up @@ -1711,7 +1713,9 @@ private command _rigLoadStack pStack pParams pPosition pModule
add 1 to tNumLoadedStacks
put tFilePath into sLoaderA["riLoadedStackFiles"][tNumLoadedStacks]

_rigRiInitStack tStackToLoad, "", pParams
put the short name of stack tFilePath into tStackName

_rigRiInitStack tStackToLoad, "", pParams, tStackName
exit _rigLoadStack

end repeat
Expand Down Expand Up @@ -1899,23 +1903,24 @@ end _rigRiInitLibrary
--| COMMAND _rigRiInitStack
--|
--| Author: rabit
--| Version: 1.2
--| Version: 1.3
--| Created: 2011-07-31
--| Last Mod: 2021-08-08
--| Last Mod: 2021-11-24
--| Requires: --
--|
--| Summary: Load config file associated with loaded stack.
--|
--| Format: _rigRiInitStack param1, param2, param3
--|
--| Parameters: string <pStack> the item that is being loaded, string <pPrefix>, array <pConfig>
--| Parameters: string <pStack> the item that is being loaded, string <pPrefix>,
--| array <pConfig>, string <pStackName> name of stack, not file name
--|
--| Return: empty
----------------------------------------------------------------------*/

private command _rigRiInitStack pStack pPrefix pConfig
private command _rigRiInitStack pStack pPrefix pConfig pStackName
local tConfigFileFound, tStacksKeyNum, tNameLower, tFirstCharUpper
local tNameUCfirst, tPath, tStackName, tHandler
local tNameUCfirst, tPath, tStackFileName, tHandler

put FALSE into tConfigFileFound

Expand Down Expand Up @@ -1950,22 +1955,22 @@ private command _rigRiInitStack pStack pPrefix pConfig
end if
end if

put pPrefix & pStack into tStackName
put pPrefix & pStack into tStackFileName

add 1 to tStacksKeyNum
put tStackName into sLoaderA["riStacks"][tStacksKeyNum]
put tStackFileName into sLoaderA["riStacks"][tStacksKeyNum]

# RUN THE CONFIGURATION HANDLER IF NO CONFIGURATION FILE WAS FOUND
# OTHERWISE, THIS IS DONE BY THE CONFIGURATION FILE ITSELF
if tConfigFileFound is not TRUE then
put "rigRunInitial" & pStack & "StackConfig" into tHandler
combine pConfig using numToCodepoint(1) and numToCodepoint(2)

dispatch tHandler to stack pStack with pConfig
dispatch tHandler to stack pStackName with pConfig

if it is not "handled" then
set the behavior of stack pStack to the long id of stack "stackBehavior"
dispatch "rigLogLoaded" to stack pStack
set the behavior of stack pStackName to the long id of stack "stackBehavior"
dispatch "rigLogLoaded" to stack pStackName
rigLogMessage "debug", "Stack" && pStack && "has no configuration handler"
end if
end if
Expand Down
2 changes: 1 addition & 1 deletion system/revigniter/RevIgniter.lc
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ end if


# RI VERSION
constant RIVERSION = "2.3.1"
constant RIVERSION = "2.3.2"
constant RISTATE = "final"

# VERSION GETTER
Expand Down
Loading

0 comments on commit 6c8495e

Please sign in to comment.