Skip to content

Commit fa013d1

Browse files
committed
new version finalized
1 parent ebe93f9 commit fa013d1

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

46 files changed

+1391
-1514
lines changed

changelog.md

+6
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# Changelog
22

3+
## v3.2.0
4+
5+
- Updates for latest software versions
6+
- Updated to latest ColdBox
7+
- Updated to latest BoxLang engines
8+
39
## v3.1.0
410

511
- Updated all skeletons to more ColdBox 7 goodness

completions/ColdBox.sublime-completions

+1,153-1,373
Large diffs are not rendered by default.

messages.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,6 @@
66
"2.6.0": "changelog.md",
77
"2.7.0": "changelog.md",
88
"3.0.0": "changelog.md",
9-
"3.1.0": "changelog.md"
9+
"3.1.0": "changelog.md",
10+
"3.2.0": "changelog.md"
1011
}

readme.md

+11-16
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@ Get the latest Sublime Text from http://www.sublimetext.com
44

55
## Target Platforms
66

7-
- ColdBox 5.X.X+
8-
- TestBox 4.X.X
7+
- ColdBox 7.X.X+
8+
- TestBox 6.X.X
99

1010
## Features
1111

12-
This bundle includes functionality not only for ColdBox MVC, but also for TestBox BDD/TDD, MockBox, WireBox, CacheBox and LogBox.
12+
This bundle includes functionality not only for ColdBox MVC, but also for TestBox BDD/TDD, WireBox, CacheBox and LogBox.
1313

1414
### Code Insight
1515

@@ -31,6 +31,7 @@ Code completion for all major ColdBox + TestBox functions and scopes:
3131
- `apiResourceHandler` : Creates a ColdBox API Resource Handler
3232
- `cachebox-config ➝` : Creates a new CacheBox.cfc configuration file
3333
- `config ➝` : Creates a new ColdBox.cfc configuration file
34+
- `class ➝` : Creates a new BoxLang class
3435
- `cfc ➝` : Creates a new ColdFusion script CFC
3536
- `bdd ➝` : Creates a TestBox BDD Bundle
3637
- `box ➝` : Creates a `box.json` template
@@ -126,29 +127,23 @@ If you have the [Package Control](http://wbond.net/sublime_packages/package_cont
126127
#### Mac
127128

128129
```bash
129-
$ cd ~/Library/Application\ Support/Sublime\ Text\ 2/Packages/
130-
$ git clone https://github.com/lmajano/cbox-coldbox-sublime.git coldbox
130+
cd ~/Library/Application\ Support/Sublime\ Text\ 3/Packages/
131+
git clone https://github.com/lmajano/cbox-coldbox-sublime.git coldbox
131132
```
132133

133134
#### Linux (Ubuntu like distros)
134135

135136
```bash
136-
$ cd ~/.config/sublime-text-2/Packages/
137-
$ git clone https://github.com/lmajano/cbox-coldbox-sublime.git coldbox
137+
cd ~/.config/sublime-text-3/Packages/
138+
git clone https://github.com/lmajano/cbox-coldbox-sublime.git coldbox
138139
```
139140

140141
#### Windows 7
141142

142-
`Copy the directory to: "C:\Users\<username>\AppData\Roaming\Sublime Text 2\Packages"`
143-
144-
#### Windows XP
145-
146-
`Copy the directory to: "C:\Documents and Settings\<username>\Application Data\Sublime Text 2\Packages"`
143+
`Copy the directory to: "C:\Users\<username>\AppData\Roaming\Sublime Text 3\Packages"`
147144

148145
## References
149146

150-
- Sublimetext 2 API - http://www.sublimetext.com/docs/2/api_reference.html
151-
- How to create a plugin: http://net.tutsplus.com/tutorials/python-tutorials/how-to-create-a-sublime-text-2-plugin/
152-
- Unoffical (but very good) docs - http://sublimetext.info/docs/en/
147+
- Sublimetext API - https://www.sublimetext.com/docs/api_reference.html
148+
- Unoffical (but very good) docs - https://docs.sublimetext.info/index.html
153149
- ColdFusion Sublime Text bundle - https://github.com/SublimeText/ColdFusion
154-
- MXUnit Sublime Text bundle - https://github.com/mxunit/sublime-text-2-mxunit

skeletons/resource-api-handler.sublime-snippet

+5-5
Original file line numberDiff line numberDiff line change
@@ -19,39 +19,39 @@ component extends="coldbox.system.RestHandler"{
1919
function index( event, rc, prc ){
2020
event.getResponse()
2121
.setData( {} )
22-
.addMessage( "Calling photos/index" );
22+
.addMessage( "Calling photos/index" )
2323
}
2424
/**
2525
* create
2626
*/
2727
function create( event, rc, prc ){
2828
event.getResponse()
2929
.setData( {} )
30-
.addMessage( "Calling photos/create" );
30+
.addMessage( "Calling photos/create" )
3131
}
3232
/**
3333
* show
3434
*/
3535
function show( event, rc, prc ){
3636
event.getResponse()
3737
.setData( {} )
38-
.addMessage( "Calling photos/show" );
38+
.addMessage( "Calling photos/show" )
3939
}
4040
/**
4141
* update
4242
*/
4343
function update( event, rc, prc ){
4444
event.getResponse()
4545
.setData( {} )
46-
.addMessage( "Calling photos/update" );
46+
.addMessage( "Calling photos/update" )
4747
}
4848
/**
4949
* delete
5050
*/
5151
function delete( event, rc, prc ){
5252
event.getResponse()
5353
.setData( {} )
54-
.addMessage( "Calling photos/delete" );
54+
.addMessage( "Calling photos/delete" )
5555
}
5656
5757
}

skeletons/resthandler.sublime-snippet

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ component extends="coldbox.system.RestHandler"{
1010
*/
1111
any function index( event, rc, prc ){
1212
event.getResponse()
13-
.setData( "" );
13+
.setData( "" )
1414
}
1515
1616
}

skeletons/test-bdd.sublime-snippet

+6-6
Original file line numberDiff line numberDiff line change
@@ -25,18 +25,18 @@ component extends="testbox.system.BaseSpec"{
2525
2626
function run( testResults, testBox ){
2727
// all your suites go here.
28-
describe( "My First Suite", function(){
28+
describe( "My First Suite", () => {
2929
30-
it( "A Spec", function(){
31-
fail( 'implement' );
32-
} );
30+
it( "A Spec", () => {
31+
fail( 'implement' )
32+
} )
3333
34-
} );
34+
} )
3535
}
3636
3737
}
3838
]]></content>
3939
<tabTrigger>bdd</tabTrigger>
4040
<scope>source,text</scope>
4141
<description>TestBox BDD Bundle</description>
42-
</snippet>
42+
</snippet>
+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
<snippet>
2+
<content><![CDATA[
3+
/**
4+
* ${1:index}
5+
*/
6+
class{
7+
8+
/**
9+
* Constructor
10+
*/
11+
function init(){
12+
return this;
13+
}
14+
15+
/**
16+
* Main executable
17+
*/
18+
function main( args: {} ){
19+
println( "Main" )
20+
}
21+
22+
}
23+
]]></content>
24+
<tabTrigger>class</tabTrigger>
25+
<scope>source,text</scope>
26+
<description>BoxLang Class</description>
27+
</snippet>
+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<snippet>
2+
<content><![CDATA[
3+
/**
4+
* ${1:index}
5+
*/
6+
function ${1:}(){
7+
8+
}
9+
]]></content>
10+
<tabTrigger>function</tabTrigger>
11+
<scope>source,text</scope>
12+
<description>Function</description>
13+
</snippet>
+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<snippet>
2+
<content><![CDATA[
3+
@inject( "${2}" )
4+
property name="${1}";
5+
]]></content>
6+
<tabTrigger>inject</tabTrigger>
7+
<scope>source,text</scope>
8+
<description>Property Injection</description>
9+
</snippet>
+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<snippet>
2+
<content><![CDATA[
3+
/**
4+
* ${1}
5+
*/
6+
property name="${1}";
7+
]]></content>
8+
<tabTrigger>prop</tabTrigger>
9+
<scope>source,text</scope>
10+
<description>Property</description>
11+
</snippet>

snippets/testbox/afterall.sublime-snippet

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
<content><![CDATA[
33
function afterAll(){
44
${0}
5-
});]]></content>
5+
})]]></content>
66
<tabTrigger>afterall</tabTrigger>
77
<scope>source,text</scope>
88
<description>TestBox BDD After All</description>
9-
</snippet>
9+
</snippet>
+2-2
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
<snippet>
22
<content><![CDATA[
3-
afterEach(function( currentSpec ){
3+
afterEach( ( currentSpec ) => {
44
${0}
55
});]]></content>
66
<tabTrigger>after</tabTrigger>
77
<scope>source,text</scope>
88
<description>TestBox BDD After Each</description>
9-
</snippet>
9+
</snippet>

snippets/testbox/aftertests.sublime-snippet

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
<content><![CDATA[
33
function afterTests(){
44
${0}
5-
});]]></content>
5+
})]]></content>
66
<tabTrigger>aftertests</tabTrigger>
77
<scope>source,text</scope>
88
<description>TestBox xUnit After Tests</description>
9-
</snippet>
9+
</snippet>
+2-2
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
<snippet>
22
<content><![CDATA[
3-
aroundEach(function( spec, suite ){
3+
aroundEach( ( spec, suite ) => {
44
${0}
55
arguments.spec.body();
66
});]]></content>
77
<tabTrigger>around</tabTrigger>
88
<scope>source,text</scope>
99
<description>TestBox BDD Around Each</description>
10-
</snippet>
10+
</snippet>
+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<snippet>
22
<content><![CDATA[
3-
assert( ${1}, ${2:'Message'});
3+
assert( ${1}, ${2:'Message'})
44
]]></content>
55
<tabTrigger>assert</tabTrigger>
66
<scope>source,text</scope>
77
<description>TestBox Assert</description>
8-
</snippet>
8+
</snippet>

snippets/testbox/beforeall.sublime-snippet

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
<content><![CDATA[
33
function beforeAll(){
44
${0}
5-
});]]></content>
5+
})]]></content>
66
<tabTrigger>beforeall</tabTrigger>
77
<scope>source,text</scope>
88
<description>TestBox BDD Before All</description>
9-
</snippet>
9+
</snippet>
+2-2
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
<snippet>
22
<content><![CDATA[
3-
beforeEach(function( currentSpec ){
3+
beforeEach( ( currentSpec ) => {
44
${0}
55
});]]></content>
66
<tabTrigger>before</tabTrigger>
77
<scope>source,text</scope>
88
<description>TestBox BDD Before Each</description>
9-
</snippet>
9+
</snippet>

snippets/testbox/beforetests.sublime-snippet

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
<content><![CDATA[
33
function beforeTests(){
44
${0}
5-
});]]></content>
5+
})]]></content>
66
<tabTrigger>beforetests</tabTrigger>
77
<scope>source,text</scope>
88
<description>TestBox xUnit Before Tests</description>
9-
</snippet>
9+
</snippet>
+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<snippet>
22
<content><![CDATA[
3-
console( $1 );
3+
console( $1 )
44
]]></content>
55
<tabTrigger>console</tabTrigger>
66
<scope>source,text</scope>
77
<description>TestBox Send To Console</description>
8-
</snippet>
8+
</snippet>
+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<snippet>
22
<content><![CDATA[
3-
debug( $1 );
3+
debug( $1 )
44
]]></content>
55
<tabTrigger>debug</tabTrigger>
66
<scope>source,text</scope>
77
<description>TestBox Debug</description>
8-
</snippet>
8+
</snippet>
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<snippet>
22
<content><![CDATA[
3-
debug( var=$1, duplicate=true, top=999 );
3+
debug( var=$1, duplicate=true, top=999 )
44
]]></content>
55
<tabTrigger>debugduplicate</tabTrigger>
66
<scope>source,text</scope>
77
<description>TestBox Debug Duplicate</description>
8-
</snippet>
8+
</snippet>
+3-3
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
<snippet>
22
<content><![CDATA[
3-
describe( "${1:A suite}", function(){
3+
describe( "${1:A suite}", () => {
44
${0}
55
6-
});]]></content>
6+
})]]></content>
77
<tabTrigger>describe</tabTrigger>
88
<scope>source,text</scope>
99
<description>TestBox BDD Suite</description>
10-
</snippet>
10+
</snippet>
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,15 @@
11
<snippet>
22
<content><![CDATA[
3-
describe( title="${1:A suite}", labels="", asyncAll=false, skip=false, body=function(){
3+
describe(
4+
title="${1:A suite}",
5+
labels="",
6+
asyncAll=false,
7+
skip=false,
8+
body=() => {
49
${0}
510
6-
});]]></content>
11+
})]]></content>
712
<tabTrigger>describeFull</tabTrigger>
813
<scope>source,text</scope>
914
<description>TestBox BDD Suite With Arguments</description>
10-
</snippet>
15+
</snippet>

0 commit comments

Comments
 (0)