-
-
Notifications
You must be signed in to change notification settings - Fork 632
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fixed bug to allow filenames with spaces in assets_precompile.rb #510
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![Reviewable](https://camo.githubusercontent.com/1541c4039185914e83657d3683ec25920c672c6c5c7ab4240ee7bff601adec0b/68747470733a2f2f72657669657761626c652e696f2f7265766965775f627574746f6e2e737667)