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 +4 -4
- data/README.md +3 -3
- data/lib/browserify-rails/browserify_processor.rb +1 -1
- data/lib/browserify-rails/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: aeecc403d82b8bdd29c23d5ec203a95eb9af2ba0
|
4
|
+
data.tar.gz: 6c0192837995cb3608bc80200444f864b92bb09a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
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
|
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
|
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.
|
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-
|
11
|
+
date: 2014-11-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: sprockets
|