nesquena / gitdocs

Open-source Dropbox using Ruby and Git
https://blog.codepath.com/2011/11/30/collaborate-and-track-tasks-with-ease-using-gitdocs/
MIT License
1.14k stars 48 forks source link

Added repository status to the CLI status display. #86

Closed acant closed 10 years ago

acant commented 10 years ago

This will show if the watched repositories are fully committed or need to be synced. It will be particularly useful to see if a fetch_only repository has commits which can be merged.

nesquena commented 10 years ago

Looks like the travis CI build failed?

acant commented 10 years ago

Yeah, there seems to be an issue with the character that I am using for marking needs_sync in the CLI, but only in ruby1.9. It was generating a syntax error, but I changed the character and added the encoding string, and now Aruba seems to not properly understand the character. But it does work fine in Ruby2.0, so I am hoping that I just need to specify the encoding more precisely to resolve this.

acant commented 10 years ago

@nesquena ready for a review and merge I removed the UTF-8 characters that I was trying to use in the status output used more plain ASCII characters, which fixes the failures under ruby1.9. We could try adding this again later if there is a method for consistently setting UTF-8 in ruby1.9, or when we drop support for ruby1.9. But not really a big deal, the ASCII characters work well enough.

acant commented 10 years ago

Forgot to update the CHANGELOG, but that should be fixed now.

nesquena commented 10 years ago

Awesome! Looks good, thanks for updating the changelog too.