lodash-rails 1.0.0.rc.1 → 1.0.0.rc.2
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +1 -1
- data/lib/lodash/rails/version.rb +1 -1
- data/vendor/assets/javascripts/lodash.js +101 -99
- data/vendor/assets/javascripts/lodash.min.js +19 -19
- metadata +2 -2
data/README.md
CHANGED
data/lib/lodash/rails/version.rb
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
/*!
|
2
|
-
* Lo-Dash 1.0.0-rc.
|
2
|
+
* Lo-Dash 1.0.0-rc.2 <http://lodash.com>
|
3
3
|
* (c) 2012 John-David Dalton <http://allyoucanleet.com/>
|
4
|
-
* Based on Underscore.js 1.4.
|
4
|
+
* Based on Underscore.js 1.4.3 <http://underscorejs.org>
|
5
5
|
* (c) 2009-2012 Jeremy Ashkenas, DocumentCloud Inc.
|
6
6
|
* Available under MIT license <http://lodash.com/license>
|
7
7
|
*/
|
@@ -4158,50 +4158,81 @@
|
|
4158
4158
|
|
4159
4159
|
/*--------------------------------------------------------------------------*/
|
4160
4160
|
|
4161
|
-
|
4162
|
-
* The semantic version number.
|
4163
|
-
*
|
4164
|
-
* @static
|
4165
|
-
* @memberOf _
|
4166
|
-
* @type String
|
4167
|
-
*/
|
4168
|
-
lodash.VERSION = '1.0.0-rc.1';
|
4169
|
-
|
4170
|
-
// assign static methods
|
4161
|
+
// add functions that return wrapped values when chaining
|
4171
4162
|
lodash.assign = assign;
|
4172
|
-
lodash.after = after;
|
4173
|
-
lodash.bind = bind;
|
4174
4163
|
lodash.bindAll = bindAll;
|
4175
|
-
lodash.bindKey = bindKey;
|
4176
4164
|
lodash.chain = chain;
|
4177
|
-
lodash.clone = clone;
|
4178
4165
|
lodash.compact = compact;
|
4179
|
-
lodash.compose = compose;
|
4180
|
-
lodash.contains = contains;
|
4181
4166
|
lodash.countBy = countBy;
|
4182
|
-
lodash.debounce = debounce;
|
4183
4167
|
lodash.defaults = defaults;
|
4184
|
-
lodash.defer = defer;
|
4185
|
-
lodash.delay = delay;
|
4186
4168
|
lodash.difference = difference;
|
4187
|
-
lodash.escape = escape;
|
4188
|
-
lodash.every = every;
|
4189
4169
|
lodash.filter = filter;
|
4190
|
-
lodash.find = find;
|
4191
|
-
lodash.first = first;
|
4192
4170
|
lodash.flatten = flatten;
|
4193
4171
|
lodash.forEach = forEach;
|
4194
4172
|
lodash.forIn = forIn;
|
4195
4173
|
lodash.forOwn = forOwn;
|
4196
4174
|
lodash.functions = functions;
|
4197
4175
|
lodash.groupBy = groupBy;
|
4198
|
-
lodash.has = has;
|
4199
|
-
lodash.identity = identity;
|
4200
|
-
lodash.indexOf = indexOf;
|
4201
4176
|
lodash.initial = initial;
|
4202
4177
|
lodash.intersection = intersection;
|
4203
4178
|
lodash.invert = invert;
|
4204
4179
|
lodash.invoke = invoke;
|
4180
|
+
lodash.keys = keys;
|
4181
|
+
lodash.map = map;
|
4182
|
+
lodash.max = max;
|
4183
|
+
lodash.merge = merge;
|
4184
|
+
lodash.min = min;
|
4185
|
+
lodash.object = object;
|
4186
|
+
lodash.omit = omit;
|
4187
|
+
lodash.pairs = pairs;
|
4188
|
+
lodash.pick = pick;
|
4189
|
+
lodash.pluck = pluck;
|
4190
|
+
lodash.range = range;
|
4191
|
+
lodash.reject = reject;
|
4192
|
+
lodash.rest = rest;
|
4193
|
+
lodash.shuffle = shuffle;
|
4194
|
+
lodash.sortBy = sortBy;
|
4195
|
+
lodash.tap = tap;
|
4196
|
+
lodash.times = times;
|
4197
|
+
lodash.toArray = toArray;
|
4198
|
+
lodash.union = union;
|
4199
|
+
lodash.uniq = uniq;
|
4200
|
+
lodash.values = values;
|
4201
|
+
lodash.where = where;
|
4202
|
+
lodash.without = without;
|
4203
|
+
lodash.zip = zip;
|
4204
|
+
|
4205
|
+
// add aliases
|
4206
|
+
lodash.collect = map;
|
4207
|
+
lodash.drop = rest;
|
4208
|
+
lodash.each = forEach;
|
4209
|
+
lodash.extend = assign;
|
4210
|
+
lodash.methods = functions;
|
4211
|
+
lodash.select = filter;
|
4212
|
+
lodash.tail = rest;
|
4213
|
+
lodash.unique = uniq;
|
4214
|
+
|
4215
|
+
// add functions to `lodash.prototype`
|
4216
|
+
mixin(lodash);
|
4217
|
+
|
4218
|
+
/*--------------------------------------------------------------------------*/
|
4219
|
+
|
4220
|
+
// add functions that return unwrapped values when chaining
|
4221
|
+
lodash.after = after;
|
4222
|
+
lodash.bind = bind;
|
4223
|
+
lodash.bindKey = bindKey;
|
4224
|
+
lodash.clone = clone;
|
4225
|
+
lodash.compose = compose;
|
4226
|
+
lodash.contains = contains;
|
4227
|
+
lodash.debounce = debounce;
|
4228
|
+
lodash.defer = defer;
|
4229
|
+
lodash.delay = delay;
|
4230
|
+
lodash.escape = escape;
|
4231
|
+
lodash.every = every;
|
4232
|
+
lodash.find = find;
|
4233
|
+
lodash.has = has;
|
4234
|
+
lodash.identity = identity;
|
4235
|
+
lodash.indexOf = indexOf;
|
4205
4236
|
lodash.isArguments = isArguments;
|
4206
4237
|
lodash.isArray = isArray;
|
4207
4238
|
lodash.isBoolean = isBoolean;
|
@@ -4219,120 +4250,89 @@
|
|
4219
4250
|
lodash.isRegExp = isRegExp;
|
4220
4251
|
lodash.isString = isString;
|
4221
4252
|
lodash.isUndefined = isUndefined;
|
4222
|
-
lodash.keys = keys;
|
4223
|
-
lodash.last = last;
|
4224
4253
|
lodash.lastIndexOf = lastIndexOf;
|
4225
|
-
lodash.map = map;
|
4226
|
-
lodash.max = max;
|
4227
4254
|
lodash.memoize = memoize;
|
4228
|
-
lodash.merge = merge;
|
4229
|
-
lodash.min = min;
|
4230
4255
|
lodash.mixin = mixin;
|
4231
4256
|
lodash.noConflict = noConflict;
|
4232
|
-
lodash.object = object;
|
4233
|
-
lodash.omit = omit;
|
4234
4257
|
lodash.once = once;
|
4235
|
-
lodash.pairs = pairs;
|
4236
4258
|
lodash.partial = partial;
|
4237
|
-
lodash.pick = pick;
|
4238
|
-
lodash.pluck = pluck;
|
4239
4259
|
lodash.random = random;
|
4240
|
-
lodash.range = range;
|
4241
4260
|
lodash.reduce = reduce;
|
4242
4261
|
lodash.reduceRight = reduceRight;
|
4243
|
-
lodash.reject = reject;
|
4244
|
-
lodash.rest = rest;
|
4245
4262
|
lodash.result = result;
|
4246
|
-
lodash.shuffle = shuffle;
|
4247
4263
|
lodash.size = size;
|
4248
4264
|
lodash.some = some;
|
4249
|
-
lodash.sortBy = sortBy;
|
4250
4265
|
lodash.sortedIndex = sortedIndex;
|
4251
|
-
lodash.tap = tap;
|
4252
4266
|
lodash.template = template;
|
4253
4267
|
lodash.throttle = throttle;
|
4254
|
-
lodash.times = times;
|
4255
|
-
lodash.toArray = toArray;
|
4256
4268
|
lodash.unescape = unescape;
|
4257
|
-
lodash.union = union;
|
4258
|
-
lodash.uniq = uniq;
|
4259
4269
|
lodash.uniqueId = uniqueId;
|
4260
|
-
lodash.values = values;
|
4261
|
-
lodash.where = where;
|
4262
|
-
lodash.without = without;
|
4263
4270
|
lodash.wrap = wrap;
|
4264
|
-
lodash.zip = zip;
|
4265
4271
|
|
4266
|
-
//
|
4272
|
+
// add aliases
|
4267
4273
|
lodash.all = every;
|
4268
4274
|
lodash.any = some;
|
4269
|
-
lodash.collect = map;
|
4270
4275
|
lodash.detect = find;
|
4271
|
-
lodash.drop = rest;
|
4272
|
-
lodash.each = forEach;
|
4273
|
-
lodash.extend = assign;
|
4274
4276
|
lodash.foldl = reduce;
|
4275
4277
|
lodash.foldr = reduceRight;
|
4276
|
-
lodash.head = first;
|
4277
4278
|
lodash.include = contains;
|
4278
4279
|
lodash.inject = reduce;
|
4279
|
-
lodash.methods = functions;
|
4280
|
-
lodash.select = filter;
|
4281
|
-
lodash.tail = rest;
|
4282
|
-
lodash.take = first;
|
4283
|
-
lodash.unique = uniq;
|
4284
4280
|
|
4285
|
-
|
4286
|
-
|
4281
|
+
forOwn(lodash, function(func, methodName) {
|
4282
|
+
if (!lodash.prototype[methodName]) {
|
4283
|
+
lodash.prototype[methodName] = function() {
|
4284
|
+
var args = [this.__wrapped__];
|
4285
|
+
push.apply(args, arguments);
|
4286
|
+
return func.apply(lodash, args);
|
4287
|
+
};
|
4288
|
+
}
|
4289
|
+
});
|
4287
4290
|
|
4288
4291
|
/*--------------------------------------------------------------------------*/
|
4289
4292
|
|
4290
|
-
// add
|
4291
|
-
|
4293
|
+
// add functions capable of returning wrapped and unwrapped values when chaining
|
4294
|
+
lodash.first = first;
|
4295
|
+
lodash.last = last;
|
4292
4296
|
|
4293
|
-
// add
|
4294
|
-
|
4295
|
-
lodash.
|
4296
|
-
lodash.prototype.toString = wrapperToString;
|
4297
|
-
lodash.prototype.value = wrapperValueOf;
|
4298
|
-
lodash.prototype.valueOf = wrapperValueOf;
|
4297
|
+
// add aliases
|
4298
|
+
lodash.take = first;
|
4299
|
+
lodash.head = first;
|
4299
4300
|
|
4300
|
-
|
4301
|
-
|
4302
|
-
|
4303
|
-
if (func) {
|
4304
|
-
lodash.prototype[methodName] = function(n, guard) {
|
4301
|
+
forOwn(lodash, function(func, methodName) {
|
4302
|
+
if (!lodash.prototype[methodName]) {
|
4303
|
+
lodash.prototype[methodName]= function(n, guard) {
|
4305
4304
|
var result = func(this.__wrapped__, n, guard);
|
4306
|
-
return (n == null || guard)
|
4307
|
-
? result
|
4308
|
-
: new lodash(result);
|
4305
|
+
return (n == null || guard) ? result : new lodash(result);
|
4309
4306
|
};
|
4310
4307
|
}
|
4311
4308
|
});
|
4312
4309
|
|
4313
|
-
|
4314
|
-
forEach(filter(functions(lodash), function(methodName) {
|
4315
|
-
return /^(?:bind|contains|every|find|has|is[A-Z].+|reduce.*|some)$/.test(methodName);
|
4316
|
-
}), function(methodName) {
|
4317
|
-
var func = lodash[methodName];
|
4310
|
+
/*--------------------------------------------------------------------------*/
|
4318
4311
|
|
4319
|
-
|
4320
|
-
|
4321
|
-
|
4322
|
-
|
4323
|
-
|
4324
|
-
|
4312
|
+
/**
|
4313
|
+
* The semantic version number.
|
4314
|
+
*
|
4315
|
+
* @static
|
4316
|
+
* @memberOf _
|
4317
|
+
* @type String
|
4318
|
+
*/
|
4319
|
+
lodash.VERSION = '1.0.0-rc.2';
|
4320
|
+
|
4321
|
+
// add "Chaining" functions to the wrapper
|
4322
|
+
lodash.prototype.chain = wrapperChain;
|
4323
|
+
lodash.prototype.toString = wrapperToString;
|
4324
|
+
lodash.prototype.value = wrapperValueOf;
|
4325
|
+
lodash.prototype.valueOf = wrapperValueOf;
|
4325
4326
|
|
4326
|
-
// add
|
4327
|
+
// add mutator `Array` functions to the wrapper
|
4327
4328
|
forEach(['pop', 'push', 'reverse', 'shift', 'sort', 'splice', 'unshift'], function(methodName) {
|
4328
4329
|
var func = arrayRef[methodName];
|
4329
|
-
|
4330
4330
|
lodash.prototype[methodName] = function() {
|
4331
4331
|
var value = this.__wrapped__;
|
4332
4332
|
func.apply(value, arguments);
|
4333
4333
|
|
4334
|
-
// avoid array-like object bugs with `Array#shift` and `Array#splice`
|
4335
|
-
// Firefox < 10 and IE < 9
|
4334
|
+
// avoid array-like object bugs with `Array#shift` and `Array#splice`
|
4335
|
+
// in Firefox < 10 and IE < 9
|
4336
4336
|
if (hasObjectSpliceBug && value.length === 0) {
|
4337
4337
|
delete value[0];
|
4338
4338
|
}
|
@@ -4340,10 +4340,9 @@
|
|
4340
4340
|
};
|
4341
4341
|
});
|
4342
4342
|
|
4343
|
-
// add
|
4343
|
+
// add accessor `Array` functions to the wrapper
|
4344
4344
|
forEach(['concat', 'join', 'slice'], function(methodName) {
|
4345
4345
|
var func = arrayRef[methodName];
|
4346
|
-
|
4347
4346
|
lodash.prototype[methodName] = function() {
|
4348
4347
|
var value = this.__wrapped__,
|
4349
4348
|
result = func.apply(value, arguments);
|
@@ -4352,6 +4351,9 @@
|
|
4352
4351
|
};
|
4353
4352
|
});
|
4354
4353
|
|
4354
|
+
// add pseudo private property to be used and removed during the build process
|
4355
|
+
lodash._iteratorTemplate = iteratorTemplate;
|
4356
|
+
|
4355
4357
|
/*--------------------------------------------------------------------------*/
|
4356
4358
|
|
4357
4359
|
// expose Lo-Dash
|
@@ -1,6 +1,6 @@
|
|
1
1
|
/*!
|
2
|
-
Lo-Dash 1.0.0-rc.
|
3
|
-
Underscore.js 1.4.
|
2
|
+
Lo-Dash 1.0.0-rc.2 lodash.com/license
|
3
|
+
Underscore.js 1.4.3 underscorejs.org/LICENSE
|
4
4
|
*/
|
5
5
|
;(function(e,t){function s(e){if(e&&"object"==typeof e&&e.__wrapped__)return e;if(!(this instanceof s))return new s(e);this.__wrapped__=e}function o(t,n){return e.eval("(function("+t+"){"+n+"})")}function u(e,t,n){t||(t=0);var r=e.length,i=r-t>=(n||it);if(i)for(var s={},n=t-1;++n<r;){var o=e[n]+"";(Tt.call(s,o)?s[o]:s[o]=[]).push(e[n])}return function(n){if(i){var r=n+"";return Tt.call(s,r)&&-1<W(s[r],n)}return-1<W(e,n,t)}}function a(e){return e.charCodeAt(0)}function f(e,t){var n=e.b,r=t.b,e=e.a,
|
6
6
|
t=t.a;if(e!==t){if(e>t||"undefined"==typeof e)return 1;if(e<t||"undefined"==typeof t)return-1}return n<r?-1:1}function l(e,t,n){function i(){var a=arguments,f=o?this:t;return s||(e=t[u]),n.length&&(a=a.length?n.concat(g(a)):n),this instanceof i?(m.prototype=e.prototype,f=new m,m.prototype=r,a=e.apply(f,a),k(a)?a:f):e.apply(f,a)}var s=C(e),o=!n,u=t;return o&&(n=t),s||(t=e),i}function c(e,t){return e?"function"!=typeof e?function(t){return t[e]}:"undefined"!=typeof t?function(n,r,i){return e.call(t
|
@@ -22,20 +22,20 @@ n)r=(0>n?Dt(0,i+n):n||0)-1;else if(n)return r=V(e,t),e[r]===t?r:-1;for(;++r<i;)i
|
|
22
22
|
(Function("1")),Xt=!!e.attachEvent,Vt=Lt&&!/\n|true/.test(Lt+Xt),$t=Lt&&!Vt,Jt=_t&&(Xt||Vt),Kt,Qt,Gt=(Gt={0:1,length:1},et.splice.call(Gt,0,1),Gt[0]),Yt=n;(function(){function e(){this.x=1}var t=[];e.prototype={valueOf:1,y:1};for(var n in new e)t.push(n);for(n in arguments)Yt=!n;Kt=!/valueOf/.test(t),Qt="x"!=t[0]})(1);var Zt=!b(arguments),en="xx"!="x"[0]+Object("x")[0];try{var tn=("[object Object]",kt.call(document)==Rt)}catch(nn){}var rn={"[object Function]":i};rn[Bt]=rn[jt]=rn[Ft]=rn[It]=rn[qt]=
|
23
23
|
rn[Rt]=rn[Ut]=rn[zt]=n;var sn={};sn[jt]=Array,sn[Ft]=Boolean,sn[It]=Date,sn[Rt]=Object,sn[qt]=Number,sn[Ut]=RegExp,sn[zt]=String;var on={"boolean":i,"function":n,object:n,number:i,string:i,"undefined":i},un={"\\":"\\","'":"'","\n":"n","\r":"r"," ":"t","\u2028":"u2028","\u2029":"u2029"};s.templateSettings={escape:/<%-([\s\S]+?)%>/g,evaluate:/<%([\s\S]+?)%>/g,interpolate:vt,variable:""};if(Xt||Vt||!Wt)o=Function;var an={a:"o,v,g",k:"for(var a=1,b=typeof g=='number'?2:arguments.length;a<b;a++){if((l=arguments[a])){"
|
24
24
|
,g:"t[i]=l[i]",c:"}}"},fn={a:"d,c,w",k:"c=c&&typeof w=='undefined'?c:e(c,w)",b:"if(c(l[i],i,d)===false)return t",g:"if(c(l[i],i,d)===false)return t"},ln={b:r},cn=h(an);Zt&&(b=function(e){return e?Tt.call(e,"callee"):i});var hn=h(fn,ln,{l:i}),pn=h(fn,ln),dn={"&":"&","<":"<",">":">",'"':""","'":"'"},vn=T(dn),mn=h(an,{g:"if(t[i]==null)"+an.g}),gn=At||function(e){return kt.call(e)==jt};C(/x/)&&(C=function(e){return"[object Function]"==kt.call(e)});var yn=xt?function(e){if(!e||"object"!=typeof
|
25
|
-
e)return i;var t=e.valueOf,n="function"==typeof t&&(n=xt(t))&&xt(n);return n?e==n||xt(e)==n&&!b(e):w(e)}:w,bn=_t?function(e){return"function"==typeof e&&Ct.call(e,"prototype")?E(e):k(e)?_t(e):[]}:E,wn=h(fn);s.
|
26
|
-
,
|
27
|
-
|
28
|
-
|
29
|
-
(
|
30
|
-
|
31
|
-
e.
|
32
|
-
|
33
|
-
(e
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
)
|
39
|
-
,
|
40
|
-
|
41
|
-
|
25
|
+
e)return i;var t=e.valueOf,n="function"==typeof t&&(n=xt(t))&&xt(n);return n?e==n||xt(e)==n&&!b(e):w(e)}:w,bn=_t?function(e){return"function"==typeof e&&Ct.call(e,"prototype")?E(e):k(e)?_t(e):[]}:E,wn=h(fn);s.assign=cn,s.bindAll=function(e){for(var t=arguments,n=1<t.length?0:(t=x(e),-1),r=t.length;++n<r;){var i=t[n];e[i]=J(e[i],e)}return e},s.chain=function(e){return new s(e)},s.compact=function(e){for(var t=-1,n=e?e.length:0,r=[];++t<n;){var i=e[t];i&&r.push(i)}return r},s.countBy=function(e,t,n
|
26
|
+
){var r={},t=c(t,n);return wn(e,function(e,n,i){n=t(e,n,i),Tt.call(r,n)?r[n]++:r[n]=1}),r},s.defaults=mn,s.difference=function(e){for(var t=-1,n=e?e.length:0,r=Et.apply(et,arguments),r=u(r,n),i=[];++t<n;){var s=e[t];r(s)||i.push(s)}return i},s.filter=P,s.flatten=z,s.forEach=wn,s.forIn=hn,s.forOwn=pn,s.functions=x,s.groupBy=function(e,t,n){var r={},t=c(t,n);return wn(e,function(e,n,i){n=t(e,n,i),(Tt.call(r,n)?r[n]:r[n]=[]).push(e)}),r},s.initial=function(e,t,n){if(!e)return[];var i=e.length;return g
|
27
|
+
(e,0,Pt(Dt(0,i-(t==r||n?1:t||0)),i))},s.intersection=function(e){var t=arguments,n=t.length,r={},i=[];return wn(e,function(e){if(0>W(i,e)){for(var s=n;--s;)if(!(r[s]||(r[s]=u(t[s])))(e))return;i.push(e)}}),i},s.invert=T,s.invoke=function(e,t){var n=g(arguments,2),r="function"==typeof t,i=[];return wn(e,function(e){i.push((r?t:e[t]).apply(e,n))}),i},s.keys=bn,s.map=B,s.max=j,s.merge=O,s.min=function(e,t,n){var r=Infinity,i=-1,s=e?e.length:0,o=r;if(t||!gn(e))t=!t&&A(e)?a:c(t,n),wn(e,function(e,n,i)
|
28
|
+
{n=t(e,n,i),n<r&&(r=n,o=e)});else for(;++i<s;)e[i]<o&&(o=e[i]);return o},s.object=function(e,t){for(var n=-1,r=e?e.length:0,i={};++n<r;){var s=e[n];t?i[s]=t[n]:i[s[0]]=s[1]}return i},s.omit=function(e,t,n){var r="function"==typeof t,i={};if(r)t=c(t,n);else var s=Et.apply(et,arguments);return hn(e,function(e,n,o){if(r?!t(e,n,o):0>W(s,n,1))i[n]=e}),i},s.pairs=function(e){var t=[];return pn(e,function(e,n){t.push([n,e])}),t},s.pick=function(e,t,n){var r={};if("function"!=typeof t)for(var i=0,s=Et.apply
|
29
|
+
(et,arguments),o=s.length;++i<o;){var u=s[i];u in e&&(r[u]=e[u])}else t=c(t,n),hn(e,function(e,n,i){t(e,n,i)&&(r[n]=e)});return r},s.pluck=F,s.range=function(e,t,n){e=+e||0,n=+n||1,t==r&&(t=e,e=0);for(var i=-1,t=Dt(0,wt((t-e)/n)),s=Array(t);++i<t;)s[i]=e,e+=n;return s},s.reject=function(e,t,n){return t=c(t,n),P(e,function(e,n,r){return!t(e,n,r)})},s.rest=X,s.shuffle=function(e){var t=-1,n=Array(e?e.length:0);return wn(e,function(e){var r=St(Ht()*(++t+1));n[t]=n[r],n[r]=e}),n},s.sortBy=function(e,
|
30
|
+
t,n){var r=[],t=c(t,n);wn(e,function(e,n,i){r.push({a:t(e,n,i),b:n,c:e})}),e=r.length;for(r.sort(f);e--;)r[e]=r[e].c;return r},s.tap=function(e,t){return t(e),e},s.times=function(e,t,n){for(var e=+e||0,r=-1,i=Array(e);++r<e;)i[r]=t.call(n,r);return i},s.toArray=function(e){return"number"==typeof (e?e.length:0)?en&&A(e)?e.split(""):g(e):M(e)},s.union=function(){return $(Et.apply(et,arguments))},s.uniq=$,s.values=M,s.where=function(e,t){var n=bn(t);return P(e,function(e){for(var r=n.length;r--;){var i=
|
31
|
+
e[n[r]]===t[n[r]];if(!i)break}return!!i})},s.without=function(e){for(var t=-1,n=e?e.length:0,r=u(arguments,1,20),i=[];++t<n;){var s=e[t];r(s)||i.push(s)}return i},s.zip=function(e){for(var t=-1,n=e?j(F(arguments,"length")):0,r=Array(n);++t<n;)r[t]=F(arguments,t);return r},s.collect=B,s.drop=X,s.each=wn,s.extend=cn,s.methods=x,s.select=P,s.tail=X,s.unique=$,Q(s),s.after=function(e,t){return 1>e?t():function(){if(1>--e)return t.apply(this,arguments)}},s.bind=J,s.bindKey=function(e,t){return l(e,t,g
|
32
|
+
(arguments,2))},s.clone=S,s.compose=function(){var e=arguments;return function(){for(var t=arguments,n=e.length;n--;)t=[e[n].apply(this,t)];return t[0]}},s.contains=_,s.debounce=function(e,t,n){function i(){a=r,n||(o=e.apply(u,s))}var s,o,u,a;return function(){var r=n&&!a;return s=arguments,u=this,clearTimeout(a),a=setTimeout(i,t),r&&(o=e.apply(u,s)),o}},s.defer=function(e){var n=g(arguments,1);return setTimeout(function(){e.apply(t,n)},1)},s.delay=function(e,n){var r=g(arguments,2);return setTimeout
|
33
|
+
(function(){e.apply(t,r)},n)},s.escape=function(e){return e==r?"":(e+"").replace(gt,d)},s.every=D,s.find=H,s.has=function(e,t){return e?Tt.call(e,t):i},s.identity=K,s.indexOf=W,s.isArguments=b,s.isArray=gn,s.isBoolean=function(e){return e===n||e===i||kt.call(e)==Ft},s.isDate=function(e){return kt.call(e)==It},s.isElement=function(e){return e?1===e.nodeType:i},s.isEmpty=function(e){var t=n;if(!e)return t;var r=kt.call(e),s=e.length;return r==jt||r==zt||r==Bt||Zt&&b(e)||r==Rt&&"number"==typeof s&&C
|
34
|
+
(e.splice)?!s:(pn(e,function(){return t=i}),t)},s.isEqual=N,s.isFinite=function(e){return Ot(e)&&!Mt(parseFloat(e))},s.isFunction=C,s.isNaN=function(e){return L(e)&&e!=+e},s.isNull=function(e){return e===r},s.isNumber=L,s.isObject=k,s.isPlainObject=yn,s.isRegExp=function(e){return kt.call(e)==Ut},s.isString=A,s.isUndefined=function(e){return"undefined"==typeof e},s.lastIndexOf=function(e,t,n){var r=e?e.length:0;for("number"==typeof n&&(r=(0>n?Dt(0,r+n):Pt(n,r-1))+1);r--;)if(e[r]===t)return r;return-1
|
35
|
+
},s.memoize=function(e,t){var n={};return function(){var r=t?t.apply(this,arguments):arguments[0];return Tt.call(n,r)?n[r]:n[r]=e.apply(this,arguments)}},s.mixin=Q,s.noConflict=function(){return e._=st,this},s.once=function(e){var t,s=i;return function(){return s?t:(s=n,t=e.apply(this,arguments),e=r,t)}},s.partial=function(e){return l(e,g(arguments,1))},s.random=function(e,t){return e==r&&t==r&&(t=1),e=+e||0,t==r&&(t=e,e=0),e+St(Ht()*((+t||0)-e+1))},s.reduce=I,s.reduceRight=q,s.result=function(e,
|
36
|
+
t){var n=e?e[t]:r;return C(n)?e[t]():n},s.size=function(e){var t=e?e.length:0;return"number"==typeof t?t:bn(e).length},s.some=R,s.sortedIndex=V,s.template=function(e,t,n){e||(e=""),n||(n={});var r,i,u=s.templateSettings,a=0,f=n.interpolate||u.interpolate||mt,l="__p+='",c=n.variable||u.variable,h=c;e.replace(RegExp((n.escape||u.escape||mt).source+"|"+f.source+"|"+(f===vt?dt:mt).source+"|"+(n.evaluate||u.evaluate||mt).source+"|$","g"),function(t,n,i,s,o,u){return i||(i=s),l+=e.slice(a,u).replace(yt
|
37
|
+
,p),n&&(l+="'+__e("+n+")+'"),o&&(l+="';"+o+";__p+='"),i&&(l+="'+((__t=("+i+"))==null?'':__t)+'"),r||(r=o||ot.test(n||i)),a=u+t.length,t}),l+="';\n",h||(c="obj",r?l="with("+c+"){"+l+"}":(n=RegExp("(\\(\\s*)"+c+"\\."+c+"\\b","g"),l=l.replace(ht,"$&"+c+".").replace(n,"$1__d"))),l=(r?l.replace(at,""):l).replace(ft,"$1").replace(lt,"$1;"),l="function("+c+"){"+(h?"":c+"||("+c+"={});")+"var __t,__p='',__e=_.escape"+(r?",__j=Array.prototype.join;function print(){__p+=__j.call(arguments,'')}":(h?"":",__d="+
|
38
|
+
c+"."+c+"||"+c)+";")+l+"return __p}";try{i=o("_","return "+l)(s)}catch(d){throw d.source=l,d}return t?i(t):(i.source=l,i)},s.throttle=function(e,t){function n(){a=new Date,u=r,s=e.apply(o,i)}var i,s,o,u,a=0;return function(){var f=new Date,l=t-(f-a);return i=arguments,o=this,0>=l?(clearTimeout(u),u=r,a=f,s=e.apply(o,i)):u||(u=setTimeout(n,l)),s}},s.unescape=function(e){return e==r?"":(e+"").replace(ut,y)},s.uniqueId=function(e){return(e==r?"":e+"")+ ++nt},s.wrap=function(e,t){return function(){var n=
|
39
|
+
[e];return Nt.apply(n,arguments),t.apply(this,n)}},s.all=D,s.any=R,s.detect=H,s.foldl=I,s.foldr=q,s.include=_,s.inject=I,pn(s,function(e,t){s.prototype[t]||(s.prototype[t]=function(){var t=[this.__wrapped__];return Nt.apply(t,arguments),e.apply(s,t)})}),s.first=U,s.last=function(e,t,n){if(e){var i=e.length;return t==r||n?e[i-1]:g(e,Dt(0,i-t))}},s.take=U,s.head=U,pn(s,function(e,t){s.prototype[t]||(s.prototype[t]=function(t,n){var i=e(this.__wrapped__,t,n);return t==r||n?i:new s(i)})}),s.VERSION="1.0.0-rc.2"
|
40
|
+
,s.prototype.chain=function(){return this},s.prototype.toString=function(){return""+this.__wrapped__},s.prototype.value=G,s.prototype.valueOf=G,wn("pop push reverse shift sort splice unshift".split(" "),function(e){var t=et[e];s.prototype[e]=function(){var e=this.__wrapped__;return t.apply(e,arguments),Gt&&e.length===0&&delete e[0],this}}),wn(["concat","join","slice"],function(e){var t=et[e];s.prototype[e]=function(){var e=t.apply(this.__wrapped__,arguments);return new s(e)}}),typeof define=="function"&&typeof
|
41
|
+
define.amd=="object"&&define.amd?(e._=s,define(function(){return s})):Y?"object"==typeof module&&module&&module.exports==Y?(module.exports=s)._=s:Y._=s:e._=s})(this);
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: lodash-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.0.rc.
|
4
|
+
version: 1.0.0.rc.2
|
5
5
|
prerelease: 6
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-12-
|
12
|
+
date: 2012-12-05 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: railties
|