browserify-rails 3.2.0 → 3.3.0

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: 4fb1f0ca991ae551e1d31c9ef7b573e110e7b753
4
- data.tar.gz: 85237ceabbbb3d394f64f374fb8fd9eef56e9f85
3
+ metadata.gz: ded26efbf99740ed0e3113615814cf62b6a5a9c3
4
+ data.tar.gz: dad06870605bb33e94ccd23c40348214ef7b848d
5
5
  SHA512:
6
- metadata.gz: 31cc31798d53574d9efeb951a3afbceb192d3295a25fddd73083c0bce8baec8ac1ef0fc41c544024c4ae2227e3d4f90ab54c12ecdc21f1fec0c94c30376cad76
7
- data.tar.gz: 7ba23f9ce430091fa490b87ffe1b759b0426a0827b8ef434dee858271d34ebf11630b5ea1500566f7d5e0d4411b3ef745007a4ddd83bbf053031681b064541ea
6
+ metadata.gz: 42c1f0ea5255791195f342a17db7600ee7b73142970c4659660ac93a7031437141e0efc85de4035d4694f46bb0d4382f12e0f2b55f0e29f0be3bf75c29d04b0d
7
+ data.tar.gz: 404fa3190f5cf020efa1d707dd1588469215a7c04c693e4ba925cf3ba1ebc94ee97bafcd77429cf1bd94f85ecf756385ff1eb4a3da4fa07c7384564b511f7b4f
data/CHANGELOG.md CHANGED
@@ -1,6 +1,9 @@
1
1
  # Change Log
2
2
  All notable changes to this project will be documented in this file going forward.
3
3
 
4
+ ## [3.3.0] - 2016-10-25
5
+ - normalize dependency paths for cross platform compability thanks to msjonker
6
+
4
7
  ## [3.2.0] - 2016-09-14
5
8
  - make compatible with sprockets 4 (thanks marvwhere!)
6
9
  - update dummy rails to use current browserify and browserify-incremental
data/README.md CHANGED
@@ -1,6 +1,8 @@
1
1
  # browserify-rails
2
2
 
3
- [![Gem Version](https://badge.fury.io/rb/browserify-rails.svg)](http://badge.fury.io/rb/browserify-rails)
3
+ This project is currently in maintenance mode. New contributors are more than welcome!
4
+
5
+ [![Gem Version](https://badge.fury.io/rb/browserify-rails.svg)](http://badge.fury.io/rb/browserify-rails) [![](https://img.shields.io/gem/dt/browserify-rails.svg)](https://rubygems.org/gems/browserify-rails)
4
6
 
5
7
  This library adds CommonJS module support to Sprockets (via Browserify).
6
8
 
@@ -298,11 +300,6 @@ and external entries for the involved modules.
298
300
  Use a tool like ProcMan to kick off a webpack or browserify process to rebuild your JavaScript on change. Reference the bundle in your Rails template and away you go. With webpack, you can even use the dev server and point to the dev server port in your Rails template to load JavaScript directly from webpack (it'll block on build so you'll always get your latest code). This does require configuring webpack hot middleware to have a port (see [__webpack_hmr goes to the wrong port and fails](http://stackoverflow.com/questions/35446109/webpack-hmr-goes-to-the-wrong-port-and-fails/35446292#35446292)).
299
301
 
300
302
 
301
- ### react_on_rails
302
-
303
- [Webpack](http://webpack.github.io/) is a popular alternative to Browserify for JavaScript tooling. A quick [Google search](https://www.google.com/search?q=browserify+vs+webpack&gws_rd=ssl) yields many articles on this topic. If you wish to use Webpack with Rails, the most popular solution is the gem [github.com/shakacode/react_on_rails](https://github.com/shakacode/react_on_rails/). While this gem focuses on React integration, it offers a solid example of how to integrate Webpack into your Rails workflow, even supporting hot-module-reloading. It also provides useful helpers to ensure that your Webpack created files are ready before tests run. A live example of these techniques can be found at [github.com/shakacode/react-webpack-rails-tutorial](https://github.com/shakacode/react-webpack-rails-tutorial/).
304
-
305
-
306
303
  ## Contributors
307
304
 
308
305
  * [Henry Hsu](https://github.com/hsume2)
@@ -142,7 +142,12 @@ module BrowserifyRails
142
142
  # option to get a list of files.
143
143
  list = run_browserify(nil, "--list")
144
144
 
145
- list.lines.map(&:strip).select do |path|
145
+ cleaned_paths = list.lines.map do |path|
146
+ # clean and normalize paths for all operating systems
147
+ Pathname.new(path.strip).cleanpath.to_s
148
+ end
149
+
150
+ cleaned_paths.select do |path|
146
151
  # Filter the temp file, where browserify caches the input stream
147
152
  File.exist?(path)
148
153
  end
@@ -1,3 +1,3 @@
1
1
  module BrowserifyRails
2
- VERSION = "3.2.0"
2
+ VERSION = "3.3.0"
3
3
  end
@@ -14,4 +14,3 @@ module.exports = console.log("hello friend");
14
14
 
15
15
  },{}]},{},[1])
16
16
  //# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL25vZGVfbW9kdWxlcy9icm93c2VyLXBhY2svX3ByZWx1ZGUuanMiLCJfc3RyZWFtXzAuanMiLCJmb28uanMiLCJuZXN0ZWQvaW5kZXguanMiLCIuLi8uLi8uLi9ub2RlX21vZHVsZXMvbm9kZS10ZXN0LXBhY2thZ2UvaW5kZXguanMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7QUNBQTtBQUNBO0FBQ0E7O0FDRkE7QUFDQTtBQUNBOztBQ0ZBO0FBQ0E7O0FDREE7QUFDQSIsImZpbGUiOiJnZW5lcmF0ZWQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlc0NvbnRlbnQiOlsiKGZ1bmN0aW9uIGUodCxuLHIpe2Z1bmN0aW9uIHMobyx1KXtpZighbltvXSl7aWYoIXRbb10pe3ZhciBhPXR5cGVvZiByZXF1aXJlPT1cImZ1bmN0aW9uXCImJnJlcXVpcmU7aWYoIXUmJmEpcmV0dXJuIGEobywhMCk7aWYoaSlyZXR1cm4gaShvLCEwKTt2YXIgZj1uZXcgRXJyb3IoXCJDYW5ub3QgZmluZCBtb2R1bGUgJ1wiK28rXCInXCIpO3Rocm93IGYuY29kZT1cIk1PRFVMRV9OT1RfRk9VTkRcIixmfXZhciBsPW5bb109e2V4cG9ydHM6e319O3Rbb11bMF0uY2FsbChsLmV4cG9ydHMsZnVuY3Rpb24oZSl7dmFyIG49dFtvXVsxXVtlXTtyZXR1cm4gcyhuP246ZSl9LGwsbC5leHBvcnRzLGUsdCxuLHIpfXJldHVybiBuW29dLmV4cG9ydHN9dmFyIGk9dHlwZW9mIHJlcXVpcmU9PVwiZnVuY3Rpb25cIiYmcmVxdWlyZTtmb3IodmFyIG89MDtvPHIubGVuZ3RoO28rKylzKHJbb10pO3JldHVybiBzfSkiLCJ2YXIgZm9vID0gcmVxdWlyZSgnLi9mb28nKTtcbnZhciBub2RlVGVzdFBhY2thZ2UgPSByZXF1aXJlKCdub2RlLXRlc3QtcGFja2FnZScpO1xuIiwicmVxdWlyZSgnLi9uZXN0ZWQnKTtcbm1vZHVsZS5leHBvcnRzID0gZnVuY3Rpb24gKG4pIHsgcmV0dXJuIG4gKiAxMSB9XG4iLCJtb2R1bGUuZXhwb3J0cy5ORVNURUQgPSB0cnVlO1xuIiwibW9kdWxlLmV4cG9ydHMgPSBjb25zb2xlLmxvZyhcImhlbGxvIGZyaWVuZFwiKTtcbiJdfQ==
17
- ;
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: 3.2.0
4
+ version: 3.3.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: 2016-09-14 00:00:00.000000000 Z
11
+ date: 2016-10-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: railties
@@ -269,7 +269,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
269
269
  version: '0'
270
270
  requirements: []
271
271
  rubyforge_project:
272
- rubygems_version: 2.5.1
272
+ rubygems_version: 2.6.4
273
273
  signing_key:
274
274
  specification_version: 4
275
275
  summary: 'Get the best of both worlds: Browserify + Rails = CommonJS Heaven'