I'm not quite sure why the expect syntax is that much better.
row.day.should eq 'value' seems much more readable. I would love to hear from you why you use 'expect'.
You specify this for the content-type:
response.headers['Content-Type'] = 'text/event-stream'
Doesn't this only go to WebSocket stuff and not a file? My tip is specifically geared towards streaming to a file download.
Anyways, thanks for the examples.
Are you sure you want to alias destructive calls to such simple commands? Personally, I leave those out of my aliases because I want to make sure I know what I'm doing before issuing those commands.
@kablamo I avoided letters for this because I never know when I might trigger that combination and because having it on the j key would cause it to pause slightly when you type j. I've also heard on a few screencasts that some of the faster types don't like repetitive keystrokes since they can be slower.
@daniel-marschner Is the file in the repo yet? The update-index action only works on files that are in your repo. If its not in the repo yet, you can add it to .gitignore.
That makes sense. I thought your original idea was to sort all the gems in the top-level of the Gemfile.
Why would you want to sort your Gems? Usually (as pointed out above) they're in groups. Sometimes they're also sorted according to purpose.
you could just use
rvm gemset empty