8000 version bumps by lmajano · Pull Request #5 · coldbox-modules/cbproxies · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
8000

version bumps #5

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Feb 18, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/workflows/snapshot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ on:
push:
branches:
- 'development'
workflow_dispatch:

#Cancel running builds if another push to branch is made while this build is running
concurrency:
Expand Down
43 changes: 7 additions & 36 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,59 +10,30 @@ on:
jobs:
tests:
name: Tests
runs-on: ubuntu-20.04
env:
DB_USER: root
DB_PASSWORD: root
runs-on: ubuntu-latest
continue-on-error: ${{ matrix.experimental }}
strategy:
fail-fast: false
matrix:
cfengine: [ "lucee@5", "adobe@2018", "adobe@2021", "adobe@2023" ]
cfengine: [ "boxlang@1", "boxlang-cfml@1", "lucee@5", "lucee@6", "adobe@2021", "adobe@2023" ]
experimental: [ false ]
include:
- coldboxVersion: "be"
cfengine: "boxlang@1"
experimental: true
steps:
- name: Checkout Repository
uses: actions/checkout@v4

# - name: Setup Database and Fixtures
# run: |
# sudo systemctl start mysql.service
# mysql -u${{ env.DB_USER }} -p${{ env.DB_PASSWORD }} -e 'CREATE DATABASE mementifier;'
# mysql -u${{ env.DB_USER }} -p${{ env.DB_PASSWORD }} < test-harness/tests/resources/coolblog.sql

- name: Setup Java
uses: actions/setup-java@v3
uses: actions/setup-java@v4
with:
distribution: "temurin"
java-version: "11"
java-version: "21"

- name: Setup CommandBox CLI
uses: Ortus-Solutions/setup-commandbox@v2.0.1

# Not Needed in this module
#- name: Setup Environment For Testing Process
# 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 }}
- name: Install Test Harness
run: |
box install
cd test-harness
box package set dependencies.coldbox=${{ matrix.coldboxVersion }}
box install

- name: Start ${{ matrix.cfengine }} Server
Expand All @@ -80,13 +51,13 @@ jobs:
if: always()
with:
junit_files: test-harness/tests/results/**/*.xml
check_name: "${{ matrix.cfengine }} ColdBox ${{ matrix.coldboxVersion }} Test Results"
check_name: "${{ matrix.cfengine }} Test Results"

- name: Upload Test Results to Artifacts
if: always()
uses: actions/upload-artifact@v4
with:
name: test-results-${{ matrix.cfengine }}-${{ matrix.coldboxVersion }}
name: test-results-${{ matrix.cfengine }}
path: |
test-harness/tests/results/**/*

Expand Down
3 changes: 2 additions & 1 deletion box.json
8000
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name":"cbproxies",
"version":"1.4.0",
"version":"1.5.0",
"location":"https://downloads.ortussolutions.com/ortussolutions/coldbox-modules/cbproxies/@build.version@/cbproxies-@build.version@.zip",
"author":"Ortus Solutions <info@ortussolutions.com>",
"homepage":"https://github.com/coldbox-modules/cbproxies",
Expand All @@ -25,6 +25,7 @@
"devDependencies":{
"commandbox-cfformat":"*",
"commandbox-docbox":"*",
"commandbox-boxlang":"*",
"commandbox-dotenv":"*",
"commandbox-cfconfig":"*"
},
Expand Down
6 changes: 5 additions & 1 deletion changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

## [1.4.0] - 2025-01-21

## [1.3.0] - 2024-05-22

## [1.2.0] - 2024-04-10
Expand Down Expand Up @@ -46,7 +48,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

- First iteration of this module

[Unreleased]: https://github.com/coldbox-modules/cbproxies/compare/v1.3.0...HEAD
[Unreleased]: https://github.com/coldbox-modules/cbproxies/compare/v1.4.0...HEAD

[1.4.0]: https://github.com/coldbox-modules/cbproxies/compare/v1.3.0...v1.4.0

[1.3.0]: https://github.com/coldbox-modules/cbproxies/compare/v1.2.0...v1.3.0

Expand Down
9 changes: 5 additions & 4 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@

# cbproxies

The `cbproxies` module is a raw library that allows you to build Java dynamic proxies to several key classes that allows CFML to do concurrency, streaming, and much more. The `BaseProxy` can also be used so you can extend the module and create your own concrete dynamic proxies that extend the `BaseProxy`.
The `cbproxies` module is a raw library that allows you to build Java dynamic proxies to several key classes that allows your BoxLang or CFML code to do concurrency, streaming, and much more. The `BaseProxy` can also be used so you can extend the module and create your own concrete dynamic proxies that extend the `BaseProxy`.

## BaseProxy

This object is the cornerstone for creatning CFML dynamic proxies that can be used synchronously / asynchronously and keep the CFML environment for you. Every proxy needs to be created by CFML code:
This object is the cornerstone for creatning dynamic proxies that can be used synchronously / asynchronously and keep the engine environment for you. Every proxy needs to be created by the following code:

```js
proxy = new cbproxies.models.BiConsumer()
Expand All @@ -46,7 +46,7 @@ function init(

* `target` - This can be a closure/function that is stored in the proxy that will later be used by the implemented dynamic proxy call.
* `debug` - Boolean flag that will enable debuging to console on certain key base proxy areas or by the implementing proxy.
* `loadAppContext` - This will load up the CFML application context into the proxies scope. This will allow the Java implementation to talk to anything within the CFML engine: scopes, databases, queries, orm, etc.
* `loadAppContext` - This will load up the application context into the proxies scope. This will allow the Java implementation to talk to anything within the BoxLang or CFML engine: scopes, databases, queries, orm, etc.

## Available Proxies

Expand All @@ -69,7 +69,8 @@ Here is a table of the available proxies in this module:
| `ToIntFunction` | `java.util.function.ToIntFunction` |
| `ToLongFunction` | `java.util.function.ToLongFunction` |

## System requirements
## System Requirements

* [Boxlang](https://www.boxlang.io/)
* Adobe 2018+
* Lucee 5
Expand Down
36 changes: 36 additions & 0 deletions server-boxlang-cfml@1.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
{
"app":{
"cfengine":"boxlang@be",
"serverHomeDirectory":".engine/boxlang"
},
"name":"cbproxies-boxlang@1",
"force":true,
"openBrowser":false,
"web":{
"directoryBrowsing":true,
"http":{
"port":"60299"
},
"rewrites":{
"enable":"true"
},
"webroot":"test-harness",
"aliases":{
"/moduleroot/cbproxies":"../"
}
},
"JVM":{
"heapSize":"512",
"javaVersion":"openjdk21_jre",
"args":"-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=9999"
},
"cfconfig":{
"file":".cfconfig.json"
},
"env":{
"BOXLANG_DEBUG":true
},
"scripts":{
"onServerInitialInstall":"install bx-compat-cfml --noSave"
}
}
7 changes: 3 additions & 4 deletions server-boxlang@1.json
< D8AD td class="blob-code blob-code-context js-file-line"> "BOXLANG_DEBUG":true
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@
}
},
"JVM":{
"heapSize":"1024",
"javaVersion":"openjdk21_jdk",
"heapSize":"512",
"javaVersion":"openjdk21_jre",
"args":"-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=9999"
},
"cfconfig":{
Expand All @@ -31,6 +31,5 @@
},
"scripts":{
"onServerInitialInstall":"install bx-mail,bx-mysql,bx-derby,bx-compat-cfml@be,bx-unsafe-evaluate,bx-esapi --noSave"
}
}
}
16 changes: 8 additions & 8 deletions server-adobe@2018.json → server-lucee@6.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"name":"cbproxies-adobe@2018",
"name":"cbproxies-lucee@6",
"app":{
"serverHomeDirectory":".engine/adobe2018",
"cfengine":"adobe@2018"
"serverHomeDirectory":".engine/lucee6",
"cfengine":"lucee@6"
},
"web":{
"http":{
Expand All @@ -11,13 +11,13 @@
"rewrites":{
"enable":"true"
},
"webroot":"test-harness",
"aliases":{
"webroot": "test-harness",
"aliases":{
"/moduleroot/cbproxies":"../"
}
},
"openBrowser":"false",
"cfconfig":{
"file":".cfconfig.json"
}
"cfconfig": {
"file" : ".cfconfig.json"
}
}
Loading
0