Skip to content

Instantly share code, notes, and snippets.

@RobinDaugherty
Last active December 7, 2018 12:45
Show Gist options
  • Save RobinDaugherty/2731f20d303e6506d451384df2189210 to your computer and use it in GitHub Desktop.
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+
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
105a106
> buf_complete = false
108a110,112
> buf_complete = true
> end
> if buf_complete
@will3216
Copy link

will3216 commented Oct 6, 2017

Nice work, really appreciate it!

@dekaikiwi
Copy link

dekaikiwi commented Oct 16, 2017

Pow started throwing this error last week. Thanks for the fix! It worked well!

@barrywoolgar
Copy link

If you've installed Pow via Brew, then the file to be patched is here:
/usr/local/Cellar/pow/0.5.0/libexec/node_modules/nack/lib/nack/server.rb

@pinzonjulian
Copy link

Hi!
I ran the code inside apply_this.sh, saw the changes in server.rb but the EOF error still pops up. Is there anything else I need to do for this to work?

Thanks!

@besi
Copy link

besi commented Nov 15, 2017

@pinzonjulian I did restart Pow using powder like so:

powder stop
# enter password
powder start

Or you can do

touch ~/.pow/restart.txt

@cdimartino
Copy link

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!

@eegrok
Copy link

eegrok commented Dec 29, 2017

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

@batshoes
Copy link

Awesome stuff guys. Thank You.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment