browserify-rails 1.0.0 → 1.0.1

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: eab59961d4c925e7d459f3f6e06a259f607e0109
4
- data.tar.gz: 0043c07367218424a31d2138095d63031d7e81b7
3
+ metadata.gz: 623e7a2a5606d4caf7ed537333605418220c6aaf
4
+ data.tar.gz: 27eb2ed4a2e1629359cc8fddc59ea64abc19005a
5
5
  SHA512:
6
- metadata.gz: 4781e0719b6a3224d11566dcb06f6dee359f938d6c28fe89bd0c01e3ebb94e5d63d8d5ce8d4fa4fc1d111b388427f6b2f00c91927d193e8da480e40a88ff483c
7
- data.tar.gz: 7128609e8b7f92e222da8053f428cc0fddc54a86fb9120926c8ecbb3a7e2ee62708147837283ea334ea1167dfa4cabd27eed754d42f06697ad4ea76c7884e513
6
+ metadata.gz: fe7673ac57ccd0033ec6603b1f5c2344fa99bfee49552fd0be32d7c9ba0dbeabc28488bae07bd6aefd69dae72649520400ec128f3fa40fe299479754380739f2
7
+ data.tar.gz: 1d78365a8d271977c131679e422bf995e1ed38310a7c0d3a9e418fc543bbf83812c8a74051ec654347ad34a61d49cc28874ff6429af85b6bc5bccf9eff8b1abf
data/CHANGELOG.md CHANGED
@@ -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
+ ## [1.0.1] - 2015-06-08
5
+ - fix bug with exorcist and config.root being unset
6
+
4
7
  ## [1.0.0] - 2015-06-03
5
8
  - fix bugs when path has a space in it
6
9
 
@@ -248,7 +248,8 @@ module BrowserifyRails
248
248
 
249
249
  def exorcist_options
250
250
  exorcist_options = []
251
- exorcist_base_path = config.exorcist_base_path || config.root
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
@@ -1,3 +1,3 @@
1
1
  module BrowserifyRails
2
- VERSION = "1.0.0"
2
+ VERSION = "1.0.1"
3
3
  end
@@ -211,23 +211,23 @@ class BrowserifyTest < ActionDispatch::IntegrationTest
211
211
  end
212
212
  end
213
213
 
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
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.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-04 00:00:00.000000000 Z
11
+ date: 2015-06-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: railties