From ac4ca71de63bc3ab75b520cfe382040926079982 Mon Sep 17 00:00:00 2001
From: Teddy Wing
Date: Sat, 24 Jan 2015 09:41:20 -0500
Subject: bower: Add 'angular-resource'
For fetching and saving data to the server.
---
bower.json | 3 +-
.../assets/components/angular-resource/.bower.json | 20 +
.../assets/components/angular-resource/README.md | 77 +++
.../angular-resource/angular-resource.js | 667 +++++++++++++++++++++
.../angular-resource/angular-resource.min.js | 13 +
.../angular-resource/angular-resource.min.js.map | 8 +
.../assets/components/angular-resource/bower.json | 9 +
.../components/angular-resource/package.json | 26 +
8 files changed, 822 insertions(+), 1 deletion(-)
create mode 100644 vendor/assets/components/angular-resource/.bower.json
create mode 100644 vendor/assets/components/angular-resource/README.md
create mode 100644 vendor/assets/components/angular-resource/angular-resource.js
create mode 100644 vendor/assets/components/angular-resource/angular-resource.min.js
create mode 100644 vendor/assets/components/angular-resource/angular-resource.min.js.map
create mode 100644 vendor/assets/components/angular-resource/bower.json
create mode 100644 vendor/assets/components/angular-resource/package.json
diff --git a/bower.json b/bower.json
index 1a88511..dbcc01c 100644
--- a/bower.json
+++ b/bower.json
@@ -3,6 +3,7 @@
"version": "0.0.1",
"private": true,
"dependencies": {
- "angular": "~1.3.10"
+ "angular": "~1.3.10",
+ "angular-resource": "~1.3.10"
}
}
diff --git a/vendor/assets/components/angular-resource/.bower.json b/vendor/assets/components/angular-resource/.bower.json
new file mode 100644
index 0000000..8255dba
--- /dev/null
+++ b/vendor/assets/components/angular-resource/.bower.json
@@ -0,0 +1,20 @@
+{
+ "name": "angular-resource",
+ "version": "1.3.10",
+ "main": "./angular-resource.js",
+ "ignore": [],
+ "dependencies": {
+ "angular": "1.3.10"
+ },
+ "homepage": "https://github.com/angular/bower-angular-resource",
+ "_release": "1.3.10",
+ "_resolution": {
+ "type": "version",
+ "tag": "v1.3.10",
+ "commit": "6364e8feb985d5fb0016c7eafa5bbfa5e722fb9a"
+ },
+ "_source": "git://github.com/angular/bower-angular-resource.git",
+ "_target": "~1.3.10",
+ "_originalSource": "angular-resource",
+ "_direct": true
+}
\ No newline at end of file
diff --git a/vendor/assets/components/angular-resource/README.md b/vendor/assets/components/angular-resource/README.md
new file mode 100644
index 0000000..b09e0a7
--- /dev/null
+++ b/vendor/assets/components/angular-resource/README.md
@@ -0,0 +1,77 @@
+# packaged angular-resource
+
+This repo is for distribution on `npm` and `bower`. The source for this module is in the
+[main AngularJS repo](https://github.com/angular/angular.js/tree/master/src/ngResource).
+Please file issues and pull requests against that repo.
+
+## Install
+
+You can install this package either with `npm` or with `bower`.
+
+### npm
+
+```shell
+npm install angular-resource
+```
+
+Add a `
+```
+
+Then add `ngResource` as a dependency for your app:
+
+```javascript
+angular.module('myApp', ['ngResource']);
+```
+
+Note that this package is not in CommonJS format, so doing `require('angular-resource')` will
+return `undefined`.
+
+### bower
+
+```shell
+bower install angular-resource
+```
+
+Add a `
+```
+
+Then add `ngResource` as a dependency for your app:
+
+```javascript
+angular.module('myApp', ['ngResource']);
+```
+
+## Documentation
+
+Documentation is available on the
+[AngularJS docs site](http://docs.angularjs.org/api/ngResource).
+
+## License
+
+The MIT License
+
+Copyright (c) 2010-2012 Google, Inc. http://angularjs.org
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in
+all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+THE SOFTWARE.
diff --git a/vendor/assets/components/angular-resource/angular-resource.js b/vendor/assets/components/angular-resource/angular-resource.js
new file mode 100644
index 0000000..c062f41
--- /dev/null
+++ b/vendor/assets/components/angular-resource/angular-resource.js
@@ -0,0 +1,667 @@
+/**
+ * @license AngularJS v1.3.10
+ * (c) 2010-2014 Google, Inc. http://angularjs.org
+ * License: MIT
+ */
+(function(window, angular, undefined) {'use strict';
+
+var $resourceMinErr = angular.$$minErr('$resource');
+
+// Helper functions and regex to lookup a dotted path on an object
+// stopping at undefined/null. The path must be composed of ASCII
+// identifiers (just like $parse)
+var MEMBER_NAME_REGEX = /^(\.[a-zA-Z_$][0-9a-zA-Z_$]*)+$/;
+
+function isValidDottedPath(path) {
+ return (path != null && path !== '' && path !== 'hasOwnProperty' &&
+ MEMBER_NAME_REGEX.test('.' + path));
+}
+
+function lookupDottedPath(obj, path) {
+ if (!isValidDottedPath(path)) {
+ throw $resourceMinErr('badmember', 'Dotted member path "@{0}" is invalid.', path);
+ }
+ var keys = path.split('.');
+ for (var i = 0, ii = keys.length; i < ii && obj !== undefined; i++) {
+ var key = keys[i];
+ obj = (obj !== null) ? obj[key] : undefined;
+ }
+ return obj;
+}
+
+/**
+ * Create a shallow copy of an object and clear other fields from the destination
+ */
+function shallowClearAndCopy(src, dst) {
+ dst = dst || {};
+
+ angular.forEach(dst, function(value, key) {
+ delete dst[key];
+ });
+
+ for (var key in src) {
+ if (src.hasOwnProperty(key) && !(key.charAt(0) === '$' && key.charAt(1) === '$')) {
+ dst[key] = src[key];
+ }
+ }
+
+ return dst;
+}
+
+/**
+ * @ngdoc module
+ * @name ngResource
+ * @description
+ *
+ * # ngResource
+ *
+ * The `ngResource` module provides interaction support with RESTful services
+ * via the $resource service.
+ *
+ *
+ *
+ *
+ * See {@link ngResource.$resource `$resource`} for usage.
+ */
+
+/**
+ * @ngdoc service
+ * @name $resource
+ * @requires $http
+ *
+ * @description
+ * A factory which creates a resource object that lets you interact with
+ * [RESTful](http://en.wikipedia.org/wiki/Representational_State_Transfer) server-side data sources.
+ *
+ * The returned resource object has action methods which provide high-level behaviors without
+ * the need to interact with the low level {@link ng.$http $http} service.
+ *
+ * Requires the {@link ngResource `ngResource`} module to be installed.
+ *
+ * By default, trailing slashes will be stripped from the calculated URLs,
+ * which can pose problems with server backends that do not expect that
+ * behavior. This can be disabled by configuring the `$resourceProvider` like
+ * this:
+ *
+ * ```js
+ app.config(['$resourceProvider', function($resourceProvider) {
+ // Don't strip trailing slashes from calculated URLs
+ $resourceProvider.defaults.stripTrailingSlashes = false;
+ }]);
+ * ```
+ *
+ * @param {string} url A parametrized URL template with parameters prefixed by `:` as in
+ * `/user/:username`. If you are using a URL with a port number (e.g.
+ * `http://example.com:8080/api`), it will be respected.
+ *
+ * If you are using a url with a suffix, just add the suffix, like this:
+ * `$resource('http://example.com/resource.json')` or `$resource('http://example.com/:id.json')`
+ * or even `$resource('http://example.com/resource/:resource_id.:format')`
+ * If the parameter before the suffix is empty, :resource_id in this case, then the `/.` will be
+ * collapsed down to a single `.`. If you need this sequence to appear and not collapse then you
+ * can escape it with `/\.`.
+ *
+ * @param {Object=} paramDefaults Default values for `url` parameters. These can be overridden in
+ * `actions` methods. If any of the parameter value is a function, it will be executed every time
+ * when a param value needs to be obtained for a request (unless the param was overridden).
+ *
+ * Each key value in the parameter object is first bound to url template if present and then any
+ * excess keys are appended to the url search query after the `?`.
+ *
+ * Given a template `/path/:verb` and parameter `{verb:'greet', salutation:'Hello'}` results in
+ * URL `/path/greet?salutation=Hello`.
+ *
+ * If the parameter value is prefixed with `@` then the value for that parameter will be extracted
+ * from the corresponding property on the `data` object (provided when calling an action method). For
+ * example, if the `defaultParam` object is `{someParam: '@someProp'}` then the value of `someParam`
+ * will be `data.someProp`.
+ *
+ * @param {Object.