muratayusuke
21cbb2c697
follow Ruby Style Guide for some points
2013-06-19 17:21:24 +00:00
muratayusuke
37b55bf934
use single-quate if don't need double-quate
2013-06-19 16:23:00 +00:00
muratayusuke
b1f2742422
fix coding style
2013-06-19 15:30:18 +00:00
Fletcher Nichol
024856e538
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-06-16 10:47:53 -06:00
muratayusuke
e530df7239
fix #35
2013-06-09 23:10:21 +00:00
muratayusuke
360e8185f7
move castle/home/.homesick_subdir to castle/.homesick_subdir
2013-06-06 12:39:41 +00:00
muratayusuke
8e58a3f5e2
deal with edge case: the parent and descendant are both listed in the manifest
2013-06-04 17:36:47 +00:00
muratayusuke
97fe1686f5
refactor given_castle
2013-05-30 17:38:06 +00:00
muratayusuke
bf1fc58e10
fix spec for ruby-1.8.7
2013-05-30 14:33:08 +00:00
muratayusuke
3559d825ca
replace .manifest to .homesick_subdir
2013-05-27 18:08:09 +00:00
muratayusuke
2d54086d89
Merge remote-tracking branch 'edubkendo/nested_dirs' into feature/merge_directory
2013-05-27 16:13:31 +00:00
muratayusuke
c31c67a3eb
support nested dir in .homesick_subdir
2013-05-26 17:12:28 +00:00
Eric West
6867ef78dc
Handling edge cases
...
Covers only edge cases related to tracking, not yet
handling linking or updating. Getting a bit hairy,
must be refactored.
2013-05-24 16:24:42 -05:00
muratayusuke
a76d09d3f6
symlink subdirs with .homesick_subdir
2013-05-24 17:40:35 +00:00
Eric West
b93eea0e24
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-05-24 07:52:54 -05:00
Eric West
7332aa4acd
Specs for track
2013-05-20 21:06:31 -05:00
Jason Buckner
d8291edae0
splits up castle commit from castle push for more fine-grained control
2012-11-24 23:18:48 -08:00
Jason Buckner
38a43ba7ff
add homesick push to readme, a placeholder test, and removed the all option from git push
2012-11-24 21:24:41 -08:00
Jacob Buys
9ced2921d9
Fix overriding existing symlinks that point to directories.
2011-08-23 22:04:00 +02:00
Jacob Buys
fa99a89bbf
Use RSpec's let feature instead of instance variables.
2011-08-21 22:36:50 +02:00
Jacob Buys
f1a02b8afa
Added support for linking non-dotfiles.
2011-08-21 22:22:23 +02:00
Jacob Buys
6e4e60fc64
Silence thor output during tests.
2011-08-21 22:19:06 +02:00
Jacob Buys
4f5e77d189
Refactored tests to use given_castle and fewer mocks.
2011-08-21 22:18:55 +02:00
Jacob Buys
4fa7ce416b
Made specs for list pass, refactored track to use given_castle.
2011-08-21 22:04:57 +02:00
Jacob Buys
4d9f75b7b0
Extract common setup into spec_helper, add given_castle helper.
2011-08-21 21:54:25 +02:00
Josh Nichols
e19617be2f
Don't try to symlink a castle to itself. Fixes #14
2011-05-30 21:04:41 -04:00
Josh Nichols
8c1f0bd05c
Add placeholder specs to fill out eventually.
2011-05-30 20:14:04 -04:00
Joshua Nichols
984da79210
Update to rspec 2.1.0.
2010-11-13 13:49:21 -06:00
Joshua Nichols
f82dc905a2
Tweaks to track. Don't add & commit newly tracked file. Also fix tests to not be spitting out to stdout.
2010-10-27 08:38:30 -04:00
j.c.sackett
58767454b3
Added track command.
...
* Moves a specified file into the specified castle.
* Symlinks it into its original position.
Signed-off-by: Joshua Nichols <josh@technicalpickles.com >
2010-10-27 08:37:56 -04:00
Jacob Atzen
f9c351f941
Handle cloning of uri's based on ssh aliases like host:repos
2010-08-17 10:14:19 +02:00
Jacob Atzen
0440cd672d
Don't try to clone uri's without a corresponding destination
...
The code throws the exception
undefined method `join' for nil:NilClass
if destionation doesn't exist - so it's better to not call git_clone if
destination is not present.
2010-08-17 10:12:59 +02:00
Joshua Nichols
3efee55f03
Fix listing of github-style cloned repos.
2010-05-18 20:42:45 -04:00
Joshua Nichols
9a22513ba4
Allow symlinking existing directories into repos, instead of cloning.
2010-04-01 21:19:25 -04:00
Joshua Nichols
5ac2a0739a
Clone github repos into username/repo instead of username_repo, for more consistent use with symlink.
2010-04-01 21:08:36 -04:00
Joshua Nichols
0579f94430
Moving towards testing list more.
2010-04-01 20:59:24 -04:00
Joshua Nichols
c50464e366
Added more clone specs.
2010-04-01 20:17:47 -04:00
Joshua Nichols
c5f8563f71
Shuffled specs around.
2010-04-01 20:14:29 -04:00
Joshua Nichols
265131cfa9
Refactoring how stuff gets cloned.
2010-03-10 09:07:10 -05:00
Joshua Nichols
3fb5f5b0d9
Use construct for stubbing user_dir.
2010-03-10 08:31:44 -05:00
Joshua Nichols
7fd44c7fe5
Added devver-construct.
2010-03-10 08:25:16 -05:00
Will Farrington
39652513de
Let's obey the column 80 rule.
2010-03-04 01:40:17 -05:00
Will Farrington
23e318b001
Started adding tests.
2010-03-04 01:34:14 -05:00
Joshua Nichols
0277901561
SPIIIIIKE
2010-03-04 00:19:35 -05:00