Austin Lin
44080829e3
Update readme with correct file path for .homesick_subdir per technicalpickles/homesick@360e8185f7
2013-11-23 19:37:24 +01:00
David Simon
651e028d5b
Whoops, fixed typo
2013-11-23 19:37:24 +01:00
David Simon
6f3186df2f
Using DEFAULT_CASTLE_NAME in show_path, diff, status
2013-11-23 19:37:24 +01:00
David Simon
92c61f928e
Added three commands: show_path, status, diff
2013-11-23 19:37:24 +01:00
akahige
d3cb45f879
default castle name to constant
2013-11-23 19:37:24 +01:00
John Bellone
314e2932fb
Update homesick.rb to make https default for GitHub clones.
...
If we use HTTPS it is a lot easier for corporate worlds to manage proxies since its usually already done for us. Also HTTPS cloning is just as fast as the git protocol as of more recent versions.
2013-11-23 19:37:24 +01:00
akahige
8ee5165ccf
set default castle name: 'dotfiles' for some commands
2013-11-23 19:37:24 +01:00
muratayusuke
8f2a9e6703
remove duplicate spec
2013-11-23 19:37:24 +01:00
muratayusuke
f8a6fb9ce2
follow Ruby Style Guide for some points
2013-11-23 19:37:23 +01:00
muratayusuke
bf248cd645
don't fail test even if rubocop detects some offence
2013-11-23 19:36:38 +01:00
muratayusuke
1563814cb0
use single-quate if don't need double-quate
2013-11-23 19:36:37 +01:00
muratayusuke
91770998a7
don't install rubocop under ruby 1.9.2
2013-11-23 19:36:37 +01:00
muratayusuke
d7aca1025f
don't run rubocode on ruby 1.8.7
2013-11-23 19:36:37 +01:00
muratayusuke
b3298d18c8
fix coding style
2013-11-23 19:36:37 +01:00
muratayusuke
359147e7e8
use rubocop
2013-11-23 19:36:37 +01:00
muratayusuke
937f1912d7
Regenerate gemspec for version 0.9.1
2013-11-23 19:36:37 +01:00
muratayusuke
18c0e32309
bump up version
2013-11-23 19:36:37 +01:00
Fletcher Nichol
1518cb1155
Remove .git suffix on destination directory if URL ends with it.
...
For example, the following:
homesick clone git://github.com/technicalpickles/pickled-vim.git
should produce a castle directory of:
$HOME/.homesick/repos/pickled-vim
2013-11-23 19:36:37 +01:00
muratayusuke
c5b7dd2918
fix #35
2013-11-23 19:36:36 +01:00
muratayusuke
b668b7eda2
Regenerate gemspec for version 0.9.0
2013-11-23 19:36:36 +01:00
muratayusuke
a595ead2c6
bump up version and update changelog
2013-11-23 19:36:36 +01:00
muratayusuke
cc1ee544c3
move castle/home/.homesick_subdir to castle/.homesick_subdir
2013-11-23 19:36:36 +01:00
Yusuke Murata
a0862936e8
fix typo
2013-11-23 19:36:36 +01:00
Yusuke Murata
f91f5743b6
fix style of README
2013-11-23 19:36:36 +01:00
Yusuke Murata
eb74b90b42
fix style of README
2013-11-23 19:36:36 +01:00
muratayusuke
c3c108bd50
add .homesick_subdir explanation to README
2013-11-23 19:36:36 +01:00
muratayusuke
06975f79f5
deal with edge case: the parent and descendant are both listed in the manifest
2013-11-23 19:36:36 +01:00
muratayusuke
830106a168
refactor symlink
2013-11-23 19:36:35 +01:00
muratayusuke
aa2dfcc42f
refactor given_castle
2013-11-23 19:36:35 +01:00
muratayusuke
ed71fd6227
add ruby-2.0.0 to travis
2013-11-23 19:36:35 +01:00
muratayusuke
fd60528567
fix spec for ruby-1.8.7
2013-11-23 19:36:35 +01:00
muratayusuke
01934d5b00
replace .manifest to .homesick_subdir
2013-11-23 19:36:35 +01:00
muratayusuke
bba0e3ed7d
support nested dir in .homesick_subdir
2013-11-23 19:36:35 +01:00
Eric West
7db0b13d30
refactor, cleanup and tweak
2013-11-23 19:36:35 +01:00
Eric West
b1c6c8f835
Handling edge cases
...
Covers only edge cases related to tracking, not yet
handling linking or updating. Getting a bit hairy,
must be refactored.
2013-11-23 19:36:35 +01:00
muratayusuke
7620f40cb2
symlink subdirs with .homesick_subdir
2013-11-23 19:36:34 +01:00
Eric West
cf9058be04
Track makes entries in .manifest
...
When a user tracks a file or directory that is in
a nested folder, Homesick creates a .manifest in the
user's castle (if there isn't one already) and adds
an entry listing the file or directory's parent
directory (if it isn't already listed).
2013-11-23 19:36:34 +01:00
Eric West
234532ebef
Specs for track
2013-11-23 19:36:34 +01:00
Eric West
ccddbb1316
Track now properly traverses folder structure
2013-11-23 19:36:34 +01:00
muratayusuke
4ef315d4e2
Regenerate gemspec for version 0.8.1
2013-11-23 19:36:34 +01:00
muratayusuke
9b7fe331f6
update changelog
2013-11-23 19:36:34 +01:00
muratayusuke
eeff0b40fb
update rake version
...
"rake spec" showed following warning
/home/muratayusuke/.rvm/gems/ruby-1.9.3-p392/gems/rake-0.8.7/lib/rake/alt_system.rb:32: Use RbConfig instead of obsolete and deprecated Config.
(in /mnt/projects/homesick)
/home/muratayusuke/.rvm/rubies/ruby-1.9.3-p392/bin/ruby -S rspec spec/homesick_spec.rb
so update rake version to fix it.
2013-11-23 19:36:34 +01:00
Eric West
0c933c0085
Fixes glob to work with 2.0.0
...
homesick list fails on ruby 2.0.0-rc2, I think because they fixed this
bug: https://bugs.ruby-lang.org/issues/6977 , changing the way recursive
globs work. Test case:
```ruby
require "homesick"
require "pathname"
repos = Homesick.new.send :repos_dir
Dir.glob("#{repos}/**/*/.git") # => []
Dir.glob("#{repos}/**/*/.git", File::FNM_DOTMATCH) # => ["/home/eric/.homesick/repos/dotfiles/.git"]
```
This change, however, then broke 1.9.3, but removing the extra "/*"
works on both 1.9 and 2.0.
2013-11-23 19:36:34 +01:00
muratayusuke
a3d94fcca6
add build status to README
2013-11-23 19:36:33 +01:00
muratayusuke
9fe1d190da
prepare for release 0.8.0
2013-11-23 19:36:33 +01:00
Jacob Buys
73981c2e75
Build with Travis CI
2013-11-23 19:36:33 +01:00
Josh Nichols
107dec388e
Fix git_clone to work with github URLs like https://github.com/technicalpickles/dotpickles
2013-11-23 19:36:33 +01:00
muratayusuke
1df44aea40
enable recursive submodule
2013-11-23 19:36:33 +01:00
Jason Buckner
3bc623be7c
perform a git add when doing a homesick track
2013-11-23 19:36:33 +01:00
Jason Buckner
123e6cf82d
splits up castle commit from castle push for more fine-grained control
2013-11-23 19:34:08 +01:00