nibjs 1.0.0 → 1.1.0
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG.md +11 -0
- data/Gemfile.lock +1 -1
- data/Manifest.txt +2 -1
- data/README.md +10 -0
- data/Rakefile +1 -1
- data/dist/nibjs-1.0.0.js +74 -0
- data/dist/nibjs-1.0.0.min.js +7 -0
- data/dist/nibjs-1.1.0.js +74 -0
- data/dist/nibjs-1.1.0.min.js +7 -0
- data/examples/1-basic/basic.js +27 -0
- data/examples/1-basic/build +7 -0
- data/examples/1-basic/illustrate.png +0 -0
- data/examples/1-basic/index.html +56 -0
- data/examples/1-basic/lib/App.js +9 -0
- data/examples/1-basic/lib/StringUtils.js +7 -0
- data/examples/1-basic/lib/index.js +2 -0
- data/examples/2-coffee/build +7 -0
- data/examples/2-coffee/coffee.js +24 -0
- data/examples/2-coffee/illustrate.png +0 -0
- data/examples/2-coffee/index.html +57 -0
- data/examples/2-coffee/lib/App.coffee +9 -0
- data/examples/2-coffee/lib/StringUtils.coffee +6 -0
- data/examples/2-coffee/lib/index.coffee +2 -0
- data/examples/3-embedded-coffee/build +7 -0
- data/examples/3-embedded-coffee/embedded-coffee.coffee +25 -0
- data/examples/3-embedded-coffee/illustrate.png +0 -0
- data/examples/3-embedded-coffee/index.html +68 -0
- data/examples/3-embedded-coffee/lib/App.coffee +9 -0
- data/examples/3-embedded-coffee/lib/StringUtils.coffee +6 -0
- data/examples/3-embedded-coffee/lib/index.coffee +2 -0
- data/examples/4-coffee-join/build +7 -0
- data/examples/4-coffee-join/coffee-join.js +19 -0
- data/examples/4-coffee-join/illustrate.png +0 -0
- data/examples/4-coffee-join/index.html +55 -0
- data/examples/4-coffee-join/lib/App.coffee +7 -0
- data/examples/4-coffee-join/lib/StringUtils.coffee +6 -0
- data/examples/4-coffee-join/lib/index.coffee +2 -0
- data/examples/5-standalone/build +7 -0
- data/examples/5-standalone/illustrate.png +0 -0
- data/examples/5-standalone/index.html +52 -0
- data/examples/5-standalone/lib/App.coffee +7 -0
- data/examples/5-standalone/lib/StringUtils.coffee +6 -0
- data/examples/5-standalone/lib/index.coffee +2 -0
- data/examples/5-standalone/standalone.js +94 -0
- data/examples/README.md +43 -0
- data/examples/commons.rb +11 -0
- data/{test/integration/integration_test.rb → examples/handler.rb} +5 -12
- data/examples/illustrate.png +0 -0
- data/examples/illustrations.graffle +4382 -0
- data/examples/index.html +32 -0
- data/examples/public/TestSuite.coffee +43 -0
- data/examples/public/TestSuite.js +53 -0
- data/examples/public/coffee-script.js +8 -0
- data/examples/public/forkme.png +0 -0
- data/examples/public/leftnav.png +0 -0
- data/examples/public/leftnav_bw.png +0 -0
- data/examples/public/nibjs.js +74 -0
- data/examples/public/rightnav.png +0 -0
- data/examples/public/rightnav_bw.png +0 -0
- data/examples/public/style.css +82 -0
- data/examples/public/test-false.png +0 -0
- data/examples/public/test-pending.gif +0 -0
- data/examples/public/test-true.png +0 -0
- data/lib/nibjs/main.rb +104 -79
- data/lib/nibjs/version.rb +1 -1
- data/nibjs.noespec +1 -1
- data/src/nibjs.coffee +104 -107
- data/tasks/analytics.txt +10 -0
- data/tasks/examples.rake +25 -0
- data/tasks/gh-pages.rake +15 -0
- data/tasks/test.rake +2 -3
- data/test/command/footer.js +1 -0
- data/test/command/sc_coffee_6.exp +106 -0
- data/test/command/sc_coffee_7.exp +151 -0
- data/test/command/sc_common_6.exp +1 -0
- data/test/command/sc_common_7.exp +33 -0
- data/test/command/sc_common_8.exp +107 -0
- data/test/command/sc_common_9.exp +7 -0
- data/test/command/scenarios.rb +24 -0
- data/test/jasmine/assumption_spec.coffee +23 -0
- data/test/jasmine/nibjs_spec.coffee +14 -15
- data/test/nibjs.js +33 -33
- metadata +81 -14
- data/test/integration/index.html +0 -42
- data/test/integration/integration_test.coffee +0 -29
- data/test/integration/integration_test.js +0 -34
- data/test/integration/jquery-1.4.4.min.js +0 -167
@@ -0,0 +1 @@
|
|
1
|
+
NibJS.define("fixture",function(a){a.register("./app",function(a,b){var c;a.App=c=function(){function a(){}a.prototype.say_hello=function(){return"Hello from App"};return a}();return a}),a.register("./dependent",function(a,b){var c,d;c=b("./app").App,a.Dependent=d=function(){function a(){}a.prototype.say_hello=function(){return"Hello from Dependent"};return a}();return a}),a.register("./index",function(a,b){a.App=b("./app").App,a.Dependent=b("./dependent").Dependent;return a});return a.require("./index")});var fixture=NibJS.require("fixture")
|
@@ -0,0 +1,33 @@
|
|
1
|
+
NibJS.define('fixture', function(nibjs) {
|
2
|
+
nibjs.register('./app', function(exports, require) {
|
3
|
+
var App;
|
4
|
+
exports.App = App = (function() {
|
5
|
+
function App() {}
|
6
|
+
App.prototype.say_hello = function() {
|
7
|
+
return "Hello from App";
|
8
|
+
};
|
9
|
+
return App;
|
10
|
+
})();
|
11
|
+
return exports;
|
12
|
+
});
|
13
|
+
nibjs.register('./dependent', function(exports, require) {
|
14
|
+
var App, Dependent;
|
15
|
+
App = require('./app').App;
|
16
|
+
exports.Dependent = Dependent = (function() {
|
17
|
+
function Dependent() {}
|
18
|
+
Dependent.prototype.say_hello = function() {
|
19
|
+
return "Hello from Dependent";
|
20
|
+
};
|
21
|
+
return Dependent;
|
22
|
+
})();
|
23
|
+
return exports;
|
24
|
+
});
|
25
|
+
nibjs.register('./index', function(exports, require) {
|
26
|
+
exports.App = require('./app').App;
|
27
|
+
exports.Dependent = require('./dependent').Dependent;
|
28
|
+
return exports;
|
29
|
+
});
|
30
|
+
return nibjs.require('./index');
|
31
|
+
});
|
32
|
+
|
33
|
+
/* and this is a footer */
|
@@ -0,0 +1,107 @@
|
|
1
|
+
/**
|
2
|
+
* nib.js - [Java/Coffee]script application packager from node.js conventions
|
3
|
+
*
|
4
|
+
* Copyright 2011, Bernard Lambeau
|
5
|
+
* Released under the MIT License
|
6
|
+
* http://github.com/blambeau/nib.js
|
7
|
+
*/
|
8
|
+
(function(exports){
|
9
|
+
var Builder, Exception;
|
10
|
+
var __hasProp = Object.prototype.hasOwnProperty, __extends = function(child, parent) {
|
11
|
+
for (var key in parent) { if (__hasProp.call(parent, key)) child[key] = parent[key]; }
|
12
|
+
function ctor() { this.constructor = child; }
|
13
|
+
ctor.prototype = parent.prototype;
|
14
|
+
child.prototype = new ctor;
|
15
|
+
child.__super__ = parent.prototype;
|
16
|
+
return child;
|
17
|
+
}, __bind = function(fn, me){ return function(){ return fn.apply(me, arguments); }; };
|
18
|
+
exports.NibJS = {
|
19
|
+
pkgBuilders: [],
|
20
|
+
packages: [],
|
21
|
+
hasPackage: function(name) {
|
22
|
+
return (NibJS.pkgBuilders[name] != null) || (NibJS.packages[name] != null);
|
23
|
+
},
|
24
|
+
define: function(name, buildFn) {
|
25
|
+
return NibJS.pkgBuilders[name] = buildFn;
|
26
|
+
},
|
27
|
+
require: function(name) {
|
28
|
+
var _base, _ref;
|
29
|
+
return (_ref = (_base = NibJS.packages)[name]) != null ? _ref : _base[name] = NibJS._build_one(name);
|
30
|
+
},
|
31
|
+
_build_one: function(name) {
|
32
|
+
var builder;
|
33
|
+
if (NibJS.pkgBuilders[name]) {
|
34
|
+
builder = new Builder;
|
35
|
+
return NibJS.pkgBuilders[name](builder);
|
36
|
+
} else {
|
37
|
+
throw new Exception("NibJS error: no module '" + name + "' has been previously registered.");
|
38
|
+
}
|
39
|
+
}
|
40
|
+
};
|
41
|
+
Exception = (function() {
|
42
|
+
__extends(Exception, Error);
|
43
|
+
function Exception(message) {
|
44
|
+
this.message = message;
|
45
|
+
}
|
46
|
+
return Exception;
|
47
|
+
})();
|
48
|
+
Builder = (function() {
|
49
|
+
function Builder() {
|
50
|
+
this.build_file = __bind(this.build_file, this);;
|
51
|
+
this.require = __bind(this.require, this);;
|
52
|
+
this.register = __bind(this.register, this);; this.builders = [];
|
53
|
+
this.built = [];
|
54
|
+
}
|
55
|
+
Builder.prototype.register = function(file, builder) {
|
56
|
+
return this.builders[file] = builder;
|
57
|
+
};
|
58
|
+
Builder.prototype.require = function(file) {
|
59
|
+
var _base, _ref;
|
60
|
+
return (_ref = (_base = this.built)[file]) != null ? _ref : _base[file] = this.build_file(file);
|
61
|
+
};
|
62
|
+
Builder.prototype.build_file = function(file) {
|
63
|
+
var file_exp;
|
64
|
+
if (this.builders[file] != null) {
|
65
|
+
file_exp = {};
|
66
|
+
this.builders[file](file_exp, this.require);
|
67
|
+
return file_exp;
|
68
|
+
} else {
|
69
|
+
throw new Exception("NibJS error: no such file " + file);
|
70
|
+
}
|
71
|
+
};
|
72
|
+
return Builder;
|
73
|
+
})();
|
74
|
+
}).call(this, this);
|
75
|
+
|
76
|
+
NibJS.define('fixture', function(nibjs) {
|
77
|
+
nibjs.register('./app', function(exports, require) {
|
78
|
+
var App;
|
79
|
+
exports.App = App = (function() {
|
80
|
+
function App() {}
|
81
|
+
App.prototype.say_hello = function() {
|
82
|
+
return "Hello from App";
|
83
|
+
};
|
84
|
+
return App;
|
85
|
+
})();
|
86
|
+
return exports;
|
87
|
+
});
|
88
|
+
nibjs.register('./dependent', function(exports, require) {
|
89
|
+
var App, Dependent;
|
90
|
+
App = require('./app').App;
|
91
|
+
exports.Dependent = Dependent = (function() {
|
92
|
+
function Dependent() {}
|
93
|
+
Dependent.prototype.say_hello = function() {
|
94
|
+
return "Hello from Dependent";
|
95
|
+
};
|
96
|
+
return Dependent;
|
97
|
+
})();
|
98
|
+
return exports;
|
99
|
+
});
|
100
|
+
nibjs.register('./index', function(exports, require) {
|
101
|
+
exports.App = require('./app').App;
|
102
|
+
exports.Dependent = require('./dependent').Dependent;
|
103
|
+
return exports;
|
104
|
+
});
|
105
|
+
return nibjs.require('./index');
|
106
|
+
});
|
107
|
+
var fixture = NibJS.require('fixture');
|
@@ -0,0 +1,7 @@
|
|
1
|
+
/* this is a header *//**
|
2
|
+
* nib.js - [Java/Coffee]script application packager from node.js conventions
|
3
|
+
*
|
4
|
+
* Copyright 2011, Bernard Lambeau
|
5
|
+
* Released under the MIT License
|
6
|
+
* http://github.com/blambeau/nib.js
|
7
|
+
*/(function(a){var b,c,d=Object.prototype.hasOwnProperty,e=function(a,b){function e(){this.constructor=a}for(var c in b)d.call(b,c)&&(a[c]=b[c]);e.prototype=b.prototype,a.prototype=new e,a.__super__=b.prototype;return a},f=function(a,b){return function(){return a.apply(b,arguments)}};a.NibJS={pkgBuilders:[],packages:[],hasPackage:function(a){return NibJS.pkgBuilders[a]!=null||NibJS.packages[a]!=null},define:function(a,b){return NibJS.pkgBuilders[a]=b},require:function(a){var b,c;return(c=(b=NibJS.packages)[a])!=null?c:b[a]=NibJS._build_one(a)},_build_one:function(a){var d;if(NibJS.pkgBuilders[a]){d=new b;return NibJS.pkgBuilders[a](d)}throw new c("NibJS error: no module '"+a+"' has been previously registered.")}},c=function(){function a(a){this.message=a}e(a,Error);return a}(),b=function(){function a(){this.build_file=f(this.build_file,this),this.require=f(this.require,this),this.register=f(this.register,this),this.builders=[],this.built=[]}a.prototype.register=function(a,b){return this.builders[a]=b},a.prototype.require=function(a){var b,c;return(c=(b=this.built)[a])!=null?c:b[a]=this.build_file(a)},a.prototype.build_file=function(a){var b;if(this.builders[a]!=null){b={},this.builders[a](b,this.require);return b}throw new c("NibJS error: no such file "+a)};return a}()}).call(this,this),NibJS.define("fixture",function(a){a.register("./app",function(a,b){var c;a.App=c=function(){function a(){}a.prototype.say_hello=function(){return"Hello from App"};return a}();return a}),a.register("./dependent",function(a,b){var c,d;c=b("./app").App,a.Dependent=d=function(){function a(){}a.prototype.say_hello=function(){return"Hello from Dependent"};return a}();return a}),a.register("./index",function(a,b){a.App=b("./app").App,a.Dependent=b("./dependent").Dependent;return a});return a.require("./index")});var fixture=NibJS.require("fixture")
|
data/test/command/scenarios.rb
CHANGED
@@ -49,6 +49,22 @@ module NibJS
|
|
49
49
|
[ "--header=#{_('header.js')}", "--uglify", src ]
|
50
50
|
end
|
51
51
|
|
52
|
+
def sc_common_6(src)
|
53
|
+
[ "-au", src ]
|
54
|
+
end
|
55
|
+
|
56
|
+
def sc_common_7(src)
|
57
|
+
[ "--footer=#{_('footer.js')}", src ]
|
58
|
+
end
|
59
|
+
|
60
|
+
def sc_common_8(src)
|
61
|
+
[ "-sa", src ]
|
62
|
+
end
|
63
|
+
|
64
|
+
def sc_common_9(src)
|
65
|
+
[ "--header=#{_('header.js')}", "--footer=#{_('footer.js')}", "-sua", src ]
|
66
|
+
end
|
67
|
+
|
52
68
|
def sc_coffee_1(src)
|
53
69
|
[ "--libname=FixtureApp", "--coffee", src ]
|
54
70
|
end
|
@@ -69,5 +85,13 @@ module NibJS
|
|
69
85
|
[ "--libname=FixtureApp", "--join", "--autorequire", "--coffee", "--no-coffee-compile", src ]
|
70
86
|
end
|
71
87
|
|
88
|
+
def sc_coffee_6(src)
|
89
|
+
[ "--coffee", "--standalone", src ]
|
90
|
+
end
|
91
|
+
|
92
|
+
def sc_coffee_7(src)
|
93
|
+
[ "--coffee", "--no-coffee-compile", "-sa", src ]
|
94
|
+
end
|
95
|
+
|
72
96
|
end # class Scenarios
|
73
97
|
end # module NibJS
|
@@ -0,0 +1,23 @@
|
|
1
|
+
describe "Scoping in coffeescript", ->
|
2
|
+
|
3
|
+
it "should respect scoping intuitiveness", ->
|
4
|
+
|
5
|
+
fn = (unshared, shared)->
|
6
|
+
|
7
|
+
Foo = {
|
8
|
+
|
9
|
+
internal: ()->
|
10
|
+
unshared = {}
|
11
|
+
unshared.id = "internal"
|
12
|
+
shared.id = "internal"
|
13
|
+
|
14
|
+
}
|
15
|
+
Foo.internal()
|
16
|
+
|
17
|
+
x = {}
|
18
|
+
x.id = "external"
|
19
|
+
y = {}
|
20
|
+
y.id = "external"
|
21
|
+
fn(x, y)
|
22
|
+
expect(x.id).toEqual "external"
|
23
|
+
expect(y.id).toEqual "internal"
|
@@ -2,21 +2,6 @@ global.NibJS = require('../nibjs').NibJS
|
|
2
2
|
|
3
3
|
describe "NibJS", ->
|
4
4
|
|
5
|
-
it 'should support register / start / query scenario', ->
|
6
|
-
ran = null
|
7
|
-
fn = ()->
|
8
|
-
ran = "Hello world!"
|
9
|
-
|
10
|
-
# Mark it as ready
|
11
|
-
NibJS.ready(fn)
|
12
|
-
|
13
|
-
# Start it now
|
14
|
-
NibJS.start()
|
15
|
-
expect( ran ).toEqual "Hello world!"
|
16
|
-
|
17
|
-
# Verify that it is running
|
18
|
-
expect(NibJS.isRunning("Hello world!")).toEqual true
|
19
|
-
|
20
5
|
it 'should support embedding .js applications in browser', ->
|
21
6
|
require('../fixture.min')
|
22
7
|
|
@@ -29,3 +14,17 @@ describe "NibJS", ->
|
|
29
14
|
# Check it
|
30
15
|
expect((new fix.App).say_hello()).toEqual "Hello from App"
|
31
16
|
expect((new fix.Dependent).say_hello()).toEqual "Hello from Dependent"
|
17
|
+
|
18
|
+
it 'should has a hasPackage helper method', ->
|
19
|
+
require('../fixture.min')
|
20
|
+
expect(NibJS.hasPackage('fixture')).toEqual true
|
21
|
+
expect(NibJS.hasPackage('no such one')).toEqual false
|
22
|
+
|
23
|
+
it 'should raise with a friendly message on external require error', ->
|
24
|
+
lambda = ->
|
25
|
+
NibJS.require('no such one')
|
26
|
+
expect(lambda).toThrow(NibJS.Exception)
|
27
|
+
try
|
28
|
+
lambda()
|
29
|
+
catch err
|
30
|
+
expect(err.message).toMatch /no such one/
|
data/test/nibjs.js
CHANGED
@@ -6,11 +6,21 @@
|
|
6
6
|
* http://github.com/blambeau/nib.js
|
7
7
|
*/
|
8
8
|
(function(exports){
|
9
|
-
var Builder;
|
10
|
-
var
|
9
|
+
var Builder, Exception;
|
10
|
+
var __hasProp = Object.prototype.hasOwnProperty, __extends = function(child, parent) {
|
11
|
+
for (var key in parent) { if (__hasProp.call(parent, key)) child[key] = parent[key]; }
|
12
|
+
function ctor() { this.constructor = child; }
|
13
|
+
ctor.prototype = parent.prototype;
|
14
|
+
child.prototype = new ctor;
|
15
|
+
child.__super__ = parent.prototype;
|
16
|
+
return child;
|
17
|
+
}, __bind = function(fn, me){ return function(){ return fn.apply(me, arguments); }; };
|
11
18
|
exports.NibJS = {
|
12
19
|
pkgBuilders: [],
|
13
20
|
packages: [],
|
21
|
+
hasPackage: function(name) {
|
22
|
+
return (NibJS.pkgBuilders[name] != null) || (NibJS.packages[name] != null);
|
23
|
+
},
|
14
24
|
define: function(name, buildFn) {
|
15
25
|
return NibJS.pkgBuilders[name] = buildFn;
|
16
26
|
},
|
@@ -20,35 +30,21 @@
|
|
20
30
|
},
|
21
31
|
_build_one: function(name) {
|
22
32
|
var builder;
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
ready: function(fn) {
|
29
|
-
return NibJS.pending.push(fn);
|
30
|
-
},
|
31
|
-
start: function() {
|
32
|
-
var fn, _i, _len, _ref;
|
33
|
-
_ref = NibJS.pending;
|
34
|
-
for (_i = 0, _len = _ref.length; _i < _len; _i++) {
|
35
|
-
fn = _ref[_i];
|
36
|
-
NibJS.running.push(fn());
|
37
|
-
}
|
38
|
-
return NibJS.pending = [];
|
39
|
-
},
|
40
|
-
isRunning: function(fn) {
|
41
|
-
var c, _i, _len, _ref;
|
42
|
-
_ref = NibJS.running;
|
43
|
-
for (_i = 0, _len = _ref.length; _i < _len; _i++) {
|
44
|
-
c = _ref[_i];
|
45
|
-
if (c === fn) {
|
46
|
-
return true;
|
47
|
-
}
|
33
|
+
if (NibJS.pkgBuilders[name]) {
|
34
|
+
builder = new Builder;
|
35
|
+
return NibJS.pkgBuilders[name](builder);
|
36
|
+
} else {
|
37
|
+
throw new Exception("NibJS error: no module '" + name + "' has been previously registered.");
|
48
38
|
}
|
49
|
-
return false;
|
50
39
|
}
|
51
40
|
};
|
41
|
+
Exception = (function() {
|
42
|
+
__extends(Exception, Error);
|
43
|
+
function Exception(message) {
|
44
|
+
this.message = message;
|
45
|
+
}
|
46
|
+
return Exception;
|
47
|
+
})();
|
52
48
|
Builder = (function() {
|
53
49
|
function Builder() {
|
54
50
|
this.build_file = __bind(this.build_file, this);;
|
@@ -64,11 +60,15 @@
|
|
64
60
|
return (_ref = (_base = this.built)[file]) != null ? _ref : _base[file] = this.build_file(file);
|
65
61
|
};
|
66
62
|
Builder.prototype.build_file = function(file) {
|
67
|
-
var
|
68
|
-
|
69
|
-
|
70
|
-
|
63
|
+
var file_exp;
|
64
|
+
if (this.builders[file] != null) {
|
65
|
+
file_exp = {};
|
66
|
+
this.builders[file](file_exp, this.require);
|
67
|
+
return file_exp;
|
68
|
+
} else {
|
69
|
+
throw new Exception("NibJS error: no such file " + file);
|
70
|
+
}
|
71
71
|
};
|
72
72
|
return Builder;
|
73
73
|
})();
|
74
|
-
}).call(this, this)
|
74
|
+
}).call(this, this);
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: nibjs
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 19
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 1
|
8
|
+
- 1
|
8
9
|
- 0
|
9
|
-
|
10
|
-
version: 1.0.0
|
10
|
+
version: 1.1.0
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Bernard Lambeau
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2011-02-
|
18
|
+
date: 2011-02-23 00:00:00 +01:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|
@@ -208,6 +208,64 @@ extra_rdoc_files:
|
|
208
208
|
files:
|
209
209
|
- bin/nibjs
|
210
210
|
- CHANGELOG.md
|
211
|
+
- dist/nibjs-1.0.0.js
|
212
|
+
- dist/nibjs-1.0.0.min.js
|
213
|
+
- dist/nibjs-1.1.0.js
|
214
|
+
- dist/nibjs-1.1.0.min.js
|
215
|
+
- examples/1-basic/basic.js
|
216
|
+
- examples/1-basic/build
|
217
|
+
- examples/1-basic/illustrate.png
|
218
|
+
- examples/1-basic/index.html
|
219
|
+
- examples/1-basic/lib/App.js
|
220
|
+
- examples/1-basic/lib/index.js
|
221
|
+
- examples/1-basic/lib/StringUtils.js
|
222
|
+
- examples/2-coffee/build
|
223
|
+
- examples/2-coffee/coffee.js
|
224
|
+
- examples/2-coffee/illustrate.png
|
225
|
+
- examples/2-coffee/index.html
|
226
|
+
- examples/2-coffee/lib/App.coffee
|
227
|
+
- examples/2-coffee/lib/index.coffee
|
228
|
+
- examples/2-coffee/lib/StringUtils.coffee
|
229
|
+
- examples/3-embedded-coffee/build
|
230
|
+
- examples/3-embedded-coffee/embedded-coffee.coffee
|
231
|
+
- examples/3-embedded-coffee/illustrate.png
|
232
|
+
- examples/3-embedded-coffee/index.html
|
233
|
+
- examples/3-embedded-coffee/lib/App.coffee
|
234
|
+
- examples/3-embedded-coffee/lib/index.coffee
|
235
|
+
- examples/3-embedded-coffee/lib/StringUtils.coffee
|
236
|
+
- examples/4-coffee-join/build
|
237
|
+
- examples/4-coffee-join/coffee-join.js
|
238
|
+
- examples/4-coffee-join/illustrate.png
|
239
|
+
- examples/4-coffee-join/index.html
|
240
|
+
- examples/4-coffee-join/lib/App.coffee
|
241
|
+
- examples/4-coffee-join/lib/index.coffee
|
242
|
+
- examples/4-coffee-join/lib/StringUtils.coffee
|
243
|
+
- examples/5-standalone/build
|
244
|
+
- examples/5-standalone/illustrate.png
|
245
|
+
- examples/5-standalone/index.html
|
246
|
+
- examples/5-standalone/lib/App.coffee
|
247
|
+
- examples/5-standalone/lib/index.coffee
|
248
|
+
- examples/5-standalone/lib/StringUtils.coffee
|
249
|
+
- examples/5-standalone/standalone.js
|
250
|
+
- examples/commons.rb
|
251
|
+
- examples/handler.rb
|
252
|
+
- examples/illustrate.png
|
253
|
+
- examples/illustrations.graffle
|
254
|
+
- examples/index.html
|
255
|
+
- examples/public/coffee-script.js
|
256
|
+
- examples/public/forkme.png
|
257
|
+
- examples/public/leftnav.png
|
258
|
+
- examples/public/leftnav_bw.png
|
259
|
+
- examples/public/nibjs.js
|
260
|
+
- examples/public/rightnav.png
|
261
|
+
- examples/public/rightnav_bw.png
|
262
|
+
- examples/public/style.css
|
263
|
+
- examples/public/test-false.png
|
264
|
+
- examples/public/test-pending.gif
|
265
|
+
- examples/public/test-true.png
|
266
|
+
- examples/public/TestSuite.coffee
|
267
|
+
- examples/public/TestSuite.js
|
268
|
+
- examples/README.md
|
211
269
|
- Gemfile
|
212
270
|
- Gemfile.lock
|
213
271
|
- lib/nibjs/loader.rb
|
@@ -222,12 +280,16 @@ files:
|
|
222
280
|
- Rakefile
|
223
281
|
- README.md
|
224
282
|
- src/nibjs.coffee
|
283
|
+
- tasks/analytics.txt
|
225
284
|
- tasks/debug_mail.rake
|
226
285
|
- tasks/debug_mail.txt
|
227
286
|
- tasks/dist.rake
|
287
|
+
- tasks/examples.rake
|
228
288
|
- tasks/gem.rake
|
289
|
+
- tasks/gh-pages.rake
|
229
290
|
- tasks/test.rake
|
230
291
|
- tasks/yard.rake
|
292
|
+
- test/command/footer.js
|
231
293
|
- test/command/header.js
|
232
294
|
- test/command/nibjs_spec.rb
|
233
295
|
- test/command/run.rb
|
@@ -236,12 +298,18 @@ files:
|
|
236
298
|
- test/command/sc_coffee_3.exp
|
237
299
|
- test/command/sc_coffee_4.exp
|
238
300
|
- test/command/sc_coffee_5.exp
|
301
|
+
- test/command/sc_coffee_6.exp
|
302
|
+
- test/command/sc_coffee_7.exp
|
239
303
|
- test/command/sc_common_0.exp
|
240
304
|
- test/command/sc_common_1.exp
|
241
305
|
- test/command/sc_common_2.exp
|
242
306
|
- test/command/sc_common_3.exp
|
243
307
|
- test/command/sc_common_4.exp
|
244
308
|
- test/command/sc_common_5.exp
|
309
|
+
- test/command/sc_common_6.exp
|
310
|
+
- test/command/sc_common_7.exp
|
311
|
+
- test/command/sc_common_8.exp
|
312
|
+
- test/command/sc_common_9.exp
|
245
313
|
- test/command/scenarios.rb
|
246
314
|
- test/fixture.coffee/app.coffee
|
247
315
|
- test/fixture.coffee/dependent.coffee
|
@@ -250,11 +318,7 @@ files:
|
|
250
318
|
- test/fixture.js/dependent.js
|
251
319
|
- test/fixture.js/index.js
|
252
320
|
- test/fixture.min.js
|
253
|
-
- test/
|
254
|
-
- test/integration/integration_test.coffee
|
255
|
-
- test/integration/integration_test.js
|
256
|
-
- test/integration/integration_test.rb
|
257
|
-
- test/integration/jquery-1.4.4.min.js
|
321
|
+
- test/jasmine/assumption_spec.coffee
|
258
322
|
- test/jasmine/nibjs_spec.coffee
|
259
323
|
- test/jasmine/run.coffee
|
260
324
|
- test/nibjs.js
|
@@ -293,6 +357,7 @@ signing_key:
|
|
293
357
|
specification_version: 3
|
294
358
|
summary: nib.js - Package and embed node.js or coffeescript libraries in the browser
|
295
359
|
test_files:
|
360
|
+
- test/command/footer.js
|
296
361
|
- test/command/header.js
|
297
362
|
- test/command/nibjs_spec.rb
|
298
363
|
- test/command/run.rb
|
@@ -301,12 +366,18 @@ test_files:
|
|
301
366
|
- test/command/sc_coffee_3.exp
|
302
367
|
- test/command/sc_coffee_4.exp
|
303
368
|
- test/command/sc_coffee_5.exp
|
369
|
+
- test/command/sc_coffee_6.exp
|
370
|
+
- test/command/sc_coffee_7.exp
|
304
371
|
- test/command/sc_common_0.exp
|
305
372
|
- test/command/sc_common_1.exp
|
306
373
|
- test/command/sc_common_2.exp
|
307
374
|
- test/command/sc_common_3.exp
|
308
375
|
- test/command/sc_common_4.exp
|
309
376
|
- test/command/sc_common_5.exp
|
377
|
+
- test/command/sc_common_6.exp
|
378
|
+
- test/command/sc_common_7.exp
|
379
|
+
- test/command/sc_common_8.exp
|
380
|
+
- test/command/sc_common_9.exp
|
310
381
|
- test/command/scenarios.rb
|
311
382
|
- test/fixture.coffee/app.coffee
|
312
383
|
- test/fixture.coffee/dependent.coffee
|
@@ -315,11 +386,7 @@ test_files:
|
|
315
386
|
- test/fixture.js/dependent.js
|
316
387
|
- test/fixture.js/index.js
|
317
388
|
- test/fixture.min.js
|
318
|
-
- test/
|
319
|
-
- test/integration/integration_test.coffee
|
320
|
-
- test/integration/integration_test.js
|
321
|
-
- test/integration/integration_test.rb
|
322
|
-
- test/integration/jquery-1.4.4.min.js
|
389
|
+
- test/jasmine/assumption_spec.coffee
|
323
390
|
- test/jasmine/nibjs_spec.coffee
|
324
391
|
- test/jasmine/run.coffee
|
325
392
|
- test/nibjs.js
|