Fixed bug to allow filenames with spaces in assets_precompile.rb#510
Fixed bug to allow filenames with spaces in assets_precompile.rb#510dzirtusss wants to merge 0 commit intoshakacode:masterfrom dzirtusss:master
Conversation
|
@dzirtusss Tip: Feel free to review your own PR first putting in questions and comments. These are useful to the reviewer and it's a place to put discussions/comments that don't deserve to be in code comments. Reviewed 2 of 2 files at r1. lib/react_on_rails/assets_precompile.rb, line 44 [r1] (raw file):
we should probably use the block syntax so that the chdir only applies to the code inside of the block. lib/react_on_rails/assets_precompile.rb, line 45 [r1] (raw file):
be careful with the file expand we need a test to ensure that we're never using absolute paths I suspect that you don't need the expand_path. please be sure to verify this in the tests spec/react_on_rails/assets_precompile_spec.rb, line 28 [r1] (raw file):
if you ever check a symlink into github, then you can see the difference between the symlink that is the minimum relative path versus a full path. spec/react_on_rails/assets_precompile_spec.rb, line 33 [r1] (raw file):
Ideally, I'd like to see new tests with a file name that does not have spaces, so we can run the tests without the fix and see just these tests fail. Comments from Reviewable |
|
Thanks @dzirtusss Reviewed 2 of 2 files at r2. lib/react_on_rails/assets_precompile.rb, line 45 [r1] (raw file):
|
|
@dzirtusss Please see https://github.com/shakacode/react_on_rails/blob/master/CONTRIBUTING.md. We need to update the CHANGELOG.md. Please add that entry and rebase on top of master. |
|
Review status: all files reviewed at latest revision, 5 unresolved discussions, some commit checks failed. lib/react_on_rails/assets_precompile.rb, line 44 [r1] (raw file):
|
|
Review status: all files reviewed at latest revision, 5 unresolved discussions, some commit checks failed. lib/react_on_rails/assets_precompile.rb, line 45 [r1] (raw file):
|
|
Done Review status: 2 of 3 files reviewed at latest revision, 5 unresolved discussions. Comments from Reviewable |
|
Merge commits Review status: 2 of 3 files reviewed at latest revision, 5 unresolved discussions. Comments from Reviewable |
|
Reviewed 1 of 1 files at r3. spec/react_on_rails/assets_precompile_spec.rb, line 23 [r3] (raw file):
"creates a relative symlink, rather than an absolute path symlink" spec/react_on_rails/assets_precompile_spec.rb, line 30 [r3] (raw file):
Expect the readlink to equal the digest_filename? If we test for equality, that's a bit more of a sure thing. Only having an "expectation not" can result in a test that passes due to an error in writing the test. Comments from Reviewable |
|
Review status: all files reviewed at latest revision, 3 unresolved discussions. spec/react_on_rails/assets_precompile_spec.rb, line 30 [r3] (raw file):
Expect the readlink to equal the filename? Comments from Reviewable |
|
Review status: all files reviewed at latest revision, 3 unresolved discussions, some commit checks failed. spec/react_on_rails/assets_precompile_spec.rb, line 23 [r3] (raw file):
|
|
@dzirtusss Please try to reopen this one. |
Fixed bug to allow filenames with spaces in assets_precompile.rb its test spec, closes #505
This change is