ngannotate-rails 0.14.0.1 → 0.14.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/ngannotate/rails/version.rb +1 -1
- data/vendor/ngannotate.js +6 -4
- 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: 87cb7921c3a730cf709747038bb4f9371bf9f88c
|
4
|
+
data.tar.gz: 6aa0c2d47066c286f58e568a5468c49cb8fc297a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2e28bf4381923f177bfaf0df50a14092571acbfd4927570f21df0faf128f84c4ffd46a0c3d829d4ae6fdbd43e13c3f6578960bf7d0f1f9b3e3651052b2706939
|
7
|
+
data.tar.gz: 7ede4c18256cbd11f7a2f212402a3de4e62b5185b0113bb8b00c0199830988775ca60830419669516d8133f33680fb8d435079be476e792cdef3bfa482888f9c
|
data/vendor/ngannotate.js
CHANGED
@@ -2970,7 +2970,7 @@ function matchDirectiveReturnObject(node) {
|
|
2970
2970
|
}
|
2971
2971
|
|
2972
2972
|
function limit(name, node) {
|
2973
|
-
if (node) {
|
2973
|
+
if (node && !node.$limitToMethodName) {
|
2974
2974
|
node.$limitToMethodName = name;
|
2975
2975
|
}
|
2976
2976
|
return node;
|
@@ -3428,7 +3428,7 @@ function judgeSuspects(ctx) {
|
|
3428
3428
|
var jumped = jumpOverIife(target);
|
3429
3429
|
var jumpedAndFollowed = followReference(jumped) || jumped;
|
3430
3430
|
|
3431
|
-
if (target.$limitToMethodName && findOuterMethodName(target) !== target.$limitToMethodName) {
|
3431
|
+
if (target.$limitToMethodName && target.$limitToMethodName !== "*never*" && findOuterMethodName(target) !== target.$limitToMethodName) {
|
3432
3432
|
return null;
|
3433
3433
|
}
|
3434
3434
|
|
@@ -3999,7 +3999,6 @@ window.annotate = function ngAnnotate(src, options) {
|
|
3999
3999
|
"use strict";
|
4000
4000
|
|
4001
4001
|
var is = require("simple-is");
|
4002
|
-
var fmt = require("simple-fmt");
|
4003
4002
|
|
4004
4003
|
module.exports = {
|
4005
4004
|
inspectComments: inspectComments,
|
@@ -4045,15 +4044,18 @@ function addSuspect(target, ctx) {
|
|
4045
4044
|
addObjectExpression(target.declarations[0].init, ctx);
|
4046
4045
|
} else if (target.type === "Property") {
|
4047
4046
|
// {/*@ngInject*/ justthisone: function(a), ..}
|
4047
|
+
target.value.$limitToMethodName = "*never*";
|
4048
4048
|
ctx.addModuleContextIndependentSuspect(target.value, ctx);
|
4049
4049
|
} else {
|
4050
4050
|
// /*@ngInject*/ function(a) {}
|
4051
|
+
target.$limitToMethodName = "*never*";
|
4051
4052
|
ctx.addModuleContextIndependentSuspect(target, ctx);
|
4052
4053
|
}
|
4053
4054
|
}
|
4054
4055
|
|
4055
4056
|
function addObjectExpression(node, ctx) {
|
4056
4057
|
nestedObjectValues(node).forEach(function(n) {
|
4058
|
+
n.$limitToMethodName = "*never*";
|
4057
4059
|
ctx.addModuleContextIndependentSuspect(n, ctx);
|
4058
4060
|
});
|
4059
4061
|
}
|
@@ -4073,7 +4075,7 @@ function nestedObjectValues(node, res) {
|
|
4073
4075
|
return res;
|
4074
4076
|
}
|
4075
4077
|
|
4076
|
-
},{"simple-
|
4078
|
+
},{"simple-is":26}],17:[function(require,module,exports){
|
4077
4079
|
// scope.js
|
4078
4080
|
// MIT licensed, see LICENSE file
|
4079
4081
|
// Copyright (c) 2013-2014 Olov Lassus <olov.lassus@gmail.com>
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ngannotate-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.14.
|
4
|
+
version: 0.14.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kari Ikonen
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-12-
|
11
|
+
date: 2014-12-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|