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
1563814cb0
use single-quate if don't need double-quate
2013-11-23 19:36:37 +01:00
muratayusuke
b3298d18c8
fix coding style
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
cc1ee544c3
move castle/home/.homesick_subdir to castle/.homesick_subdir
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
aa2dfcc42f
refactor given_castle
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
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
Jason Buckner
123e6cf82d
splits up castle commit from castle push for more fine-grained control
2013-11-23 19:34:08 +01:00
Jason Buckner
f18a4dc16f
add homesick push to readme, a placeholder test, and removed the all option from git push
2013-11-23 19:34:07 +01:00
Thilko Richter
8a41dca46d
destroy action implemented
2012-09-06 07:38:54 +02: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