browserify-rails 0.5.0 → 0.5.1

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: 92cc91320466c3b1392909823b59c6477f3c635a
4
- data.tar.gz: 399c280e1430f2c0cda0977cd9e6f25c6c886704
3
+ metadata.gz: aeecc403d82b8bdd29c23d5ec203a95eb9af2ba0
4
+ data.tar.gz: 6c0192837995cb3608bc80200444f864b92bb09a
5
5
  SHA512:
6
- metadata.gz: e1ba97bb7bdce77d0e05dcf65f5f09b68e6375788013cb6de6c675199ec422458ef17396fc345d8c84a7bbe5bb40cb1ec2831874e47ab512ffc11cd4a1ba7a24
7
- data.tar.gz: dc5f427060167c6640d71511757a20c81dbb9d5df9080b7bd4896e5868381bb177c59841cd22dc8d17ffb1d97986fe883fed59f85a212fcb2064a39071c10a3d
6
+ metadata.gz: f37a94233e4b1c76c908b3fcfd4ce1ebe6c698f663beeddfebd05c5b2d2a42be0e08c005aa6ef8204e61df7a83b96dd847baca04e109e2aae9dbd41b63b0e4dd
7
+ data.tar.gz: 0d4220551f56097e05ef7687fae4ed5ffa0f856a186db0003f85a49c6aee8df6a4ee857bb399e8f79b73978206577d8e66e3943fe6e72d82d426a1768d874f0f
data/README.md CHANGED
@@ -3,7 +3,7 @@
3
3
 
4
4
  This library adds CommonJS module support to Sprockets (via Browserify).
5
5
 
6
- It let's you mix and match `//= require` directives and `require()` calls for including plain javascript files as well as modules.
6
+ It lets you mix and match `//= require` directives and `require()` calls for including plain javascript files as well as modules.
7
7
 
8
8
  1. Manage JS modules with `npm`
9
9
  2. Serve assets with Sprockets
@@ -80,7 +80,7 @@ config.browserify_rails.commandline_options = "-t coffeeify --extension=\".js.co
80
80
 
81
81
  ### Global configuration
82
82
 
83
- You can configure different options of browserify-rails by adding one of lines
83
+ You can configure different options of browserify-rails by adding one of the lines
84
84
  mentioned below into your `config/application.rb` or your environment file
85
85
  (`config/environments/*.rb`):
86
86
 
@@ -165,7 +165,7 @@ invalid.
165
165
 
166
166
  ### Clear the asset pipeline cache
167
167
 
168
- The Rails asset pipeline caches some files in the `tmp` directory off of
168
+ The Rails asset pipeline caches some files in the `tmp` directory inside
169
169
  Rails root. It can happen that sometimes the cache does not get invalidated
170
170
  correctly. You can manually clear the cache in at least two ways:
171
171
 
@@ -55,7 +55,7 @@ module BrowserifyRails
55
55
  # Be here as strict as possible, so that non-commonjs files are not
56
56
  # preprocessed.
57
57
  def commonjs_module?
58
- data.to_s.include?("module.exports") || data.present? && dependencies.length > 0
58
+ data.to_s.include?("module.exports") || data.present? && data.to_s.include?("require") && dependencies.length > 0
59
59
  end
60
60
 
61
61
  # This primarily filters out required files from node modules
@@ -1,3 +1,3 @@
1
1
  module BrowserifyRails
2
- VERSION = "0.5.0"
2
+ VERSION = "0.5.1"
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: 0.5.0
4
+ version: 0.5.1
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: 2014-10-29 00:00:00.000000000 Z
11
+ date: 2014-11-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: sprockets