browserify-rails 2.2.1 → 3.0.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: b5198510e6b3f313af7eb8f80e5413033724b596
4
- data.tar.gz: b5b543b2ab50cd90dbc3d07e5f1d9ea69e7fbb6b
3
+ metadata.gz: ca17fb672cfb8ca820317accf1f92ffc7e67dd23
4
+ data.tar.gz: 8d0d51db9280899a89712731c6c7a80d87273ed5
5
5
  SHA512:
6
- metadata.gz: 64bb6146a3a13d61cc2285122c8b4945998356016785f8756b158d73c0efd29f6cf7f2db375d9036fee266f74b62e8aac53f452886c913e3f65a476d6e3754c1
7
- data.tar.gz: 8b3abbb270f70ed122bec07c57c870cab263fa9c7f36f6db0a265a954a984a9fd5935bc5f7d39ae1307296ece2f087a93bf026f86d2e52a17cf6430b70e80f00
6
+ metadata.gz: dd064eea27a383a0edd94ae6782d043db9181f6b5960c5a6abb77cb1a36444ac6f26293a4632e1aed7cf09681c243ab3eb37ad802155b27e9b42603e87308663
7
+ data.tar.gz: 2e1c8e5ab2912e054aaa3e643cc9063578520a0c207f0e9c0fea5ff6bb1ac78bba68ed64647fc97ceb26091a53b1f5ea782b22654713b436496029eb7378ba62
@@ -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.0.0] - 2016-02-17
5
+ - upgrade dependency on sprockets to >= 3.5.2
6
+
4
7
  ## [2.2.0] - 2016-01-01
5
8
  - fix another dependency issue impacting cache invalidation (see PR #131)
6
9
 
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # browserify-rails
2
2
 
3
- **If you are using react-rails or experience any issues with browiserfy-rails 2.x, please use the 1.5.x versions until 2.x is stabilized. Please see the issues for discussions and feel free to post your experience. The use of react-rails with browserify-rails is a bit of an anti-pattern in terms of going to CommonJS so it may never be supported. Consider using a browserify transform for React support.
3
+ **If you are using react-rails or experience any issues with browserify-rails 2.x, please use the 1.5.x versions until 2.x is stabilized. Please see the issues for discussions and feel free to post your experience. The use of react-rails with browserify-rails is a bit of an anti-pattern in terms of going to CommonJS so it may never be supported. Consider using a browserify transform for React support.
4
4
 
5
5
  [![Join the chat at https://gitter.im/browserify-rails/browserify-rails](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/browserify-rails/browserify-rails?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
6
6
  [![Gem Version](https://badge.fury.io/rb/browserify-rails.svg)](http://badge.fury.io/rb/browserify-rails)
@@ -223,6 +223,17 @@ buildpacks that run `bundle` and `npm install` on the target machine.
223
223
 
224
224
  $ heroku buildpacks:add https://github.com/heroku/heroku-buildpack-nodejs.git
225
225
  $ heroku buildpacks:add https://github.com/heroku/heroku-buildpack-ruby.git
226
+
227
+ ## Using Browserify Transforms
228
+
229
+ You can easily use a browserify transform by adding it to your `package.json`, then adding the transform flag to your `application.rb`, using `config.browserify_rails.commandline_options`. For example, here is how you can add ES6 support in your app:
230
+
231
+ 1. Add babelify to your `package.json` in your app's root directory, then run `npm install`
232
+ 2. Add this line to your config/application.rb:
233
+ `config.browserify_rails.commandline_options = "-t babelify --extension-\".es6\""`
234
+ 3. Create some `.es6` files and require them with `var m = require('./m.es6')` or `import m from './m.es6`
235
+ 4. Restart your server, and you now have ES6 support!
236
+
226
237
 
227
238
  ## Troubleshooting
228
239
 
@@ -20,7 +20,7 @@ Gem::Specification.new do |spec|
20
20
 
21
21
 
22
22
  spec.add_runtime_dependency "railties", ">= 4.0.0", "< 5.0"
23
- spec.add_runtime_dependency "sprockets", "> 3.0.2"
23
+ spec.add_runtime_dependency "sprockets", ">= 3.5.2"
24
24
 
25
25
  spec.add_development_dependency "bundler", ">= 1.3"
26
26
  spec.add_development_dependency "rake"
@@ -1,3 +1,3 @@
1
1
  module BrowserifyRails
2
- VERSION = "2.2.1"
2
+ VERSION = "3.0.0"
3
3
  end
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: 2.2.1
4
+ version: 3.0.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-01-08 00:00:00.000000000 Z
11
+ date: 2016-02-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: railties
@@ -34,16 +34,16 @@ dependencies:
34
34
  name: sprockets
35
35
  requirement: !ruby/object:Gem::Requirement
36
36
  requirements:
37
- - - ">"
37
+ - - ">="
38
38
  - !ruby/object:Gem::Version
39
- version: 3.0.2
39
+ version: 3.5.2
40
40
  type: :runtime
41
41
  prerelease: false
42
42
  version_requirements: !ruby/object:Gem::Requirement
43
43
  requirements:
44
- - - ">"
44
+ - - ">="
45
45
  - !ruby/object:Gem::Version
46
- version: 3.0.2
46
+ version: 3.5.2
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: bundler
49
49
  requirement: !ruby/object:Gem::Requirement
@@ -252,7 +252,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
252
252
  version: '0'
253
253
  requirements: []
254
254
  rubyforge_project:
255
- rubygems_version: 2.4.5
255
+ rubygems_version: 2.5.1
256
256
  signing_key:
257
257
  specification_version: 4
258
258
  summary: 'Get the best of both worlds: Browserify + Rails = CommonJS Heaven'