This repository is private.
All pages are served over SSL and all pushing and pulling is done over SSH.
No one may fork, clone, or view it unless they are added as a member.
Every repository with this icon (
) is private.
Every repository with this icon (
This repository is public.
Anyone may fork, clone, or view it.
Every repository with this icon (
) is public.
Every repository with this icon (
Run the following if you haven't already:
gem sources -a http://gems.github.com
Install the gem(s):
sudo gem install schacon-grit
commit d12e68b82099ed241ef523bb94e1c1ca8d8484f4
tree a3c5aeba955678305edc942b806c39e4dcba8e5e
parent dfcfdd4847d318643449c81cd4891b01e3a50e09
tree a3c5aeba955678305edc942b806c39e4dcba8e5e
parent dfcfdd4847d318643449c81cd4891b01e3a50e09
... |
... |
|
... |
... |
|
... |
... |
|
... |
... |
|





Comments
You could also do
next if File.directory?(ref)at the start of the loop to avoid another indentation level.good point – are there other file types i would have to worry about? would
next if !File.file?(ref)be better? I’m not sure about symlinks, should they be there… is that an error, thus don’t read them, or possibly clever use of the ref system so do? Hm.I would suggest `next unless File.file?(ref)` rather than using if !
I’m personally moving against
unlessthese days because of the added cognitive overhead.BTW I added a “Preview” button because of this thread.