Skip to content

Commit b3c0fbd

Browse files
committed
Merge branch 'development'
2 parents 9453250 + f9763c1 commit b3c0fbd

20 files changed

+748
-470
lines changed

.markdownlintrc.json

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"MD024": { "siblings_only": true },
3+
"line-length": false,
4+
"single-h1": false,
5+
"first-line-h1": false,
6+
"no-multiple-blanks": {
7+
"maximum": 2
8+
}
9+
}

.travis.yml

Lines changed: 21 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,9 @@ install:
3737
- box config set endpoints.forgebox.APIToken=$FORGEBOX_API_TOKEN > /dev/null
3838

3939
script:
40-
# Set Current Version
40+
# Set Current Version and Travis Tag
4141
- TARGET_VERSION=`cat $TRAVIS_BUILD_DIR/box.json | jq '.version' -r`
42+
- TRAVIS_TAG=${TARGET_VERSION}
4243
- echo "Starting build for ${MODULE_ID} v${TARGET_VERSION}"
4344
# Replace version so builder can issue it
4445
@@ -57,7 +58,7 @@ script:
5758
# Build Project
5859
- box task run taskfile=build/Build target=run :version=${TARGET_VERSION} :projectName=${MODULE_ID} :buildID=${TRAVIS_BUILD_NUMBER} :branch=${TRAVIS_BRANCH}
5960
# Cat results for debugging
60-
- cat build/results.json
61+
#- cat build/results.json
6162

6263
after_failure:
6364
- cd $TRAVIS_BUILD_DIR/test-harness
@@ -100,9 +101,26 @@ deploy:
100101
upload-dir: coldbox-modules/$MODULE_ID/$TARGET_VERSION
101102
acl: public_read
102103

104+
# Github Release only on Master
105+
- provider: releases
106+
api_key: ${GITHUB_TOKEN}
107+
on:
108+
branch:
109+
- master
110+
condition: "$ENGINE = lucee@5"
111+
skip_cleanup: true
112+
edge: true
113+
file_glob: true
114+
file: $TRAVIS_BUILD_DIR/.artifacts/$MODULE_ID/**/*
115+
release_notes_file: changelog.md
116+
name: v${TRAVIS_TAG}
117+
tag_name: v${TRAVIS_TAG}
118+
overwrite: true
119+
120+
# Once API Docs and Binaries are deployed to S3 Publish to ForgeBox
103121
after_deploy:
104122
# Move to build out artifact
105123
- cd ${TRAVIS_BUILD_DIR}/.tmp/${MODULE_ID}
106124
- cat box.json
107-
# Only publish once
125+
# Only publish once using the lucee matrix
108126
- if [ ${ENGINE} = 'lucee@5' ]; then box forgebox publish; fi

ModuleConfig.cfc

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ component {
119119

120120
//defaults
121121
configStruct.debugger = {
122-
debugMode = false,
122+
debugMode = controller.getSetting( name = "environment", defaultValue = "production" ) == "development",
123123
debugPassword = "cb:null",
124124
enableDumpVar = true,
125125
persistentRequestProfiler = true,
@@ -148,10 +148,6 @@ component {
148148
// This appender is part of a module, so we need to register it after the modules have been loaded.
149149
function afterConfigurationLoad() {
150150
var logBox = controller.getLogBox();
151-
// Only 4.3
152-
if( !findNoCase( "4.3", controller.getSetting( "version", true ) ) ){
153-
return;
154-
}
155151
logBox.registerAppender( 'tracer', 'cbdebugger.includes.appenders.ColdboxTracerAppender' );
156152
var appenders = logBox.getAppendersMap( 'tracer' );
157153
// Register the appender with the root loggger, and turn the logger on.

box.json

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name":"ColdBox Debugger",
33
"author":"Ortus Solutions <[email protected]",
44
"location":"https://downloads.ortussolutions.com/ortussolutions/coldbox-modules/cbdebugger/@build.version@/[email protected]@.zip",
5-
"version":"2.0.0",
5+
"version":"2.1.0",
66
"slug":"cbdebugger",
77
"type":"modules",
88
"homepage":"https://github.com/coldbox-modules/cbdebugger",
@@ -12,7 +12,7 @@
1212
"type":"git",
1313
"url":"https://github.com/coldbox-modules/cbdebugger"
1414
},
15-
"shortDescription":"The official ColdBox 4 debugger module",
15+
"shortDescription":"The official ColdBox debugger module",
1616
"license":[
1717
{
1818
"type":"Apache2",
@@ -30,6 +30,9 @@
3030
"*/.md"
3131
],
3232
"scripts":{
33-
"toMaster":"recipe build/toMaster.boxr"
33+
"release":"recipe build/release.boxr",
34+
"format":"cfformat run includes/,interceptors/,models/,test-harness/tests/ --overwrite",
35+
"format:watch":"cfformat watch includes/,interceptors/,models/,test-harness/tests/",
36+
"format:check":"cfformat check includes/,interceptors/,models/,test-harness/tests/"
3437
}
3538
}

build/Build.cfc

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,8 @@ component{
5656
buildID=createUUID(),
5757
branch="development"
5858
){
59+
// Create project mapping
60+
fileSystemUtil.createMapping( arguments.projectName, variables.cwd );
5961

6062
// Run the tests
6163
runTests();
@@ -76,7 +78,7 @@ component{
7678
.toConsole();
7779
}
7880

79-
/**
81+
/**
8082
* Run the test suites
8183
*/
8284
function runTests(){
Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,25 @@
11
# This recipe signifies a new release of the module by doing merges and bumps accordingly
22

3-
# Check out master
3+
# Check out master and update it locally
44
!git checkout -f master
5-
!git pull
6-
# Merge development into it
5+
!git pull origin master
6+
7+
# Merge development into it for release
78
!git merge --no-ff development
8-
# Tag the master repo with the version in box.json
9+
10+
# Tag the master repo with the version from box.json
911
!git tag v`box package show version`
10-
# Push all branches
12+
13+
# Push all branches back out to github
1114
!git push origin --all
15+
1216
# Push all tags
1317
!git push origin --tags
18+
1419
# Check development again
1520
!git checkout -f development
21+
1622
# Bump to prepare for a new release, do minor, change if needed and don't tag
1723
bump --minor --!tagVersion
18-
# Send it out
1924
!git commit -a -m "version bump"
2025
!git push origin development

changelog.md

Lines changed: 58 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,50 +1,91 @@
1-
# CHANGELOG
1+
# Changelog
22

3-
## 2.0.0
3+
All notable changes to this project will be documented in this file.
4+
5+
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6+
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7+
8+
----
9+
10+
## [2.1.0] => 2020-MAY-14
11+
12+
### Added
13+
14+
* ColdBox 6 support
15+
* Formatting
16+
17+
## Removed
18+
19+
* ColdBox 4 lingering code
20+
21+
----
22+
23+
## [2.0.0] => 2020-MAY-04
24+
25+
### Added
426

5-
* Dropped ACF 11 support
627
* Formatting updates
728
* Quick/QB Panels
829

9-
## 1.7.1
30+
### Removed
31+
32+
* Dropped ACF 11 support
33+
34+
----
35+
36+
## [1.7.1] => 2019-MAR-06
1037

1138
* Updated location protocol
1239

13-
## 1.7.0
40+
----
41+
42+
## [1.7.0] => 2019-MAR-06
1443

1544
* Missing interception points for extending the panels: `afterDebuggerPanel`, `beforeDebuggerPanel`
1645
* New Module Layout
1746
* Dropping lucee 4.5 support
1847

19-
## 1.6.0
48+
----
49+
50+
## [1.6.0 ]
2051

2152
* ColdBox 5 Support
2253

23-
## 1.5.0
54+
----
55+
56+
## [1.5.0]
2457

2558
* Case-Sensitive filesystems fix
2659
* Updated travis builds
2760
* Unified workbench approach
2861

29-
## 1.4.0
62+
----
63+
64+
## [1.4.0]
3065

3166
* ColdBox Tracer Appender added by Default by Eric Peterson
3267

33-
## 1.3.0
68+
----
69+
70+
## [1.3.0]
3471

3572
* Travis integration
3673
* DocBox update
3774
* Build process update
3875

39-
## 1.2.0
76+
----
77+
78+
## [1.2.0]
4079

4180
* Fix unscoped currentrow which was throwing an error when debugging was enabled.
4281
* Removed reference to missing images in CSS
4382
* Updated build scripts
4483
* How to turn off debugger for tests, it does this automatically now.
4584
* filename cases don't match #5 on certain includes
4685

47-
## 1.1.0
86+
----
87+
88+
## [1.1.0]
4889

4990
* https://ortussolutions.atlassian.net/browse/CCM-14 Issue with unloading modules
5091
* https://ortussolutions.atlassian.net/browse/CCM-25 Lucee support
@@ -53,10 +94,14 @@
5394
views and layouts
5495
* Updated production ignore lists
5596

56-
## 1.0.1
97+
----
98+
99+
## [1.0.1]
57100

58101
* Bug fixes on caching panels and chicken/egg issues for ColdBox loading
59102

60-
## 1.0.0
103+
----
104+
105+
## [1.0.0]
61106

62107
* Create first module version

0 commit comments

Comments
 (0)