angularjs-rails-resource 2.2.0 → 2.2.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +6 -0
- data/bower.json +2 -2
- data/lib/angularjs-rails-resource/version.rb +1 -1
- data/package.json +2 -2
- data/vendor/assets/javascripts/angularjs/rails/resource/resource.js +9 -7
- 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: 6586ca579abab8f3b81ddbea4ed8ec0531f94670
|
4
|
+
data.tar.gz: 4c3becd0eacf7301800f78f11b4dca09dc21368c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f2b402710ab7696bc6580819e081abe67d0f692fc424501c6bf86efa72fa1c24b95a0527057af32c7ef87c09afee6e162bbe5f2a7bc571402a34f1d155acbb11
|
7
|
+
data.tar.gz: 2b1bd106ee44dd5a83ea6d7090082be8c8d34dd501ea7c4ec50988cbe2e323794972cf4e54983cc9ce25eac0097db569a4c8c30f5faf23d0c2fda7fb0a2d515f
|
data/CHANGELOG.md
CHANGED
data/bower.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "angularjs-rails-resource",
|
3
|
-
"version": "2.2.
|
3
|
+
"version": "2.2.2",
|
4
4
|
"main": "angularjs-rails-resource.js",
|
5
5
|
"description": "A resource factory inspired by $resource from AngularJS",
|
6
6
|
"repository": {
|
@@ -8,7 +8,7 @@
|
|
8
8
|
"url": "https://github.com/FineLinePrototyping/dist-angularjs-rails-resource.git"
|
9
9
|
},
|
10
10
|
"dependencies": {
|
11
|
-
"angular": "
|
11
|
+
"angular": "^1.0"
|
12
12
|
},
|
13
13
|
"ignore": [
|
14
14
|
"node_modules",
|
data/package.json
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"name": "angularjs-rails-resource",
|
3
3
|
"description" : "A resource factory inspired by $resource from AngularJS",
|
4
|
-
"version": "2.2.
|
4
|
+
"version": "2.2.2",
|
5
5
|
"main" : "angularjs-rails-resource.min.js",
|
6
6
|
"homepage" : "https://github.com/FineLinePrototyping/angularjs-rails-resource.git",
|
7
7
|
"author" : "",
|
@@ -14,7 +14,7 @@
|
|
14
14
|
"resources"
|
15
15
|
],
|
16
16
|
"dependencies": {
|
17
|
-
"angular": "
|
17
|
+
"angular": "^1.0"
|
18
18
|
},
|
19
19
|
"devDependencies": {
|
20
20
|
"grunt": "~0.4.1",
|
@@ -674,13 +674,15 @@
|
|
674
674
|
* @param path {string} (optional) An additional path to append to the URL
|
675
675
|
* @return {string}
|
676
676
|
*/
|
677
|
-
|
678
|
-
|
679
|
-
|
680
|
-
|
681
|
-
|
682
|
-
|
683
|
-
|
677
|
+
RailsResource.$url = RailsResource.resourceUrl = function (ctxt, path) {
|
678
|
+
var context = ctxt;
|
679
|
+
if (!angular.isObject(ctxt)) {
|
680
|
+
context = {};
|
681
|
+
context[this.config.idAttribute] = ctxt;
|
682
|
+
}
|
683
|
+
|
684
|
+
return appendPath(this.buildUrl(context || {}), path);
|
685
|
+
};
|
684
686
|
|
685
687
|
RailsResource.$get = function (url, queryParams) {
|
686
688
|
return this.$http(angular.extend({method: 'get', url: url}, this.getHttpConfig(queryParams)));
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: angularjs-rails-resource
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.2.
|
4
|
+
version: 2.2.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tommy Odom
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2016-
|
12
|
+
date: 2016-09-28 00:00:00.000000000 Z
|
13
13
|
dependencies: []
|
14
14
|
description: A small AngularJS add-on for integrating with Rails via JSON more easily.
|
15
15
|
email:
|