From d1c8a702f1d0c69acb4da5faa81ce9da393c3656 Mon Sep 17 00:00:00 2001 From: Luis Majano Date: Wed, 3 Jun 2020 18:22:18 -0500 Subject: [PATCH 1/3] version bump --- box.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/box.json b/box.json index 19c1953..de9bc2b 100644 --- a/box.json +++ b/box.json @@ -1,6 +1,6 @@ { "name":"MockDataCFC", - "version":"3.4.0", + "version":"3.5.0", "location":"https://downloads.ortussolutions.com/ortussolutions/coldbox-modules/MockDataCFC/@build.version@/MockDataCFC-@build.version@.zip", "author":"Ortus Solutions", "homepage":"https://github.com/Ortus-Solutions/MockDataCFC", From b83c187dad22104d57694053b8a5885477e8af93 Mon Sep 17 00:00:00 2001 From: Luis Majano Date: Wed, 3 Jun 2020 18:33:27 -0500 Subject: [PATCH 2/3] some data incomapts --- box.json | 2 +- models/MockData.cfc | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/box.json b/box.json index de9bc2b..19c1953 100644 --- a/box.json +++ b/box.json @@ -1,6 +1,6 @@ { "name":"MockDataCFC", - "version":"3.5.0", + "version":"3.4.0", "location":"https://downloads.ortussolutions.com/ortussolutions/coldbox-modules/MockDataCFC/@build.version@/MockDataCFC-@build.version@.zip", "author":"Ortus Solutions", "homepage":"https://github.com/Ortus-Solutions/MockDataCFC", diff --git a/models/MockData.cfc b/models/MockData.cfc index 3952dea..7b7c849 100644 --- a/models/MockData.cfc +++ b/models/MockData.cfc @@ -462,7 +462,7 @@ component { */ function words( size = 1 ){ // Do we have a random size request? - if ( arguments.size.find( ":" ) ) { + if ( find( arguments.size, ":" ) ) { arguments.size = randRange( getToken( arguments.size, 1, ":" ), getToken( arguments.size, 2, ":" ) @@ -487,7 +487,7 @@ component { */ function sentence( size = 1 ){ // Do we have a random size request? - if ( arguments.size.find( ":" ) ) { + if ( find( arguments.size, ":" ) ) { arguments.size = randRange( getToken( arguments.size, 1, ":" ), getToken( arguments.size, 2, ":" ) @@ -508,7 +508,7 @@ component { */ function lorem( size = 1 ){ // Do we have a random size request? - if ( arguments.size.find( ":" ) ) { + if ( find( arguments.size, ":" ) ) { arguments.size = randRange( getToken( arguments.size, 1, ":" ), getToken( arguments.size, 2, ":" ) @@ -529,7 +529,7 @@ component { */ function baconLorem( size = 1 ){ // Do we have a random size request? - if ( arguments.size.find( ":" ) ) { + if ( find( arguments.size, ":" ) ) { arguments.size = randRange( getToken( arguments.size, 1, ":" ), getToken( arguments.size, 2, ":" ) @@ -561,7 +561,7 @@ component { */ function num( count = 10 ){ // Basic generation - if ( !arguments.count.find( ":" ) ) { + if ( !find( arguments.count, ":" ) ) { return randRange( 1, arguments.count ); } // Min/Max generation From c50918b967cc0aba68461e63b0190f91f612b04a Mon Sep 17 00:00:00 2001 From: Luis Majano Date: Wed, 3 Jun 2020 18:38:52 -0500 Subject: [PATCH 3/3] fixed find --- models/MockData.cfc | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/models/MockData.cfc b/models/MockData.cfc index 7b7c849..e4d84e8 100644 --- a/models/MockData.cfc +++ b/models/MockData.cfc @@ -462,7 +462,7 @@ component { */ function words( size = 1 ){ // Do we have a random size request? - if ( find( arguments.size, ":" ) ) { + if ( find( ":", arguments.size ) ) { arguments.size = randRange( getToken( arguments.size, 1, ":" ), getToken( arguments.size, 2, ":" ) @@ -487,7 +487,7 @@ component { */ function sentence( size = 1 ){ // Do we have a random size request? - if ( find( arguments.size, ":" ) ) { + if ( find( ":", arguments.size ) ) { arguments.size = randRange( getToken( arguments.size, 1, ":" ), getToken( arguments.size, 2, ":" ) @@ -508,7 +508,7 @@ component { */ function lorem( size = 1 ){ // Do we have a random size request? - if ( find( arguments.size, ":" ) ) { + if ( find( ":", arguments.size ) ) { arguments.size = randRange( getToken( arguments.size, 1, ":" ), getToken( arguments.size, 2, ":" ) @@ -529,7 +529,7 @@ component { */ function baconLorem( size = 1 ){ // Do we have a random size request? - if ( find( arguments.size, ":" ) ) { + if ( find( ":", arguments.size ) ) { arguments.size = randRange( getToken( arguments.size, 1, ":" ), getToken( arguments.size, 2, ":" ) @@ -561,7 +561,7 @@ component { */ function num( count = 10 ){ // Basic generation - if ( !find( arguments.count, ":" ) ) { + if ( !find( ":", arguments.count ) ) { return randRange( 1, arguments.count ); } // Min/Max generation