browserify-rails 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +3 -0
- data/lib/browserify-rails/browserify_processor.rb +2 -1
- data/lib/browserify-rails/version.rb +1 -1
- data/test/compilation_test.rb +17 -17
- 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: 623e7a2a5606d4caf7ed537333605418220c6aaf
|
4
|
+
data.tar.gz: 27eb2ed4a2e1629359cc8fddc59ea64abc19005a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fe7673ac57ccd0033ec6603b1f5c2344fa99bfee49552fd0be32d7c9ba0dbeabc28488bae07bd6aefd69dae72649520400ec128f3fa40fe299479754380739f2
|
7
|
+
data.tar.gz: 1d78365a8d271977c131679e422bf995e1ed38310a7c0d3a9e418fc543bbf83812c8a74051ec654347ad34a61d49cc28874ff6429af85b6bc5bccf9eff8b1abf
|
data/CHANGELOG.md
CHANGED
@@ -248,7 +248,8 @@ module BrowserifyRails
|
|
248
248
|
|
249
249
|
def exorcist_options
|
250
250
|
exorcist_options = []
|
251
|
-
|
251
|
+
root_path = config.root || File.expand_path('../..', __FILE__)
|
252
|
+
exorcist_base_path = config.exorcist_base_path || root_path
|
252
253
|
exorcist_options.push("-b #{exorcist_base_path}")
|
253
254
|
exorcist_options.join(" ")
|
254
255
|
end
|
data/test/compilation_test.rb
CHANGED
@@ -211,23 +211,23 @@ class BrowserifyTest < ActionDispatch::IntegrationTest
|
|
211
211
|
end
|
212
212
|
end
|
213
213
|
|
214
|
-
|
215
|
-
|
216
|
-
|
217
|
-
|
218
|
-
|
219
|
-
|
220
|
-
|
221
|
-
|
222
|
-
|
223
|
-
|
224
|
-
|
225
|
-
|
226
|
-
|
227
|
-
|
228
|
-
|
229
|
-
|
230
|
-
|
214
|
+
test "generates sourcemap and writes to file if --use-exorcist and default_base_path" do
|
215
|
+
Dummy::Application.config.browserify_rails.commandline_options = "-d"
|
216
|
+
Dummy::Application.config.browserify_rails.use_exorcist = true
|
217
|
+
Dummy::Application.config.browserify_rails.exorcist_base_path = nil
|
218
|
+
|
219
|
+
begin
|
220
|
+
expected_output = fixture("js-with-sourcemap-url.out.js")
|
221
|
+
|
222
|
+
get "/assets/application.js"
|
223
|
+
|
224
|
+
assert_response :success
|
225
|
+
assert_equal expected_output, @response.body.strip
|
226
|
+
ensure
|
227
|
+
Dummy::Application.config.browserify_rails.use_exorcist = false
|
228
|
+
Dummy::Application.config.browserify_rails.commandline_options = ""
|
229
|
+
end
|
230
|
+
end
|
231
231
|
|
232
232
|
test "throws BrowserifyError if something went wrong while executing browserify" do
|
233
233
|
File.open(File.join(Rails.root, "app/assets/javascripts/application.js"), "w+") do |f|
|
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: 1.0.
|
4
|
+
version: 1.0.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: 2015-06-
|
11
|
+
date: 2015-06-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: railties
|