{"commit":"19571088127b7ff0f6d4571c6c1dc20273d4cb19","old_file":"wheels\/tests\/Test.cfc","new_file":"wheels\/tests\/Test.cfc","old_contents":"component extends=\"wheels.Test\" {\n\n\t\/*\n\t * Executes once before the test suite runs.\n\t * Populates the test database on reload or if there are no tables in the database.\n\t *\/\n\tfunction beforeAll() {\n\t\tlocal.tables = $dbinfo(datasource=application.wheels.dataSourceName, type=\"tables\");\n\t\tif ((StructKeyExists(url, \"reload\") && url.reload == true) || !local.tables.recordCount) {\n\t\t\tinclude \"populate.cfm\";\n\t\t}\n\t}\n\n\t\/*\n\t * Executes before every test case if called from the package via super.superSetup().\n\t *\/\n\tfunction setup() {\n\n\t}\n\n\t\/*\n\t * Executes after every test case if called from the package via super.superTeardown().\n\t *\/\n\tfunction teardown() {\n\n\t}\n\n\t\/*\n\t * Executes once after the test suite runs.\n\t *\/\n\tfunction afterAll() {\n\n\t}\n\n}\n","new_contents":"component extends=\"wheels.Test\" {\n\n\t\/*\n\t * Executes once before the test suite runs.\n\t * Populates the test database on reload or if the authors table does not exist.\n\t *\/\n\tfunction beforeAll() {\n\t\tlocal.tables = $dbinfo(datasource=application.wheels.dataSourceName, type=\"tables\");\n\t\tlocal.tableList = ValueList(local.tables.table_name);\n\t\tif ((StructKeyExists(url, \"reload\") && url.reload == true) || !FindNoCase(\"authors\", local.tableList)) {\n\t\t\tinclude \"populate.cfm\";\n\t\t}\n\t}\n\n\t\/*\n\t * Executes before every test case if called from the package via super.superSetup().\n\t *\/\n\tfunction setup() {\n\n\t}\n\n\t\/*\n\t * Executes after every test case if called from the package via super.superTeardown().\n\t *\/\n\tfunction teardown() {\n\n\t}\n\n\t\/*\n\t * Executes once after the test suite runs.\n\t *\/\n\tfunction afterAll() {\n\n\t}\n\n}\n","subject":"Check for authors table instead of just any table to check whether to populate the test database.","message":"Check for authors table instead of just any table to check whether to populate the test database.\n","lang":"ColdFusion CFC","license":"apache-2.0","repos":"cfwheels\/cfwheels,cfwheels\/cfwheels,cfwheels\/cfwheels"} {"commit":"9557460948ba2bb4252cf5a47c1ee9fb683d433a","old_file":"wheels\/tests\/Test.cfc","new_file":"wheels\/tests\/Test.cfc","old_contents":"component extends=\"wheels.Test\" {\n\n\t\/*\n\t * Executes once before the test suite runs.\n\t * Populates the test database on reload or if the authors table does not exist.\n\t *\/\n\tfunction beforeAll() {\n\t\tlocal.tables = $dbinfo(datasource = application.wheels.dataSourceName, type = \"tables\");\n\t\tlocal.tableList = ValueList(local.tables.table_name);\n\t\tlocal.populate = StructKeyExists(url, \"populate\") ? url.populate : true;\n\t\tif (local.populate || !FindNoCase(\"authors\", local.tableList)) {\n\t\t\tinclude \"populate.cfm\";\n\t\t}\n\t}\n\n\t\/*\n\t * Executes before every test case if called from the package via super.superSetup().\n\t *\/\n\tfunction setup() {\n\t}\n\n\t\/*\n\t * Executes after every test case if called from the package via super.superTeardown().\n\t *\/\n\tfunction teardown() {\n\t}\n\n\t\/*\n\t * Executes once after the test suite runs.\n\t *\/\n\tfunction afterAll() {\n\t}\n\n}\n","new_contents":"component extends=\"wheels.Test\" {\n\n\t\/*\n\t * Executes once before the test suite runs.\n\t * Populates the test database on reload or if the authors table does not exist.\n\t *\/\n\tfunction beforeAll() {\n\t\tapplication.$$$wheels = duplicate(application.wheels);\n\t\tlocal.tables = $dbinfo(datasource = application.wheels.dataSourceName, type = \"tables\");\n\t\tlocal.tableList = ValueList(local.tables.table_name);\n\t\tlocal.populate = StructKeyExists(url, \"populate\") ? url.populate : true;\n\t\tif (local.populate || !FindNoCase(\"authors\", local.tableList)) {\n\t\t\tinclude \"populate.cfm\";\n\t\t}\n\t}\n\n\t\/*\n\t * Executes before every test case if called from the package via super.superSetup().\n\t *\/\n\tfunction setup() {\n\t}\n\n\t\/*\n\t * Executes after every test case if called from the package via super.superTeardown().\n\t *\/\n\tfunction teardown() {\n\t}\n\n\t\/*\n\t * Executes once after the test suite runs.\n\t *\/\n\tfunction afterAll() {\n\t\tapplication.wheels = application.$$$wheels;\n\t\tstructDelete(application, \"$$$wheels\");\n\t}\n\n}\n","subject":"Reset application scope after core tests","message":"Reset application scope after core tests\n","lang":"ColdFusion CFC","license":"apache-2.0","repos":"cfwheels\/cfwheels,cfwheels\/cfwheels,cfwheels\/cfwheels"} {"commit":"30e88539e431f22be4b551f992a1e5913c3de83d","old_file":"tests\/tests\/TestDataFormat.cfc","new_file":"tests\/tests\/TestDataFormat.cfc","old_contents":"component extends=\"testbox.system.BaseSpec\" {\n\tfunction run(testResults, testBox) {\n\t\tdataDir = ExpandPath(\"..\/data\/en\");\n\t\tfiles = directoryList(dataDir, false, \"array\");\n\t\tfilesWithErrors = [];\n\n\n\t\tdescribe(\"JSON Format Tests\", function() {\n\t\t\tit(\"should be valid isJSON==true\", function() {\n\t\t\t\tfor (filePath in files) {\n\t\t\t\t\tvar json = fileRead(filePath);\n\t\t\t\t\tvar isItJson = isJSON(json);\n\t\t\t\t\tif (!isItJSON) {\n\t\t\t\t\t\tfilesWithErrors.append(getFileFromPath(filePath));\t\n\t\t\t\t\t}\n\t\t\t\t\texpect(isItJSON).toBeTrue();\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t});\n\n\t\t\tit(\"should have key: name, type\", function() {\n\t\t\t\tfor (filePath in files) {\n\t\t\t\t\tvar json = fileRead(filePath);\n\t\t\t\t\tvar isItJson = isJSON(json);\n\t\t\t\t\tvar fileName = getFileFromPath(filePath);\n\t\t\t\t\tif (isItJSON && fileName != \"index.json\") {\n\t\t\t\t\t\tjson = deserializeJSON(json);\n\t\t\t\t\t\tif (!json.keyExists(\"name\") || !json.keyExists(\"type\")) {\n\t\t\t\t\t\t\tfilesWithErrors.append(fileName);\n\t\t\t\t\t\t\tdebug(json, \"Missing key name or type in #fileName#\");\t\n\t\t\t\t\t\t}\n\t\t\t\t\t\texpect(json).toHaveKey(\"name\");\n\t\t\t\t\t\texpect(json).toHaveKey(\"type\");\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\tdebug(arguments,\"inside it args\");\n\t\t\t});\n\n\t\t\t\t\n\n\t\t});\n\n\t\tdescribe(\"There should be no errors\", function(){\n\t\t\tit(\"filesWithErrors should be empty\", function() {\n\t\t\t\texpect(filesWithErrors).toBe([]);\n\t\t\t});\t\n\t\t});\n\n\n\t}\n}","new_contents":"component extends=\"testbox.system.BaseSpec\" {\n\tfunction run(testResults, testBox) {\n\t\tdataDir = ExpandPath(\"..\/data\/en\");\n\t\tfiles = directoryList(dataDir, false, \"array\");\n\t\t\n\t\tdescribe(\"JSON Format Tests\", function() {\n\t\t\tit(\"should be valid isJSON==true\", function() {\n\t\t\t\tfor (filePath in files) {\n\t\t\t\t\tvar json = fileRead(filePath);\n\t\t\t\t\tvar isItJson = isJSON(json);\n\t\t\t\t\tvar fileName = getFileFromPath(filePath);\n\t\t\t\t\texpect(isItJSON).toBeTrue(\"#fileName# was NOT valid JSON\");\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t});\n\n\t\t\tit(\"should have key: name, type\", function() {\n\t\t\t\tfor (filePath in files) {\n\t\t\t\t\tvar json = fileRead(filePath);\n\t\t\t\t\tvar isItJson = isJSON(json);\n\t\t\t\t\tvar fileName = getFileFromPath(filePath);\n\t\t\t\t\tif (isItJSON && fileName != \"index.json\") {\n\t\t\t\t\t\tjson = deserializeJSON(json);\n\t\t\t\t\t\texpect(json).toHaveKey(\"name\", \"#fileName# did not have key: name\");\n\t\t\t\t\t\texpect(json).toHaveKey(\"type\", \"#fileName# did not have key: name\");\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t});\n\n\t\t\t\t\n\n\t\t});\n\n\t\t\n\n\t}\n}","subject":"Add custom messages to test expects","message":"Add custom messages to test expects\n","lang":"ColdFusion CFC","license":"mit","repos":"fmdano\/cfdocs,mjhagen\/cfdocs,mjhagen\/cfdocs,murphydan\/cfdocs,fmdano\/cfdocs,murphydan\/cfdocs"} {"commit":"5c0ba1721603eb7a8657790db96770159fc4672d","old_file":"tests\/Application.cfc","new_file":"tests\/Application.cfc","old_contents":"\t\n\t\n\t\tthis.name = \"cfstatictests_\" & hash(GetCurrenttemplatepath());\n\t\t\n\t\troot = GetDirectoryFromPath(GetCurrentTemplatePath());\n\n\t\tthis.mappings['\/mxunit'] = '#root#..\/mxunit';\n\t\tthis.mappings['\/org\/cfstatic'] = '#root#..\/org\/cfstatic';\n\t\tthis.mappings['\/tests'] = root;\n\t<\/cfscript>\n<\/cfcomponent>","new_contents":"\n\t\n\t\tthis.name = \"cfstatictests_\" & hash(GetCurrenttemplatepath());\n\n\t\troot = GetDirectoryFromPath(GetCurrentTemplatePath());\n\n\t\tthis.mappings['\/mxunit'] = '#root#..\/mxunit';\n\t\tthis.mappings['\/org\/cfstatic'] = '#root#..\/org\/cfstatic';\n\t\tthis.mappings['\/tests'] = Left(root, Len(root)-1); \/\/ remove trailing slash - breaks openBDs ExpandPath() method...\n\t<\/cfscript>\n<\/cfcomponent>","subject":"Fix for OpenBD ExpandPath() issue with trailing slashes in mappings","message":"Fix for OpenBD ExpandPath() issue with trailing slashes in mappings\n","lang":"ColdFusion CFC","license":"mit","repos":"teamcfadvance\/cfstatic,euans\/cfstatic,teamcfadvance\/cfstatic,euans\/cfstatic"} {"commit":"994b3a0d956a5f80b0cdba398cafcb78315c6f53","old_file":"ModuleConfig.cfc","new_file":"ModuleConfig.cfc","old_contents":"component {\n\n\tthis.title = \"SendGrid Web API v3\";\n\tthis.author = \"Matthew J. Clemente\";\n\tthis.webURL = \"https:\/\/github.com\/mjclemente\/sendgrid.cfc\";\n\tthis.description = \"A wrapper for the SendGrid Web API v3\";\n\n\tfunction configure(){\n\t\tsettings = {\n\t\t\tapiKey = '', \/\/ Required\n\t\t\tbaseUrl = 'https:\/\/api.sendgrid.com\/v3', \/\/ Default value in init\n\t\t\tforceTestMode = false, \/\/ Default value in init\n\t\t\thttpTimeout = 60, \/\/ Default value in init\n\t\t\tincludeRaw = true \/\/ Default value in init\n\t\t};\n\t}\n\n\tfunction onLoad(){\n\t\tbinder.map( \"sendgrid@sendgridcfc\" )\n\t\t\t.to( \"#moduleMapping#.sendgrid\" )\n .asSingleton()\n .initWith(\n apiKey = settings.apiKey,\n baseUrl = settings.baseUrl,\n forceTestMode = settings.forceTestMode,\n httpTimeout = settings.httpTimeout,\n includeRaw = settings.includeRaw\n );\n\t}\n\n}","new_contents":"component {\n\n\tthis.title = \"SendGrid Web API v3\";\n\tthis.author = \"Matthew J. Clemente\";\n\tthis.webURL = \"https:\/\/github.com\/mjclemente\/sendgrid.cfc\";\n\tthis.description = \"A wrapper for the SendGrid Web API v3\";\n\n\tfunction configure(){\n\t\tsettings = {\n\t\t\tapiKey = '', \/\/ Required\n\t\t\tbaseUrl = 'https:\/\/api.sendgrid.com\/v3', \/\/ Default value in init\n\t\t\tforceTestMode = false, \/\/ Default value in init\n\t\t\thttpTimeout = 60, \/\/ Default value in init\n\t\t\tincludeRaw = true \/\/ Default value in init\n\t\t};\n\t}\n\n\tfunction onLoad(){\n\t\tbinder.map( \"sendgrid@sendgridcfc\" )\n\t\t\t.to( \"#moduleMapping#.sendgrid\" )\n .asSingleton()\n .initWith(\n apiKey = settings.apiKey,\n baseUrl = settings.baseUrl,\n forceTestMode = settings.forceTestMode,\n httpTimeout = settings.httpTimeout,\n includeRaw = settings.includeRaw\n );\n binder.mapDirectory(\n packagePath = \"#moduleMapping#\/helpers\",\n namespace = \"@sendgridcfc\"\n );\n\t}\n\n}","subject":"Use directory mapping to add helpers to Wirebox","message":"Use directory mapping to add helpers to Wirebox\n","lang":"ColdFusion CFC","license":"mit","repos":"mjclemente\/sendgrid.cfc"} {"commit":"8a2e712eaa3326c50bf63dad0be1fc1309c56cb2","old_file":"src\/webapps\/main\/system\/cfc\/com\/IcedReaper\/cms\/cms\/cmsCore.cfc","new_file":"src\/webapps\/main\/system\/cfc\/com\/IcedReaper\/cms\/cms\/cmsCore.cfc","old_contents":"component implements=\"system.interfaces.com.irCMS.cms.cmsCore\" {\n public cmsCore function init(required string tablePrefix, required string datasource) {\n variables.datasource = arguments.datasource;\n variables.tablePrefix = arguments.tablePrefix;\n\n return this;\n }\n \n public string function renderTemplate(required string themeName) {\n \n }\n\n public query function getThemes() {\n try {\n return new Query().setDatasource(variables.datasource)\n .setSQL(\"SELECT themeId, themeName FROM #variables.tablePrefix#_theme WHERE active=:active\")\n .addParam(name=\"active\", value=true, cfsqltype=\"cf_sql_bit\")\n .execute()\n .getResult();\n }\n catch(any e) {\n return queryNew('themeName', 'varchar').addRow(1)\n .setCell('themeName', 'irBootstrap');\n }\n }\n}","new_contents":"component implements=\"system.interfaces.com.irCMS.cms.cmsCore\" {\n public cmsCore function init(required string tablePrefix, required string datasource) {\n variables.datasource = arguments.datasource;\n variables.tablePrefix = arguments.tablePrefix;\n\n return this;\n }\n \n public string function renderTemplate(required string themeName) {\n \n }\n\n public query function getThemes() {\n try {\n return new Query().setDatasource(variables.datasource)\n .setSQL(\"SELECT themeId, themeName FROM #variables.tablePrefix#_theme WHERE active=:active\")\n .addParam(name=\"active\", value=true, cfsqltype=\"cf_sql_bit\")\n .execute()\n .getResult();\n }\n catch(any e) {\n variables.errorHandler.processError(themeName='irBootstrap', message=e.message, detail=e.detail);\n abort;\n }\n }\n}","subject":"Throw an error when no theme is installed.","message":"Throw an error when no theme is installed.\n","lang":"ColdFusion CFC","license":"mit","repos":"IcedReaper\/irCMS"} {"commit":"35d6217a5a8bce003511119e1f83ff7635fbf844","old_file":"admin\/Application.cfc","new_file":"admin\/Application.cfc","old_contents":"component {\n\tfunction onRequestStart(){\n\t\tlocation(url=\"..\/index.cfm\/admin:main\", addtoken=\"false\");\n\t}\n}\n","new_contents":"component {\n\n\t\/\/ ------------------------ APPLICATION SETTINGS ------------------------ \/\/\n\n\tthis.applicationroot = getDirectoryFromPath(getCurrentTemplatePath());\n\tthis.name = ListLast(this.applicationroot, \"\\\/\") & \"_\" & Hash(this.applicationroot);\n\n\t\/\/ ------------------------ CALLED WHEN PAGE REQUEST STARTS ------------------------ \/\/\n\n\tfunction onRequestStart(){\n\t\tlocation(url=\"..\/index.cfm\/admin:main\", addtoken=\"false\");\n\t}\n}\n","subject":"Add `this.name` to the admin application.","message":"Add `this.name` to the admin application.\n","lang":"ColdFusion CFC","license":"mit","repos":"okjim3GH\/xindi,okjim3GH\/xindi,okjim3GH\/xindi,okjim3GH\/xindi"} {"commit":"aae551a37fa2db9d728f066fa357c3e71b024d64","old_file":"models\/ObjectFactory.cfc","new_file":"models\/ObjectFactory.cfc","old_contents":"component {\n\n\tfunction get(required string class) {\n\t\treturn createObject(\"java\", arguments.class, [expandpath(\"\/cashbox\/lib\/vindicia_NOAXIS.jar\")]);\n\t}\n\n\tfunction getClassVersion() {\n\t\tif (isnull(variables.classVersion)) {\n\t\t\tvar ClientConstants = get(\"com.vindicia.client.ClientConstants\");\n\t\t\tvariables.classVersion = \"v#replace(ClientConstants.getVersion(),'.','_','all')#\";\n\t\t}\n\n\t\treturn variables.classVersion;\n\t}\n\n}","new_contents":"component {\n\n\tfunction get(required string class) {\n\t\treturn createObject(\"java\", arguments.class, [expandpath(\"\/cashbox\/lib\/vindicia.jar\")]);\n\t}\n\n\tfunction getClassVersion() {\n\t\tif (isnull(variables.classVersion)) {\n\t\t\tvar ClientConstants = get(\"com.vindicia.client.ClientConstants\");\n\t\t\tvariables.classVersion = \"v#replace(ClientConstants.getVersion(),'.','_','all')#\";\n\t\t}\n\n\t\treturn variables.classVersion;\n\t}\n\n}","subject":"Use standard Java client instead of NOAXIS","message":"Use standard Java client instead of NOAXIS\n","lang":"ColdFusion CFC","license":"mit","repos":"sjdaniels\/coldbox-module-vindiciacashbox"} {"commit":"9dac1655b567009f34abe6ea366069acedc84445","old_file":"template\/tests\/Application.cfc","new_file":"template\/tests\/Application.cfc","old_contents":"component {\n\n this.name = \"ColdBoxTestingSuite\" & hash(getCurrentTemplatePath());\n this.sessionManagement = true;\n this.setClientCookies = true;\n this.sessionTimeout = createTimeSpan( 0, 0, 15, 0 );\n this.applicationTimeout = createTimeSpan( 0, 0, 15, 0 );\n\n testsPath = getDirectoryFromPath( getCurrentTemplatePath() );\n this.mappings[ \"\/tests\" ] = testsPath;\n rootPath = REReplaceNoCase( this.mappings[ \"\/tests\" ], \"tests(\\\\|\/)\", \"\" );\n this.mappings[ \"\/root\" ] = rootPath;\n this.mappings[ \"\/testingModuleRoot\" ] = expandPath( rootPath & \"..\/\" );\n this.mappings[ \"\/app\" ] = testsPath & \"resources\/app\";\n this.mappings[ \"\/coldbox\" ] = testsPath & \"resources\/app\/coldbox\";\n this.mappings[ \"\/testbox\" ] = rootPath & \"\/testbox\";\n}\n","new_contents":"component {\n\n this.name = \"ColdBoxTestingSuite\" & hash(getCurrentTemplatePath());\n this.sessionManagement = true;\n this.setClientCookies = true;\n this.sessionTimeout = createTimeSpan( 0, 0, 15, 0 );\n this.applicationTimeout = createTimeSpan( 0, 0, 15, 0 );\n\n testsPath = getDirectoryFromPath( getCurrentTemplatePath() );\n this.mappings[ \"\/tests\" ] = testsPath;\n rootPath = REReplaceNoCase( this.mappings[ \"\/tests\" ], \"tests(\\\\|\/)\", \"\" );\n this.mappings[ \"\/root\" ] = rootPath;\n this.mappings[ \"\/testingModuleRoot\" ] = listDeleteAt( rootPath, listLen( rootPath, '\\\/' ), \"\\\/\" );\n this.mappings[ \"\/app\" ] = testsPath & \"resources\/app\";\n this.mappings[ \"\/coldbox\" ] = testsPath & \"resources\/app\/coldbox\";\n this.mappings[ \"\/testbox\" ] = rootPath & \"\/testbox\";\n}\n","subject":"Fix mapping on Adobe CF","message":"Fix mapping on Adobe CF","lang":"ColdFusion CFC","license":"mit","repos":"elpete\/cb-module-template"} {"commit":"ca7ff0b9c4d3a27feeb4284e37b80f544d963a67","old_file":"Application.cfc","new_file":"Application.cfc","old_contents":"component extends=\"coldbox.system.Coldbox\" output=\"false\"{\n\tsetting enablecfoutputonly=\"yes\";\n\tthis.name = hash(getCurrentTemplatePath());\n\tthis.sessionManagement = true;\n\tthis.sessionTimeout = createTimeSpan(0,0,30,0);\n\tthis.setClientCookies = true;\n\n\tCOLDBOX_APP_ROOT_PATH = getDirectoryFromPath(getCurrentTemplatePath());\n\tCOLDBOX_APP_MAPPING = \"\";\n\tCOLDBOX_CONFIG_FILE = \"\";\n\tCOLDBOX_APP_KEY = \"\";\n\n\tthis.ormEnabled = true;\n\tthis.datasource = \"botfly\";\n\tthis.ormSettings \t= {\n\t\tflushAtRequestEnd\t\t= false,\n\t\tautomanageSession\t\t= false,\n\t\tautogenmap\t\t\t\t= true,\n\t\teventHandling\t\t\t= true,\n\t\tlogSQL\t\t\t\t\t= true,\n\t\tsecondaryCacheEnabled\t= true,\n\t\tuseDBForMapping\t\t\t= false,\n\t\tsavemapping\t\t\t\t= false,\n\t\tskipCFCWithError\t\t= true,\n\t\tcacheprovider\t\t\t= \"ehCache\",\n\t\tdbcreate\t\t\t\t= \"none\",\n\t\teventHandler\t\t\t= \"botfly.model.EventHandler\",\n\t\tcfclocation\t\t\t\t= \"model\"\n\t};\n\n\n\tpublic boolean function onRequestStart(required string targetPage){\n\n\t\tif(findNoCase('index.cfm', listLast(arguments.targetPage, '\/'))){\n\t\t\treloadChecks();\n\t\t\tprocessColdBoxRequest();\n\t\t}\n\n\t\treturn true;\n\t}\n\n}","new_contents":"component extends=\"coldbox.system.Coldbox\" output=\"false\"{\n\tsetting enablecfoutputonly=\"yes\";\n\tthis.name = hash(getCurrentTemplatePath());\n\tthis.sessionManagement = true;\n\tthis.sessionTimeout = createTimeSpan(0,0,30,0);\n\tthis.setClientCookies = true;\n\n\tCOLDBOX_APP_ROOT_PATH = getDirectoryFromPath(getCurrentTemplatePath());\n\tCOLDBOX_APP_MAPPING = \"\";\n\tCOLDBOX_CONFIG_FILE = \"\";\n\tCOLDBOX_APP_KEY = \"\";\n\n\tthis.ormEnabled = true;\n\tthis.datasource = \"{botfly}\";\n\tthis.ormSettings \t= {\n\t\tflushAtRequestEnd\t\t= false,\n\t\tautomanageSession\t\t= false,\n\t\tautogenmap\t\t\t\t= true,\n\t\teventHandling\t\t\t= true,\n\t\tlogSQL\t\t\t\t\t= true,\n\t\tsecondaryCacheEnabled\t= true,\n\t\tuseDBForMapping\t\t\t= false,\n\t\tsavemapping\t\t\t\t= false,\n\t\tskipCFCWithError\t\t= true,\n\t\tcacheprovider\t\t\t= \"ehCache\",\n\t\tdbcreate\t\t\t\t= \"none\",\n\t\teventHandler\t\t\t= \"botfly.model.EventHandler\",\n\t\tcfclocation\t\t\t\t= \"model\"\n\t};\n\n\n\tpublic boolean function onRequestStart(required string targetPage){\n\n\t\tif(findNoCase('index.cfm', listLast(arguments.targetPage, '\/'))){\n\t\t\treloadChecks();\n\t\t\tprocessColdBoxRequest();\n\t\t}\n\n\t\treturn true;\n\t}\n\n}","subject":"Replace {botfly} with correct datasource","message":"Replace {botfly} with correct datasource\n","lang":"ColdFusion CFC","license":"lgpl-2.1","repos":"NextStepGuru\/BotFly,NextStepGuru\/BotFly,NextStepGuru\/BotFly"} {"commit":"9d0f1ea3d75a913433a045c9edd1e9d55f08e3b5","old_file":"ModuleConfig.cfc","new_file":"ModuleConfig.cfc","old_contents":"component {\n\n\tthis.title = \"SendGrid Web API v3\";\n\tthis.author = \"Matthew J. Clemente\";\n\tthis.webURL = \"https:\/\/github.com\/mjclemente\/sendgrid.cfc\";\n\tthis.description = \"A wrapper for the SendGrid Web API v3\";\n\n\tfunction configure(){\n\t\tsettings = {\n\t\t\tapiKey = '', \/\/ Required\n\t\t\tbaseUrl = 'https:\/\/api.sendgrid.com\/v3', \/\/ Default value in init\n\t\t\tforceTestMode = false, \/\/ Default value in init\n\t\t\thttpTimeout = 60, \/\/ Default value in init\n\t\t\tincludeRaw = true \/\/ Default value in init\n\t\t};\n\t}\n\n\tfunction onLoad(){\n\t\tbinder.map( \"sendgrid@sendgridcfc\" )\n\t\t\t.to( \"#moduleMapping#.sendgrid\" )\n .asSingleton()\n .initWith(\n apiKey = settings.apiKey,\n baseUrl = settings.baseUrl,\n forceTestMode = settings.forceTestMode,\n httpTimeout = settings.httpTimeout,\n includeRaw = settings.includeRaw\n );\n binder.mapDirectory(\n packagePath = \"#moduleMapping#\/helpers\",\n namespace = \"@sendgridcfc\"\n );\n\t}\n\n}","new_contents":"component {\n\n\tthis.title = \"SendGrid Web API v3\";\n\tthis.author = \"Matthew J. Clemente\";\n\tthis.webURL = \"https:\/\/github.com\/mjclemente\/sendgrid.cfc\";\n\tthis.description = \"A wrapper for the SendGrid Web API v3\";\n\n\tfunction configure(){\n\t\tsettings = {\n\t\t\tapiKey = '', \/\/ Required\n\t\t\tbaseUrl = 'https:\/\/api.sendgrid.com\/v3', \/\/ Default value in init\n\t\t\tforceTestMode = false, \/\/ Default value in init\n\t\t\thttpTimeout = 60, \/\/ Default value in init\n\t\t\tincludeRaw = true \/\/ Default value in init\n\t\t};\n\t}\n\n\tfunction onLoad(){\n\t\tbinder.map( \"sendgrid@sendgridcfc\" )\n\t\t\t.to( \"#moduleMapping#.sendgrid\" )\n .asSingleton()\n .initWith(\n apiKey = settings.apiKey,\n baseUrl = settings.baseUrl,\n forceTestMode = settings.forceTestMode,\n httpTimeout = settings.httpTimeout,\n includeRaw = settings.includeRaw\n );\n binder.mapDirectory(\n packagePath = \"#REreplace( moduleMapping, '^\/', '' )#\/helpers\",\n namespace = \"@sendgridcfc\"\n );\n\t}\n\n}","subject":"Remove leading slash for modulemapping","message":"Remove leading slash for modulemapping\n","lang":"ColdFusion CFC","license":"mit","repos":"mjclemente\/sendgrid.cfc"} {"commit":"4f31a9df678bf1f9b34347c52a4fd890727e1289","old_file":"test\/tickets\/LDEV1467.cfc","new_file":"test\/tickets\/LDEV1467.cfc","old_contents":"component extends=\"org.lucee.cfml.test.LuceeTestCase\"{\n\tfunction run( testResults , testBox ) {\n\t\tdescribe( title=\"Test suite for LDEV-1467\", body=function() {\n\t\t\tit(title=\"Checking REMatch() is not support with line breaks \", body = function( currentSpec ) {\n\t\t\t\tREMatchTest = ArrayLen( REMatch( '.', Chr( 10 ) ) );\n\t\t\t\texpect(REMatchTest).toBe(1);\n\t\t\t});\n\t\t\tit(title=\"Checking REFind() is support with line breaks\", body = function( currentSpec ) {\n\t\t\t\tREFindTest = REFind( '.',Chr( 10 ) ) ;\n\t\t\t\texpect(REFindTest).toBe(1);\n\t\t\t});\n\t\t});\n\t}\n}\n","new_contents":"component extends=\"org.lucee.cfml.test.LuceeTestCase\"{\n\tfunction run( testResults , testBox ) {\n\t\tdescribe( title=\"Test suite for LDEV-1467\", body=function() {\n\t\t\tit(title=\"Checking REMatch() with line breaks \", body = function( currentSpec ) {\n\t\t\t\tREMatchTest = ArrayLen( REMatch( '.', Chr( 10 ) ) );\n\t\t\t\texpect(REMatchTest).toBe(1);\n\t\t\t});\n\t\t\tit(title=\"Checking REFind() with line breaks\", body = function( currentSpec ) {\n\t\t\t\tREFindTest = REFind( '.',Chr( 10 ) ) ;\n\t\t\t\texpect(REFindTest).toBe(1);\n\t\t\t});\n\t\t});\n\t}\n}\n","subject":"Rename the test suite iterations","message":"Rename the test suite iterations\n","lang":"ColdFusion CFC","license":"lgpl-2.1","repos":"jzuijlek\/Lucee,lucee\/Lucee,jzuijlek\/Lucee,lucee\/Lucee,jzuijlek\/Lucee,lucee\/Lucee,lucee\/Lucee"} {"commit":"16214c40755dc468f57ba1580897c0a918ee464a","old_file":"exercises\/leap\/LeapTest.cfc","new_file":"exercises\/leap\/LeapTest.cfc","old_contents":"component displayName=\"Leap Tests\" extends=\"testbox.system.BaseSpec\" {\n\n \/\/ executes before all tests\n function beforeTests(){\n leapObj = createObject(\"leap\");\n }\n\n function testLeapYear() {\n $assert.isTrue(leapObj.isLeapYear(1996));\n }\n\n function testNonLeapYear() {\n $assert.isFalse(leapObj.isLeapYear(1997));\n }\n\n function testNonLeapEvenYear() {\n $assert.isFalse(leapObj.isLeapYear(1998));\n }\n\n function testCentury() {\n $assert.isFalse(leapObj.isLeapYear(1900));\n }\n\n function testfourthCentury() {\n $assert.isTrue(leapObj.isLeapYear(2400));\n }\n\n function testY2K() {\n $assert.isTrue(leapObj.isLeapYear(2000));\n }\n\n \/\/ executes after all tests\n function afterTests(){}\n\n}","new_contents":"component extends=\"testbox.system.BaseSpec\" {\n\n\tfunction beforeAll(){\n\t leapObj = createObject( 'leap' );\n\t}\n\n\tfunction run(){\n\t\n\t\tdescribe( \"My Leap year calculator\", function(){\n\t\t\t\n\t\t\tit( \"should detect a leap year\", function(){\n \t\t\texpect( leapObj.isLeapYear( 1996 ) ).toBeTrue();\n\t\t\t});\n\t\t\t\n\t\t\tit( \"should detect a non-leap year\", function(){\n \t\t\texpect( leapObj.isLeapYear( 1997 ) ).toBeFalse();\n\t\t\t});\n\t\t\t\n\t\t\tit( \"should detect a non-leap even year\", function(){\n \t\t\texpect( leapObj.isLeapYear( 1998 ) ).toBeFalse();\n\t\t\t});\n\t\t\t\n\t\t\tit( \"should detect a century\", function(){\n \t\t\texpect( leapObj.isLeapYear( 1900 ) ).toBeFalse();\n\t\t\t});\n\t\t\t\n\t\t\tit( \"should detect a fourth century\", function(){\n \t\t\texpect( leapObj.isLeapYear( 2400 ) ).toBeTrue();\n\t\t\t});\n\t\t\t\n\t\t\tit( \"should detect Y2K\", function(){\n \t\t\texpect( leapObj.isLeapYear( 2000 ) ).toBeTrue();\n\t\t\t});\n\t\t\t\n\t\t});\n\t\t\n\t}\n \n}","subject":"Convert to BDD style tests","message":"Convert to BDD style tests\n","lang":"ColdFusion CFC","license":"mit","repos":"exercism\/xcoldfusion"} {"commit":"3184f1d17551904c51099e72057fac966521117b","old_file":"ModuleConfig.cfc","new_file":"ModuleConfig.cfc","old_contents":"component {\n\n\tthis.title = \"SendGrid Web API v3\";\n\tthis.author = \"Matthew J. Clemente\";\n\tthis.webURL = \"https:\/\/github.com\/mjclemente\/sendgrid.cfc\";\n\tthis.description = \"A wrapper for the SendGrid Web API v3\";\n\n\tfunction configure(){\n\t\tsettings = {\n\t\t\tapiKey = '', \/\/ Required\n\t\t\tbaseUrl = 'https:\/\/api.sendgrid.com\/v3', \/\/ Default value in init\n\t\t\tforceTestMode = false, \/\/ Default value in init\n\t\t\thttpTimeout = 60, \/\/ Default value in init\n\t\t\tincludeRaw = true \/\/ Default value in init\n\t\t};\n\t}\n\n\tfunction onLoad(){\n\t\tparseParentSettings();\n\t\tvar sendGridAPISettings = controller.getConfigSettings().sendGrid;\n\n\t\tbinder.map( \"sendGrid@sendGrid\" )\n\t\t\t.to( \"#moduleMapping#.sendgrid\" )\n\t\t\t.initArg( name=\"apiKey\", value=sendGridAPISettings.apiKey )\n\t\t\t.initArg( name=\"baseUrl\", value=sendGridAPISettings.baseUrl )\n\t\t\t.initArg( name=\"forceTestMode\", value=sendGridAPISettings.forceTestMode )\n\t\t\t.initArg( name=\"httpTimeout\", value=sendGridAPISettings.httpTimeout )\n\t\t\t.initArg( name=\"includeRaw\", value=sendGridAPISettings.includeRaw );\n\t}\n\n\tprivate function parseParentSettings(){\n\t\tvar oConfig = controller.getSetting( \"ColdBoxConfig\" );\n\t\tvar configStruct = controller.getConfigSettings();\n\t\tvar sendGridDSL = oConfig.getPropertyMixin( \"sendGrid\", \"variables\", structnew() );\n\n\t\t\/\/defaults\n\t\tconfigStruct.sendGrid = variables.settings;\n\n\t\t\/\/ incorporate settings\n\t\tstructAppend( configStruct.sendGrid, sendGridDSL, true );\n\t}\n\n}","new_contents":"component {\n\n\tthis.title = \"SendGrid Web API v3\";\n\tthis.author = \"Matthew J. Clemente\";\n\tthis.webURL = \"https:\/\/github.com\/mjclemente\/sendgrid.cfc\";\n\tthis.description = \"A wrapper for the SendGrid Web API v3\";\n\n\tfunction configure(){\n\t\tsettings = {\n\t\t\tapiKey = '', \/\/ Required\n\t\t\tbaseUrl = 'https:\/\/api.sendgrid.com\/v3', \/\/ Default value in init\n\t\t\tforceTestMode = false, \/\/ Default value in init\n\t\t\thttpTimeout = 60, \/\/ Default value in init\n\t\t\tincludeRaw = true \/\/ Default value in init\n\t\t};\n\t}\n\n\tfunction onLoad(){\n\t\tbinder.map( \"sendGrid@sendGrid\" )\n\t\t\t.to( \"#moduleMapping#.sendgrid\" )\n .asSingleton()\n .initWith(\n apiKey = settings.apiKey,\n baseUrl = settings.baseUrl,\n forceTestMode = settings.forceTestMode,\n httpTimeout = settings.httpTimeout,\n includeRaw = settings.includeRaw\n );\n\t}\n\n}","subject":"Simplify onLoad(), eliminating need for private method","message":"Simplify onLoad(), eliminating need for private method\n","lang":"ColdFusion CFC","license":"mit","repos":"mjclemente\/sendgrid.cfc"} {"commit":"d1ef993280e14a408ac38983d2b8d007bb153e60","old_file":"Application.cfc","new_file":"Application.cfc","old_contents":"\r\n \r\n\r\n \r\n \r\n <\/cffunction>\r\n\r\n \r\n \r\n \r\n \r\n <\/cfif>\r\n\r\n \r\n <\/cffunction>\r\n\r\n \r\n \r\n\r\n \r\n \r\n <\/cffunction>\r\n<\/cfcomponent>","new_contents":"\r\n \r\n\r\n \r\n \r\n \r\n <\/cfif>\r\n\r\n \r\n <\/cffunction>\r\n\r\n \r\n \r\n \r\n \r\n <\/cfif>\r\n\r\n \r\n <\/cffunction>\r\n\r\n \r\n \r\n \r\n

#error.message#<\/h3>\r\n

#error.detail#<\/h4>\r\n <\/cfoutput>\r\n \r\n <\/cffunction>\r\n<\/cfcomponent>","subject":"Use test config file instead of production","message":"Use test config file instead of production\n\nNeeded to do proper testing\n","lang":"ColdFusion CFC","license":"mit","repos":"mjhagen\/idealcfc"} {"commit":"ffbdd690a15908de09f3c9192ab4353be27486d6","old_file":"ModuleConfig.cfc","new_file":"ModuleConfig.cfc","old_contents":"component {\n\n\tthis.title = \"SendGrid Web API v3\";\n\tthis.author = \"Matthew J. Clemente\";\n\tthis.webURL = \"https:\/\/github.com\/mjclemente\/sendgrid.cfc\";\n\tthis.description = \"A wrapper for the SendGrid Web API v3\";\n\n\tfunction configure(){\n\t\tsettings = {\n apiKey = '', \/\/ Required\n emailValidationApiKey = '', \/\/ Optional\n\t\t\tbaseUrl = 'https:\/\/api.sendgrid.com\/v3', \/\/ Default value in init\n\t\t\tforceTestMode = false, \/\/ Default value in init\n\t\t\thttpTimeout = 60, \/\/ Default value in init\n\t\t\tincludeRaw = true \/\/ Default value in init\n\t\t};\n\t}\n\n\tfunction onLoad(){\n\t\tbinder.map( \"sendgrid@sendgridcfc\" )\n\t\t\t.to( \"#moduleMapping#.sendgrid\" )\n .asSingleton()\n .initWith(\n apiKey = settings.apiKey,\n emailValidationApiKey = settings.emailValidationApiKey,\n baseUrl = settings.baseUrl,\n forceTestMode = settings.forceTestMode,\n httpTimeout = settings.httpTimeout,\n includeRaw = settings.includeRaw\n );\n binder.mapDirectory(\n packagePath = \"#REreplace( moduleMapping, '^\/', '' )#\/helpers\",\n namespace = \"@sendgridcfc\"\n );\n\t}\n\n}","new_contents":"component {\n\n\tthis.title = \"SendGrid Web API v3\";\n\tthis.author = \"Matthew J. Clemente\";\n\tthis.webURL = \"https:\/\/github.com\/mjclemente\/sendgrid.cfc\";\n\tthis.description = \"A wrapper for the SendGrid Web API v3\";\n\n\tfunction configure(){\n\t\tsettings = {\n apiKey = '', \/\/ Required\n emailValidationApiKey = '', \/\/ Optional\n\t\t\tbaseUrl = 'https:\/\/api.sendgrid.com\/v3', \/\/ Default value in init\n\t\t\tforceTestMode = false, \/\/ Default value in init\n\t\t\thttpTimeout = 60, \/\/ Default value in init\n\t\t\tincludeRaw = false \/\/ Default value in init\n\t\t};\n\t}\n\n\tfunction onLoad(){\n\t\tbinder.map( \"sendgrid@sendgridcfc\" )\n\t\t\t.to( \"#moduleMapping#.sendgrid\" )\n .asSingleton()\n .initWith(\n apiKey = settings.apiKey,\n emailValidationApiKey = settings.emailValidationApiKey,\n baseUrl = settings.baseUrl,\n forceTestMode = settings.forceTestMode,\n httpTimeout = settings.httpTimeout,\n includeRaw = settings.includeRaw\n );\n binder.mapDirectory(\n packagePath = \"#REreplace( moduleMapping, '^\/', '' )#\/helpers\",\n namespace = \"@sendgridcfc\"\n );\n\t}\n\n}","subject":"Update module config default to match component for include raw param","message":"Update module config default to match component for include raw param\n","lang":"ColdFusion CFC","license":"mit","repos":"mjclemente\/sendgrid.cfc"} {"commit":"b742fc8d44e882e6ff4c289626a5b716c71ba36d","old_file":"wheels\/tests\/_assets\/models\/User.cfc","new_file":"wheels\/tests\/_assets\/models\/User.cfc","old_contents":"component extends=\"Model\" {\n\n\tfunction config() {\n\t\thasMany(name=\"galleries\");\n\t\thasOne(name=\"combikey\");\n\t\thasOne(name=\"author\", foreignKey=\"firstName\", joinKey=\"firstName\");\n\t\thasMany(name=\"authors\", foreignKey=\"firstName\", joinKey=\"firstName\");\n\t\thasMany(name=\"combikeys\");\n\t\thasMany(name=\"outerjoinphotogalleries\", modelName=\"gallery\", jointype=\"outer\");\n\t\tvalidatesPresenceOf(\"username, password, firstname, lastname\");\n\t\tvalidatesUniquenessOf(\"username\");\n\t\tvalidatesLengthOf(property=\"username\", minimum=\"4\", maximum=\"20\", when=\"onCreate\", message=\"Please shorten your [property] please. [maximum] characters is the maximum length allowed.\");\n\t\tvalidatesLengthOf(property=\"password\", minimum=\"4\", when=\"onUpdate\");\n\t\tvalidate(\"validateCalled\");\n\t\tvalidateOnCreate(\"validateOnCreateCalled\");\n\t\tvalidateOnUpdate(\"validateOnUpdateCalled\");\n\t\tproperty(name=\"salesTotal\", sql=\"SUM(birthDayMonth)\", select=false, dataType=\"int\");\n\t}\n\n\tfunction validateCalled() {\n\t\tthis._validateCalled = true;\n\t}\n\n\tfunction validateOnCreateCalled() {\n\t\tthis._validateOnCreateCalled = true;\n\t}\n\n\tfunction validateOnUpdateCalled() {\n\t\tthis._validateOnUpdateCalled = true;\n\t}\n\n}\n","new_contents":"component extends=\"Model\" {\n\n\tfunction config() {\n\t\thasMany(name=\"galleries\");\n\t\thasOne(name=\"combikey\");\n\t\thasOne(name=\"author\", foreignKey=\"firstName\", joinKey=\"firstName\");\n\t\thasMany(name=\"authors\", foreignKey=\"firstName\", joinKey=\"firstName\");\n\t\thasMany(name=\"combikeys\");\n\t\thasMany(name=\"outerjoinphotogalleries\", modelName=\"gallery\", jointype=\"outer\");\n\t\tvalidatesPresenceOf(\"username, password, firstname, lastname\");\n\t\tvalidatesUniquenessOf(\"username\");\n\t\tvalidatesLengthOf(property=\"username\", minimum=\"4\", maximum=\"20\", when=\"onCreate\", message=\"Please shorten your [property] please. [maximum] characters is the maximum length allowed.\");\n\t\tvalidatesLengthOf(property=\"password\", minimum=\"4\", when=\"onUpdate\");\n\t\tvalidate(\"validateCalled\");\n\t\tvalidateOnCreate(\"validateOnCreateCalled\");\n\t\tvalidateOnUpdate(\"validateOnUpdateCalled\");\n\t\tlocal.db_info = $dbinfo(datasource=application.wheels.dataSourceName, type=\"version\");\n\t\tlocal.db = LCase(Replace(local.db_info.database_productname, \" \", \"\", \"all\"));\n\t\tif (local.db IS \"oracle\") {\n\t\t\tproperty(name=\"salesTotal\", sql=\"SUM(birthDayMonth)\", select=false, dataType=\"number\");\n\t\t} else {\n\t\t\tproperty(name=\"salesTotal\", sql=\"SUM(birthDayMonth)\", select=false, dataType=\"int\");\n\t\t}\n\t}\n\n\tfunction validateCalled() {\n\t\tthis._validateCalled = true;\n\t}\n\n\tfunction validateOnCreateCalled() {\n\t\tthis._validateOnCreateCalled = true;\n\t}\n\n\tfunction validateOnUpdateCalled() {\n\t\tthis._validateOnUpdateCalled = true;\n\t}\n\n}\n","subject":"Use number instead of int for Oracle.","message":"Use number instead of int for Oracle.\n","lang":"ColdFusion CFC","license":"apache-2.0","repos":"cfwheels\/cfwheels,cfwheels\/cfwheels,cfwheels\/cfwheels"} {"commit":"cc5df00bb162ce972c981c43e486185214505d40","old_file":"test\/tickets\/LDEV3426\/Application.cfc","new_file":"test\/tickets\/LDEV3426\/Application.cfc","old_contents":"component {\n\tpgSQL = getCredentials();\n this.name = \"test3426\";\n this.datasources[\"LDEV_3426\"] = pgSQL;\n\tthis.datasource = \"LDEV_3426\"\n public function onRequestStart(){\n\t\tquery{\n\t\t\techo(\"DROP TABLE IF EXISTS LDEV3426_Primary\");\n\t\t}\n query{\n\t\t\techo(\"DROP TABLE IF EXISTS LDEV3426_test\");\n\t\t}\n\t\tquery{\n\t\t\techo(\"CREATE TABLE LDEV3426_Primary( id SERIAL NOT NULL PRIMARY KEY, test VARCHAR(50))\");\n\t\t}\n\t}\n private struct function getCredentials() {\n \treturn server.getDatasource(\"postgres\");\n\t}\n public function onRequestEnd(){\n\t\tquery{\n\t\t\techo(\"DROP TABLE IF EXISTS LDEV3426_Primary\");\n\t\t}\n\t}\n}","new_contents":"component {\n pgSQL = getCredentials();\n this.name = \"test3426\";\n this.datasources[\"LDEV_3426\"] = pgSQL;\n this.datasource = \"LDEV_3426\"\n public function onRequestStart(){\n if( StructIsEmpty(pgSQL) ){\n writeoutput(\"Datasource credentials was not available\"); \/\/ Datasource credentials was not available means need to stop the iterations.\n abort;\n }\n query{\n echo(\"DROP TABLE IF EXISTS LDEV3426_test\");\n }\n query{\n echo(\"DROP TABLE IF EXISTS LDEV3426_Primary\");\n }\n query{\n echo(\"CREATE TABLE LDEV3426_Primary( id SERIAL NOT NULL PRIMARY KEY, test VARCHAR(50))\");\n }\n }\n private struct function getCredentials() {\n return server.getDatasource(\"postgres\");\n }\n public function onRequestEnd(){\n if( StructIsEmpty(pgSQL) ) return;\n query{\n echo(\"DROP TABLE IF EXISTS LDEV3426_test\");\n }\n query{\n echo(\"DROP TABLE IF EXISTS LDEV3426_Primary\");\n }\n }\n}","subject":"Update the testcase to check datasource credentials available or not","message":"Update the testcase to check datasource credentials available or not\n","lang":"ColdFusion CFC","license":"lgpl-2.1","repos":"lucee\/Lucee,lucee\/Lucee,lucee\/Lucee,lucee\/Lucee"} {"commit":"a3a82b6bfaec6a7cabb44c61592be3f2a19a508a","old_file":"test\/tickets\/LDEV1167.cfc","new_file":"test\/tickets\/LDEV1167.cfc","old_contents":"","new_contents":"component extends=\"org.lucee.cfml.test.LuceeTestCase\"{\n\tfunction run( testResults , testBox ) {\n\t\tdescribe( \"Test suite for LDEV-1167\", function() {\n\t\t\tit(title=\"checking WDDX tag, with action = 'wddx2cfml' when the struct empty \", body = function( currentSpec ) {\n\t\t\t\tvar myWDDX = \"<\/data><\/wddxPacket>\";\n\t\t\t\tcfwddx( action='wddx2cfml', input=myWDDX, output='local.myData');\n\t\t\t\texpect(local.myData).toBeTypeOf('struct')\n\t\t\t});\n\n\t\t\tit(title=\"checking WDDX tag, with action = 'wddx2cfml' when the query empty \", body = function( currentSpec ) {\n\t\t\t\tmyWDDX = \"<\/field><\/field><\/recordset><\/data><\/wddxPacket>\";\n\t\t\t\tcfwddx( action='wddx2cfml', input=myWDDX, output='local.myData');\n\t\t\t\texpect(local.myData).toBeTypeOf('query')\n\t\t\t});\n\t\t});\n\t}\n}\n","subject":"Add test case for LDEV-1167","message":"Add test case for LDEV-1167\n","lang":"ColdFusion CFC","license":"lgpl-2.1","repos":"lucee\/Lucee,jzuijlek\/Lucee,lucee\/Lucee,lucee\/Lucee,lucee\/Lucee,jzuijlek\/Lucee,jzuijlek\/Lucee"} {"commit":"90d8b5a4cbfd51ecf829205a023a668fccd914ac","old_file":"Database\/Migrations\/2017_01_12_181640_add_epositem_nomid_foreign.cfc","new_file":"Database\/Migrations\/2017_01_12_181640_add_epositem_nomid_foreign.cfc","old_contents":"","new_contents":"component\n{\n \/**\n * Run the migrations.\n *\n * @return void\n *\/\n public void function up()\n {\n var table = schema('tblEPOS_Items');\n table.foreign('eiNomID').references('tblEPOS_Account', 'eaID').onDelete('restrict');\n table.update();\n }\n\n \/**\n * Reverse the migrations.\n *\n * @return void\n *\/\n public void function down()\n {\n schema('tblEPOS_Items').dropForeign('eiNomID');\n }\n}\n","subject":"Add foreign key to EPOS items nom ID","message":"Add foreign key to EPOS items nom ID\n","lang":"ColdFusion CFC","license":"mit","repos":"smallstone-uk\/sle-epos,smallstone-uk\/sle-epos,smallstone-uk\/sle-epos"}