Skip to content

Commit 69bf2b5

Browse files
committed
new layout and fixes
1 parent 66f8bdf commit 69bf2b5

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

62 files changed

+1001
-551
lines changed

.cflintrc

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
{
2+
"rule": [],
3+
"includes": [
4+
{ "code": "AVOID_USING_CFINCLUDE_TAG" },
5+
{ "code": "AVOID_USING_CFABORT_TAG" },
6+
{ "code": "AVOID_USING_CFEXECUTE_TAG" },
7+
{ "code": "AVOID_USING_DEBUG_ATTR" },
8+
{ "code": "AVOID_USING_ABORT" },
9+
{ "code": "AVOID_USING_ISDATE" },
10+
{ "code": "AVOID_USING_ISDEBUGMODE" },
11+
{ "code": "AVOID_USING_CFINSERT_TAG" },
12+
{ "code": "AVOID_USING_CFUPDATE_TAG" },
13+
{ "code": "ARG_VAR_CONFLICT" },
14+
{ "code": "ARG_HINT_MISSING" },
15+
{ "code": "ARG_HINT_MISSING_SCRIPT" },
16+
{ "code" : "ARGUMENT_INVALID_NAME" },
17+
{ "code" : "ARGUMENT_ALLCAPS_NAME" },
18+
{ "code" : "ARGUMENT_TOO_WORDY" },
19+
{ "code" : "ARGUMENT_IS_TEMPORARY" },
20+
{ "code": "CFQUERYPARAM_REQ" },
21+
{ "code": "COMPARE_INSTEAD_OF_ASSIGN" },
22+
{ "code": "COMPONENT_HINT_MISSING" },
23+
{ "code" : "COMPONENT_INVALID_NAME" },
24+
{ "code" : "COMPONENT_ALLCAPS_NAME" },
25+
{ "code" : "COMPONENT_TOO_SHORT" },
26+
{ "code" : "COMPONENT_TOO_LONG" },
27+
{ "code" : "COMPONENT_TOO_WORDY" },
28+
{ "code" : "COMPONENT_IS_TEMPORARY" },
29+
{ "code" : "COMPONENT_HAS_PREFIX_OR_POSTFIX" },
30+
{ "code": "COMPLEX_BOOLEAN_CHECK" },
31+
{ "code": "EXCESSIVE_FUNCTION_LENGTH" },
32+
{ "code": "EXCESSIVE_COMPONENT_LENGTH" },
33+
{ "code": "EXCESSIVE_ARGUMENTS" },
34+
{ "code": "EXCESSIVE_FUNCTIONS" },
35+
{ "code": "EXPLICIT_BOOLEAN_CHECK" },
36+
{ "code": "FUNCTION_TOO_COMPLEX" },
37+
{ "code": "FUNCTION_HINT_MISSING" },
38+
{ "code": "FILE_SHOULD_START_WITH_LOWERCASE" },
39+
{ "code": "LOCAL_LITERAL_VALUE_USED_TOO_OFTEN" },
40+
{ "code": "GLOBAL_LITERAL_VALUE_USED_TOO_OFTEN" },
41+
{ "code": "MISSING_VAR" },
42+
{ "code" : "METHOD_INVALID_NAME" },
43+
{ "code" : "METHOD_ALLCAPS_NAME" },
44+
{ "code" : "METHOD_IS_TEMPORARY" },
45+
{ "code": "NESTED_CFOUTPUT" },
46+
{ "code": "NEVER_USE_QUERY_IN_CFM" },
47+
{ "code": "OUTPUT_ATTR" },
48+
{ "code" : "QUERYPARAM_REQ" },
49+
{ "code": "UNUSED_LOCAL_VARIABLE" },
50+
{ "code": "UNUSED_METHOD_ARGUMENT" },
51+
{ "code": "SQL_SELECT_STAR" },
52+
{ "code": "SCOPE_ALLCAPS_NAME" },
53+
{ "code": "VAR_ALLCAPS_NAME" },
54+
{ "code": "VAR_INVALID_NAME" },
55+
{ "code": "VAR_TOO_WORDY" }
56+
],
57+
"inheritParent": false,
58+
"parameters": {
59+
"TooManyFunctionsChecker.maximum" : 20
60+
}
61+
}

.editorconfig

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# http://editorconfig.org
2+
3+
root = true
4+
5+
[*]
6+
end_of_line = lf
7+
charset = utf-8
8+
trim_trailing_whitespace = true
9+
insert_final_newline = false
10+
indent_style = tab
11+
indent_size = 4
12+
tab_width = 4
13+
14+
[*.yml]
15+
indent_style = space
16+
indent_size = 2
17+
18+
[*.{md,markdown}]
19+
trim_trailing_whitespace = false
20+
insert_final_newline = false

.gitignore

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
1-
# IDE Stuff
2-
.settings
3-
settings.xml
4-
# Logs
5-
logs/*.log
6-
# Test Results
7-
tests/results/*
8-
# Dependenncies
9-
coldbox/*
10-
testbox/*
11-
artifacts/*
12-
apidocs/docbox/*
13-
workbench/*
14-
build/*
1+
.vscode
2+
3+
.artifacts/**
4+
.tmp/**
5+
6+
test-harness/.engine/**
7+
test-harness/coldbox/**
8+
test-harness/docbox/**
9+
test-harness/testbox/**
10+
test-harness/logs/**
11+
test-harness/modules/**
12+
13+
# log files
14+
logs/**

.module.properties

Lines changed: 0 additions & 3 deletions
This file was deleted.

.travis.yml

Lines changed: 44 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,14 @@ notifications:
55
secure: FIHlTn/YO7Wgumm1uIqmoEsqjQA7fV0AE94Rjc5yKzM3AquQa8HicgDVVk0d2GrKRnl0xt3j4ZJV//VJyIjlCd/QVKuj48R2ChjEY2im3+99HFPafCUI5/S2uyowKU6mJTFonH9v6p41eqxdbiAxJdDGOT0V2Gpt3UBSNuHz8ED9/aIHqv+P7M+VD6Xd2XYwctPniWlaSWx57sWcnG/VkFG45qFQAyha64uxOOe4M3ZmG/n5FfauZ8cBVLiRKEIr+CyNhh1ujfzi7+4uzMlSNL5t/BbZamAQuZzqGzGQ9RVvIlyPgUGNJtDEE/hWS09aagXF5T6EMj00szizErh4J1/x4qZwml5+TcBN31E0QmAhCtZe85sr3tYgic+hEz9XX1yymQzf/C7n4to2yNvq0r4g51xDk8IuP95WEh7zaqLlvFZvBFgxpHZBMYlRvhytjOYDeIFRMcGwHZcXosaG2ejqDwcGq/LC4oeG4sSwmg9sdRrtcmcanrNqrBka86WYO6LntI3JdZ86/1ACEUHzhCCwvrKELc9Ji1xxGAgS7QKH+s2/hnJuiMyv73gOVLKYC+wPMLt+fvOmPLSEl+PJiAIlToBq1KUBg03RSQLfPOLD7OrJ8VvDZsEPwejqlGDyc4wRglS9OTi7SnN5LYHSDNDdGdREegWqq9qDHEYEVLI=
66

77
env:
8+
# Fill out these global variables for build process
89
global:
910
- MODULE_ID=cbdebugger
1011
matrix:
11-
1212
- ENGINE=lucee@5
13-
- ENGINE=adobe@10
1413
- ENGINE=adobe@11
1514
- ENGINE=adobe@2016
15+
- ENGINE=adobe@2018
1616

1717
branches:
1818
only:
@@ -25,75 +25,85 @@ sudo: required
2525

2626
before_install:
2727
# CommandBox Keys
28-
- sudo apt-key adv --keyserver keys.gnupg.net --recv 6DA70622
28+
- curl -fsSl https://downloads.ortussolutions.com/debs/gpg | sudo apt-key add -
2929
- sudo echo "deb http://downloads.ortussolutions.com/debs/noarch /" | sudo tee -a
3030
/etc/apt/sources.list.d/commandbox.list
3131

3232
install:
3333
# Install Commandbox
34-
- sudo apt-get update && sudo apt-get --assume-yes install git haveged rsync commandbox
35-
# Test that the box binary is available and ready for our tests
36-
- box version
34+
- sudo apt-get update && sudo apt-get --assume-yes install rsync jq commandbox
35+
# Install CommandBox Supporting Librarires
36+
- box install commandbox-cfconfig,commandbox-dotenv,commandbox-docbox
3737
# If using auto-publish, you will need to provide your API token with this line:
3838
- box config set endpoints.forgebox.APIToken=$FORGEBOX_API_TOKEN > /dev/null
39-
# Setup for our tests
40-
- mkdir tests/results
41-
- sudo chmod -R 775 tests/results
4239

43-
# Build script - note module versioning is passed to ANT
4440
script:
41+
# Set Current Version
42+
- TARGET_VERSION=`cat $TRAVIS_BUILD_DIR/box.json | jq '.version' -r`
43+
- echo "Starting build for ${MODULE_ID} v${TARGET_VERSION}"
44+
# Replace version so builder can issue it
45+
46+
# Startup the harness
47+
- cd test-harness
4548
# run our dependency install to ensure the workbench is in place
4649
- box install
47-
# add our module-specific build properties
48-
- printf "\nmodule.name=$MODULE_ID" >> workbench/build.properties
49-
- printf "\ncfengine=$ENGINE" >> workbench/build.properties
50-
# execute our build
51-
- ant -DisTravis=true -Dbuild.number=$TRAVIS_BUILD_NUMBER -Dbuild.branch=$TRAVIS_BRANCH -f workbench/build.xml
50+
# run our matrix server
51+
- box server start serverConfigFile="server-${ENGINE}.json"
52+
# Startup the app
53+
- curl http://localhost:60299
54+
# Debugging of tests
55+
#- curl http://localhost:60299/tests/runner.cfm?reporter=json -o testresults.json && cat testresults.json
56+
# move back to build dir to build it
57+
- cd $TRAVIS_BUILD_DIR
58+
# Build Project
59+
- box task run taskfile=build/Build target=run :version=${TARGET_VERSION} :projectName=${MODULE_ID} :buildID=${TRAVIS_BUILD_NUMBER} :branch=${TRAVIS_BRANCH}
60+
# Cat results for debugging
61+
- cat build/results.json
5262

5363
after_failure:
54-
- cd $TRAVIS_BUILD_DIR
64+
- cd $TRAVIS_BUILD_DIR/test-harness
5565
# Display the contents of our root directory
5666
# Spit out our Commandbox log in case we need to debug
57-
- box server log name=$ENGINE
67+
- box server log server-${ENGINE}.json
5868
- cat `box system-log`
59-
60-
before_deploy:
61-
- cd $TRAVIS_BUILD_DIR
62-
- mkdir -p s3deploy
63-
- rsync -av ./artifacts/$MODULE_ID/ ./s3deploy/
64-
- rm -f ./s3deploy/box-repo.json
6569

6670
deploy:
67-
#Module Deployment
71+
# Module Deployment
6872
- provider: s3
6973
on:
70-
branch:
74+
branch:
7175
- master
7276
- development
73-
condition: "$ENGINE = lucee@4.5"
77+
condition: "$ENGINE = lucee@5"
7478
skip_cleanup: true
7579
#AWS Credentials need to be set in Travis
7680
access_key_id: $AWS_ACCESS_KEY
7781
secret_access_key: $AWS_ACCESS_SECRET
82+
# Destination
7883
bucket: "downloads.ortussolutions.com"
79-
local-dir: s3deploy
84+
local-dir: $TRAVIS_BUILD_DIR/.artifacts/$MODULE_ID
8085
upload-dir: ortussolutions/coldbox-modules/$MODULE_ID
8186
acl: public_read
82-
#API Docs Deployment
87+
88+
# API Docs Deployment
8389
- provider: s3
8490
on:
85-
branch:
91+
branch:
8692
- master
87-
condition: "$ENGINE = [email protected]"
93+
- development
94+
condition: "$ENGINE = lucee@5"
8895
skip_cleanup: true
8996
#AWS Credentials need to be set in Travis
9097
access_key_id: $AWS_ACCESS_KEY
9198
secret_access_key: $AWS_ACCESS_SECRET
9299
bucket: "apidocs.ortussolutions.com"
93-
local-dir: build/apidocs
94-
upload-dir: coldbox-modules/$MODULE_ID
100+
local-dir: $TRAVIS_BUILD_DIR/.tmp/apidocs
101+
upload-dir: coldbox-modules/$MODULE_ID/$TARGET_VERSION
95102
acl: public_read
96103

97-
98104
after_deploy:
99-
- cd $TRAVIS_BUILD_DIR/build && box forgebox publish
105+
# Move to build out artifact
106+
- cd ${TRAVIS_BUILD_DIR}/.tmp/${MODULE_ID}
107+
- cat box.json
108+
# Only publish once
109+
- if [ ${ENGINE} = 'lucee@5' ]; then box forgebox publish; fi

modules/cbdebugger/ModuleConfig.cfc renamed to ModuleConfig.cfc

Lines changed: 18 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,8 @@ component {
88
// Module Properties
99
this.title = "ColdBox Debugger";
1010
this.author = "Curt Gratz - Ortus Solutions";
11-
this.webURL = "http://www.ortussolutions.com";
11+
this.webURL = "https://www.ortussolutions.com";
1212
this.description = "The ColdBox Debugger Module";
13-
this.version = "@build.version@[email protected]@";
1413
// If true, looks for views in the parent first, if not found, then in the module. Else vice-versa
1514
this.viewParentLookup = true;
1615
// If true, looks for layouts in the parent first, if not found, then in module. Else vice-versa
@@ -23,13 +22,23 @@ component {
2322
this.modelNamespace = "cbdebugger";
2423
// Auto Map Models Directory
2524
this.autoMapModels = true;
25+
// App Helpers
26+
this.applicationHelper = [
27+
"models/Mixins.cfm"
28+
]
2629

2730
/**
2831
* Module Registration
2932
*/
3033
function configure(){
31-
// Mixin our own methods on handlers, interceptors and views via the ColdBox UDF Library File setting
32-
arrayAppend( controller.getSetting( "ApplicationHelper" ), "#moduleMapping#/models/Mixins.cfm" );
34+
35+
variables.interceptorSettings = {
36+
customInterceptionPoints = [
37+
"beforeDebuggerPanel",
38+
"afterDebuggerPanel"
39+
]
40+
};
41+
3342
}
3443

3544
/**
@@ -53,11 +62,12 @@ component {
5362
.setDebugMode( settings.debugger.debugMode );
5463

5564
// Register the interceptor, it has to be here due to loading of configuration files.
56-
controller.getInterceptorService()
65+
controller
66+
.getInterceptorService()
5767
.registerInterceptor(
58-
interceptorClass="#moduleMapping#.interceptors.Debugger",
59-
interceptorName="debugger@cbdebugger"
60-
);
68+
interceptorClass = "#moduleMapping#.interceptors.Debugger",
69+
interceptorName = "debugger@cbdebugger"
70+
);
6171
}
6272

6373
/**

apidocs/Application.cfc

Lines changed: 0 additions & 18 deletions
This file was deleted.

apidocs/box.json

Lines changed: 0 additions & 15 deletions
This file was deleted.

apidocs/index.cfm

Lines changed: 0 additions & 22 deletions
This file was deleted.

apidocs/server.json

Lines changed: 0 additions & 9 deletions
This file was deleted.

0 commit comments

Comments
 (0)