Skip to content

Commit f72a084

Browse files
committed
* production ignore lists
* Unloading of helpers * i18n updates
1 parent e4f4376 commit f72a084

File tree

7 files changed

+68
-55
lines changed

7 files changed

+68
-55
lines changed

modules/cbvalidation/ModuleConfig.cfc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ component{
1111
this.author = "Luis Majano";
1212
this.webURL = "http://www.ortussolutions.com";
1313
this.description = "This module provides server-side validation to ColdBox applications";
14-
this.version = "1.0.1[email protected]@";
14+
this.version = "1.0.2[email protected]@";
1515
// If true, looks for views in the parent first, if not found, then in the module. Else vice-versa
1616
this.viewParentLookup = true;
1717
// If true, looks for layouts in the parent first, if not found, then in module. Else vice-versa

modules/cbvalidation/box.json

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name" : "ColdBox Validation",
33
"author" : "Luis Majano <[email protected]",
4-
"version" : "1.0.1",
4+
"version" : "1.0.2",
55
"slug" : "cbvalidation",
66
"type" : "modules",
77
"homepage" : "http://www.coldbox.org",
@@ -20,6 +20,13 @@
2020
{ "type" : "adobe", "version" : ">9.02" }
2121
],
2222
"dependencies" :{
23-
"cbi18n" : "1.0.0"
24-
}
23+
"cbi18n" : "1.0.1"
24+
},
25+
"ignore":[
26+
"**/.*",
27+
"test",
28+
"tests",
29+
"apidocs",
30+
"*/.md"
31+
]
2532
}

modules/cbvalidation/changelog.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
CHANGELOG
22
=========
33

4+
## 1.0.2
5+
* production ignore lists
6+
* Unloading of helpers
7+
48
## 1.0.1
59
* https://ortussolutions.atlassian.net/browse/CCM-21 Force the validation manager binder mapping
610
* https://ortussolutions.atlassian.net/browse/CCM-20 ValidationManager missing singleton persistance

modules/cbvalidation/instructions.md

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

readme.md

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,60 @@ Apache License, Version 2.0.
1111
- http://wiki.coldbox.org/wiki/Validation.cfm
1212

1313
##SYSTEM REQUIREMENTS
14+
- Lucee 4.5+
1415
- Railo 4+
1516
- ColdFusion 9+
1617

18+
INSTRUCTIONS
19+
============
20+
21+
Just drop into your **modules** folder or use the box-cli to install
22+
23+
`box install cbvalidation`
24+
25+
The module will register several objects into WireBox using the `@cbvalidation` namespace. The validation manager is registered as `ValidationManager@cbvalidation`
26+
27+
## Mixins
28+
The module will also register two methods in your handlers/interceptors/layouts/views
29+
30+
```js
31+
/**
32+
* Validate an object or structure according to the constraints rules.
33+
* @target An object or structure to validate
34+
* @fields The fields to validate on the target. By default, it validates on all fields
35+
* @constraints A structure of constraint rules or the name of the shared constraint rules to use for validation
36+
* @locale The i18n locale to use for validation messages
37+
* @excludeFields The fields to exclude in the validation
38+
*
39+
* @return cbvalidation.model.result.IValidationResult
40+
*/
41+
function validateModel()
42+
43+
/**
44+
* Retrieve the application's configured Validation Manager
45+
*/
46+
function getValidationManager()
47+
```
48+
49+
## Settings
50+
Here are the module settings you can place in your `ColdBox.cfc` by using the `validation` settings structure:
51+
52+
```js
53+
validation = {
54+
// The third-party validation manager to use, by default it uses CBValidation.
55+
manager = "class path",
56+
// You can store global constraint rules here with unique names
57+
sharedConstraints = {
58+
name = {
59+
field = { constraints here }
60+
}
61+
}
62+
63+
}
64+
```
65+
66+
You can read more about ColdBox Validation here: http://wiki.coldbox.org/wiki/Validation.cfm
67+
1768
********************************************************************************
1869
Copyright Since 2005 ColdBox Framework by Luis Majano and Ortus Solutions, Corp
1970
www.coldbox.org | www.luismajano.com | www.ortussolutions.com

workbench/build.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ dir.build=${basedir}/build
55
dir.api=${dir.build}/apidocs
66

77
#dependencies
8-
i18n.version=1.0.0
8+
i18n.version=1.0.1
99

1010
#remote repos
1111
box.repo.url=http://integration.staging.ortussolutions.com/artifacts

workbench/build.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<!-- Version: UPDATE ON EACH RELEASE AS NEEDED -->
44
<property name="project.name" value="cbvalidation" />
55
<property name="module.name" value="cbvalidation" />
6-
<property name="project.version" value="1.0.1"/>
6+
<property name="project.version" value="1.0.2"/>
77
<property name="groupID" value="ortussolutions" />
88

99
<!-- Build Labels -->

0 commit comments

Comments
 (0)