diff --git a/.github/CODE_OF_CONDUCT.MD b/.github/CODE_OF_CONDUCT.MD
new file mode 100644
index 0000000..12507ab
--- /dev/null
+++ b/.github/CODE_OF_CONDUCT.MD
@@ -0,0 +1,3 @@
+# Code of Conduct
+
+Please see it in our [Contributing Guidelines](../CONTRIBUTING.md#code-of-conduct).
diff --git a/.github/ISSUE_TEMPLATE/BUG_REPORT.md b/.github/ISSUE_TEMPLATE/BUG_REPORT.md
new file mode 100644
index 0000000..300232e
--- /dev/null
+++ b/.github/ISSUE_TEMPLATE/BUG_REPORT.md
@@ -0,0 +1,33 @@
+---
+name: Bug report
+about: Create a report to help us improve
+---
+
+
+
+## What are the steps to reproduce this issue?
+
+1. …
+2. …
+3. …
+
+## What happens?
+
+…
+
+## What were you expecting to happen?
+
+…
+
+## Any logs, error output, etc?
+
+…
+
+## Any other comments?
+
+…
+
+## What versions are you using?
+
+**Operating System:** …
+**Package Version:** …
diff --git a/.github/ISSUE_TEMPLATE/FEATURE_REQUEST.md b/.github/ISSUE_TEMPLATE/FEATURE_REQUEST.md
new file mode 100644
index 0000000..c10946f
--- /dev/null
+++ b/.github/ISSUE_TEMPLATE/FEATURE_REQUEST.md
@@ -0,0 +1,18 @@
+---
+name: Feature Request
+about: Request a new feature or enhancement
+---
+
+
+
+## Summary
+
+
+
+## Detailed Description
+
+
+
+## Possible Implementation Ideas
+
+
diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md
new file mode 100644
index 0000000..e8bd9f9
--- /dev/null
+++ b/.github/PULL_REQUEST_TEMPLATE.md
@@ -0,0 +1,29 @@
+# Description
+
+Please include a summary of the changes and which issue(s) is fixed. Please also include relevant motivation and context. List any dependencies that are required for this change.
+
+**Please note that all PRs must have tests attached to them**
+
+IMPORTANT: Please review the [CONTRIBUTING.md](../CONTRIBUTING.md) file for detailed contributing guidelines.
+
+## Issues
+
+All PRs must have an accompanied issue. Please make sure you created it and linked it here.
+
+## Type of change
+
+Please delete options that are not relevant.
+
+- [ ] Bug Fix
+- [ ] Improvement
+- [ ] New Feature
+- [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
+- [ ] This change requires a documentation update
+
+## Checklist
+
+- [ ] My code follows the style guidelines of this project [cfformat](../.cfformat.json)
+- [ ] I have commented my code, particularly in hard-to-understand areas
+- [ ] I have made corresponding changes to the documentation
+- [ ] I have added tests that prove my fix is effective or that my feature works
+- [ ] New and existing unit tests pass locally with my changes
diff --git a/.github/SECURITY.md b/.github/SECURITY.md
new file mode 100644
index 0000000..f057099
--- /dev/null
+++ b/.github/SECURITY.md
@@ -0,0 +1,3 @@
+# Security Policy
+
+Please see it in our [Contributing Guidelines](../CONTRIBUTING.md#security-vulnerabilities).
diff --git a/.github/SUPPORT.md b/.github/SUPPORT.md
new file mode 100644
index 0000000..3bb8adb
--- /dev/null
+++ b/.github/SUPPORT.md
@@ -0,0 +1,3 @@
+# Support & Help
+
+Please see it in our [Contributing Guidelines](../CONTRIBUTING.md#support-questions).
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
deleted file mode 100644
index d1a9c7f..0000000
--- a/.github/workflows/ci.yml
+++ /dev/null
@@ -1,110 +0,0 @@
-name: bcrypt CI
-
-# Only on Development we build snapshots
-on:
- push:
- branches:
- - development
- - master
-
-env:
- MODULE_ID: bcrypt
-
-jobs:
- #############################################
- # Tests First baby! We fail, no build :(
- #############################################
- tests:
- uses: ./.github/workflows/tests.yml
- secrets:
- SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
-
- #############################################
- # Build Module
- #############################################
- build:
- name: Build & Publish
- needs: tests
- runs-on: ubuntu-20.04
- steps:
- - name: Checkout Repository
- uses: actions/checkout@v2
- with:
- fetch-depth: 0
-
- - name: Setup Java
- uses: actions/setup-java@v2
- with:
- distribution: "adopt"
- java-version: "11"
-
- - name: Setup CommandBox
- uses: Ortus-Solutions/setup-commandbox@main
- with:
- forgeboxAPIKey: ${{ secrets.FORGEBOX_TOKEN }}
-
- - name: Setup Environment Variables For Build Process
- id: current_version
- run: |
- echo "VERSION=`cat box.json | jq '.version' -r`" >> $GITHUB_ENV
- box package set version=@build.version@+@build.number@
- # master or snapshot
- echo "Github Ref is $GITHUB_REF"
- echo "BRANCH=master" >> $GITHUB_ENV
- if [ $GITHUB_REF == 'refs/heads/development' ]
- then
- echo "BRANCH=development" >> $GITHUB_ENV
- fi
-
- - name: Build ${{ env.MODULE_ID }}
- run: |
- box install commandbox-docbox
- box task run taskfile=build/Build target=run :version=${{ env.VERSION }} :projectName=${{ env.MODULE_ID }} :buildID=${{ github.run_number }} :branch=${{ env.BRANCH }}
-
- - name: Upload Build Artifacts
- if: success()
- uses: actions/upload-artifact@v2
- with:
- name: ${{ env.MODULE_ID }}
- path: |
- .artifacts/**/*
-
- - name: Upload Binaries to S3
- uses: jakejarvis/s3-sync-action@master
- with:
- args: --acl public-read
- env:
- AWS_S3_BUCKET: "downloads.ortussolutions.com"
- AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY }}
- AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_ACCESS_SECRET }}
- SOURCE_DIR: ".artifacts/${{ env.MODULE_ID }}"
- DEST_DIR: "ortussolutions/coldbox-modules/${{ env.MODULE_ID }}"
-
- - name: Upload API Docs to S3
- uses: jakejarvis/s3-sync-action@master
- with:
- args: --acl public-read
- env:
- AWS_S3_BUCKET: "apidocs.ortussolutions.com"
- AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY }}
- AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_ACCESS_SECRET }}
- SOURCE_DIR: ".tmp/apidocs"
- DEST_DIR: "coldbox-modules/${{ env.MODULE_ID }}/${{ env.VERSION }}"
-
- - name: Publish To ForgeBox
- run: |
- cd .tmp/${{ env.MODULE_ID }}
- cat box.json
- box forgebox publish
-
- - name: Inform Slack
- if: ${{ always() }}
- uses: rtCamp/action-slack-notify@v2
- env:
- SLACK_CHANNEL: coding
- SLACK_COLOR: ${{ job.status }} # or a specific color like 'green' or '#ff00ff'
- SLACK_ICON_EMOJI: ":bell:"
- SLACK_MESSAGE: '${{ env.MODULE_ID }} Built with ${{ job.status }}!'
- SLACK_TITLE: "${{ env.MODULE_ID }} Build"
- SLACK_USERNAME: CI
- SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK_URL }}
diff --git a/.github/workflows/gh-release.yml b/.github/workflows/gh-release.yml
deleted file mode 100644
index 5193ae5..0000000
--- a/.github/workflows/gh-release.yml
+++ /dev/null
@@ -1,19 +0,0 @@
-# Publish Github Release
-name: Github Release
-
-on:
- push:
- tags:
- - v[0-9]+.*
-
-jobs:
- create-release:
- runs-on: ubuntu-latest
- steps:
- - uses: actions/checkout@v2
- - uses: taiki-e/create-gh-release-action@v1.5.0
- with:
- # Produced by the build/Build.cfc
- changelog: changelog.md
- env:
- GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml
index c090b78..7018845 100644
--- a/.github/workflows/pr.yml
+++ b/.github/workflows/pr.yml
@@ -6,27 +6,23 @@ on:
- "main"
- "master"
- "development"
+ - "releases/v*"
pull_request:
branches:
+ - "releases/v*"
- development
jobs:
tests:
- uses: coldbox-modules/bcrypt/.github/workflows/tests.yml@development
+ uses: ./.github/workflows/tests.yml
- # Format PR
- format:
- name: Format
+ formatCheck:
+ name: Checks Source Code Formatting
runs-on: ubuntu-20.04
steps:
- name: Checkout Repository
- uses: actions/checkout@v2
+ uses: actions/checkout@v3
- uses: Ortus-Solutions/commandbox-action@v1.0.2
with:
- cmd: run-script format
-
- - name: Commit Format Changes
- uses: stefanzweifel/git-auto-commit-action@v4
- with:
- commit_message: Apply cfformat changes
+ cmd: run-script format:check
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
new file mode 100644
index 0000000..761c1bc
--- /dev/null
+++ b/.github/workflows/release.yml
@@ -0,0 +1,175 @@
+name: Build a Release
+
+on:
+ # If you push to master|main this will trigger a stable release
+ push:
+ branches:
+ - master
+ - main
+
+ # Reusable workflow : Usually called by a `snapshot` workflow
+ workflow_call:
+ inputs:
+ snapshot:
+ description: 'Is this a snapshot build?'
+ required: false
+ default: false
+ type: boolean
+
+env:
+ MODULE_ID: bcrypt
+ SNAPSHOT: ${{ inputs.snapshot || false }}
+
+jobs:
+ ##########################################################################################
+ # Build & Publish
+ ##########################################################################################
+ build:
+ name: Build & Publish
+ runs-on: ubuntu-20.04
+ steps:
+ - name: Checkout Repository
+ uses: actions/checkout@v3
+
+ - name: Setup CommandBox
+ uses: Ortus-Solutions/setup-commandbox@v2.0.1
+ with:
+ forgeboxAPIKey: ${{ secrets.FORGEBOX_TOKEN }}
+
+ - name: "Setup Environment Variables For Build Process"
+ id: current_version
+ run: |
+ echo "VERSION=`cat box.json | jq '.version' -r`" >> $GITHUB_ENV
+ box package set version=@build.version@+@build.number@
+ # master or snapshot
+ echo "Github Ref is $GITHUB_REF"
+ echo "BRANCH=master" >> $GITHUB_ENV
+ if [ $GITHUB_REF == 'refs/heads/development' ]
+ then
+ echo "BRANCH=development" >> $GITHUB_ENV
+ fi
+
+ - name: Update changelog [unreleased] with latest version
+ uses: thomaseizinger/keep-a-changelog-new-release@1.3.0
+ if: env.SNAPSHOT == 'false'
+ with:
+ changelogPath: ./changelog.md
+ tag: v${{ env.VERSION }}
+
+ - name: Build ${{ env.MODULE_ID }}
+ run: |
+ npm install -g markdownlint-cli
+ markdownlint changelog.md --fix
+ box install commandbox-docbox
+ box task run taskfile=build/Build target=run :version=${{ env.VERSION }} :projectName=${{ env.MODULE_ID }} :buildID=${{ github.run_number }} :branch=${{ env.BRANCH }}
+
+ - name: Commit Changelog To Master
+ uses: EndBug/add-and-commit@v9.1.1
+ if: env.SNAPSHOT == 'false'
+ with:
+ author_name: Github Actions
+ author_email: info@ortussolutions.com
+ message: 'Finalized changelog for v${{ env.VERSION }}'
+ add: changelog.md
+
+ - name: Tag Version
+ uses: rickstaa/action-create-tag@v1.6.1
+ if: env.SNAPSHOT == 'false'
+ with:
+ tag: "v${{ env.VERSION }}"
+ force_push_tag: true
+ message: "Latest Release v${{ env.VERSION }}"
+
+ - name: Upload Build Artifacts
+ if: success()
+ uses: actions/upload-artifact@v3
+ with:
+ name: ${{ env.MODULE_ID }}
+ path: |
+ .artifacts/**/*
+ changelog.md
+
+ - name: Upload Binaries to S3
+ uses: jakejarvis/s3-sync-action@master
+ with:
+ args: --acl public-read
+ env:
+ AWS_S3_BUCKET: "downloads.ortussolutions.com"
+ AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY }}
+ AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_ACCESS_SECRET }}
+ SOURCE_DIR: ".artifacts/${{ env.MODULE_ID }}"
+ DEST_DIR: "ortussolutions/coldbox-modules/${{ env.MODULE_ID }}"
+
+ - name: Upload API Docs to S3
+ uses: jakejarvis/s3-sync-action@master
+ with:
+ args: --acl public-read
+ env:
+ AWS_S3_BUCKET: "apidocs.ortussolutions.com"
+ AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY }}
+ AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_ACCESS_SECRET }}
+ SOURCE_DIR: ".tmp/apidocs"
+ DEST_DIR: "coldbox-modules/${{ env.MODULE_ID }}/${{ env.VERSION }}"
+
+ - name: Publish To ForgeBox
+ run: |
+ cd .tmp/${{ env.MODULE_ID }}
+ cat box.json
+ box forgebox publish --force
+
+ - name: Create Github Release
+ uses: taiki-e/create-gh-release-action@v1.6.2
+ continue-on-error: true
+ if: env.SNAPSHOT == 'false'
+ with:
+ title: ${{ env.VERSION }}
+ changelog: changelog.md
+ token: ${{ secrets.GITHUB_TOKEN }}
+ ref: refs/tags/v${{ env.VERSION }}
+
+ ##########################################################################################
+ # Prep Next Release
+ ##########################################################################################
+ prep_next_release:
+ name: Prep Next Release
+ if: github.ref == 'refs/heads/master' || github.ref == 'refs/heads/main'
+ runs-on: ubuntu-20.04
+ needs: [ build ]
+ steps:
+ # Checkout development
+ - name: Checkout Repository
+ uses: actions/checkout@v3
+ with:
+ ref: development
+
+ - name: Setup CommandBox
+ uses: Ortus-Solutions/setup-commandbox@v2.0.1
+ with:
+ forgeboxAPIKey: ${{ secrets.FORGEBOX_TOKEN }}
+
+ - name: Download build artifacts
+ uses: actions/download-artifact@v2
+ with:
+ name: ${{ env.MODULE_ID }}
+ path: .tmp
+
+ # Copy the changelog to the development branch
+ - name: Copy Changelog
+ run: |
+ cp .tmp/changelog.md changelog.md
+
+ # Bump to next version
+ - name: Bump Version
+ run: |
+ box bump --minor --!TagVersion
+
+ # Commit it back to development
+ - name: Commit Version Bump
+ uses: EndBug/add-and-commit@v9.1.1
+ with:
+ author_name: Github Actions
+ author_email: info@ortussolutions.com
+ message: 'Version bump'
+ add: |
+ box.json
+ changelog.md
diff --git a/.github/workflows/snapshot.yml b/.github/workflows/snapshot.yml
new file mode 100644
index 0000000..45d7dd1
--- /dev/null
+++ b/.github/workflows/snapshot.yml
@@ -0,0 +1,43 @@
+name: Build Snapshot
+
+on:
+ push:
+ branches:
+ - 'development'
+
+jobs:
+ ##########################################################################################
+ # Module Tests
+ ##########################################################################################
+ tests:
+ secrets: inherit
+ uses: ./.github/workflows/tests.yml
+
+ ##########################################################################################
+ # Format Source Code
+ ##########################################################################################
+ format:
+ name: Code Auto-Formatting
+ runs-on: ubuntu-20.04
+ steps:
+ - uses: actions/checkout@v3
+
+ - name: Auto-format
+ uses: Ortus-Solutions/commandbox-action@v1.0.2
+ with:
+ cmd: run-script format
+
+ - name: Commit Format Changes
+ uses: stefanzweifel/git-auto-commit-action@v4
+ with:
+ commit_message: Apply cfformat changes
+
+ ##########################################################################################
+ # Release it
+ ##########################################################################################
+ release:
+ uses: ./.github/workflows/release.yml
+ needs: [ tests, format ]
+ secrets: inherit
+ with:
+ snapshot: true
diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml
index 9061d54..2d10f11 100644
--- a/.github/workflows/tests.yml
+++ b/.github/workflows/tests.yml
@@ -5,7 +5,7 @@ on:
workflow_call:
secrets:
SLACK_WEBHOOK_URL:
- required: true
+ required: false
jobs:
tests:
@@ -14,81 +14,104 @@ jobs:
env:
DB_USER: root
DB_PASSWORD: root
+ continue-on-error: ${{ matrix.experimental }}
strategy:
fail-fast: false
matrix:
cfengine: [ "lucee@5", "adobe@2018", "adobe@2021" ]
+ coldboxVersion: [ "^6.0.0" ]
+ experimental: [ false ]
+ include:
+ - cfengine: "adobe@2023"
+ coldboxVersion: "^6.0.0"
+ experimental: true
+ - coldboxVersion: "be"
+ cfengine: "lucee@5"
+ experimental: true
+ - coldboxVersion: "be"
+ cfengine: "adobe@2018"
+ experimental: true
+ - coldboxVersion: "be"
+ cfengine: "adobe@2021"
+ experimental: true
steps:
- name: Checkout Repository
- uses: actions/checkout@v2
+ uses: actions/checkout@v3
+
+ # Not Needed in this module
+ #- name: Setup Database and Fixtures
+ # run: |
+ # sudo /etc/init.d/mysql start
+ # mysql -u${{ env.DB_USER }} -p${{ env.DB_PASSWORD }} -e 'CREATE DATABASE coolblog;'
+ # mysql -u${{ env.DB_USER }} -p${{ env.DB_PASSWORD }} < test-harness/tests/resources/coolblog.sql
- name: Setup Java
- uses: actions/setup-java@v2
+ uses: actions/setup-java@v3
with:
- distribution: "adopt"
+ distribution: "temurin"
java-version: "11"
- - name: Setup Environment For Testing Process
- run: |
- # Setup .env
- touch .env
- # ENV
- printf "ENVIRONMENT=development\n" >> .env
- printf "DB_HOST=localhost\n" >> .env
- printf "DB_USER=${{ env.DB_USER }}\n" >> .env
- printf "DB_PASSWORD=${{ env.DB_PASSWORD }}\n" >> .env
- printf "DB_CLASS=com.mysql.cj.jdbc.Driver\n" >> .env
- printf "DB_BUNDLEVERSION=8.0.19\n" >> .env
- printf "DB_BUNDLENAME=com.mysql.cj\n" >> .env
-
- name: Setup CommandBox CLI
- uses: Ortus-Solutions/setup-commandbox@main
+ uses: Ortus-Solutions/setup-commandbox@v2.0.1
- - name: Install Dependencies
+ # Not Needed in this module
+ #- name: Setup Environment For Testing Process
+ # working-directory: ./test-harness
+ # run: |
+ # # Setup .env
+ # touch .env
+ # # ENV
+ # printf "DB_HOST=localhost\n" >> .env
+ # printf "DB_DATABASE=mydatabase\n" >> .env
+ # printf "DB_DRIVER=MySQL\n" >> .env
+ # printf "DB_USER=${{ env.DB_USER }}\n" >> .env
+ # printf "DB_PASSWORD=${{ env.DB_PASSWORD }}\n" >> .env
+ # printf "DB_CLASS=com.mysql.cj.jdbc.Driver\n" >> .env
+ # printf "DB_BUNDLEVERSION=8.0.19\n" >> .env
+ # printf "DB_BUNDLENAME=com.mysql.cj\n" >> .env
+
+ - name: Install Test Harness with ColdBox ${{ matrix.coldboxVersion }}
run: |
box install
- cd test-harness && box install
+ cd test-harness
+ box package set dependencies.coldbox=${{ matrix.coldboxVersion }}
+ box install
- name: Start ${{ matrix.cfengine }} Server
run: |
box server start serverConfigFile="server-${{ matrix.cfengine }}.json" --noSaveSettings --debug
- # Install Adobe 2021 cfpm modules
- if [[ "${{ matrix.cfengine }}" == "adobe@2021" ]] ; then
- box run-script install:2021
- fi
curl http://127.0.0.1:60299
- name: Run Tests
run: |
mkdir -p test-harness/tests/results
box testbox run --verbose outputFile=test-harness/tests/results/test-results outputFormats=json,antjunit
- ls -lR test-harness/tests
- name: Publish Test Results
- uses: EnricoMi/publish-unit-test-result-action@v1
+ uses: EnricoMi/publish-unit-test-result-action@v2
if: always()
with:
- files: test-harness/tests/results/**/*.xml
- check_name: "${{ matrix.cfengine }} Test Results"
+ junit_files: test-harness/tests/results/**/*.xml
+ check_name: "${{ matrix.cfengine }} ColdBox ${{ matrix.coldboxVersion }} Test Results"
- name: Upload Test Results to Artifacts
if: always()
- uses: actions/upload-artifact@v2
+ uses: actions/upload-artifact@v3
with:
- name: test-results-${{ matrix.cfengine }}
+ name: test-results-${{ matrix.cfengine }}-${{ matrix.coldboxVersion }}
path: |
test-harness/tests/results/**/*
- - name: Failure Debugging Log
+ - name: Show Server Log On Failures
if: ${{ failure() }}
run: |
box server log serverConfigFile="server-${{ matrix.cfengine }}.json"
- - name: Upload Debugging Log To Artifacts
+ - name: Upload Debug Logs To Artifacts
if: ${{ failure() }}
- uses: actions/upload-artifact@v2
+ uses: actions/upload-artifact@v3
with:
- name: Failure Debugging Info - ${{ matrix.cfengine }}
+ name: Failure Debugging Info - ${{ matrix.cfengine }} - ${{ matrix.coldboxVersion }}
path: |
.engine/**/logs/*
.engine/**/WEB-INF/cfusion/logs/*
@@ -102,6 +125,6 @@ jobs:
SLACK_COLOR: ${{ job.status }} # or a specific color like 'green' or '#ff00ff'
SLACK_ICON_EMOJI: ":bell:"
SLACK_MESSAGE: '${{ github.repository }} tests failed :cry:'
- SLACK_TITLE: ${{ github.repository }} Tests For ${{ matrix.cfengine }} failed
+ SLACK_TITLE: ${{ github.repository }} Tests For ${{ matrix.cfengine }} with ColdBox ${{ matrix.coldboxVersion }} failed
SLACK_USERNAME: CI
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK_URL }}
diff --git a/.vscode/settings.json b/.vscode/settings.json
new file mode 100644
index 0000000..2506a17
--- /dev/null
+++ b/.vscode/settings.json
@@ -0,0 +1,14 @@
+{
+ "cfml.mappings": [
+ {
+ "logicalPath": "/coldbox",
+ "directoryPath": "./test-harness/coldbox",
+ "isPhysicalDirectoryPath": false
+ },
+ {
+ "logicalPath": "/testbox",
+ "directoryPath": "./test-harness/testbox",
+ "isPhysicalDirectoryPath": false
+ }
+ ]
+}
diff --git a/.vscode/tasks.json b/.vscode/tasks.json
new file mode 100644
index 0000000..6092c9d
--- /dev/null
+++ b/.vscode/tasks.json
@@ -0,0 +1,33 @@
+{
+ "version": "2.0.0",
+ "tasks": [
+ {
+ "label": "Run CommandBox Task",
+ "type": "shell",
+ "command": "box task run ${relativeFile}",
+ "group": {
+ "kind": "build",
+ "isDefault": true
+ },
+ "presentation": {
+ "reveal": "always",
+ "panel": "new"
+ },
+ "problemMatcher": []
+ },
+ {
+ "label": "Run TestBox Bundle",
+ "type": "shell",
+ "command": "box testbox run bundles=${relativeFile} --!recurse",
+ "group": {
+ "kind": "build",
+ "isDefault": true
+ },
+ "presentation": {
+ "reveal": "always",
+ "panel": "new"
+ },
+ "problemMatcher": []
+ }
+ ]
+}
diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md
new file mode 100644
index 0000000..a5130d3
--- /dev/null
+++ b/CONTRIBUTING.md
@@ -0,0 +1,88 @@
+# bcrypt Contributing Guide
+
+Hola amigo! I'm really excited that you are interested in contributing to our project. Before submitting your contribution, please make sure to take a moment and read through the following guidelines:
+
+- [Code Of Conduct](#code-of-conduct)
+- [Bug Reporting](#bug-reporting)
+- [Support Questions](#support-questions)
+- [Security Vulnerabilities](#security-vulnerabilities)
+- [Language Compatibility](#language-compatibility)
+- [Coding Styles \& Formatting](#coding-styles--formatting)
+- [CFC Docs With DocBox](#cfc-docs-with-docbox)
+- [Financial Contributions](#financial-contributions)
+- [Contributors](#contributors)
+
+## Code Of Conduct
+
+This project is open source, and as such, the maintainers give their free time to build and maintain the source code held within. They make the code freely available in the hope that it will be of use to other developers and/or businesses. Please be considerate towards maintainers when raising issues or presenting pull requests. **We all follow the Golden Rule: Do to others as you want them to do to you.**
+
+- As contributors and maintainers of this project, we pledge to respect all people who contribute through reporting issues, posting feature requests, updating documentation, submitting pull requests or patches, and other activities.
+- Participants will be tolerant of opposing views.
+- Examples of unacceptable behavior by participants include the use of sexual language or imagery, derogatory comments or personal attacks, trolling, public or private harassment, insults, or other unprofessional conduct.
+- Project maintainers have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned with this Code of Conduct. Project maintainers who do not follow the Code of Conduct may be removed from the project team.
+- When interpreting the words and actions of others, participants should always assume good intentions. Emotions cannot be derived from textual representations.
+- Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by opening an issue or contacting one or more of the project maintainers.
+
+## Bug Reporting
+
+Each of the main standalone frameworks in ColdBox has its separate locations for submitting bug reports. Please make sure also that if you submit a pull request, you link it to the appropriate issue.
+
+https://github.com/coldbox-modules/bcrypt
+
+If you file a bug report, your issue should contain a title, a clear description of the issue, a way to replicate the issue, and any support files that we might need to replicate your issue. The goal of a bug report is to make it easy for yourself - and others - to replicate the bug and develop a fix for it. All issues that do not contain a way to replicate will not be addressed.
+
+## Support Questions
+
+If you have any questions on usage, professional support or just ideas to bounce off the maintainers, please do not create an issue. Leverage our support channels first.
+
+- Ortus Community Discourse: https://community.ortussolutions.com/
+- Box Slack Team : https://boxteam.ortussolutions.com/
+- Professional Support : https://www.ortussolutions.com/services/support
+
+## Security Vulnerabilities
+
+If you discover a security vulnerability, please send an email to the development team at [security@ortussolutions.com](mailto:security@ortussolutions.com?subject=security) and make sure you report it to the `#security` channel in our Box Team Slack Channel. All security vulnerabilities will be promptly addressed.
+
+## Language Compatibility
+
+Please make sure your code runs on the following CFML Engines:
+
+- Lucee 5+
+- Adobe ColdFusion 2018+
+
+## Coding Styles & Formatting
+
+We are big on coding styles and have included a `.cfformat.json` in the root of the project so that you can run the formatting tools and CommandBox scripts:
+
+```bash
+# Format everything
+box run-script format
+
+# Start a watcher, type away, save and auto-format for you
+box run-script format: watch
+```
+
+We recommend that anytime you hack on the core you start the formatter watcher (`box run-script format:watch`). This will monitor your changes and auto-format your code for you.
+
+You can also see the Ortus Coding Standards you must follow here: https://github.com/Ortus-Solutions/coding-standards.
+
+## CFC Docs With DocBox
+
+All CFCs are self-documenting and we leverage [DocBox](https://docbox.ortusbooks.com/) to document the entire software. All functions must be properly documented using the DocBox syntax: https://docbox.ortusbooks.com/getting-started/annotating-your-code
+
+## Financial Contributions
+
+You can support ColdBox and all of our Open Source initiatives at Ortus Solutions by becoming a patreon. You can also get lots of goodies and services depending on the level of contributions.
+
+- [Become a backer or sponsor on Patreon](https://www.patreon.com/ortussolutions)
+- [One-time donations via PayPal](https://www.paypal.com/paypalme/ortussolutions)
+
+## Contributors
+
+Thank you to all the people who have already contributed to ColdBox! We: heart: : heart: : heart: love you!
+
+
+
+
+
+Made with [contributors-img](https://contrib.rocks)
diff --git a/build/Build.cfc b/build/Build.cfc
index 926cce1..ee9366e 100644
--- a/build/Build.cfc
+++ b/build/Build.cfc
@@ -76,9 +76,6 @@ component {
// checksums
buildChecksums();
- // Build latest changelog
- latestChangelog();
-
// Finalize Message
print
.line()
@@ -130,9 +127,7 @@ component {
)
.toConsole();
- // Prepare exports directory
- variables.exportsDir = variables.artifactsDir & "/#projectName#/#arguments.version#";
- directoryCreate( variables.exportsDir, true, true );
+ ensureExportDir( argumentCollection = arguments );
// Project Build Dir
variables.projectBuildDir = variables.buildDir & "/#projectName#";
@@ -200,11 +195,12 @@ component {
version = "1.0.0",
outputDir = ".tmp/apidocs"
){
+ ensureExportDir( argumentCollection = arguments );
+
// Create project mapping
fileSystemUtil.createMapping( arguments.projectName, variables.cwd );
// Generate Docs
print.greenLine( "Generating API Docs, please wait..." ).toConsole();
- directoryCreate( arguments.outputDir, true, true );
command( "docbox generate" )
.params(
@@ -228,27 +224,6 @@ component {
);
}
- /**
- * Build the latest changelog file: changelog-latest.md
- */
- function latestChangelog(){
- print.blueLine( "Building latest changelog..." ).toConsole();
-
- if ( !fileExists( variables.cwd & "changelog.md" ) ) {
- return error( "Cannot continue building, changelog.md file doesn't exist!" );
- }
-
- fileWrite(
- variables.cwd & "changelog-latest.md",
- fileRead( variables.cwd & "changelog.md" ).split( "----" )[ 2 ].trim() & chr( 13 ) & chr( 10 )
- );
-
- print
- .greenLine( "Latest changelog file created at `changelog-latest.md`" )
- .line()
- .line( fileRead( variables.cwd & "changelog-latest.md" ) );
- }
-
/********************************************* PRIVATE HELPERS *********************************************/
/**
@@ -315,4 +290,18 @@ component {
return ( createObject( "java", "java.lang.System" ).getProperty( "cfml.cli.exitCode" ) ?: 0 );
}
+ /**
+ * Ensure the export directory exists at artifacts/NAME/VERSION/
+ */
+ private function ensureExportDir(
+ required projectName,
+ version = "1.0.0"
+ ){
+ if ( structKeyExists( variables, "exportsDir" ) && directoryExists( variables.exportsDir ) ){
+ return;
+ }
+ // Prepare exports directory
+ variables.exportsDir = variables.artifactsDir & "/#projectName#/#arguments.version#";
+ directoryCreate( variables.exportsDir, true, true );
+ }
}
diff --git a/build/release.boxr b/build/release.boxr
index e216f22..a63f2cc 100755
--- a/build/release.boxr
+++ b/build/release.boxr
@@ -7,19 +7,8 @@
# Merge development into it for release
!git merge --no-ff development
-# Tag the master repo with the version from box.json
-!git tag v`box package show version`
-
# Push all branches back out to github
!git push origin --all
-# Push all tags
-!git push origin --tags
-
# Check development again
!git checkout -f development
-
-# Bump to prepare for a new release, do minor, change if needed and don't tag
-bump --minor --!tagVersion
-!git commit -a -m "version bump"
-!git push origin development
\ No newline at end of file
diff --git a/changelog.md b/changelog.md
index 918e9d3..8d9de4c 100644
--- a/changelog.md
+++ b/changelog.md
@@ -5,7 +5,12 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
-----
+## [Unreleased]
+
+### Added
+
+- Github action updates
+- ColdBox 7 auto-testing
## [3.1.0] => 2022-SEP-06
@@ -15,17 +20,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
* New module template updates
* Github actions build process
-
-----
-
## [3.0.1] => 2020-NOV-25
### Fixed
* @wpdebruin - enabled `workfactor` to be used in `hashPassword()`
-----
-
## [3.0.0] => 2020-NOV-1
### Added
@@ -47,16 +47,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
* ACF11 Support
* Lucee 4.5 Support
-----
-
## [2.5.0] => 2017-MAR-22
* Updated BCrypt library to v0.4
* Fixes a memory leak when performing over 10 concurrent hashes
* Module test harness updates
-----
-
## [2.1.0] => 2016-MAY-04
* Updated Docs
diff --git a/server-adobe@2023.json b/server-adobe@2023.json
new file mode 100644
index 0000000..1fe6638
--- /dev/null
+++ b/server-adobe@2023.json
@@ -0,0 +1,29 @@
+{
+ "name":"bcrypt-adobe@2023",
+ "app":{
+ "serverHomeDirectory":".engine/adobe2023",
+ "cfengine":"adobe@2023.0.0-beta.1"
+ },
+ "web":{
+ "http":{
+ "port":"60299"
+ },
+ "rewrites":{
+ "enable":"true"
+ },
+ "webroot": "test-harness",
+ "aliases":{
+ "/moduleroot/bcrypt":"../"
+ }
+ },
+ "jvm":{
+ "heapSize":"1024"
+ },
+ "openBrowser":"false",
+ "cfconfig": {
+ "file" : ".cfconfig.json"
+ },
+ "scripts" : {
+ "onServerInstall":"cfpm install zip,orm,mysql,postgresql,sqlserver,feed,chart,debugger"
+ }
+}