ember-cli-assets 0.0.27 → 0.0.28

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: f45a1c928f042ba8e28988fb2e4e1c486b69a04b
4
- data.tar.gz: 6f75587983ba9707f3c6f654617be1713fae28d6
3
+ metadata.gz: cf3a610fc2c35ed5707d5a740dce10f8f1c163de
4
+ data.tar.gz: 54451897c6c01b4aae942d4374550cc2c85120bb
5
5
  SHA512:
6
- metadata.gz: 3d85515cc6b060aa3a7dd1042c6536509fcfe3af35d7b9a509ba8a8a3e237fec1894c7d8cd8c59c996057fe3c639e4ca063c1d04ddaaf437863e6ed3a59dbefc
7
- data.tar.gz: 2205442b8f364446a9189f9bb6a8d4e3d2e13f7951305c453100b32273a7ce8f4e69b3e17386c443ed79d9ae0faf1f24010b000811cf751704c79932b82cffec
6
+ metadata.gz: 3c51ddc43d73b439398f25e7308c2134329ff9bfe9e865e8540f885897b1618f43373f21a3134e63394cd6e79795055eba1d885eb578ebbf8f788755811829c8
7
+ data.tar.gz: eee2bd5ed3dcff203e82bd1b39e385e7576ca39937363e6304b2807fa7ac9b77229cb70db9dc770eb3a05194779da538f6fa607fc122eb18cad8534626ed191a
@@ -1,7 +1,7 @@
1
1
  module Ember
2
2
  module CLI
3
3
  module Assets
4
- VERSION = '0.0.27'
4
+ VERSION = '0.0.28'
5
5
  end
6
6
  end
7
7
  end
@@ -1,7 +1,7 @@
1
1
  module Ember
2
2
  module CLI
3
3
  module Loader
4
- VERSION = '4.0.3'
4
+ VERSION = '4.0.4'
5
5
  end
6
6
  end
7
7
  end
@@ -12,6 +12,30 @@ var loader, define, requireModule, require, requirejs;
12
12
  requirejs: requirejs
13
13
  };
14
14
 
15
+ requirejs = require = requireModule = function(name) {
16
+ stats.require++;
17
+ return findModule(name, '(require)').module.exports;
18
+ };
19
+
20
+ function resetStats() {
21
+ stats = {
22
+ define: 0,
23
+ require: 0,
24
+ reify: 0,
25
+ build: 0,
26
+ modules: 0,
27
+ exports: 0,
28
+ ensureBuild: 0,
29
+ resolve: 0,
30
+ resolveRelative: 0,
31
+ findModule: 0,
32
+ };
33
+ requirejs._stats = stats;
34
+ }
35
+
36
+ var stats;
37
+ resetStats();
38
+
15
39
  loader = {
16
40
  noConflict: function(aliases) {
17
41
  var oldName, newName;
@@ -53,6 +77,7 @@ var loader, define, requireModule, require, requirejs;
53
77
  var defaultDeps = ['require', 'exports', 'module'];
54
78
 
55
79
  function Module(name, deps, callback, alias) {
80
+ stats.modules ++;
56
81
  this.id = uuid++;
57
82
  this.name = name;
58
83
  this.deps = !deps.length && callback.length ? defaultDeps : deps;
@@ -75,6 +100,7 @@ var loader, define, requireModule, require, requirejs;
75
100
  };
76
101
 
77
102
  Module.prototype.exports = function() {
103
+ stats.exports ++;
78
104
  if (this.finalized) {
79
105
  return this.module.exports;
80
106
  } else {
@@ -98,6 +124,7 @@ var loader, define, requireModule, require, requirejs;
98
124
  };
99
125
 
100
126
  Module.prototype.reify = function() {
127
+ stats.reify++;
101
128
  var deps = this.deps;
102
129
  var dep;
103
130
  var reified = this.reified;
@@ -130,7 +157,9 @@ var loader, define, requireModule, require, requirejs;
130
157
  };
131
158
 
132
159
  Module.prototype.build = function() {
160
+ stats.ensureBuild++;
133
161
  if (this.state === FAILED || this.state === LOADED) { return; }
162
+ stats.build++;
134
163
  this.state = FAILED;
135
164
  this.reify()
136
165
  this.exports();
@@ -138,6 +167,7 @@ var loader, define, requireModule, require, requirejs;
138
167
  };
139
168
 
140
169
  define = function(name, deps, callback) {
170
+ stats.define++;
141
171
  if (arguments.length < 2) {
142
172
  unsupportedModule(arguments.length);
143
173
  }
@@ -171,11 +201,8 @@ var loader, define, requireModule, require, requirejs;
171
201
  throw new Error('Could not find module `' + name + '` imported from `' + referrer + '`');
172
202
  }
173
203
 
174
- requirejs = require = requireModule = function(name) {
175
- return findModule(name, '(require)').module.exports;
176
- };
177
-
178
204
  function findModule(name, referrer) {
205
+ stats.findModule++;
179
206
  var mod = registry[name] || registry[name + '/index'];
180
207
 
181
208
  while (mod && mod.isAlias) {
@@ -189,7 +216,9 @@ var loader, define, requireModule, require, requirejs;
189
216
  }
190
217
 
191
218
  function resolve(child, name) {
219
+ stats.resolve++;
192
220
  if (child.charAt(0) !== '.') { return child; }
221
+ stats.resolveRelative++;
193
222
 
194
223
  var parts = child.split('/');
195
224
  var nameParts = name.split('/');
@@ -222,6 +251,7 @@ var loader, define, requireModule, require, requirejs;
222
251
  };
223
252
 
224
253
  requirejs.clear = function() {
254
+ resetStats();
225
255
  requirejs.entries = requirejs._eak_seen = registry = {};
226
256
  seen = {};
227
257
  };
@@ -244,7 +274,7 @@ var loader, define, requireModule, require, requirejs;
244
274
 
245
275
  requirejs.clear();
246
276
 
247
- if (typeof module !== 'undefined') {
277
+ if (typeof exports === 'object' && typeof module === 'object' && module.exports) {
248
278
  module.exports = { require: require, define: define };
249
279
  }
250
280
  })(this);
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ember-cli-assets
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.27
4
+ version: 0.0.28
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ryunosuke SATO
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-04-20 00:00:00.000000000 Z
11
+ date: 2016-05-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler