Jeremy Cook
148d18565f
Added tests for untested methods.
2014-01-06 21:24:24 -05:00
Jeremy Cook
264d586863
Updated tests to remove shell output from test results.
2014-01-06 21:24:24 -05:00
Jeremy Cook
76bee65475
Updated gems to use test_construct, removing warning message.
2014-01-06 21:24:24 -05:00
Jeremy Cook
78271a9ed4
Added commands to cd into a castle and to open a shell and to open the
...
default editor in the root of a given castle.
2013-12-31 21:20:13 -05:00
Jeremy Cook
8f67188c19
Added new tests for status and commit
2013-12-31 21:18:14 -05:00
thilko
69c38774fe
ask user before start destroying
2013-11-23 21:01:53 +01:00
bcd87
e8b471ac97
Changed the spec, bundle exec rake works
2013-11-23 19:38:52 +01:00
Trae Robrock
17426583e0
Add test for parens in filenames, and fixed
2013-11-23 19:38:52 +01:00
muratayusuke
238658cf69
remove unused variables
2013-11-23 19:38:51 +01:00
muratayusuke
2a361d86e0
fix deprecated method: stub! -> stub
2013-11-23 19:38:51 +01:00
Trae Robrock
294fb3d4ce
Add tests for the rc command
2013-11-23 19:38:51 +01:00
Trae Robrock
342da7e250
Adding test for clone running homesickrc
2013-11-23 19:38:51 +01:00
John Bellone
9c52108035
Update specs to for change to https vs. git protocol.
2013-11-23 19:38:51 +01:00
Trae Robrock
b596e063f5
Add unlink functionality
2013-11-23 19:38:50 +01:00
David Simon
92c61f928e
Added three commands: show_path, status, diff
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
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