angularjs-rails 1.3.15 → 1.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (29) hide show
  1. checksums.yaml +4 -4
  2. data/lib/angularjs-rails/version.rb +2 -2
  3. data/vendor/assets/javascripts/angular-animate.js +3443 -1872
  4. data/vendor/assets/javascripts/angular-aria.js +89 -75
  5. data/vendor/assets/javascripts/angular-cookies.js +255 -141
  6. data/vendor/assets/javascripts/angular-loader.js +41 -17
  7. data/vendor/assets/javascripts/angular-message-format.js +980 -0
  8. data/vendor/assets/javascripts/angular-messages.js +430 -153
  9. data/vendor/assets/javascripts/angular-mocks.js +76 -92
  10. data/vendor/assets/javascripts/angular-resource.js +6 -6
  11. data/vendor/assets/javascripts/angular-route.js +8 -6
  12. data/vendor/assets/javascripts/angular-sanitize.js +32 -28
  13. data/vendor/assets/javascripts/angular-scenario.js +4315 -2452
  14. data/vendor/assets/javascripts/angular-touch.js +26 -21
  15. data/vendor/assets/javascripts/angular.js +4314 -2490
  16. data/vendor/assets/javascripts/unstable/angular2.js +24024 -0
  17. metadata +4 -14
  18. data/vendor/assets/javascripts/unstable/angular-animate.js +0 -2137
  19. data/vendor/assets/javascripts/unstable/angular-aria.js +0 -364
  20. data/vendor/assets/javascripts/unstable/angular-cookies.js +0 -206
  21. data/vendor/assets/javascripts/unstable/angular-loader.js +0 -405
  22. data/vendor/assets/javascripts/unstable/angular-messages.js +0 -401
  23. data/vendor/assets/javascripts/unstable/angular-mocks.js +0 -2468
  24. data/vendor/assets/javascripts/unstable/angular-resource.js +0 -668
  25. data/vendor/assets/javascripts/unstable/angular-route.js +0 -989
  26. data/vendor/assets/javascripts/unstable/angular-sanitize.js +0 -679
  27. data/vendor/assets/javascripts/unstable/angular-scenario.js +0 -37678
  28. data/vendor/assets/javascripts/unstable/angular-touch.js +0 -622
  29. data/vendor/assets/javascripts/unstable/angular.js +0 -26309
@@ -1,6 +1,6 @@
1
1
  /**
2
- * @license AngularJS v1.3.15
3
- * (c) 2010-2014 Google, Inc. http://angularjs.org
2
+ * @license AngularJS v1.4.0
3
+ * (c) 2010-2015 Google, Inc. http://angularjs.org
4
4
  * License: MIT
5
5
  */
6
6
  (function(window, angular, undefined) {
@@ -64,10 +64,9 @@ angular.mock.$Browser = function() {
64
64
  return listener;
65
65
  };
66
66
 
67
+ self.$$applicationDestroyed = angular.noop;
67
68
  self.$$checkUrlChange = angular.noop;
68
69
 
69
- self.cookieHash = {};
70
- self.lastCookieHash = {};
71
70
  self.deferredFns = [];
72
71
  self.deferredNextId = 0;
73
72
 
@@ -147,11 +146,6 @@ angular.mock.$Browser.prototype = {
147
146
  });
148
147
  },
149
148
 
150
- addPollFn: function(pollFn) {
151
- this.pollFns.push(pollFn);
152
- return pollFn;
153
- },
154
-
155
149
  url: function(url, replace, state) {
156
150
  if (angular.isUndefined(state)) {
157
151
  state = null;
@@ -170,25 +164,6 @@ angular.mock.$Browser.prototype = {
170
164
  return this.$$state;
171
165
  },
172
166
 
173
- cookies: function(name, value) {
174
- if (name) {
175
- if (angular.isUndefined(value)) {
176
- delete this.cookieHash[name];
177
- } else {
178
- if (angular.isString(value) && //strings only
179
- value.length <= 4096) { //strict cookie storage limits
180
- this.cookieHash[name] = value;
181
- }
182
- }
183
- } else {
184
- if (!angular.equals(this.cookieHash, this.lastCookieHash)) {
185
- this.lastCookieHash = angular.copy(this.cookieHash);
186
- this.cookieHash = angular.copy(this.cookieHash);
187
- }
188
- return this.cookieHash;
189
- }
190
- },
191
-
192
167
  notifyWhenNoOutstandingRequests: function(fn) {
193
168
  fn();
194
169
  }
@@ -458,6 +433,7 @@ angular.mock.$LogProvider = function() {
458
433
  * indefinitely.
459
434
  * @param {boolean=} [invokeApply=true] If set to `false` skips model dirty checking, otherwise
460
435
  * will invoke `fn` within the {@link ng.$rootScope.Scope#$apply $apply} block.
436
+ * @param {...*=} Pass additional parameters to the executed function.
461
437
  * @returns {promise} A promise which will be notified on each iteration.
462
438
  */
463
439
  angular.mock.$IntervalProvider = function() {
@@ -468,13 +444,17 @@ angular.mock.$IntervalProvider = function() {
468
444
  now = 0;
469
445
 
470
446
  var $interval = function(fn, delay, count, invokeApply) {
471
- var iteration = 0,
447
+ var hasParams = arguments.length > 4,
448
+ args = hasParams ? Array.prototype.slice.call(arguments, 4) : [],
449
+ iteration = 0,
472
450
  skipApply = (angular.isDefined(invokeApply) && !invokeApply),
473
451
  deferred = (skipApply ? $$q : $q).defer(),
474
452
  promise = deferred.promise;
475
453
 
476
454
  count = (angular.isDefined(count)) ? count : 0;
477
- promise.then(null, null, fn);
455
+ promise.then(null, null, (!hasParams) ? fn : function() {
456
+ fn.apply(null, args);
457
+ });
478
458
 
479
459
  promise.$$intervalId = nextRepeatId;
480
460
 
@@ -581,20 +561,20 @@ function jsonStringToDate(string) {
581
561
  tzHour = 0,
582
562
  tzMin = 0;
583
563
  if (match[9]) {
584
- tzHour = int(match[9] + match[10]);
585
- tzMin = int(match[9] + match[11]);
564
+ tzHour = toInt(match[9] + match[10]);
565
+ tzMin = toInt(match[9] + match[11]);
586
566
  }
587
- date.setUTCFullYear(int(match[1]), int(match[2]) - 1, int(match[3]));
588
- date.setUTCHours(int(match[4] || 0) - tzHour,
589
- int(match[5] || 0) - tzMin,
590
- int(match[6] || 0),
591
- int(match[7] || 0));
567
+ date.setUTCFullYear(toInt(match[1]), toInt(match[2]) - 1, toInt(match[3]));
568
+ date.setUTCHours(toInt(match[4] || 0) - tzHour,
569
+ toInt(match[5] || 0) - tzMin,
570
+ toInt(match[6] || 0),
571
+ toInt(match[7] || 0));
592
572
  return date;
593
573
  }
594
574
  return string;
595
575
  }
596
576
 
597
- function int(str) {
577
+ function toInt(str) {
598
578
  return parseInt(str, 10);
599
579
  }
600
580
 
@@ -606,8 +586,9 @@ function padNumber(num, digits, trim) {
606
586
  }
607
587
  num = '' + num;
608
588
  while (num.length < digits) num = '0' + num;
609
- if (trim)
589
+ if (trim) {
610
590
  num = num.substr(num.length - digits);
591
+ }
611
592
  return neg + num;
612
593
  }
613
594
 
@@ -657,11 +638,12 @@ angular.mock.TzDate = function(offset, timestamp) {
657
638
  self.origDate = jsonStringToDate(timestamp);
658
639
 
659
640
  timestamp = self.origDate.getTime();
660
- if (isNaN(timestamp))
641
+ if (isNaN(timestamp)) {
661
642
  throw {
662
643
  name: "Illegal Argument",
663
644
  message: "Arg '" + tsStr + "' passed into TzDate constructor is not a valid date string"
664
645
  };
646
+ }
665
647
  } else {
666
648
  self.origDate = new Date(timestamp);
667
649
  }
@@ -789,13 +771,14 @@ angular.mock.animate = angular.module('ngAnimateMock', ['ng'])
789
771
  };
790
772
  });
791
773
 
792
- $provide.decorator('$animate', ['$delegate', '$$asyncCallback', '$timeout', '$browser',
793
- function($delegate, $$asyncCallback, $timeout, $browser) {
774
+ $provide.decorator('$animate', ['$delegate', '$$asyncCallback', '$timeout', '$browser', '$$rAF',
775
+ function($delegate, $$asyncCallback, $timeout, $browser, $$rAF) {
794
776
  var animate = {
795
777
  queue: [],
796
778
  cancel: $delegate.cancel,
797
779
  enabled: $delegate.enabled,
798
780
  triggerCallbackEvents: function() {
781
+ $$rAF.flush();
799
782
  $$asyncCallback.flush();
800
783
  },
801
784
  triggerCallbackPromise: function() {
@@ -1191,14 +1174,16 @@ function createHttpBackendMock($rootScope, $timeout, $delegate, $browser) {
1191
1174
  }
1192
1175
 
1193
1176
  if (expectation && expectation.match(method, url)) {
1194
- if (!expectation.matchData(data))
1177
+ if (!expectation.matchData(data)) {
1195
1178
  throw new Error('Expected ' + expectation + ' with different data\n' +
1196
1179
  'EXPECTED: ' + prettyPrint(expectation.data) + '\nGOT: ' + data);
1180
+ }
1197
1181
 
1198
- if (!expectation.matchHeaders(headers))
1182
+ if (!expectation.matchHeaders(headers)) {
1199
1183
  throw new Error('Expected ' + expectation + ' with different headers\n' +
1200
1184
  'EXPECTED: ' + prettyPrint(expectation.headers) + '\nGOT: ' +
1201
1185
  prettyPrint(headers));
1186
+ }
1202
1187
 
1203
1188
  expectations.shift();
1204
1189
 
@@ -1234,8 +1219,8 @@ function createHttpBackendMock($rootScope, $timeout, $delegate, $browser) {
1234
1219
  * Creates a new backend definition.
1235
1220
  *
1236
1221
  * @param {string} method HTTP method.
1237
- * @param {string|RegExp|function(string)} url HTTP url or function that receives the url
1238
- * and returns true if the url match the current definition.
1222
+ * @param {string|RegExp|function(string)} url HTTP url or function that receives a url
1223
+ * and returns true if the url matches the current definition.
1239
1224
  * @param {(string|RegExp|function(string))=} data HTTP request body or function that receives
1240
1225
  * data string and returns true if the data is as expected.
1241
1226
  * @param {(Object|function(Object))=} headers HTTP headers or function that receives http header
@@ -1280,8 +1265,8 @@ function createHttpBackendMock($rootScope, $timeout, $delegate, $browser) {
1280
1265
  * @description
1281
1266
  * Creates a new backend definition for GET requests. For more info see `when()`.
1282
1267
  *
1283
- * @param {string|RegExp|function(string)} url HTTP url or function that receives the url
1284
- * and returns true if the url match the current definition.
1268
+ * @param {string|RegExp|function(string)} url HTTP url or function that receives a url
1269
+ * and returns true if the url matches the current definition.
1285
1270
  * @param {(Object|function(Object))=} headers HTTP headers.
1286
1271
  * @returns {requestHandler} Returns an object with `respond` method that controls how a matched
1287
1272
  * request is handled. You can save this object for later use and invoke `respond` again in
@@ -1294,8 +1279,8 @@ function createHttpBackendMock($rootScope, $timeout, $delegate, $browser) {
1294
1279
  * @description
1295
1280
  * Creates a new backend definition for HEAD requests. For more info see `when()`.
1296
1281
  *
1297
- * @param {string|RegExp|function(string)} url HTTP url or function that receives the url
1298
- * and returns true if the url match the current definition.
1282
+ * @param {string|RegExp|function(string)} url HTTP url or function that receives a url
1283
+ * and returns true if the url matches the current definition.
1299
1284
  * @param {(Object|function(Object))=} headers HTTP headers.
1300
1285
  * @returns {requestHandler} Returns an object with `respond` method that controls how a matched
1301
1286
  * request is handled. You can save this object for later use and invoke `respond` again in
@@ -1308,8 +1293,8 @@ function createHttpBackendMock($rootScope, $timeout, $delegate, $browser) {
1308
1293
  * @description
1309
1294
  * Creates a new backend definition for DELETE requests. For more info see `when()`.
1310
1295
  *
1311
- * @param {string|RegExp|function(string)} url HTTP url or function that receives the url
1312
- * and returns true if the url match the current definition.
1296
+ * @param {string|RegExp|function(string)} url HTTP url or function that receives a url
1297
+ * and returns true if the url matches the current definition.
1313
1298
  * @param {(Object|function(Object))=} headers HTTP headers.
1314
1299
  * @returns {requestHandler} Returns an object with `respond` method that controls how a matched
1315
1300
  * request is handled. You can save this object for later use and invoke `respond` again in
@@ -1322,8 +1307,8 @@ function createHttpBackendMock($rootScope, $timeout, $delegate, $browser) {
1322
1307
  * @description
1323
1308
  * Creates a new backend definition for POST requests. For more info see `when()`.
1324
1309
  *
1325
- * @param {string|RegExp|function(string)} url HTTP url or function that receives the url
1326
- * and returns true if the url match the current definition.
1310
+ * @param {string|RegExp|function(string)} url HTTP url or function that receives a url
1311
+ * and returns true if the url matches the current definition.
1327
1312
  * @param {(string|RegExp|function(string))=} data HTTP request body or function that receives
1328
1313
  * data string and returns true if the data is as expected.
1329
1314
  * @param {(Object|function(Object))=} headers HTTP headers.
@@ -1338,8 +1323,8 @@ function createHttpBackendMock($rootScope, $timeout, $delegate, $browser) {
1338
1323
  * @description
1339
1324
  * Creates a new backend definition for PUT requests. For more info see `when()`.
1340
1325
  *
1341
- * @param {string|RegExp|function(string)} url HTTP url or function that receives the url
1342
- * and returns true if the url match the current definition.
1326
+ * @param {string|RegExp|function(string)} url HTTP url or function that receives a url
1327
+ * and returns true if the url matches the current definition.
1343
1328
  * @param {(string|RegExp|function(string))=} data HTTP request body or function that receives
1344
1329
  * data string and returns true if the data is as expected.
1345
1330
  * @param {(Object|function(Object))=} headers HTTP headers.
@@ -1354,8 +1339,8 @@ function createHttpBackendMock($rootScope, $timeout, $delegate, $browser) {
1354
1339
  * @description
1355
1340
  * Creates a new backend definition for JSONP requests. For more info see `when()`.
1356
1341
  *
1357
- * @param {string|RegExp|function(string)} url HTTP url or function that receives the url
1358
- * and returns true if the url match the current definition.
1342
+ * @param {string|RegExp|function(string)} url HTTP url or function that receives a url
1343
+ * and returns true if the url matches the current definition.
1359
1344
  * @returns {requestHandler} Returns an object with `respond` method that controls how a matched
1360
1345
  * request is handled. You can save this object for later use and invoke `respond` again in
1361
1346
  * order to change how a matched request is handled.
@@ -1370,8 +1355,8 @@ function createHttpBackendMock($rootScope, $timeout, $delegate, $browser) {
1370
1355
  * Creates a new request expectation.
1371
1356
  *
1372
1357
  * @param {string} method HTTP method.
1373
- * @param {string|RegExp|function(string)} url HTTP url or function that receives the url
1374
- * and returns true if the url match the current definition.
1358
+ * @param {string|RegExp|function(string)} url HTTP url or function that receives a url
1359
+ * and returns true if the url matches the current definition.
1375
1360
  * @param {(string|RegExp|function(string)|Object)=} data HTTP request body or function that
1376
1361
  * receives data string and returns true if the data is as expected, or Object if request body
1377
1362
  * is in JSON format.
@@ -1409,8 +1394,8 @@ function createHttpBackendMock($rootScope, $timeout, $delegate, $browser) {
1409
1394
  * @description
1410
1395
  * Creates a new request expectation for GET requests. For more info see `expect()`.
1411
1396
  *
1412
- * @param {string|RegExp|function(string)} url HTTP url or function that receives the url
1413
- * and returns true if the url match the current definition.
1397
+ * @param {string|RegExp|function(string)} url HTTP url or function that receives a url
1398
+ * and returns true if the url matches the current definition.
1414
1399
  * @param {Object=} headers HTTP headers.
1415
1400
  * @returns {requestHandler} Returns an object with `respond` method that controls how a matched
1416
1401
  * request is handled. You can save this object for later use and invoke `respond` again in
@@ -1423,8 +1408,8 @@ function createHttpBackendMock($rootScope, $timeout, $delegate, $browser) {
1423
1408
  * @description
1424
1409
  * Creates a new request expectation for HEAD requests. For more info see `expect()`.
1425
1410
  *
1426
- * @param {string|RegExp|function(string)} url HTTP url or function that receives the url
1427
- * and returns true if the url match the current definition.
1411
+ * @param {string|RegExp|function(string)} url HTTP url or function that receives a url
1412
+ * and returns true if the url matches the current definition.
1428
1413
  * @param {Object=} headers HTTP headers.
1429
1414
  * @returns {requestHandler} Returns an object with `respond` method that controls how a matched
1430
1415
  * request is handled. You can save this object for later use and invoke `respond` again in
@@ -1437,8 +1422,8 @@ function createHttpBackendMock($rootScope, $timeout, $delegate, $browser) {
1437
1422
  * @description
1438
1423
  * Creates a new request expectation for DELETE requests. For more info see `expect()`.
1439
1424
  *
1440
- * @param {string|RegExp|function(string)} url HTTP url or function that receives the url
1441
- * and returns true if the url match the current definition.
1425
+ * @param {string|RegExp|function(string)} url HTTP url or function that receives a url
1426
+ * and returns true if the url matches the current definition.
1442
1427
  * @param {Object=} headers HTTP headers.
1443
1428
  * @returns {requestHandler} Returns an object with `respond` method that controls how a matched
1444
1429
  * request is handled. You can save this object for later use and invoke `respond` again in
@@ -1451,8 +1436,8 @@ function createHttpBackendMock($rootScope, $timeout, $delegate, $browser) {
1451
1436
  * @description
1452
1437
  * Creates a new request expectation for POST requests. For more info see `expect()`.
1453
1438
  *
1454
- * @param {string|RegExp|function(string)} url HTTP url or function that receives the url
1455
- * and returns true if the url match the current definition.
1439
+ * @param {string|RegExp|function(string)} url HTTP url or function that receives a url
1440
+ * and returns true if the url matches the current definition.
1456
1441
  * @param {(string|RegExp|function(string)|Object)=} data HTTP request body or function that
1457
1442
  * receives data string and returns true if the data is as expected, or Object if request body
1458
1443
  * is in JSON format.
@@ -1468,8 +1453,8 @@ function createHttpBackendMock($rootScope, $timeout, $delegate, $browser) {
1468
1453
  * @description
1469
1454
  * Creates a new request expectation for PUT requests. For more info see `expect()`.
1470
1455
  *
1471
- * @param {string|RegExp|function(string)} url HTTP url or function that receives the url
1472
- * and returns true if the url match the current definition.
1456
+ * @param {string|RegExp|function(string)} url HTTP url or function that receives a url
1457
+ * and returns true if the url matches the current definition.
1473
1458
  * @param {(string|RegExp|function(string)|Object)=} data HTTP request body or function that
1474
1459
  * receives data string and returns true if the data is as expected, or Object if request body
1475
1460
  * is in JSON format.
@@ -1485,8 +1470,8 @@ function createHttpBackendMock($rootScope, $timeout, $delegate, $browser) {
1485
1470
  * @description
1486
1471
  * Creates a new request expectation for PATCH requests. For more info see `expect()`.
1487
1472
  *
1488
- * @param {string|RegExp|function(string)} url HTTP url or function that receives the url
1489
- * and returns true if the url match the current definition.
1473
+ * @param {string|RegExp|function(string)} url HTTP url or function that receives a url
1474
+ * and returns true if the url matches the current definition.
1490
1475
  * @param {(string|RegExp|function(string)|Object)=} data HTTP request body or function that
1491
1476
  * receives data string and returns true if the data is as expected, or Object if request body
1492
1477
  * is in JSON format.
@@ -1502,8 +1487,8 @@ function createHttpBackendMock($rootScope, $timeout, $delegate, $browser) {
1502
1487
  * @description
1503
1488
  * Creates a new request expectation for JSONP requests. For more info see `expect()`.
1504
1489
  *
1505
- * @param {string|RegExp|function(string)} url HTTP url or function that receives the url
1506
- * and returns true if the url match the current definition.
1490
+ * @param {string|RegExp|function(string)} url HTTP url or function that receives an url
1491
+ * and returns true if the url matches the current definition.
1507
1492
  * @returns {requestHandler} Returns an object with `respond` method that controls how a matched
1508
1493
  * request is handled. You can save this object for later use and invoke `respond` again in
1509
1494
  * order to change how a matched request is handled.
@@ -1780,7 +1765,7 @@ angular.mock.$RAFDecorator = ['$delegate', function($delegate) {
1780
1765
  queue[i]();
1781
1766
  }
1782
1767
 
1783
- queue = [];
1768
+ queue = queue.slice(i);
1784
1769
  };
1785
1770
 
1786
1771
  return rafFn;
@@ -1985,8 +1970,8 @@ angular.module('ngMockE2E', ['ng']).config(['$provide', function($provide) {
1985
1970
  * Creates a new backend definition.
1986
1971
  *
1987
1972
  * @param {string} method HTTP method.
1988
- * @param {string|RegExp|function(string)} url HTTP url or function that receives the url
1989
- * and returns true if the url match the current definition.
1973
+ * @param {string|RegExp|function(string)} url HTTP url or function that receives a url
1974
+ * and returns true if the url matches the current definition.
1990
1975
  * @param {(string|RegExp)=} data HTTP request body.
1991
1976
  * @param {(Object|function(Object))=} headers HTTP headers or function that receives http header
1992
1977
  * object and returns true if the headers match the current definition.
@@ -2013,8 +1998,8 @@ angular.module('ngMockE2E', ['ng']).config(['$provide', function($provide) {
2013
1998
  * @description
2014
1999
  * Creates a new backend definition for GET requests. For more info see `when()`.
2015
2000
  *
2016
- * @param {string|RegExp|function(string)} url HTTP url or function that receives the url
2017
- * and returns true if the url match the current definition.
2001
+ * @param {string|RegExp|function(string)} url HTTP url or function that receives a url
2002
+ * and returns true if the url matches the current definition.
2018
2003
  * @param {(Object|function(Object))=} headers HTTP headers.
2019
2004
  * @returns {requestHandler} Returns an object with `respond` and `passThrough` methods that
2020
2005
  * control how a matched request is handled. You can save this object for later use and invoke
@@ -2028,8 +2013,8 @@ angular.module('ngMockE2E', ['ng']).config(['$provide', function($provide) {
2028
2013
  * @description
2029
2014
  * Creates a new backend definition for HEAD requests. For more info see `when()`.
2030
2015
  *
2031
- * @param {string|RegExp|function(string)} url HTTP url or function that receives the url
2032
- * and returns true if the url match the current definition.
2016
+ * @param {string|RegExp|function(string)} url HTTP url or function that receives a url
2017
+ * and returns true if the url matches the current definition.
2033
2018
  * @param {(Object|function(Object))=} headers HTTP headers.
2034
2019
  * @returns {requestHandler} Returns an object with `respond` and `passThrough` methods that
2035
2020
  * control how a matched request is handled. You can save this object for later use and invoke
@@ -2043,8 +2028,8 @@ angular.module('ngMockE2E', ['ng']).config(['$provide', function($provide) {
2043
2028
  * @description
2044
2029
  * Creates a new backend definition for DELETE requests. For more info see `when()`.
2045
2030
  *
2046
- * @param {string|RegExp|function(string)} url HTTP url or function that receives the url
2047
- * and returns true if the url match the current definition.
2031
+ * @param {string|RegExp|function(string)} url HTTP url or function that receives a url
2032
+ * and returns true if the url matches the current definition.
2048
2033
  * @param {(Object|function(Object))=} headers HTTP headers.
2049
2034
  * @returns {requestHandler} Returns an object with `respond` and `passThrough` methods that
2050
2035
  * control how a matched request is handled. You can save this object for later use and invoke
@@ -2058,8 +2043,8 @@ angular.module('ngMockE2E', ['ng']).config(['$provide', function($provide) {
2058
2043
  * @description
2059
2044
  * Creates a new backend definition for POST requests. For more info see `when()`.
2060
2045
  *
2061
- * @param {string|RegExp|function(string)} url HTTP url or function that receives the url
2062
- * and returns true if the url match the current definition.
2046
+ * @param {string|RegExp|function(string)} url HTTP url or function that receives a url
2047
+ * and returns true if the url matches the current definition.
2063
2048
  * @param {(string|RegExp)=} data HTTP request body.
2064
2049
  * @param {(Object|function(Object))=} headers HTTP headers.
2065
2050
  * @returns {requestHandler} Returns an object with `respond` and `passThrough` methods that
@@ -2074,8 +2059,8 @@ angular.module('ngMockE2E', ['ng']).config(['$provide', function($provide) {
2074
2059
  * @description
2075
2060
  * Creates a new backend definition for PUT requests. For more info see `when()`.
2076
2061
  *
2077
- * @param {string|RegExp|function(string)} url HTTP url or function that receives the url
2078
- * and returns true if the url match the current definition.
2062
+ * @param {string|RegExp|function(string)} url HTTP url or function that receives a url
2063
+ * and returns true if the url matches the current definition.
2079
2064
  * @param {(string|RegExp)=} data HTTP request body.
2080
2065
  * @param {(Object|function(Object))=} headers HTTP headers.
2081
2066
  * @returns {requestHandler} Returns an object with `respond` and `passThrough` methods that
@@ -2090,8 +2075,8 @@ angular.module('ngMockE2E', ['ng']).config(['$provide', function($provide) {
2090
2075
  * @description
2091
2076
  * Creates a new backend definition for PATCH requests. For more info see `when()`.
2092
2077
  *
2093
- * @param {string|RegExp|function(string)} url HTTP url or function that receives the url
2094
- * and returns true if the url match the current definition.
2078
+ * @param {string|RegExp|function(string)} url HTTP url or function that receives a url
2079
+ * and returns true if the url matches the current definition.
2095
2080
  * @param {(string|RegExp)=} data HTTP request body.
2096
2081
  * @param {(Object|function(Object))=} headers HTTP headers.
2097
2082
  * @returns {requestHandler} Returns an object with `respond` and `passThrough` methods that
@@ -2106,8 +2091,8 @@ angular.module('ngMockE2E', ['ng']).config(['$provide', function($provide) {
2106
2091
  * @description
2107
2092
  * Creates a new backend definition for JSONP requests. For more info see `when()`.
2108
2093
  *
2109
- * @param {string|RegExp|function(string)} url HTTP url or function that receives the url
2110
- * and returns true if the url match the current definition.
2094
+ * @param {string|RegExp|function(string)} url HTTP url or function that receives a url
2095
+ * and returns true if the url matches the current definition.
2111
2096
  * @returns {requestHandler} Returns an object with `respond` and `passThrough` methods that
2112
2097
  * control how a matched request is handled. You can save this object for later use and invoke
2113
2098
  * `respond` or `passThrough` again in order to change how a matched request is handled.
@@ -2244,7 +2229,6 @@ if (window.jasmine || window.mocha) {
2244
2229
 
2245
2230
  if (injector) {
2246
2231
  injector.get('$rootElement').off();
2247
- injector.get('$browser').pollFns.length = 0;
2248
2232
  }
2249
2233
 
2250
2234
  // clean up jquery's fragment cache
@@ -1,6 +1,6 @@
1
1
  /**
2
- * @license AngularJS v1.3.15
3
- * (c) 2010-2014 Google, Inc. http://angularjs.org
2
+ * @license AngularJS v1.4.0
3
+ * (c) 2010-2015 Google, Inc. http://angularjs.org
4
4
  * License: MIT
5
5
  */
6
6
  (function(window, angular, undefined) {'use strict';
@@ -10,7 +10,7 @@ var $resourceMinErr = angular.$$minErr('$resource');
10
10
  // Helper functions and regex to lookup a dotted path on an object
11
11
  // stopping at undefined/null. The path must be composed of ASCII
12
12
  // identifiers (just like $parse)
13
- var MEMBER_NAME_REGEX = /^(\.[a-zA-Z_$][0-9a-zA-Z_$]*)+$/;
13
+ var MEMBER_NAME_REGEX = /^(\.[a-zA-Z_$@][0-9a-zA-Z_$@]*)+$/;
14
14
 
15
15
  function isValidDottedPath(path) {
16
16
  return (path != null && path !== '' && path !== 'hasOwnProperty' &&
@@ -90,7 +90,7 @@ function shallowClearAndCopy(src, dst) {
90
90
  }]);
91
91
  * ```
92
92
  *
93
- * @param {string} url A parametrized URL template with parameters prefixed by `:` as in
93
+ * @param {string} url A parameterized URL template with parameters prefixed by `:` as in
94
94
  * `/user/:username`. If you are using a URL with a port number (e.g.
95
95
  * `http://example.com:8080/api`), it will be respected.
96
96
  *
@@ -586,8 +586,8 @@ angular.module('ngResource', ['ng']).
586
586
  if (angular.isArray(data) !== (!!action.isArray)) {
587
587
  throw $resourceMinErr('badcfg',
588
588
  'Error in resource configuration for action `{0}`. Expected response to ' +
589
- 'contain an {1} but got an {2}', name, action.isArray ? 'array' : 'object',
590
- angular.isArray(data) ? 'array' : 'object');
589
+ 'contain an {1} but got an {2} (Request: {3} {4})', name, action.isArray ? 'array' : 'object',
590
+ angular.isArray(data) ? 'array' : 'object', httpConfig.method, httpConfig.url);
591
591
  }
592
592
  // jshint +W018
593
593
  if (action.isArray) {