goodguide-gibbon 0.10.2 → 0.10.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/goodguide/gibbon/version.rb +1 -1
- data/vendor/gibbon/lib/gibbon.browser.dev.js +14 -12
- data/vendor/gibbon/lib/gibbon.browser.js +14 -12
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cabd835978ce48079cb610786bd50119555d75f3
|
4
|
+
data.tar.gz: f58c19cfbadc8ea11b5300aa8a135085d33c73a2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a32bfa7fb568d4ef0a17b16acf51319125cd89f8c93770859b936cf2fc7175f8b7c939dc1199e3682aa543003d73ac5a143a7a5b05197d8563b19db2251d4e4b
|
7
|
+
data.tar.gz: 38c21a1b41fd85bf1700d3739911a132c7fe1b0a46f943787f434797e357f6f121e203133b6c9e17f2a80abf131c92f5334fa22fd79233d026f9bcf2b54b4763
|
@@ -1109,7 +1109,7 @@ Gibbon.AST = AST = (function(_super) {
|
|
1109
1109
|
return "" + tail + (head.inspect());
|
1110
1110
|
},
|
1111
1111
|
metadata: function(_, key, text) {
|
1112
|
-
return "" + key + ": " + text;
|
1112
|
+
return "+" + key + ": " + text;
|
1113
1113
|
},
|
1114
1114
|
definition: function(_, metadata, name, frame) {
|
1115
1115
|
var m, out, _i, _len;
|
@@ -1239,8 +1239,8 @@ parse = Gibbon.parse = (function() {
|
|
1239
1239
|
decimal = tag('a decimal', lexeme(regex(/^\d+\.\d+/)));
|
1240
1240
|
percent = tag('a percentage', lexeme(regex(/^\d+%/)));
|
1241
1241
|
integer = tag('a number', lexeme(regex(/^\d+/)));
|
1242
|
-
label = lexeme(identifier.skip(string(':')));
|
1243
|
-
labelVal =
|
1242
|
+
label = lexeme(string('~').then(identifier.skip(whitespace)).skip(string(':')));
|
1243
|
+
labelVal = multiline(regex(/[^\n]*/));
|
1244
1244
|
variable = lexeme(string('%').then(identifier));
|
1245
1245
|
wildcard = lexeme(string('%'));
|
1246
1246
|
funcPlaceholder = lexeme(string('&'));
|
@@ -1366,7 +1366,9 @@ parse = Gibbon.parse = (function() {
|
|
1366
1366
|
}
|
1367
1367
|
return els;
|
1368
1368
|
});
|
1369
|
-
metadata = seq(label, labelVal).map(function(
|
1369
|
+
metadata = seq(label, labelVal).map(function(_arg) {
|
1370
|
+
var key, text;
|
1371
|
+
key = _arg[0], text = _arg[1];
|
1370
1372
|
return AST.metadata(spanLoc(key, text), key.value, text.value);
|
1371
1373
|
});
|
1372
1374
|
definition = lazy(function() {
|
@@ -1442,20 +1444,20 @@ parse = Gibbon.parse = (function() {
|
|
1442
1444
|
throw 'can only parse strings';
|
1443
1445
|
}
|
1444
1446
|
};
|
1445
|
-
handleResult = function(result) {
|
1447
|
+
handleResult = function(str, result) {
|
1446
1448
|
if (result.status) {
|
1447
1449
|
return result.value;
|
1448
1450
|
} else {
|
1449
|
-
throw new Error(Parsimmon.formatError(result));
|
1451
|
+
throw new Error(Parsimmon.formatError(str, result));
|
1450
1452
|
}
|
1451
1453
|
};
|
1452
1454
|
parse = function(str) {
|
1453
1455
|
assertString(str);
|
1454
|
-
return handleResult(program.parse(str));
|
1456
|
+
return handleResult(str, program.parse(str));
|
1455
1457
|
};
|
1456
1458
|
parse.type = function(str) {
|
1457
1459
|
assertString(str);
|
1458
|
-
return handleResult(fullSignature.parse(str));
|
1460
|
+
return handleResult(str, fullSignature.parse(str));
|
1459
1461
|
};
|
1460
1462
|
return parse;
|
1461
1463
|
})();
|
@@ -2003,14 +2005,14 @@ analyze = Gibbon.analyze = (function() {
|
|
2003
2005
|
}
|
2004
2006
|
|
2005
2007
|
Scope.prototype.extend = function(definition) {
|
2006
|
-
var breadcrumbs, frame,
|
2008
|
+
var breadcrumbs, frame, key, metadata, text, _i, _len, _ref10, _ref9;
|
2007
2009
|
breadcrumbs = this.breadcrumbs.concat(definition.name);
|
2008
2010
|
frame = definition.frame;
|
2009
2011
|
metadata = new Hash;
|
2010
2012
|
_ref9 = definition.metadata;
|
2011
2013
|
for (_i = 0, _len = _ref9.length; _i < _len; _i++) {
|
2012
|
-
_ref10 = _ref9[_i],
|
2013
|
-
metadata.set(
|
2014
|
+
_ref10 = _ref9[_i], key = _ref10.key, text = _ref10.text;
|
2015
|
+
metadata.set(key, text);
|
2014
2016
|
}
|
2015
2017
|
return new Scope(this, breadcrumbs, frame, this.context, metadata);
|
2016
2018
|
};
|
@@ -2845,7 +2847,7 @@ Gibbon.Core = Core = (function(_super) {
|
|
2845
2847
|
bind: function(n, v, e) {
|
2846
2848
|
return [v, e];
|
2847
2849
|
},
|
2848
|
-
delist:
|
2850
|
+
delist: double,
|
2849
2851
|
depair: single,
|
2850
2852
|
squishList: single,
|
2851
2853
|
list: function(e) {
|
@@ -1099,7 +1099,7 @@ Gibbon.AST = AST = (function(_super) {
|
|
1099
1099
|
return "" + tail + (head.inspect());
|
1100
1100
|
},
|
1101
1101
|
metadata: function(_, key, text) {
|
1102
|
-
return "" + key + ": " + text;
|
1102
|
+
return "+" + key + ": " + text;
|
1103
1103
|
},
|
1104
1104
|
definition: function(_, metadata, name, frame) {
|
1105
1105
|
var m, out, _i, _len;
|
@@ -1229,8 +1229,8 @@ parse = Gibbon.parse = (function() {
|
|
1229
1229
|
decimal = tag('a decimal', lexeme(regex(/^\d+\.\d+/)));
|
1230
1230
|
percent = tag('a percentage', lexeme(regex(/^\d+%/)));
|
1231
1231
|
integer = tag('a number', lexeme(regex(/^\d+/)));
|
1232
|
-
label = lexeme(identifier.skip(string(':')));
|
1233
|
-
labelVal =
|
1232
|
+
label = lexeme(string('~').then(identifier.skip(whitespace)).skip(string(':')));
|
1233
|
+
labelVal = multiline(regex(/[^\n]*/));
|
1234
1234
|
variable = lexeme(string('%').then(identifier));
|
1235
1235
|
wildcard = lexeme(string('%'));
|
1236
1236
|
funcPlaceholder = lexeme(string('&'));
|
@@ -1356,7 +1356,9 @@ parse = Gibbon.parse = (function() {
|
|
1356
1356
|
}
|
1357
1357
|
return els;
|
1358
1358
|
});
|
1359
|
-
metadata = seq(label, labelVal).map(function(
|
1359
|
+
metadata = seq(label, labelVal).map(function(_arg) {
|
1360
|
+
var key, text;
|
1361
|
+
key = _arg[0], text = _arg[1];
|
1360
1362
|
return AST.metadata(spanLoc(key, text), key.value, text.value);
|
1361
1363
|
});
|
1362
1364
|
definition = lazy(function() {
|
@@ -1432,20 +1434,20 @@ parse = Gibbon.parse = (function() {
|
|
1432
1434
|
throw 'can only parse strings';
|
1433
1435
|
}
|
1434
1436
|
};
|
1435
|
-
handleResult = function(result) {
|
1437
|
+
handleResult = function(str, result) {
|
1436
1438
|
if (result.status) {
|
1437
1439
|
return result.value;
|
1438
1440
|
} else {
|
1439
|
-
throw new Error(Parsimmon.formatError(result));
|
1441
|
+
throw new Error(Parsimmon.formatError(str, result));
|
1440
1442
|
}
|
1441
1443
|
};
|
1442
1444
|
parse = function(str) {
|
1443
1445
|
assertString(str);
|
1444
|
-
return handleResult(program.parse(str));
|
1446
|
+
return handleResult(str, program.parse(str));
|
1445
1447
|
};
|
1446
1448
|
parse.type = function(str) {
|
1447
1449
|
assertString(str);
|
1448
|
-
return handleResult(fullSignature.parse(str));
|
1450
|
+
return handleResult(str, fullSignature.parse(str));
|
1449
1451
|
};
|
1450
1452
|
return parse;
|
1451
1453
|
})();
|
@@ -1989,14 +1991,14 @@ analyze = Gibbon.analyze = (function() {
|
|
1989
1991
|
}
|
1990
1992
|
|
1991
1993
|
Scope.prototype.extend = function(definition) {
|
1992
|
-
var breadcrumbs, frame,
|
1994
|
+
var breadcrumbs, frame, key, metadata, text, _i, _len, _ref10, _ref9;
|
1993
1995
|
breadcrumbs = this.breadcrumbs.concat(definition.name);
|
1994
1996
|
frame = definition.frame;
|
1995
1997
|
metadata = new Hash;
|
1996
1998
|
_ref9 = definition.metadata;
|
1997
1999
|
for (_i = 0, _len = _ref9.length; _i < _len; _i++) {
|
1998
|
-
_ref10 = _ref9[_i],
|
1999
|
-
metadata.set(
|
2000
|
+
_ref10 = _ref9[_i], key = _ref10.key, text = _ref10.text;
|
2001
|
+
metadata.set(key, text);
|
2000
2002
|
}
|
2001
2003
|
return new Scope(this, breadcrumbs, frame, this.context, metadata);
|
2002
2004
|
};
|
@@ -2813,7 +2815,7 @@ Gibbon.Core = Core = (function(_super) {
|
|
2813
2815
|
bind: function(n, v, e) {
|
2814
2816
|
return [v, e];
|
2815
2817
|
},
|
2816
|
-
delist:
|
2818
|
+
delist: double,
|
2817
2819
|
depair: single,
|
2818
2820
|
squishList: single,
|
2819
2821
|
list: function(e) {
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: goodguide-gibbon
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.10.
|
4
|
+
version: 0.10.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jay Adkisson
|
@@ -45,7 +45,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
45
45
|
version: '0'
|
46
46
|
requirements: []
|
47
47
|
rubyforge_project: goodguide-gibbon
|
48
|
-
rubygems_version: 2.2.
|
48
|
+
rubygems_version: 2.2.0
|
49
49
|
signing_key:
|
50
50
|
specification_version: 4
|
51
51
|
summary: Ruby bindings for the gibbon data language
|