Skip to content

Commit

Permalink
Prepare for a 4.2.0 release
Browse files Browse the repository at this point in the history
  • Loading branch information
seancorfield committed Mar 27, 2018
1 parent a5ddba2 commit 4b58c15
Show file tree
Hide file tree
Showing 12 changed files with 44 additions and 14 deletions.
2 changes: 1 addition & 1 deletion box.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name":"Framework One",
"slug":"fw1",
"version":"4.5.0-SNAPSHOT",
"version":"4.2.0-SNAPSHOT",
"author":"Sean Corfield, Marcin Szczepanski, Ryan Cogswell",
"location":"framework-one/fw1#develop",
"createPackageDirectory":true,
Expand Down
21 changes: 18 additions & 3 deletions examples/userManagerAccessControl/Application.cfc
Original file line number Diff line number Diff line change
@@ -1,25 +1,40 @@
component extends="framework.one" {
component accessors=true extends="framework.one" {

property departmentService;

this.mappings["/userManager"] = getDirectoryFromPath(getCurrentTemplatePath());
this.name = 'fw1-userManager-accessControl';
this.name = 'fw1-userManager-accessControl-5';
this.sessionmanagement = true;
this.sessiontimeout = createTimeSpan(0,2,0,0);

// FW/1 - configuration:
variables.framework = {
trace = true
};

function setupApplication() {
application.adminEmail = '[email protected]';
if ( variables.keyExists( "departmentService" ) )
writeDump( var = variables.departmentService, label = "setupApplication" );
}

function setupSession() {
controller( 'security.session' );
if ( variables.keyExists( "departmentService" ) )
writeDump( var = variables.departmentService, label = "setupSession" );
}

function setupRequest() {
controller( 'security.authorize' );
if ( variables.keyExists( "departmentService" ) )
writeDump( var = variables.departmentService, label = "setupRequest" );
}

function setupView( rc ) {
if ( variables.keyExists( "departmentService" ) ) {
writeDump( var = variables.departmentService, label = "setupView" );
rc.d1 = departmentService.get( 1 );
}
}

}
17 changes: 16 additions & 1 deletion examples/userManagerAccessControl/layouts/default.cfm
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
<cfparam name="rc.message" default="#arrayNew(1)#">
<cfscript>
function aaa() { }
function bbb() { }
</cfscript>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
Expand Down Expand Up @@ -43,6 +47,17 @@
</div>

</div>

<cfdump var="#rc#">
<cftry>
<cfif aaa == bbb>
<p>aaa and bbb are equal -- WTF?</p>
<cfelse>
<p>aaa and bbb are different -- as expected!</p>
</cfif>
<cfcatch type="any">
<p>I haz a sad -- functions cannot be compared!</p>
<cfdump var="#cfcatch#" />
</cfcatch>
</cftry>
</body>
</html>
2 changes: 1 addition & 1 deletion framework/Application.cfc
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
component {
// Version: FW/1 4.5.0-SNAPSHOT
// Version: FW/1 4.2.0-SNAPSHOT

// copy this to your application root to use as your Application.cfc
// or incorporate the logic below into your existing Application.cfc
Expand Down
2 changes: 1 addition & 1 deletion framework/MyApplication.cfc
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
component extends="framework.one" {
// Version: FW/1 4.5.0-SNAPSHOT
// Version: FW/1 4.2.0-SNAPSHOT

// if you need to provide extension points, copy this to
// your web root, next to your Application.cfc, and add
Expand Down
2 changes: 1 addition & 1 deletion framework/WireBoxAdapter.cfc
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
component extends="wirebox.system.ioc.Injector" {
variables._fw1_version = "4.5.0-SNAPSHOT";
variables._fw1_version = "4.2.0-SNAPSHOT";
/*
Copyright (c) 2010-2017, Sean Corfield
Expand Down
2 changes: 1 addition & 1 deletion framework/aop.cfc
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
component extends="framework.ioc" {
variables._fw1_version = "4.5.0-SNAPSHOT";
variables._fw1_version = "4.2.0-SNAPSHOT";
variables._aop1_version = variables._fw1_version;
/*
Copyright (c) 2013-2017, Mark Drew, Sean Corfield, Daniel Budde
Expand Down
2 changes: 1 addition & 1 deletion framework/beanProxy.cfc
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
component {
variables._fw1_version = "4.5.0-SNAPSHOT";
variables._fw1_version = "4.2.0-SNAPSHOT";
variables._aop1_version = variables._fw1_version;
/*
Copyright (c) 2013-2017, Mark Drew, Sean Corfield, Daniel Budde
Expand Down
2 changes: 1 addition & 1 deletion framework/facade.cfc
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
component {
variables._fw1_version = "4.5.0-SNAPSHOT";
variables._fw1_version = "4.2.0-SNAPSHOT";
/*
Copyright (c) 2016-2017, Sean Corfield
Expand Down
2 changes: 1 addition & 1 deletion framework/ioc.cfc
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
component {
variables._fw1_version = "4.5.0-SNAPSHOT";
variables._fw1_version = "4.2.0-SNAPSHOT";
variables._di1_version = variables._fw1_version;
/*
Copyright (c) 2010-2017, Sean Corfield
Expand Down
2 changes: 1 addition & 1 deletion framework/methodProxy.cfc
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
component {
variables._fw1_version = "4.5.0-SNAPSHOT";
variables._fw1_version = "4.2.0-SNAPSHOT";
/*
Copyright (c) 2017, Sean Corfield
Expand Down
2 changes: 1 addition & 1 deletion framework/one.cfc
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
component {
variables._fw1_version = "4.5.0-SNAPSHOT";
variables._fw1_version = "4.2.0-SNAPSHOT";
/*
Copyright (c) 2009-2017, Sean Corfield, Marcin Szczepanski, Ryan Cogswell
Expand Down

0 comments on commit 4b58c15

Please sign in to comment.