browserify-rails 0.7.4 → 0.7.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.gitignore +1 -0
- data/lib/browserify-rails/browserify_processor.rb +10 -10
- data/lib/browserify-rails/version.rb +1 -1
- data/test/compilation_test.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: 6c5c5de25c1267253cd55b2f8f74cdd597555567
|
4
|
+
data.tar.gz: 66a532d5b0ed42587bfd136af0b939dfd01bf5b2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 11b3d5fc5a93284435b96b2037fb7f9c39aa8bc7adfd1c1022d5116a2725450230b503665b1bcc97f0d88a5c945f67f3f197bb13b40ce074b2958f3e3867b63c
|
7
|
+
data.tar.gz: bbe05cec002b6a91459b7d0f07bd2126727a0fd262aafc8b484a1151e19ff67f3d26cca2a2ce8987c5db2c9a30547b424bbb797cf2b9f3e3d72e2ee64900842d
|
data/.gitignore
CHANGED
@@ -28,15 +28,15 @@ module BrowserifyRails
|
|
28
28
|
end
|
29
29
|
|
30
30
|
def tmp_path
|
31
|
-
@tmp_path ||= Rails.root.join("tmp", "browserify-rails").freeze
|
31
|
+
@tmp_path ||= Rails.root.join("tmp", "cache", "browserify-rails").freeze
|
32
32
|
end
|
33
33
|
|
34
|
-
def
|
35
|
-
@
|
34
|
+
def browserify_cmd
|
35
|
+
@browserify_cmd ||= File.join(config.node_bin, "browserify").freeze
|
36
36
|
end
|
37
37
|
|
38
|
-
def
|
39
|
-
@
|
38
|
+
def browserifyinc_cmd
|
39
|
+
@browserifyinc_cmd ||= File.join(config.node_bin, "browserifyinc").freeze
|
40
40
|
end
|
41
41
|
|
42
42
|
def ensure_tmp_dir_exists!
|
@@ -47,13 +47,13 @@ module BrowserifyRails
|
|
47
47
|
error = ->(cmd) { "Unable to run #{cmd}. Ensure you have installed it with npm." }
|
48
48
|
|
49
49
|
# Browserify has to be installed in any case
|
50
|
-
if !File.exists?(rails_path(
|
51
|
-
raise BrowserifyRails::BrowserifyError.new(error.call(
|
50
|
+
if !File.exists?(rails_path(browserify_cmd))
|
51
|
+
raise BrowserifyRails::BrowserifyError.new(error.call(browserify_cmd))
|
52
52
|
end
|
53
53
|
|
54
54
|
# If the user wants to use browserifyinc, we need to ensure it's there too
|
55
|
-
if config.use_browserifyinc && !File.exists?(rails_path(
|
56
|
-
raise BrowserifyRails::BrowserifyError.new(error.call(
|
55
|
+
if config.use_browserifyinc && !File.exists?(rails_path(browserifyinc_cmd))
|
56
|
+
raise BrowserifyRails::BrowserifyError.new(error.call(browserifyinc_cmd))
|
57
57
|
end
|
58
58
|
end
|
59
59
|
|
@@ -175,7 +175,7 @@ module BrowserifyRails
|
|
175
175
|
end
|
176
176
|
|
177
177
|
def browserify_command(force=nil)
|
178
|
-
rails_path(uses_browserifyinc(force) ?
|
178
|
+
rails_path(uses_browserifyinc(force) ? browserifyinc_cmd : browserify_cmd)
|
179
179
|
end
|
180
180
|
|
181
181
|
def options
|
data/test/compilation_test.rb
CHANGED
@@ -15,7 +15,7 @@ class BrowserifyTest < ActionController::IntegrationTest
|
|
15
15
|
# Reset config on each run
|
16
16
|
Dummy::Application.config.browserify_rails.force = false
|
17
17
|
|
18
|
-
cache_file = File.join(Rails.root, "tmp/browserify-rails/browserifyinc-cache.json")
|
18
|
+
cache_file = File.join(Rails.root, "tmp/cache/browserify-rails/browserifyinc-cache.json")
|
19
19
|
File.delete(cache_file) if File.exists?(cache_file)
|
20
20
|
|
21
21
|
copy_example_file "application.js.example"
|
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.7.
|
4
|
+
version: 0.7.5
|
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: 2015-
|
11
|
+
date: 2015-03-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: sprockets
|