Last active
December 7, 2018 12:45
-
-
Save RobinDaugherty/2731f20d303e6506d451384df2189210 to your computer and use it in GitHub Desktop.
Fix Pow's nack so that better_errors works on ruby 2.1+
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
curl -L https://gist.githubusercontent.com/RobinDaugherty/2731f20d303e6506d451384df2189210/raw/b52e6231170b3dce39633db29634dc892751910f/pow_better_errors_fix.patch | | |
patch ~/Library/Application\ Support/Pow/Versions/0.5.0/node_modules/nack/lib/nack/server.rb |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
105a106 | |
> buf_complete = false | |
108a110,112 | |
> buf_complete = true | |
> end | |
> if buf_complete |
Thanks so much for this patch! pow started throwing this error for me today for some unknown reason. Applied cleanly and after a restart it's working as expected again!
Still works great with Pow 0.6.0 -- thanks much -- just need to apply the patch to the new directory, as below:
curl -L https://gist.githubusercontent.com/RobinDaugherty/2731f20d303e6506d451384df2189210/raw/b52e6231170b3dce39633db29634dc892751910f/pow_better_errors_fix.patch | patch ~/Library/Application\ Support/Pow/Versions/0.6.0/node_modules/nack/lib/nack/server.rb
Awesome stuff guys. Thank You.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@pinzonjulian I did restart Pow using powder like so:
Or you can do