Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Changing to Javascript Sugar

  • Loading branch information...
commit 8d506392143a686bf7f52d22a11ffae1998973d3 1 parent f6b7b49
@jeffsu authored
View
1  CHANGELOG
@@ -1,3 +1,4 @@
+
0.3.16
* JSML: Support dashes in classes and id
* GEM: Took out debug info in rack.rb
View
2  VERSION
@@ -1 +1 @@
-0.3.16
+0.3.17
View
7 dist/browser/js2-full.js
@@ -1128,6 +1128,7 @@ JS2.Array.prototype.any = function() {
return this.length > 0;
};
+
JS2.Class.extend('FileSystem', function(KLASS, OO){
OO.addMember("initialize",function (adapter) {
this.adapter = adapter;
@@ -1237,6 +1238,7 @@ JS2.Class.extend('FileSystem', function(KLASS, OO){
});
});
+
JS2.Class.extend('Updater', function(KLASS, OO){
OO.addMember("initialize",function (fs, inDir, outDir, recursive) {
this.recursive = recursive;
@@ -1282,6 +1284,7 @@ JS2.Class.extend('Updater', function(KLASS, OO){
});
});
+
JS2.Class.extend('Config', function(KLASS, OO){
OO.addMember("CLI_REGEX",/^-(r|i|f|n|v|m)(=(\w+))?$/);
OO.addMember("optsLookup",{
@@ -1353,6 +1356,7 @@ JS2.Class.extend('Config', function(KLASS, OO){
});
+
JS2.Class.extend('Commander', function(KLASS, OO){
OO.addMember("BANNER","js2 <command> [options] <arguments>\n" +
"VERSION: " + JS2.VERSION + "\n" +
@@ -1439,6 +1443,7 @@ JS2.Class.extend('Commander', function(KLASS, OO){
});
+
JS2.Class.extend('BrowserDecorator', function(KLASS, OO){
OO.addMember("file",function (code) {
return code;
@@ -1483,6 +1488,7 @@ JS2.Class.extend('RingoDecorator', function(KLASS, OO){
JS2.DECORATOR = JS2.DECORATOR || new JS2.BrowserDecorator();
+
JS2.Class.extend('JSML', function(KLASS, OO){
OO.addStaticMember("process",function (txt) {
return new KLASS(txt);
@@ -1671,6 +1677,7 @@ JS2.Class.extend('JSMLElement', function(KLASS, OO){
return (out.length ? ' ' : '') + out.join(' ');
});
});
+
JS2.TEMPLATES = { jsml: JS2.JSML };
(function (undefined, JS2) {
View
2  dist/browser/js2.js
@@ -269,6 +269,7 @@ JS2.Array.prototype.any = function() {
return this.length > 0;
};
+
JS2.Class.extend('JSML', function(KLASS, OO){
OO.addStaticMember("process",function (txt) {
return new KLASS(txt);
@@ -458,6 +459,7 @@ JS2.Class.extend('JSMLElement', function(KLASS, OO){
});
});
+
JS2.TEMPLATES = { jsml: JS2.JSML };
View
4 dist/gem/js2.gemspec
@@ -1,8 +1,8 @@
spec = Gem::Specification.new do |s|
s.name = 'js2'
s.version = '0.3.16'
- s.summary = "Javascript Syntactic Sugar"
- s.description = %{A superset of the Javascript language to make development easier.}
+ s.summary = "Javascript Sugar"
+ s.description = %{Javascript Sugar: A superset of the Javascript language to make development easier.}
s.files = Dir['bin/*'] + Dir['lib/**/*.rb'] + Dir['lib/**/*.js'] + [ 'CHANGELOG' ]
s.bindir = 'bin'
s.executables = [ 'js2-ruby', 'js2' ]
View
7 dist/gem/lib/js2/js2.js
@@ -1124,6 +1124,7 @@ JS2.Array.prototype.any = function() {
return this.length > 0;
};
+
JS2.Class.extend('FileSystem', function(KLASS, OO){
OO.addMember("initialize",function (adapter) {
this.adapter = adapter;
@@ -1233,6 +1234,7 @@ JS2.Class.extend('FileSystem', function(KLASS, OO){
});
});
+
JS2.Class.extend('Updater', function(KLASS, OO){
OO.addMember("initialize",function (fs, inDir, outDir, recursive) {
this.recursive = recursive;
@@ -1278,6 +1280,7 @@ JS2.Class.extend('Updater', function(KLASS, OO){
});
});
+
JS2.Class.extend('Config', function(KLASS, OO){
OO.addMember("CLI_REGEX",/^-(r|i|f|n|v|m)(=(\w+))?$/);
OO.addMember("optsLookup",{
@@ -1349,6 +1352,7 @@ JS2.Class.extend('Config', function(KLASS, OO){
});
+
JS2.Class.extend('Commander', function(KLASS, OO){
OO.addMember("BANNER","js2 <command> [options] <arguments>\n" +
"VERSION: " + JS2.VERSION + "\n" +
@@ -1435,6 +1439,7 @@ JS2.Class.extend('Commander', function(KLASS, OO){
});
+
JS2.Class.extend('BrowserDecorator', function(KLASS, OO){
OO.addMember("file",function (code) {
return code;
@@ -1479,6 +1484,7 @@ JS2.Class.extend('RingoDecorator', function(KLASS, OO){
JS2.DECORATOR = JS2.DECORATOR || new JS2.BrowserDecorator();
+
JS2.Class.extend('JSML', function(KLASS, OO){
OO.addStaticMember("process",function (txt) {
return new KLASS(txt);
@@ -1667,6 +1673,7 @@ JS2.Class.extend('JSMLElement', function(KLASS, OO){
return (out.length ? ' ' : '') + out.join(' ');
});
});
+
JS2.TEMPLATES = { jsml: JS2.JSML };
View
8 dist/npm/lib/js2.js
@@ -1124,6 +1124,7 @@ JS2.Array.prototype.any = function() {
return this.length > 0;
};
+
JS2.Class.extend('FileSystem', function(KLASS, OO){
OO.addMember("initialize",function (adapter) {
this.adapter = adapter;
@@ -1233,6 +1234,7 @@ JS2.Class.extend('FileSystem', function(KLASS, OO){
});
});
+
JS2.Class.extend('Updater', function(KLASS, OO){
OO.addMember("initialize",function (fs, inDir, outDir, recursive) {
this.recursive = recursive;
@@ -1278,6 +1280,7 @@ JS2.Class.extend('Updater', function(KLASS, OO){
});
});
+
JS2.Class.extend('Config', function(KLASS, OO){
OO.addMember("CLI_REGEX",/^-(r|i|f|n|v|m)(=(\w+))?$/);
OO.addMember("optsLookup",{
@@ -1349,6 +1352,7 @@ JS2.Class.extend('Config', function(KLASS, OO){
});
+
JS2.Class.extend('Commander', function(KLASS, OO){
OO.addMember("BANNER","js2 <command> [options] <arguments>\n" +
"VERSION: " + JS2.VERSION + "\n" +
@@ -1435,6 +1439,7 @@ JS2.Class.extend('Commander', function(KLASS, OO){
});
+
JS2.Class.extend('BrowserDecorator', function(KLASS, OO){
OO.addMember("file",function (code) {
return code;
@@ -1479,6 +1484,7 @@ JS2.Class.extend('RingoDecorator', function(KLASS, OO){
JS2.DECORATOR = JS2.DECORATOR || new JS2.BrowserDecorator();
+
JS2.Class.extend('JSML', function(KLASS, OO){
OO.addStaticMember("process",function (txt) {
return new KLASS(txt);
@@ -1667,6 +1673,7 @@ JS2.Class.extend('JSMLElement', function(KLASS, OO){
return (out.length ? ' ' : '') + out.join(' ');
});
});
+
JS2.TEMPLATES = { jsml: JS2.JSML };
@@ -1721,6 +1728,7 @@ JS2.TEMPLATES = { jsml: JS2.JSML };
});
});
+
JS2.fs = new JS2.FileSystem(new JS2.NodeFileAdapter());
js2.DECORATOR = new JS2.NodeDecorator();
View
4 dist/npm/package.json
@@ -1,9 +1,9 @@
{ "name" : "js2",
- "description" : "Javascript Syntactic Sugar",
+ "description" : "Javascript Sugar",
"version" : "0.3.16",
"author" : "Jeff Su",
"repository" : { "type" : "git" , "url" : "git://github.com/jeffsu/js2.git" },
- "bugs" : { "web" : "http://github.com/jeffsu/js2/issues" },
+ "bugs" : { "web" : "http://jeffsu.github.com/js2" },
"os" : [ "linux", "darwin", "freebsd" ],
"directories" : { "lib" : "./dist/npm/lib/", "bin" : "./dist/npm/bin/" },
"bin" : { "js2" : "./bin/js2-node", "js2-node" : "./bin/js2-node" },
View
7 flavors/browser-full.js
@@ -1128,6 +1128,7 @@ JS2.Array.prototype.any = function() {
return this.length > 0;
};
+
JS2.Class.extend('FileSystem', function(KLASS, OO){
OO.addMember("initialize",function (adapter) {
this.adapter = adapter;
@@ -1237,6 +1238,7 @@ JS2.Class.extend('FileSystem', function(KLASS, OO){
});
});
+
JS2.Class.extend('Updater', function(KLASS, OO){
OO.addMember("initialize",function (fs, inDir, outDir, recursive) {
this.recursive = recursive;
@@ -1282,6 +1284,7 @@ JS2.Class.extend('Updater', function(KLASS, OO){
});
});
+
JS2.Class.extend('Config', function(KLASS, OO){
OO.addMember("CLI_REGEX",/^-(r|i|f|n|v|m)(=(\w+))?$/);
OO.addMember("optsLookup",{
@@ -1353,6 +1356,7 @@ JS2.Class.extend('Config', function(KLASS, OO){
});
+
JS2.Class.extend('Commander', function(KLASS, OO){
OO.addMember("BANNER","js2 <command> [options] <arguments>\n" +
"VERSION: " + JS2.VERSION + "\n" +
@@ -1439,6 +1443,7 @@ JS2.Class.extend('Commander', function(KLASS, OO){
});
+
JS2.Class.extend('BrowserDecorator', function(KLASS, OO){
OO.addMember("file",function (code) {
return code;
@@ -1483,6 +1488,7 @@ JS2.Class.extend('RingoDecorator', function(KLASS, OO){
JS2.DECORATOR = JS2.DECORATOR || new JS2.BrowserDecorator();
+
JS2.Class.extend('JSML', function(KLASS, OO){
OO.addStaticMember("process",function (txt) {
return new KLASS(txt);
@@ -1671,6 +1677,7 @@ JS2.Class.extend('JSMLElement', function(KLASS, OO){
return (out.length ? ' ' : '') + out.join(' ');
});
});
+
JS2.TEMPLATES = { jsml: JS2.JSML };
(function (undefined, JS2) {
View
2  flavors/browser.js
@@ -269,6 +269,7 @@ JS2.Array.prototype.any = function() {
return this.length > 0;
};
+
JS2.Class.extend('JSML', function(KLASS, OO){
OO.addStaticMember("process",function (txt) {
return new KLASS(txt);
@@ -458,6 +459,7 @@ JS2.Class.extend('JSMLElement', function(KLASS, OO){
});
});
+
JS2.TEMPLATES = { jsml: JS2.JSML };
View
4 flavors/js2.gemspec
@@ -1,8 +1,8 @@
spec = Gem::Specification.new do |s|
s.name = 'js2'
s.version = '0.3.16'
- s.summary = "Javascript Syntactic Sugar"
- s.description = %{A superset of the Javascript language to make development easier.}
+ s.summary = "Javascript Sugar"
+ s.description = %{Javascript Sugar: A superset of the Javascript language to make development easier.}
s.files = Dir['bin/*'] + Dir['lib/**/*.rb'] + Dir['lib/**/*.js'] + [ 'CHANGELOG' ]
s.bindir = 'bin'
s.executables = [ 'js2-ruby', 'js2' ]
View
4 flavors/js2.gemspec.erb
@@ -1,8 +1,8 @@
spec = Gem::Specification.new do |s|
s.name = 'js2'
s.version = '<%= version %>'
- s.summary = "Javascript Syntactic Sugar"
- s.description = %{A superset of the Javascript language to make development easier.}
+ s.summary = "Javascript Sugar"
+ s.description = %{Javascript Sugar: A superset of the Javascript language to make development easier.}
s.files = Dir['bin/*'] + Dir['lib/**/*.rb'] + Dir['lib/**/*.js'] + [ 'CHANGELOG' ]
s.bindir = 'bin'
s.executables = [ 'js2-ruby', 'js2' ]
View
8 flavors/node.js
@@ -1124,6 +1124,7 @@ JS2.Array.prototype.any = function() {
return this.length > 0;
};
+
JS2.Class.extend('FileSystem', function(KLASS, OO){
OO.addMember("initialize",function (adapter) {
this.adapter = adapter;
@@ -1233,6 +1234,7 @@ JS2.Class.extend('FileSystem', function(KLASS, OO){
});
});
+
JS2.Class.extend('Updater', function(KLASS, OO){
OO.addMember("initialize",function (fs, inDir, outDir, recursive) {
this.recursive = recursive;
@@ -1278,6 +1280,7 @@ JS2.Class.extend('Updater', function(KLASS, OO){
});
});
+
JS2.Class.extend('Config', function(KLASS, OO){
OO.addMember("CLI_REGEX",/^-(r|i|f|n|v|m)(=(\w+))?$/);
OO.addMember("optsLookup",{
@@ -1349,6 +1352,7 @@ JS2.Class.extend('Config', function(KLASS, OO){
});
+
JS2.Class.extend('Commander', function(KLASS, OO){
OO.addMember("BANNER","js2 <command> [options] <arguments>\n" +
"VERSION: " + JS2.VERSION + "\n" +
@@ -1435,6 +1439,7 @@ JS2.Class.extend('Commander', function(KLASS, OO){
});
+
JS2.Class.extend('BrowserDecorator', function(KLASS, OO){
OO.addMember("file",function (code) {
return code;
@@ -1479,6 +1484,7 @@ JS2.Class.extend('RingoDecorator', function(KLASS, OO){
JS2.DECORATOR = JS2.DECORATOR || new JS2.BrowserDecorator();
+
JS2.Class.extend('JSML', function(KLASS, OO){
OO.addStaticMember("process",function (txt) {
return new KLASS(txt);
@@ -1667,6 +1673,7 @@ JS2.Class.extend('JSMLElement', function(KLASS, OO){
return (out.length ? ' ' : '') + out.join(' ');
});
});
+
JS2.TEMPLATES = { jsml: JS2.JSML };
@@ -1721,6 +1728,7 @@ JS2.TEMPLATES = { jsml: JS2.JSML };
});
});
+
JS2.fs = new JS2.FileSystem(new JS2.NodeFileAdapter());
js2.DECORATOR = new JS2.NodeDecorator();
View
4 flavors/node.package.json
@@ -1,9 +1,9 @@
{ "name" : "js2",
- "description" : "Javascript Syntactic Sugar",
+ "description" : "Javascript Sugar",
"version" : "0.3.16",
"author" : "Jeff Su",
"repository" : { "type" : "git" , "url" : "git://github.com/jeffsu/js2.git" },
- "bugs" : { "web" : "http://github.com/jeffsu/js2/issues" },
+ "bugs" : { "web" : "http://jeffsu.github.com/js2" },
"os" : [ "linux", "darwin", "freebsd" ],
"directories" : { "lib" : "./dist/npm/lib/", "bin" : "./dist/npm/bin/" },
"bin" : { "js2" : "./bin/js2-node", "js2-node" : "./bin/js2-node" },
View
4 flavors/node.package.json.erb
@@ -1,9 +1,9 @@
{ "name" : "js2",
- "description" : "Javascript Syntactic Sugar",
+ "description" : "Javascript Sugar",
"version" : "<%= version %>",
"author" : "Jeff Su",
"repository" : { "type" : "git" , "url" : "git://github.com/jeffsu/js2.git" },
- "bugs" : { "web" : "http://github.com/jeffsu/js2/issues" },
+ "bugs" : { "web" : "http://jeffsu.github.com/js2" },
"os" : [ "linux", "darwin", "freebsd" ],
"directories" : { "lib" : "./dist/npm/lib/", "bin" : "./dist/npm/bin/" },
"bin" : { "js2" : "./bin/js2-node", "js2-node" : "./bin/js2-node" },
View
8 flavors/ringo-full.js
@@ -1126,6 +1126,7 @@ JS2.Array.prototype.any = function() {
return this.length > 0;
};
+
JS2.Class.extend('FileSystem', function(KLASS, OO){
OO.addMember("initialize",function (adapter) {
this.adapter = adapter;
@@ -1235,6 +1236,7 @@ JS2.Class.extend('FileSystem', function(KLASS, OO){
});
});
+
JS2.Class.extend('Updater', function(KLASS, OO){
OO.addMember("initialize",function (fs, inDir, outDir, recursive) {
this.recursive = recursive;
@@ -1280,6 +1282,7 @@ JS2.Class.extend('Updater', function(KLASS, OO){
});
});
+
JS2.Class.extend('Config', function(KLASS, OO){
OO.addMember("CLI_REGEX",/^-(r|i|f|n|v|m)(=(\w+))?$/);
OO.addMember("optsLookup",{
@@ -1351,6 +1354,7 @@ JS2.Class.extend('Config', function(KLASS, OO){
});
+
JS2.Class.extend('Commander', function(KLASS, OO){
OO.addMember("BANNER","js2 <command> [options] <arguments>\n" +
"VERSION: " + JS2.VERSION + "\n" +
@@ -1437,6 +1441,7 @@ JS2.Class.extend('Commander', function(KLASS, OO){
});
+
JS2.Class.extend('BrowserDecorator', function(KLASS, OO){
OO.addMember("file",function (code) {
return code;
@@ -1481,6 +1486,7 @@ JS2.Class.extend('RingoDecorator', function(KLASS, OO){
JS2.DECORATOR = JS2.DECORATOR || new JS2.BrowserDecorator();
+
JS2.Class.extend('JSML', function(KLASS, OO){
OO.addStaticMember("process",function (txt) {
return new KLASS(txt);
@@ -1669,6 +1675,7 @@ JS2.Class.extend('JSMLElement', function(KLASS, OO){
return (out.length ? ' ' : '') + out.join(' ');
});
});
+
JS2.TEMPLATES = { jsml: JS2.JSML };
@@ -1724,6 +1731,7 @@ JS2.TEMPLATES = { jsml: JS2.JSML };
});
});
+
JS2.fs = new FileSystem(new RingoFileAdapter());
JS2.DECORATOR = new JS2.RingoDecorator();
View
2  flavors/ringo.js
@@ -266,6 +266,7 @@ JS2.Array.prototype.any = function() {
return this.length > 0;
};
+
JS2.Class.extend('JSML', function(KLASS, OO){
OO.addStaticMember("process",function (txt) {
return new KLASS(txt);
@@ -455,6 +456,7 @@ JS2.Class.extend('JSMLElement', function(KLASS, OO){
});
});
+
JS2.TEMPLATES = { jsml: JS2.JSML };
View
4 flavors/ringo.package.json
@@ -1,8 +1,8 @@
{
"name": "js2-ringo",
"version": "0.3.16",
- "description": "Javascript Syntactic Sugar",
- "keywords": ["rhino", "ringo", "js2", "object oriented programming" ],
+ "description": "Javascript Sugar",
+ "keywords": ["rhino", "ringo", "js2", "javascript", "object oriented programming" ],
"author": "Jeff Su (http://jeffsu.com/) <me@jeffsu.com>",
"contributors": [],
"jars": []
View
4 flavors/ringo.package.json.erb
@@ -1,8 +1,8 @@
{
"name": "js2-ringo",
"version": "<%= version %>",
- "description": "Javascript Syntactic Sugar",
- "keywords": ["rhino", "ringo", "js2", "object oriented programming" ],
+ "description": "Javascript Sugar",
+ "keywords": ["rhino", "ringo", "js2", "javascript", "object oriented programming" ],
"author": "Jeff Su (http://jeffsu.com/) <me@jeffsu.com>",
"contributors": [],
"jars": []
View
7 flavors/ruby.js
@@ -1124,6 +1124,7 @@ JS2.Array.prototype.any = function() {
return this.length > 0;
};
+
JS2.Class.extend('FileSystem', function(KLASS, OO){
OO.addMember("initialize",function (adapter) {
this.adapter = adapter;
@@ -1233,6 +1234,7 @@ JS2.Class.extend('FileSystem', function(KLASS, OO){
});
});
+
JS2.Class.extend('Updater', function(KLASS, OO){
OO.addMember("initialize",function (fs, inDir, outDir, recursive) {
this.recursive = recursive;
@@ -1278,6 +1280,7 @@ JS2.Class.extend('Updater', function(KLASS, OO){
});
});
+
JS2.Class.extend('Config', function(KLASS, OO){
OO.addMember("CLI_REGEX",/^-(r|i|f|n|v|m)(=(\w+))?$/);
OO.addMember("optsLookup",{
@@ -1349,6 +1352,7 @@ JS2.Class.extend('Config', function(KLASS, OO){
});
+
JS2.Class.extend('Commander', function(KLASS, OO){
OO.addMember("BANNER","js2 <command> [options] <arguments>\n" +
"VERSION: " + JS2.VERSION + "\n" +
@@ -1435,6 +1439,7 @@ JS2.Class.extend('Commander', function(KLASS, OO){
});
+
JS2.Class.extend('BrowserDecorator', function(KLASS, OO){
OO.addMember("file",function (code) {
return code;
@@ -1479,6 +1484,7 @@ JS2.Class.extend('RingoDecorator', function(KLASS, OO){
JS2.DECORATOR = JS2.DECORATOR || new JS2.BrowserDecorator();
+
JS2.Class.extend('JSML', function(KLASS, OO){
OO.addStaticMember("process",function (txt) {
return new KLASS(txt);
@@ -1667,6 +1673,7 @@ JS2.Class.extend('JSMLElement', function(KLASS, OO){
return (out.length ? ' ' : '') + out.join(' ');
});
});
+
JS2.TEMPLATES = { jsml: JS2.JSML };
Please sign in to comment.
Something went wrong with that request. Please try again.