ngmin-rails 0.3.6 → 0.3.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +1 -0
- data/Rakefile +27 -1
- data/lib/ngmin/rails/version.rb +1 -1
- data/ngmin-rails.gemspec +1 -1
- data/vendor/ngmin.js +200 -138
- metadata +22 -30
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 9f538885bb7509f88be8328e0c517786dd8873a8
|
4
|
+
data.tar.gz: d7d510dc0666a2e7b6a556ffc992dbdb36a59164
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 7f7182b95d3504f90e9b06fc6cbd27f2e7ef796d0ab3bd42a15020700e60875f072ed4d660097ba0e5b3f01305083945482d5526efd82ce856247d435a3cb8cd
|
7
|
+
data.tar.gz: 0c6d1b5781f756c0856a288c3de3710a5f2537b9911b9efb688abcfb69a2adbe31dcabfe3776dd0a8deb80365394f74bfcf7f66e8ca1de1e9fff3fbdba21c980
|
data/.gitignore
CHANGED
data/Rakefile
CHANGED
@@ -1,6 +1,32 @@
|
|
1
1
|
require "bundler/gem_tasks"
|
2
|
+
require 'json'
|
3
|
+
|
4
|
+
def install_ngmin
|
5
|
+
`rm -rf node_modules ; npm install ngmin browserify`
|
6
|
+
end
|
7
|
+
|
8
|
+
def generate_ngmin
|
9
|
+
`./node_modules/.bin/browserify ./node_modules/ngmin/main.js | sed -e's/var annotate /window.annotate /' > vendor/ngmin.js`
|
10
|
+
end
|
11
|
+
|
12
|
+
def update_version
|
13
|
+
package = JSON.parse(File.open('./node_modules/ngmin/package.json').read)
|
14
|
+
write_version(package["version"])
|
15
|
+
end
|
16
|
+
|
17
|
+
def write_version(version)
|
18
|
+
text = <<-FILE
|
19
|
+
module Ngmin
|
20
|
+
module Rails
|
21
|
+
VERSION = "#{version}"
|
22
|
+
end
|
23
|
+
end
|
24
|
+
FILE
|
25
|
+
|
26
|
+
File.open('lib/ngmin/rails/version.rb', 'w') { |f| f.write text }
|
27
|
+
end
|
2
28
|
|
3
29
|
desc "Build a new version of ngmin-browserified.js"
|
4
30
|
task :build do
|
5
|
-
|
31
|
+
install_ngmin && generate_ngmin && update_version
|
6
32
|
end
|
data/lib/ngmin/rails/version.rb
CHANGED
data/ngmin-rails.gemspec
CHANGED
@@ -13,7 +13,7 @@ Gem::Specification.new do |spec|
|
|
13
13
|
spec.homepage = "https://github.com/jasonm/ngmin-rails"
|
14
14
|
spec.license = "MIT"
|
15
15
|
|
16
|
-
spec.files = `git ls-files`.split($/)
|
16
|
+
spec.files = `git ls-files`.split($/).reject {|f| f.match /example/ }
|
17
17
|
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
|
18
18
|
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
19
19
|
spec.require_paths = ["lib"]
|
data/vendor/ngmin.js
CHANGED
@@ -3928,6 +3928,7 @@ parseStatement: true, parseSourceElement: true */
|
|
3928
3928
|
},{}],3:[function(require,module,exports){
|
3929
3929
|
|
3930
3930
|
var deepApply = require('./deep-apply');
|
3931
|
+
var annotateInjectable = require('./annotate-injectable');
|
3931
3932
|
|
3932
3933
|
|
3933
3934
|
// look for `modRef.fn` in AST
|
@@ -3937,7 +3938,7 @@ var signatures = require('../signatures/simple');
|
|
3937
3938
|
/*
|
3938
3939
|
* Modifies AST to add annotations to injectable AngularJS module methods
|
3939
3940
|
*/
|
3940
|
-
|
3941
|
+
var annotateAST = module.exports = function (syntax) {
|
3941
3942
|
|
3942
3943
|
// rewrite each matching chunk
|
3943
3944
|
deepApply(syntax, signatures, function (chunk) {
|
@@ -3958,25 +3959,7 @@ window.annotateAST = module.exports = function (syntax) {
|
|
3958
3959
|
if (type === 'constant' || type === 'value') {
|
3959
3960
|
return;
|
3960
3961
|
}
|
3961
|
-
|
3962
|
-
|
3963
|
-
// if there's nothing to inject, don't annotate
|
3964
|
-
if (originalFn.params.length === 0) {
|
3965
|
-
return;
|
3966
|
-
}
|
3967
|
-
|
3968
|
-
newParam = chunk.arguments[argIndex] = {
|
3969
|
-
type: 'ArrayExpression',
|
3970
|
-
elements: []
|
3971
|
-
};
|
3972
|
-
|
3973
|
-
originalFn.params.forEach(function (param) {
|
3974
|
-
newParam.elements.push({
|
3975
|
-
"type": "Literal",
|
3976
|
-
"value": param.name
|
3977
|
-
});
|
3978
|
-
});
|
3979
|
-
newParam.elements.push(originalFn);
|
3962
|
+
chunk.arguments[argIndex] = annotateInjectable(chunk.arguments[argIndex]);
|
3980
3963
|
});
|
3981
3964
|
|
3982
3965
|
|
@@ -4011,33 +3994,87 @@ window.annotateAST = module.exports = function (syntax) {
|
|
4011
3994
|
"type": "FunctionExpression"
|
4012
3995
|
}
|
4013
3996
|
}], function (controllerChunk) {
|
4014
|
-
|
4015
|
-
|
3997
|
+
controllerChunk.value = annotateInjectable(controllerChunk.value);
|
3998
|
+
});
|
3999
|
+
});
|
4000
|
+
});
|
4016
4001
|
|
4017
|
-
|
4018
|
-
if (originalFn.params.length === 0) {
|
4019
|
-
return;
|
4020
|
-
}
|
4002
|
+
// PDO annotations - defined by object
|
4021
4003
|
|
4022
|
-
|
4023
|
-
|
4024
|
-
|
4025
|
-
|
4026
|
-
|
4027
|
-
|
4028
|
-
|
4029
|
-
|
4030
|
-
|
4031
|
-
|
4004
|
+
deepApply(syntax, [{
|
4005
|
+
"type": "CallExpression",
|
4006
|
+
"callee": {
|
4007
|
+
"type": "MemberExpression",
|
4008
|
+
"object": {
|
4009
|
+
"ngModule": true
|
4010
|
+
},
|
4011
|
+
"property": {
|
4012
|
+
"type": "Identifier",
|
4013
|
+
"name": "provider"
|
4014
|
+
}
|
4015
|
+
}
|
4016
|
+
}], function (providerChunk) {
|
4017
|
+
deepApply(providerChunk, [{
|
4018
|
+
"type": "ObjectExpression"
|
4019
|
+
}], function(objectChunk) {
|
4020
|
+
objectChunk.properties.forEach(function(property) {
|
4021
|
+
deepApply(property, [{
|
4022
|
+
"type": "Property",
|
4023
|
+
"key": {
|
4024
|
+
"type": "Identifier",
|
4025
|
+
"name": "$get"
|
4026
|
+
},
|
4027
|
+
"value": {
|
4028
|
+
"type": "FunctionExpression"
|
4029
|
+
}
|
4030
|
+
}], function(propertyChunk) {
|
4031
|
+
propertyChunk.value = annotateInjectable(propertyChunk.value);
|
4032
4032
|
});
|
4033
|
-
newParam.elements.push(originalFn);
|
4034
4033
|
});
|
4035
4034
|
});
|
4036
4035
|
});
|
4037
4036
|
|
4037
|
+
// PDO annotations - defined by function
|
4038
|
+
|
4039
|
+
deepApply(syntax, [{
|
4040
|
+
"type": "CallExpression",
|
4041
|
+
"callee": {
|
4042
|
+
"type": "MemberExpression",
|
4043
|
+
"object": {
|
4044
|
+
"ngModule": true
|
4045
|
+
},
|
4046
|
+
"property": {
|
4047
|
+
"type": "Identifier",
|
4048
|
+
"name": "provider"
|
4049
|
+
}
|
4050
|
+
}
|
4051
|
+
}], function (providerChunk) {
|
4052
|
+
deepApply(providerChunk, [{
|
4053
|
+
"type": "ExpressionStatement",
|
4054
|
+
"expression": {
|
4055
|
+
"type": "AssignmentExpression",
|
4056
|
+
"left": {
|
4057
|
+
"type": "MemberExpression",
|
4058
|
+
"object": {
|
4059
|
+
"type": "ThisExpression"
|
4060
|
+
},
|
4061
|
+
"property": {
|
4062
|
+
"type": "Identifier",
|
4063
|
+
"name": "$get"
|
4064
|
+
}
|
4065
|
+
},
|
4066
|
+
"right": {
|
4067
|
+
"type": "FunctionExpression"
|
4068
|
+
}
|
4069
|
+
}
|
4070
|
+
}], function(pdoChunk) {
|
4071
|
+
pdoChunk.expression.right = annotateInjectable(pdoChunk.expression.right);
|
4072
|
+
});
|
4073
|
+
});
|
4074
|
+
|
4038
4075
|
};
|
4039
4076
|
|
4040
|
-
},{"./deep-apply":6,"../signatures/simple":
|
4077
|
+
},{"./deep-apply":6,"./annotate-injectable":7,"../signatures/simple":8}],9:[function(require,module,exports){
|
4041
4078
|
/*
|
4042
4079
|
* Identify AST blocks that refer to an AngularJS module
|
4043
4080
|
*/
|
@@ -4056,7 +4093,7 @@ module.exports = {
|
|
4056
4093
|
}
|
4057
4094
|
};
|
4058
4095
|
|
4059
|
-
},{}],
|
4096
|
+
},{}],8:[function(require,module,exports){
|
4060
4097
|
|
4061
4098
|
/*
|
4062
4099
|
* Simple AST structure to match against
|
@@ -4120,7 +4157,7 @@ module.exports = [
|
|
4120
4157
|
|
4121
4158
|
];
|
4122
4159
|
|
4123
|
-
},{}],
|
4160
|
+
},{}],10:[function(require,module,exports){
|
4124
4161
|
module.exports = {
|
4125
4162
|
"type": "VariableDeclarator",
|
4126
4163
|
"init": {
|
@@ -4128,7 +4165,7 @@ module.exports = {
|
|
4128
4165
|
}
|
4129
4166
|
};
|
4130
4167
|
|
4131
|
-
},{}],
|
4168
|
+
},{}],11:[function(require,module,exports){
|
4132
4169
|
module.exports = {
|
4133
4170
|
"type": "ExpressionStatement",
|
4134
4171
|
"expression": {
|
@@ -4143,7 +4180,32 @@ module.exports = {
|
|
4143
4180
|
}
|
4144
4181
|
};
|
4145
4182
|
|
4146
|
-
},{}],
|
4183
|
+
},{}],7:[function(require,module,exports){
|
4184
|
+
|
4185
|
+
// given an AST chunk for a fn,
|
4186
|
+
// return an AST chunk representing an annotation array
|
4187
|
+
var annotateInjectable = module.exports = function (originalFn) {
|
4188
|
+
// if there's nothing to inject, don't annotate
|
4189
|
+
if (originalFn.params.length === 0) {
|
4190
|
+
return originalFn;
|
4191
|
+
}
|
4192
|
+
|
4193
|
+
var newParam = {
|
4194
|
+
type: 'ArrayExpression',
|
4195
|
+
elements: []
|
4196
|
+
};
|
4197
|
+
|
4198
|
+
originalFn.params.forEach(function (param) {
|
4199
|
+
newParam.elements.push({
|
4200
|
+
"type": "Literal",
|
4201
|
+
"value": param.name
|
4202
|
+
});
|
4203
|
+
});
|
4204
|
+
newParam.elements.push(originalFn);
|
4205
|
+
return newParam;
|
4206
|
+
};
|
4207
|
+
|
4208
|
+
},{}],12:[function(require,module,exports){
|
4147
4209
|
module.exports={
|
4148
4210
|
"name": "escodegen",
|
4149
4211
|
"description": "ECMAScript code generator",
|
@@ -4233,81 +4295,7 @@ var deepApply = module.exports = function (candidate, standards, cb) {
|
|
4233
4295
|
});
|
4234
4296
|
};
|
4235
4297
|
|
4236
|
-
},{"./deep-compare.js":
|
4237
|
-
|
4238
|
-
/*
|
4239
|
-
* Add {"ngModule": true} property to matching modules
|
4240
|
-
*/
|
4241
|
-
|
4242
|
-
var deepApply = require('./deep-apply');
|
4243
|
-
|
4244
|
-
var signatures = [
|
4245
|
-
require('../signatures/module')
|
4246
|
-
].concat(require('../signatures/simple'));
|
4247
|
-
|
4248
|
-
var standards = [
|
4249
|
-
require('../signatures/decl'),
|
4250
|
-
require('../signatures/assign')
|
4251
|
-
];
|
4252
|
-
|
4253
|
-
var clone = require('clone');
|
4254
|
-
|
4255
|
-
var simpleSignatures = clone(require('../signatures/simple'));
|
4256
|
-
|
4257
|
-
//TODO: honor scope
|
4258
|
-
// returns true iff there were things to annotate
|
4259
|
-
var markASTModules = module.exports = function (syntax) {
|
4260
|
-
var changed = false;
|
4261
|
-
|
4262
|
-
|
4263
|
-
deepApply(syntax, signatures, function (chunk) {
|
4264
|
-
chunk.ngModule = true;
|
4265
|
-
if (!chunk.ngModule) {
|
4266
|
-
changed = true;
|
4267
|
-
}
|
4268
|
-
});
|
4269
|
-
|
4270
|
-
// module ref ids
|
4271
|
-
var modules = [];
|
4272
|
-
|
4273
|
-
// grab all module ref ids
|
4274
|
-
standards.forEach(function (standard) {
|
4275
|
-
deepApply(syntax, standards, function (branch) {
|
4276
|
-
var id;
|
4277
|
-
|
4278
|
-
try {
|
4279
|
-
id = branch.id.name;
|
4280
|
-
} catch (e) {
|
4281
|
-
id = branch.expression.left.name;
|
4282
|
-
}
|
4283
|
-
|
4284
|
-
if (modules.indexOf(id) === -1) {
|
4285
|
-
modules.push(id);
|
4286
|
-
}
|
4287
|
-
});
|
4288
|
-
});
|
4289
|
-
|
4290
|
-
var namedModuleMemberExpression = {
|
4291
|
-
"type": "Identifier",
|
4292
|
-
"name": new RegExp('^(' + modules.join('|') + ')$')
|
4293
|
-
};
|
4294
|
-
|
4295
|
-
simpleSignatures = simpleSignatures.map(function (signature) {
|
4296
|
-
signature.callee.object = namedModuleMemberExpression;
|
4297
|
-
return signature;
|
4298
|
-
});
|
4299
|
-
|
4300
|
-
deepApply(syntax, simpleSignatures, function (chunk) {
|
4301
|
-
if (!chunk.callee.object.ngModule) {
|
4302
|
-
changed = true;
|
4303
|
-
chunk.callee.object.ngModule = true;
|
4304
|
-
}
|
4305
|
-
});
|
4306
|
-
|
4307
|
-
return changed;
|
4308
|
-
};
|
4309
|
-
|
4310
|
-
},{"./deep-apply":6,"../signatures/module":8,"../signatures/simple":7,"../signatures/decl":9,"../signatures/assign":10,"clone":13}],5:[function(require,module,exports){
|
4298
|
+
},{"./deep-compare.js":13}],5:[function(require,module,exports){
|
4311
4299
|
(function(global){/*
|
4312
4300
|
Copyright (C) 2012 Michael Ficarra <escodegen.copyright@michael.ficarra.me>
|
4313
4301
|
Copyright (C) 2012 Robert Gust-Bardon <donate@robert.gust-bardon.org>
|
@@ -6567,7 +6555,81 @@ var markASTModules = module.exports = function (syntax) {
|
|
6567
6555
|
/* vim: set sw=4 ts=4 et tw=80 : */
|
6568
6556
|
|
6569
6557
|
})(window)
|
6570
|
-
},{"./package.json":
|
6558
|
+
},{"./package.json":12,"estraverse":14,"source-map":15}],2:[function(require,module,exports){
|
6559
|
+
|
6560
|
+
/*
|
6561
|
+
* Add {"ngModule": true} property to matching modules
|
6562
|
+
*/
|
6563
|
+
|
6564
|
+
var deepApply = require('./deep-apply');
|
6565
|
+
|
6566
|
+
var signatures = [
|
6567
|
+
require('../signatures/module')
|
6568
|
+
].concat(require('../signatures/simple'));
|
6569
|
+
|
6570
|
+
var standards = [
|
6571
|
+
require('../signatures/decl'),
|
6572
|
+
require('../signatures/assign')
|
6573
|
+
];
|
6574
|
+
|
6575
|
+
var clone = require('clone');
|
6576
|
+
|
6577
|
+
var simpleSignatures = clone(require('../signatures/simple'));
|
6578
|
+
|
6579
|
+
//TODO: honor scope
|
6580
|
+
// returns true iff there were things to annotate
|
6581
|
+
var markASTModules = module.exports = function (syntax) {
|
6582
|
+
var changed = false;
|
6583
|
+
|
6584
|
+
|
6585
|
+
deepApply(syntax, signatures, function (chunk) {
|
6586
|
+
chunk.ngModule = true;
|
6587
|
+
if (!chunk.ngModule) {
|
6588
|
+
changed = true;
|
6589
|
+
}
|
6590
|
+
});
|
6591
|
+
|
6592
|
+
// module ref ids
|
6593
|
+
var modules = [];
|
6594
|
+
|
6595
|
+
// grab all module ref ids
|
6596
|
+
standards.forEach(function (standard) {
|
6597
|
+
deepApply(syntax, standards, function (branch) {
|
6598
|
+
var id;
|
6599
|
+
|
6600
|
+
try {
|
6601
|
+
id = branch.id.name;
|
6602
|
+
} catch (e) {
|
6603
|
+
id = branch.expression.left.name;
|
6604
|
+
}
|
6605
|
+
|
6606
|
+
if (modules.indexOf(id) === -1) {
|
6607
|
+
modules.push(id);
|
6608
|
+
}
|
6609
|
+
});
|
6610
|
+
});
|
6611
|
+
|
6612
|
+
var namedModuleMemberExpression = {
|
6613
|
+
"type": "Identifier",
|
6614
|
+
"name": new RegExp('^(' + modules.join('|') + ')$')
|
6615
|
+
};
|
6616
|
+
|
6617
|
+
simpleSignatures = simpleSignatures.map(function (signature) {
|
6618
|
+
signature.callee.object = namedModuleMemberExpression;
|
6619
|
+
return signature;
|
6620
|
+
});
|
6621
|
+
|
6622
|
+
deepApply(syntax, simpleSignatures, function (chunk) {
|
6623
|
+
if (!chunk.callee.object.ngModule) {
|
6624
|
+
changed = true;
|
6625
|
+
chunk.callee.object.ngModule = true;
|
6626
|
+
}
|
6627
|
+
});
|
6628
|
+
|
6629
|
+
return changed;
|
6630
|
+
};
|
6631
|
+
|
6632
|
+
},{"../signatures/module":9,"./deep-apply":6,"../signatures/simple":8,"../signatures/decl":10,"../signatures/assign":11,"clone":16}],13:[function(require,module,exports){
|
6571
6633
|
/*
|
6572
6634
|
* Checks each property of the standard recursively against the candidate,
|
6573
6635
|
* ignoring additional properties of the candidate.
|
@@ -6935,7 +6997,7 @@ var deepCompare = module.exports = function (candidate, standard) {
|
|
6935
6997
|
/* vim: set sw=4 ts=4 et tw=80 : */
|
6936
6998
|
|
6937
6999
|
})()
|
6938
|
-
},{}],
|
7000
|
+
},{}],17:[function(require,module,exports){
|
6939
7001
|
var events = require('events');
|
6940
7002
|
|
6941
7003
|
exports.isArray = isArray;
|
@@ -7288,7 +7350,7 @@ exports.format = function(f) {
|
|
7288
7350
|
return str;
|
7289
7351
|
};
|
7290
7352
|
|
7291
|
-
},{"events":
|
7353
|
+
},{"events":18}],19:[function(require,module,exports){
|
7292
7354
|
require=(function(e,t,n,r){function i(r){if(!n[r]){if(!t[r]){if(e)return e(r);throw new Error("Cannot find module '"+r+"'")}var s=n[r]={exports:{}};t[r][0](function(e){var n=t[r][1][e];return i(n?n:e)},s,s.exports)}return n[r].exports}for(var s=0;s<r.length;s++)i(r[s]);return i})(typeof require!=="undefined"&&require,{1:[function(require,module,exports){
|
7293
7355
|
exports.readIEEE754 = function(buffer, offset, isBE, mLen, nBytes) {
|
7294
7356
|
var e, m,
|
@@ -11153,7 +11215,7 @@ SlowBuffer.prototype.writeDoubleBE = Buffer.prototype.writeDoubleBE;
|
|
11153
11215
|
},{}]},{},[])
|
11154
11216
|
;;module.exports=require("buffer-browserify")
|
11155
11217
|
|
11156
|
-
},{}],
|
11218
|
+
},{}],16:[function(require,module,exports){
|
11157
11219
|
(function(Buffer){var util = require('util');
|
11158
11220
|
|
11159
11221
|
module.exports = clone;
|
@@ -11276,7 +11338,7 @@ function clone(parent, circular) {
|
|
11276
11338
|
clone.clonePrototype = require('./clonePrototype.js');
|
11277
11339
|
|
11278
11340
|
})(require("__browserify_buffer").Buffer)
|
11279
|
-
},{"util":
|
11341
|
+
},{"util":17,"./clonePrototype.js":20,"__browserify_buffer":19}],15:[function(require,module,exports){
|
11280
11342
|
/*
|
11281
11343
|
* Copyright 2009-2011 Mozilla Foundation and contributors
|
11282
11344
|
* Licensed under the New BSD license. See LICENSE.txt or:
|
@@ -11286,7 +11348,7 @@ exports.SourceMapGenerator = require('./source-map/source-map-generator').Source
|
|
11286
11348
|
exports.SourceMapConsumer = require('./source-map/source-map-consumer').SourceMapConsumer;
|
11287
11349
|
exports.SourceNode = require('./source-map/source-node').SourceNode;
|
11288
11350
|
|
11289
|
-
},{"./source-map/source-map-generator":
|
11351
|
+
},{"./source-map/source-map-generator":21,"./source-map/source-map-consumer":22,"./source-map/source-node":23}],24:[function(require,module,exports){
|
11290
11352
|
// shim for using process in browser
|
11291
11353
|
|
11292
11354
|
var process = module.exports = {};
|
@@ -11340,7 +11402,7 @@ process.chdir = function (dir) {
|
|
11340
11402
|
throw new Error('process.chdir is not supported');
|
11341
11403
|
};
|
11342
11404
|
|
11343
|
-
},{}],
|
11405
|
+
},{}],18:[function(require,module,exports){
|
11344
11406
|
(function(process){if (!process.EventEmitter) process.EventEmitter = function () {};
|
11345
11407
|
|
11346
11408
|
var EventEmitter = exports.EventEmitter = process.EventEmitter;
|
@@ -11526,7 +11588,7 @@ EventEmitter.prototype.listeners = function(type) {
|
|
11526
11588
|
};
|
11527
11589
|
|
11528
11590
|
})(require("__browserify_process"))
|
11529
|
-
},{"__browserify_process":
|
11591
|
+
},{"__browserify_process":24}],20:[function(require,module,exports){
|
11530
11592
|
/**
|
11531
11593
|
* Simple flat clone using prototype, accepts only objects, usefull for property
|
11532
11594
|
* override on FLAT configuration object (no nested props).
|
@@ -11545,7 +11607,7 @@ function clonePrototype(parent) {
|
|
11545
11607
|
|
11546
11608
|
module.exports = clonePrototype;
|
11547
11609
|
|
11548
|
-
},{}],
|
11610
|
+
},{}],21:[function(require,module,exports){
|
11549
11611
|
/* -*- Mode: js; js-indent-level: 2; -*- */
|
11550
11612
|
/*
|
11551
11613
|
* Copyright 2011 Mozilla Foundation and contributors
|
@@ -11928,7 +11990,7 @@ define(function (require, exports, module) {
|
|
11928
11990
|
|
11929
11991
|
});
|
11930
11992
|
|
11931
|
-
},{"./base64-vlq":
|
11993
|
+
},{"./base64-vlq":25,"./util":26,"./array-set":27,"amdefine":28}],22:[function(require,module,exports){
|
11932
11994
|
/* -*- Mode: js; js-indent-level: 2; -*- */
|
11933
11995
|
/*
|
11934
11996
|
* Copyright 2011 Mozilla Foundation and contributors
|
@@ -12356,7 +12418,7 @@ define(function (require, exports, module) {
|
|
12356
12418
|
|
12357
12419
|
});
|
12358
12420
|
|
12359
|
-
},{"./util":
|
12421
|
+
},{"./util":26,"./binary-search":29,"./array-set":27,"./base64-vlq":25,"amdefine":28}],23:[function(require,module,exports){
|
12360
12422
|
/* -*- Mode: js; js-indent-level: 2; -*- */
|
12361
12423
|
/*
|
12362
12424
|
* Copyright 2011 Mozilla Foundation and contributors
|
@@ -12711,9 +12773,9 @@ define(function (require, exports, module) {
|
|
12711
12773
|
|
12712
12774
|
});
|
12713
12775
|
|
12714
|
-
},{"./source-map-generator":
|
12776
|
+
},{"./source-map-generator":21,"./util":26,"amdefine":28}],28:[function(require,module,exports){
|
12715
12777
|
(function(process){/** vim: et:ts=4:sw=4:sts=4
|
12716
|
-
* @license amdefine 0.0.
|
12778
|
+
* @license amdefine 0.0.5 Copyright (c) 2011, The Dojo Foundation All Rights Reserved.
|
12717
12779
|
* Available via the MIT or new BSD license.
|
12718
12780
|
* see: http://github.com/jrburke/amdefine for details
|
12719
12781
|
*/
|
@@ -12866,7 +12928,7 @@ function amdefine(module, require) {
|
|
12866
12928
|
uri: __filename,
|
12867
12929
|
exports: e
|
12868
12930
|
};
|
12869
|
-
r = makeRequire(
|
12931
|
+
r = makeRequire(require, e, m, id);
|
12870
12932
|
} else {
|
12871
12933
|
//Only support one define call per file
|
12872
12934
|
if (alreadyCalled) {
|
@@ -13013,7 +13075,7 @@ function amdefine(module, require) {
|
|
13013
13075
|
module.exports = amdefine;
|
13014
13076
|
|
13015
13077
|
})(require("__browserify_process"))
|
13016
|
-
},{"path":
|
13078
|
+
},{"path":30,"__browserify_process":24}],30:[function(require,module,exports){
|
13017
13079
|
(function(process){function filter (xs, fn) {
|
13018
13080
|
var res = [];
|
13019
13081
|
for (var i = 0; i < xs.length; i++) {
|
@@ -13191,7 +13253,7 @@ exports.relative = function(from, to) {
|
|
13191
13253
|
};
|
13192
13254
|
|
13193
13255
|
})(require("__browserify_process"))
|
13194
|
-
},{"__browserify_process":
|
13256
|
+
},{"__browserify_process":24}],25:[function(require,module,exports){
|
13195
13257
|
/* -*- Mode: js; js-indent-level: 2; -*- */
|
13196
13258
|
/*
|
13197
13259
|
* Copyright 2011 Mozilla Foundation and contributors
|
@@ -13337,7 +13399,7 @@ define(function (require, exports, module) {
|
|
13337
13399
|
|
13338
13400
|
});
|
13339
13401
|
|
13340
|
-
},{"./base64":
|
13402
|
+
},{"./base64":31,"amdefine":28}],26:[function(require,module,exports){
|
13341
13403
|
/* -*- Mode: js; js-indent-level: 2; -*- */
|
13342
13404
|
/*
|
13343
13405
|
* Copyright 2011 Mozilla Foundation and contributors
|
@@ -13430,7 +13492,7 @@ define(function (require, exports, module) {
|
|
13430
13492
|
|
13431
13493
|
});
|
13432
13494
|
|
13433
|
-
},{"amdefine":
|
13495
|
+
},{"amdefine":28}],27:[function(require,module,exports){
|
13434
13496
|
/* -*- Mode: js; js-indent-level: 2; -*- */
|
13435
13497
|
/*
|
13436
13498
|
* Copyright 2011 Mozilla Foundation and contributors
|
@@ -13528,7 +13590,7 @@ define(function (require, exports, module) {
|
|
13528
13590
|
|
13529
13591
|
});
|
13530
13592
|
|
13531
|
-
},{"./util":
|
13593
|
+
},{"./util":26,"amdefine":28}],29:[function(require,module,exports){
|
13532
13594
|
/* -*- Mode: js; js-indent-level: 2; -*- */
|
13533
13595
|
/*
|
13534
13596
|
* Copyright 2011 Mozilla Foundation and contributors
|
@@ -13611,7 +13673,7 @@ define(function (require, exports, module) {
|
|
13611
13673
|
|
13612
13674
|
});
|
13613
13675
|
|
13614
|
-
},{"amdefine":
|
13676
|
+
},{"amdefine":28}],31:[function(require,module,exports){
|
13615
13677
|
/* -*- Mode: js; js-indent-level: 2; -*- */
|
13616
13678
|
/*
|
13617
13679
|
* Copyright 2011 Mozilla Foundation and contributors
|
@@ -13655,5 +13717,5 @@ define(function (require, exports, module) {
|
|
13655
13717
|
|
13656
13718
|
});
|
13657
13719
|
|
13658
|
-
},{"amdefine":
|
13720
|
+
},{"amdefine":28}]},{},[1])
|
13659
13721
|
;
|
metadata
CHANGED
@@ -1,8 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ngmin-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
|
5
|
-
version: 0.3.6
|
4
|
+
version: 0.3.7
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- Jason Morrison
|
@@ -10,56 +9,50 @@ authors:
|
|
10
9
|
autorequire:
|
11
10
|
bindir: bin
|
12
11
|
cert_chain: []
|
13
|
-
date: 2013-05-
|
12
|
+
date: 2013-05-11 00:00:00.000000000 Z
|
14
13
|
dependencies:
|
15
14
|
- !ruby/object:Gem::Dependency
|
16
15
|
name: rails
|
17
|
-
version_requirements: !ruby/object:Gem::Requirement
|
18
|
-
none: false
|
19
|
-
requirements:
|
20
|
-
- - ! '>='
|
21
|
-
- !ruby/object:Gem::Version
|
22
|
-
version: '3.1'
|
23
16
|
requirement: !ruby/object:Gem::Requirement
|
24
|
-
none: false
|
25
17
|
requirements:
|
26
|
-
- -
|
18
|
+
- - '>='
|
27
19
|
- !ruby/object:Gem::Version
|
28
20
|
version: '3.1'
|
29
21
|
type: :runtime
|
30
22
|
prerelease: false
|
31
|
-
- !ruby/object:Gem::Dependency
|
32
|
-
name: bundler
|
33
23
|
version_requirements: !ruby/object:Gem::Requirement
|
34
|
-
none: false
|
35
24
|
requirements:
|
36
|
-
- -
|
25
|
+
- - '>='
|
37
26
|
- !ruby/object:Gem::Version
|
38
|
-
version: '1
|
27
|
+
version: '3.1'
|
28
|
+
- !ruby/object:Gem::Dependency
|
29
|
+
name: bundler
|
39
30
|
requirement: !ruby/object:Gem::Requirement
|
40
|
-
none: false
|
41
31
|
requirements:
|
42
32
|
- - ~>
|
43
33
|
- !ruby/object:Gem::Version
|
44
34
|
version: '1.3'
|
45
35
|
type: :development
|
46
36
|
prerelease: false
|
47
|
-
- !ruby/object:Gem::Dependency
|
48
|
-
name: rake
|
49
37
|
version_requirements: !ruby/object:Gem::Requirement
|
50
|
-
none: false
|
51
38
|
requirements:
|
52
|
-
- -
|
39
|
+
- - ~>
|
53
40
|
- !ruby/object:Gem::Version
|
54
|
-
version: '
|
41
|
+
version: '1.3'
|
42
|
+
- !ruby/object:Gem::Dependency
|
43
|
+
name: rake
|
55
44
|
requirement: !ruby/object:Gem::Requirement
|
56
|
-
none: false
|
57
45
|
requirements:
|
58
|
-
- -
|
46
|
+
- - '>='
|
59
47
|
- !ruby/object:Gem::Version
|
60
48
|
version: '0'
|
61
49
|
type: :development
|
62
50
|
prerelease: false
|
51
|
+
version_requirements: !ruby/object:Gem::Requirement
|
52
|
+
requirements:
|
53
|
+
- - '>='
|
54
|
+
- !ruby/object:Gem::Version
|
55
|
+
version: '0'
|
63
56
|
description: Use ngmin in the Rails asset pipeline.
|
64
57
|
email:
|
65
58
|
- jason.p.morrison@gmail.com
|
@@ -82,26 +75,25 @@ files:
|
|
82
75
|
homepage: https://github.com/jasonm/ngmin-rails
|
83
76
|
licenses:
|
84
77
|
- MIT
|
78
|
+
metadata: {}
|
85
79
|
post_install_message:
|
86
80
|
rdoc_options: []
|
87
81
|
require_paths:
|
88
82
|
- lib
|
89
83
|
required_ruby_version: !ruby/object:Gem::Requirement
|
90
|
-
none: false
|
91
84
|
requirements:
|
92
|
-
- -
|
85
|
+
- - '>='
|
93
86
|
- !ruby/object:Gem::Version
|
94
87
|
version: '0'
|
95
88
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
96
|
-
none: false
|
97
89
|
requirements:
|
98
|
-
- -
|
90
|
+
- - '>='
|
99
91
|
- !ruby/object:Gem::Version
|
100
92
|
version: '0'
|
101
93
|
requirements: []
|
102
94
|
rubyforge_project:
|
103
|
-
rubygems_version:
|
95
|
+
rubygems_version: 2.0.3
|
104
96
|
signing_key:
|
105
|
-
specification_version:
|
97
|
+
specification_version: 4
|
106
98
|
summary: Use ngmin in the Rails asset pipeline.
|
107
99
|
test_files: []
|