browserify-rails 4.2.0 → 4.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/CHANGELOG.md +10 -0
- data/README.md +50 -6
- data/browserify-rails.gemspec +1 -1
- data/lib/browserify-rails/browserify_processor.rb +5 -5
- data/lib/browserify-rails/version.rb +1 -1
- data/test/compilation_test.rb +1 -0
- data/test/dummy/app/assets/config/manifest.js +1 -0
- data/test/dummy/package-lock.json +2347 -0
- data/test/fixtures/application.changed.out.js +1 -1
- data/test/fixtures/application.foo_changed.out.js +1 -1
- data/test/fixtures/application.node_test_package_changed.out.js +2 -2
- data/test/fixtures/application.out.js +1 -1
- data/test/fixtures/js-with-sourcemap-url.out.js +2 -2
- data/test/fixtures/main.out.js +1 -1
- data/test/fixtures/mocha.js +1 -1
- data/test/fixtures/node_path_based_require.out.js +1 -1
- data/test/fixtures/plain.out.js +1 -1
- data/test/fixtures/secondary.out.js +1 -1
- data/test/fixtures/use_import.out.js +1 -1
- metadata +7 -10
@@ -1,4 +1,4 @@
|
|
1
|
-
(function e
|
1
|
+
(function(){function r(e,n,t){function o(i,f){if(!n[i]){if(!e[i]){var c="function"==typeof require&&require;if(!f&&c)return c(i,!0);if(u)return u(i,!0);var a=new Error("Cannot find module '"+i+"'");throw a.code="MODULE_NOT_FOUND",a}var p=n[i]={exports:{}};e[i][0].call(p.exports,function(r){var n=e[i][1][r];return o(n||r)},p,p.exports,r,e,n,t)}return n[i].exports}for(var u="function"==typeof require&&require,i=0;i<t.length;i++)o(t[i]);return o}return r})()({1:[function(require,module,exports){
|
2
2
|
var foo = require('./foo');
|
3
3
|
console.log(foo(11));
|
4
4
|
|
@@ -1,4 +1,4 @@
|
|
1
|
-
(function e
|
1
|
+
(function(){function r(e,n,t){function o(i,f){if(!n[i]){if(!e[i]){var c="function"==typeof require&&require;if(!f&&c)return c(i,!0);if(u)return u(i,!0);var a=new Error("Cannot find module '"+i+"'");throw a.code="MODULE_NOT_FOUND",a}var p=n[i]={exports:{}};e[i][0].call(p.exports,function(r){var n=e[i][1][r];return o(n||r)},p,p.exports,r,e,n,t)}return n[i].exports}for(var u="function"==typeof require&&require,i=0;i<t.length;i++)o(t[i]);return o}return r})()({1:[function(require,module,exports){
|
2
2
|
var foo = require('./foo');
|
3
3
|
var nodeTestPackage = require('node-test-package');
|
4
4
|
|
@@ -1,4 +1,4 @@
|
|
1
|
-
(function e
|
1
|
+
(function(){function r(e,n,t){function o(i,f){if(!n[i]){if(!e[i]){var c="function"==typeof require&&require;if(!f&&c)return c(i,!0);if(u)return u(i,!0);var a=new Error("Cannot find module '"+i+"'");throw a.code="MODULE_NOT_FOUND",a}var p=n[i]={exports:{}};e[i][0].call(p.exports,function(r){var n=e[i][1][r];return o(n||r)},p,p.exports,r,e,n,t)}return n[i].exports}for(var u="function"==typeof require&&require,i=0;i<t.length;i++)o(t[i]);return o}return r})()({1:[function(require,module,exports){
|
2
2
|
var foo = require('./foo');
|
3
3
|
var nodeTestPackage = require('node-test-package');
|
4
4
|
|
@@ -10,6 +10,6 @@ module.exports = function (n) { return n * 11 }
|
|
10
10
|
module.exports.NESTED = true;
|
11
11
|
|
12
12
|
},{}],4:[function(require,module,exports){
|
13
|
-
module.exports = console.log("
|
13
|
+
module.exports = console.log("hello friend");
|
14
14
|
|
15
15
|
},{}]},{},[1]);
|
@@ -1,4 +1,4 @@
|
|
1
|
-
(function e
|
1
|
+
(function(){function r(e,n,t){function o(i,f){if(!n[i]){if(!e[i]){var c="function"==typeof require&&require;if(!f&&c)return c(i,!0);if(u)return u(i,!0);var a=new Error("Cannot find module '"+i+"'");throw a.code="MODULE_NOT_FOUND",a}var p=n[i]={exports:{}};e[i][0].call(p.exports,function(r){var n=e[i][1][r];return o(n||r)},p,p.exports,r,e,n,t)}return n[i].exports}for(var u="function"==typeof require&&require,i=0;i<t.length;i++)o(t[i]);return o}return r})()({1:[function(require,module,exports){
|
2
2
|
var foo = require('./foo');
|
3
3
|
var nodeTestPackage = require('node-test-package');
|
4
4
|
|
@@ -1,4 +1,4 @@
|
|
1
|
-
(function e
|
1
|
+
(function(){function r(e,n,t){function o(i,f){if(!n[i]){if(!e[i]){var c="function"==typeof require&&require;if(!f&&c)return c(i,!0);if(u)return u(i,!0);var a=new Error("Cannot find module '"+i+"'");throw a.code="MODULE_NOT_FOUND",a}var p=n[i]={exports:{}};e[i][0].call(p.exports,function(r){var n=e[i][1][r];return o(n||r)},p,p.exports,r,e,n,t)}return n[i].exports}for(var u="function"==typeof require&&require,i=0;i<t.length;i++)o(t[i]);return o}return r})()({1:[function(require,module,exports){
|
2
2
|
var foo = require('./foo');
|
3
3
|
var nodeTestPackage = require('node-test-package');
|
4
4
|
|
@@ -13,4 +13,4 @@ module.exports.NESTED = true;
|
|
13
13
|
module.exports = console.log("hello friend");
|
14
14
|
|
15
15
|
},{}]},{},[1])
|
16
|
-
//# sourceMappingURL=data:application/json;charset=utf-8;base64,
|
16
|
+
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL25vZGVfbW9kdWxlcy9icm93c2VyLXBhY2svX3ByZWx1ZGUuanMiLCJfc3RyZWFtXzAuanMiLCJmb28uanMiLCJuZXN0ZWQvaW5kZXguanMiLCIuLi8uLi8uLi9ub2RlX21vZHVsZXMvbm9kZS10ZXN0LXBhY2thZ2UvaW5kZXguanMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7QUNBQTtBQUNBO0FBQ0E7O0FDRkE7QUFDQTtBQUNBOztBQ0ZBO0FBQ0E7O0FDREE7QUFDQSIsImZpbGUiOiJnZW5lcmF0ZWQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlc0NvbnRlbnQiOlsiKGZ1bmN0aW9uKCl7ZnVuY3Rpb24gcihlLG4sdCl7ZnVuY3Rpb24gbyhpLGYpe2lmKCFuW2ldKXtpZighZVtpXSl7dmFyIGM9XCJmdW5jdGlvblwiPT10eXBlb2YgcmVxdWlyZSYmcmVxdWlyZTtpZighZiYmYylyZXR1cm4gYyhpLCEwKTtpZih1KXJldHVybiB1KGksITApO3ZhciBhPW5ldyBFcnJvcihcIkNhbm5vdCBmaW5kIG1vZHVsZSAnXCIraStcIidcIik7dGhyb3cgYS5jb2RlPVwiTU9EVUxFX05PVF9GT1VORFwiLGF9dmFyIHA9bltpXT17ZXhwb3J0czp7fX07ZVtpXVswXS5jYWxsKHAuZXhwb3J0cyxmdW5jdGlvbihyKXt2YXIgbj1lW2ldWzFdW3JdO3JldHVybiBvKG58fHIpfSxwLHAuZXhwb3J0cyxyLGUsbix0KX1yZXR1cm4gbltpXS5leHBvcnRzfWZvcih2YXIgdT1cImZ1bmN0aW9uXCI9PXR5cGVvZiByZXF1aXJlJiZyZXF1aXJlLGk9MDtpPHQubGVuZ3RoO2krKylvKHRbaV0pO3JldHVybiBvfXJldHVybiByfSkoKSIsInZhciBmb28gPSByZXF1aXJlKCcuL2ZvbycpO1xudmFyIG5vZGVUZXN0UGFja2FnZSA9IHJlcXVpcmUoJ25vZGUtdGVzdC1wYWNrYWdlJyk7XG4iLCJyZXF1aXJlKCcuL25lc3RlZCcpO1xubW9kdWxlLmV4cG9ydHMgPSBmdW5jdGlvbiAobikgeyByZXR1cm4gbiAqIDExIH1cbiIsIm1vZHVsZS5leHBvcnRzLk5FU1RFRCA9IHRydWU7XG4iLCJtb2R1bGUuZXhwb3J0cyA9IGNvbnNvbGUubG9nKFwiaGVsbG8gZnJpZW5kXCIpO1xuIl19;
|
data/test/fixtures/main.out.js
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
require=(function e
|
1
|
+
require=(function(){function r(e,n,t){function o(i,f){if(!n[i]){if(!e[i]){var c="function"==typeof require&&require;if(!f&&c)return c(i,!0);if(u)return u(i,!0);var a=new Error("Cannot find module '"+i+"'");throw a.code="MODULE_NOT_FOUND",a}var p=n[i]={exports:{}};e[i][0].call(p.exports,function(r){var n=e[i][1][r];return o(n||r)},p,p.exports,r,e,n,t)}return n[i].exports}for(var u="function"==typeof require&&require,i=0;i<t.length;i++)o(t[i]);return o}return r})()({1:[function(require,module,exports){
|
2
2
|
var library = require('./a_huge_library');
|
3
3
|
|
4
4
|
module.exports = function() {
|
data/test/fixtures/mocha.js
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
(function e
|
1
|
+
(function(){function r(e,n,t){function o(i,f){if(!n[i]){if(!e[i]){var c="function"==typeof require&&require;if(!f&&c)return c(i,!0);if(u)return u(i,!0);var a=new Error("Cannot find module '"+i+"'");throw a.code="MODULE_NOT_FOUND",a}var p=n[i]={exports:{}};e[i][0].call(p.exports,function(r){var n=e[i][1][r];return o(n||r)},p,p.exports,r,e,n,t)}return n[i].exports}for(var u="function"==typeof require&&require,i=0;i<t.length;i++)o(t[i]);return o}return r})()({1:[function(require,module,exports){
|
2
2
|
(function() {
|
3
3
|
var f, hello;
|
4
4
|
|
@@ -1,4 +1,4 @@
|
|
1
|
-
(function e
|
1
|
+
(function(){function r(e,n,t){function o(i,f){if(!n[i]){if(!e[i]){var c="function"==typeof require&&require;if(!f&&c)return c(i,!0);if(u)return u(i,!0);var a=new Error("Cannot find module '"+i+"'");throw a.code="MODULE_NOT_FOUND",a}var p=n[i]={exports:{}};e[i][0].call(p.exports,function(r){var n=e[i][1][r];return o(n||r)},p,p.exports,r,e,n,t)}return n[i].exports}for(var u="function"==typeof require&&require,i=0;i<t.length;i++)o(t[i]);return o}return r})()({1:[function(require,module,exports){
|
2
2
|
var answer = require('some_folder/answer');
|
3
3
|
|
4
4
|
console.log('answer', answer);
|
data/test/fixtures/plain.out.js
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
(function e
|
1
|
+
(function(){function r(e,n,t){function o(i,f){if(!n[i]){if(!e[i]){var c="function"==typeof require&&require;if(!f&&c)return c(i,!0);if(u)return u(i,!0);var a=new Error("Cannot find module '"+i+"'");throw a.code="MODULE_NOT_FOUND",a}var p=n[i]={exports:{}};e[i][0].call(p.exports,function(r){var n=e[i][1][r];return o(n||r)},p,p.exports,r,e,n,t)}return n[i].exports}for(var u="function"==typeof require&&require,i=0;i<t.length;i++)o(t[i]);return o}return r})()({1:[function(require,module,exports){
|
2
2
|
var string = "good old, simple plain javascript. No fancy modules here";
|
3
3
|
|
4
4
|
},{}]},{},[1]);
|
@@ -1,4 +1,4 @@
|
|
1
|
-
(function e
|
1
|
+
(function(){function r(e,n,t){function o(i,f){if(!n[i]){if(!e[i]){var c="function"==typeof require&&require;if(!f&&c)return c(i,!0);if(u)return u(i,!0);var a=new Error("Cannot find module '"+i+"'");throw a.code="MODULE_NOT_FOUND",a}var p=n[i]={exports:{}};e[i][0].call(p.exports,function(r){var n=e[i][1][r];return o(n||r)},p,p.exports,r,e,n,t)}return n[i].exports}for(var u="function"==typeof require&&require,i=0;i<t.length;i++)o(t[i]);return o}return r})()({1:[function(require,module,exports){
|
2
2
|
var library = require('./a_huge_library');
|
3
3
|
|
4
4
|
module.exports = function() {
|
@@ -1,4 +1,4 @@
|
|
1
|
-
(function e
|
1
|
+
(function(){function r(e,n,t){function o(i,f){if(!n[i]){if(!e[i]){var c="function"==typeof require&&require;if(!f&&c)return c(i,!0);if(u)return u(i,!0);var a=new Error("Cannot find module '"+i+"'");throw a.code="MODULE_NOT_FOUND",a}var p=n[i]={exports:{}};e[i][0].call(p.exports,function(r){var n=e[i][1][r];return o(n||r)},p,p.exports,r,e,n,t)}return n[i].exports}for(var u="function"==typeof require&&require,i=0;i<t.length;i++)o(t[i]);return o}return r})()({1:[function(require,module,exports){
|
2
2
|
'use strict';
|
3
3
|
|
4
4
|
var _simple_module = require('./simple_module');
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: browserify-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.
|
4
|
+
version: 4.4.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Henry Hsu, Cymen Vig
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2020-05-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: railties
|
@@ -17,9 +17,6 @@ dependencies:
|
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
19
|
version: 4.0.0
|
20
|
-
- - "<"
|
21
|
-
- !ruby/object:Gem::Version
|
22
|
-
version: '5.2'
|
23
20
|
type: :runtime
|
24
21
|
prerelease: false
|
25
22
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -27,9 +24,6 @@ dependencies:
|
|
27
24
|
- - ">="
|
28
25
|
- !ruby/object:Gem::Version
|
29
26
|
version: 4.0.0
|
30
|
-
- - "<"
|
31
|
-
- !ruby/object:Gem::Version
|
32
|
-
version: '5.2'
|
33
27
|
- !ruby/object:Gem::Dependency
|
34
28
|
name: sprockets
|
35
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -180,6 +174,7 @@ files:
|
|
180
174
|
- test/browserify_processor_test.rb
|
181
175
|
- test/compilation_test.rb
|
182
176
|
- test/dummy/Rakefile
|
177
|
+
- test/dummy/app/assets/config/manifest.js
|
183
178
|
- test/dummy/app/assets/javascripts/a_huge_library.js.example
|
184
179
|
- test/dummy/app/assets/javascripts/app_a_huge_library.js.example
|
185
180
|
- test/dummy/app/assets/javascripts/app_main.js.example
|
@@ -225,6 +220,7 @@ files:
|
|
225
220
|
- test/dummy/config/initializers/wrap_parameters.rb
|
226
221
|
- test/dummy/config/locales/en.yml
|
227
222
|
- test/dummy/config/routes.rb
|
223
|
+
- test/dummy/package-lock.json
|
228
224
|
- test/dummy/package.json
|
229
225
|
- test/dummy/public/404.html
|
230
226
|
- test/dummy/public/422.html
|
@@ -268,8 +264,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
268
264
|
- !ruby/object:Gem::Version
|
269
265
|
version: '0'
|
270
266
|
requirements: []
|
271
|
-
|
272
|
-
rubygems_version: 2.6.4
|
267
|
+
rubygems_version: 3.0.6
|
273
268
|
signing_key:
|
274
269
|
specification_version: 4
|
275
270
|
summary: 'Get the best of both worlds: Browserify + Rails = CommonJS Heaven'
|
@@ -277,6 +272,7 @@ test_files:
|
|
277
272
|
- test/browserify_processor_test.rb
|
278
273
|
- test/compilation_test.rb
|
279
274
|
- test/dummy/Rakefile
|
275
|
+
- test/dummy/app/assets/config/manifest.js
|
280
276
|
- test/dummy/app/assets/javascripts/a_huge_library.js.example
|
281
277
|
- test/dummy/app/assets/javascripts/app_a_huge_library.js.example
|
282
278
|
- test/dummy/app/assets/javascripts/app_main.js.example
|
@@ -322,6 +318,7 @@ test_files:
|
|
322
318
|
- test/dummy/config/initializers/wrap_parameters.rb
|
323
319
|
- test/dummy/config/locales/en.yml
|
324
320
|
- test/dummy/config/routes.rb
|
321
|
+
- test/dummy/package-lock.json
|
325
322
|
- test/dummy/package.json
|
326
323
|
- test/dummy/public/404.html
|
327
324
|
- test/dummy/public/422.html
|