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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b3fc1e98484eeb10fb8787bb5e9fea02f275494d
4
- data.tar.gz: 2f2d703fbcba895214a994521b52b1aabb84f46b
3
+ metadata.gz: 6586ca579abab8f3b81ddbea4ed8ec0531f94670
4
+ data.tar.gz: 4c3becd0eacf7301800f78f11b4dca09dc21368c
5
5
  SHA512:
6
- metadata.gz: 8e3448779115e0f61e4489397f9b17f732789c3a05d1e84256712821b0800091fce895ee7b464688d43dfa6d087d6bc71b6f40c53a585fd954f2d0000137755a
7
- data.tar.gz: 8083d8f0411916e2cf1adcd5e5d4832369994c19e323d83d6ae6909bed85b8c4f632eef898b553e420e64ef69aca165cb5170211767b60246c78c444f0c297df
6
+ metadata.gz: f2b402710ab7696bc6580819e081abe67d0f692fc424501c6bf86efa72fa1c24b95a0527057af32c7ef87c09afee6e162bbe5f2a7bc571402a34f1d155acbb11
7
+ data.tar.gz: 2b1bd106ee44dd5a83ea6d7090082be8c8d34dd501ea7c4ec50988cbe2e323794972cf4e54983cc9ce25eac0097db569a4c8c30f5faf23d0c2fda7fb0a2d515f
@@ -1,3 +1,9 @@
1
+ <a name="2.2.2"></a>
2
+ # 2.2.2
3
+ ## Bug Fixes
4
+ - Fixed AngularJS dependency from 1.0.x to 1.x.x - #200 (@shuhei)
5
+ - Fixed URL string interpolation to use <code>idAttribute</code> config setting - #202 (@gannimet)
6
+
1
7
  <a name="2.2.0"></a>
2
8
  # 2.2.0
3
9
  ## Features
data/bower.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "angularjs-rails-resource",
3
- "version": "2.2.0",
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": "~1.0"
11
+ "angular": "^1.0"
12
12
  },
13
13
  "ignore": [
14
14
  "node_modules",
@@ -1,7 +1,7 @@
1
1
  module Angularjs
2
2
  module Rails
3
3
  module Resource
4
- VERSION = '2.2.0'
4
+ VERSION = '2.2.2'
5
5
  end
6
6
  end
7
7
  end
@@ -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.0",
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": "~1.0"
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
- RailsResource.$url = RailsResource.resourceUrl = function (context, path) {
678
- if (!angular.isObject(context)) {
679
- context = {id: context};
680
- }
681
-
682
- return appendPath(this.buildUrl(context || {}), path);
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.0
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-04-19 00:00:00.000000000 Z
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: