goodguide-gibbon 0.10.0 → 0.10.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 33c530b0e96d07ff4760a44622a7f1328705ccce
4
- data.tar.gz: e75c4e54536f26b15a12de00c756501fa35de5d1
3
+ metadata.gz: 57ae9392c5410133c5f4ada1b4246a722a072238
4
+ data.tar.gz: 394c30d1756a87b8c9a8792374d0092502b03960
5
5
  SHA512:
6
- metadata.gz: a408f7295d239c4e8ce3007d876d5b7e22bb53040970e84082fc95e3d93422277096f1005adfbf55c3cc3101fad605cccf9c5c4f6002357825e4ba6a81be2fba
7
- data.tar.gz: 52f96b43009c33f99b85ccce968eaec15b7cb2673ecf4fb6d7027d936cc40bde84cf9d407e4a12dff2dc49493521934f74c67c677fe6d6e93b9309649cd7f3c6
6
+ metadata.gz: 6f565286601f57bd33b64b2078138b72839a97ca5071220c6143fb511fed5ce08ee72841543f34cf83a8c48a93d991c6b26aa77a7cc39a13125953fde3d5c01a
7
+ data.tar.gz: 128ce3a70b585711f7d5cfd20f5ca2d4ce41f66d58035c80fedb821564b95ef1aae86e190fdb80ce46f959864c7f8d6d7af647a25fed521555ecddda225dfae4
@@ -1,7 +1,7 @@
1
1
  module GoodGuide
2
2
  module Gibbon
3
3
  def self.version
4
- '0.10.0'
4
+ '0.10.1'
5
5
  end
6
6
  end
7
7
  end
@@ -503,7 +503,7 @@ applyOp2 = function(op, l, r) {
503
503
  };
504
504
 
505
505
  uniq = function(list, eq) {
506
- var el, out, u, _i, _j, _len, _len1;
506
+ var el, isUniq, out, u, _i, _j, _len, _len1;
507
507
  if (eq == null) {
508
508
  eq = (function(x, y) {
509
509
  return x === y;
@@ -515,14 +515,15 @@ uniq = function(list, eq) {
515
515
  out = [];
516
516
  for (_i = 0, _len = list.length; _i < _len; _i++) {
517
517
  el = list[_i];
518
+ isUniq = true;
518
519
  for (_j = 0, _len1 = out.length; _j < _len1; _j++) {
519
520
  u = out[_j];
520
- if (!eq(el, u)) {
521
- out.push(el);
521
+ if (eq(el, u)) {
522
+ isUniq = false;
522
523
  break;
523
524
  }
524
525
  }
525
- if (out.length === 0) {
526
+ if (isUniq) {
526
527
  out.push(el);
527
528
  }
528
529
  }
@@ -2828,6 +2829,9 @@ Gibbon.Core = Core = (function(_super) {
2828
2829
  return [l, b];
2829
2830
  },
2830
2831
  zipLists: double,
2832
+ filterList: function(l, a, b) {
2833
+ return [l, b];
2834
+ },
2831
2835
  len: single,
2832
2836
  pair: double,
2833
2837
  block: function(n, b) {
@@ -2910,6 +2914,9 @@ Gibbon.Core = Core = (function(_super) {
2910
2914
  squishList: function(l) {
2911
2915
  return Core.squishList(f(l));
2912
2916
  },
2917
+ rescue: function(e, d) {
2918
+ return Core.rescue(f(e), f(d));
2919
+ },
2913
2920
  other: function() {
2914
2921
  return this;
2915
2922
  }
@@ -6225,7 +6232,7 @@ Gibbon.Dependency = Dependency = (function(_super) {
6225
6232
  }
6226
6233
  return this.cases({
6227
6234
  query: function(entity, query) {
6228
- if (entity.id !== other.entity.id) {
6235
+ if (entity !== other.entity) {
6229
6236
  return false;
6230
6237
  }
6231
6238
  if (JSON.stringify(query) !== JSON.stringify(other.query)) {
@@ -493,7 +493,7 @@ applyOp2 = function(op, l, r) {
493
493
  };
494
494
 
495
495
  uniq = function(list, eq) {
496
- var el, out, u, _i, _j, _len, _len1;
496
+ var el, isUniq, out, u, _i, _j, _len, _len1;
497
497
  if (eq == null) {
498
498
  eq = (function(x, y) {
499
499
  return x === y;
@@ -505,14 +505,15 @@ uniq = function(list, eq) {
505
505
  out = [];
506
506
  for (_i = 0, _len = list.length; _i < _len; _i++) {
507
507
  el = list[_i];
508
+ isUniq = true;
508
509
  for (_j = 0, _len1 = out.length; _j < _len1; _j++) {
509
510
  u = out[_j];
510
- if (!eq(el, u)) {
511
- out.push(el);
511
+ if (eq(el, u)) {
512
+ isUniq = false;
512
513
  break;
513
514
  }
514
515
  }
515
- if (out.length === 0) {
516
+ if (isUniq) {
516
517
  out.push(el);
517
518
  }
518
519
  }
@@ -2796,6 +2797,9 @@ Gibbon.Core = Core = (function(_super) {
2796
2797
  return [l, b];
2797
2798
  },
2798
2799
  zipLists: double,
2800
+ filterList: function(l, a, b) {
2801
+ return [l, b];
2802
+ },
2799
2803
  len: single,
2800
2804
  pair: double,
2801
2805
  block: function(n, b) {
@@ -2878,6 +2882,9 @@ Gibbon.Core = Core = (function(_super) {
2878
2882
  squishList: function(l) {
2879
2883
  return Core.squishList(f(l));
2880
2884
  },
2885
+ rescue: function(e, d) {
2886
+ return Core.rescue(f(e), f(d));
2887
+ },
2881
2888
  other: function() {
2882
2889
  return this;
2883
2890
  }
@@ -6185,7 +6192,7 @@ Gibbon.Dependency = Dependency = (function(_super) {
6185
6192
  }
6186
6193
  return this.cases({
6187
6194
  query: function(entity, query) {
6188
- if (entity.id !== other.entity.id) {
6195
+ if (entity !== other.entity) {
6189
6196
  return false;
6190
6197
  }
6191
6198
  if (JSON.stringify(query) !== JSON.stringify(other.query)) {
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: goodguide-gibbon
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.10.0
4
+ version: 0.10.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jay Adkisson
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-03-31 00:00:00.000000000 Z
11
+ date: 2014-04-03 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Run and analyze gibbon code from ruby or a browser (via a ruby app).
14
14
  email: