Commit Graph

209 Commits

Author SHA1 Message Date
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
Jorge Dias
bfd83f2e87 Merge branch 'master' of git://github.com/technicalpickles/homesick 2011-05-31 14:09:35 +02:00
Josh Nichols
f0c947a50b Version bump to 0.7.0, and catch up on ChangeLog. 2011-05-30 21:22:21 -04: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
54697866f5 Add ruby-debug as a development dependency. 2011-05-30 21:03:34 -04:00
Josh Nichols
8c1f0bd05c Add placeholder specs to fill out eventually. 2011-05-30 20:14:04 -04:00
Ilkka Laukkanen
c3999f92b1 Print each castle's name when pulling all castles 2011-04-27 21:51:08 +03:00
Ilkka Laukkanen
c3f6bef152 Don't treat git repos in other repos as castles
Further abstracted locating castles into Homesick.all_castles which globs as
before, but after that rejects any paths that lie in other paths. This way
castles that have submodules don't cause extra output in e.g. list.
2011-04-27 21:39:02 +03:00
Ilkka Laukkanen
c870bfe442 Add --all option to pull to update all castles
Abstracted the logic for doing some operation for all castles into
Homesick.inside_each_castle() which takes a block argument. Homesick.list() is
also reimplemented to use this new method, because that's where the logic was
stolen from. The actual updating is also moved to the private method
update_castle() to make pull() shorter.
2011-04-27 21:01:29 +03:00
Sam Whitlock
06846afa77 Fixed minor spelling error in README 2011-03-02 08:22:21 -05:00
Joshua Nichols
944988cb63 Regenerate gemspec for version 0.6.1 v0.6.1 2010-11-13 14:05:24 -06:00
Joshua Nichols
6cd51597a3 Version bump to 0.6.1. 2010-11-13 13:59:34 -06:00
Joshua Nichols
6209080e0c Remove debug code. 2010-11-13 13:57:55 -06:00
Joshua Nichols
4a7e369c36 Add license. 2010-11-13 13:51:22 -06:00
Joshua Nichols
984da79210 Update to rspec 2.1.0. 2010-11-13 13:49:21 -06:00
Jorge
38b40c0f50 Making git repos uri non greedy so it works with uris with / 2010-10-30 21:31:59 +02:00
Joshua Nichols
d0097eb5b6 Regenerated gemspec for version 0.6.0 v0.6.0 2010-10-27 10:42:16 -04:00
Joshua Nichols
71303376ee Version bump to 0.6.0 2010-10-27 10:41:57 -04:00
Joshua Nichols
8dbd5a9b21 Spiked homesickrc support. Create a .homesickrc in a castle, and you will be prompted to eval it at clone. Runs in castle directory, and runs in the context of a Homesick instance 2010-10-27 10:09:24 -04: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
Joshua Nichols
bfbabc05d5 Removing copy-pasta 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
Jon Sackett
4776651b27 Updated dependencies to use a version of jeweler that's available in rubygems. 2010-09-30 19:59:45 -04:00
Joshua Nichols
832eade857 Regenerated gemspec for version 0.5.4 v0.5.4 2010-09-03 18:50:17 -04:00
Joshua Nichols
44ff9a8b4b Version bump to 0.5.4. 2010-09-03 18:50:05 -04:00
Joshua Nichols
3f26a74c71 Use || instead of or 2010-09-03 18:49:49 -04:00
Mathieu Sauve-Frankel
1041cb5160 make homesick symlink respect the force option
Signed-off-by: Joshua Nichols <josh@technicalpickles.com>
2010-09-03 18:49:25 -04:00
Joshua Nichols
04e7df1283 Regenerated gemspec for version 0.5.3 v0.5.3 2010-08-19 02:31:06 -04:00
Joshua Nichols
fd5d92eb12 Added Gemfile.lock. 2010-08-19 02:31:00 -04:00
Joshua Nichols
46d2c72776 Get rid of bad multibyte characters. 2010-08-19 02:30:02 -04:00
Joshua Nichols
03f8765279 Version bump to 0.5.3. 2010-08-18 21:15:03 -04:00
Joshua Nichols
9f027ad164 Updates for latest bundler/jeweler. 2010-08-18 21:14:04 -04:00
Joshua Nichols
68bd47126a Merge remote branch 'jacobat/bundler-src' 2010-08-18 20:06:44 -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
Jacob Atzen
cb5a71213f Add source to Gemfile so bundler works 2010-08-17 09:56:50 +02:00
Joshua Nichols
546f078f99 Regenerated gemspec for version 0.5.2 v0.5.2 2010-07-22 16:28:01 -04:00
Joshua Nichols
b71d75266c Version bump to 0.5.2. 2010-07-22 16:27:19 -04:00
Joshua Nichols
4a08ce4118 Added minimal thor version. 2010-07-22 16:27:05 -04:00
Joshua Nichols
c99039da0a Regenerated gemspec for version 0.5.1 v0.5.1 2010-05-18 21:07:43 -04:00
Joshua Nichols
2dc948d933 Actually bump. 2010-05-18 21:07:25 -04:00
Joshua Nichols
18e44b663c Regenerated gemspec for version 0.4.1 2010-05-18 21:06:28 -04:00
Joshua Nichols
7f3fa403aa Version bump to 0.5.0. 2010-05-18 21:05:20 -04:00
Joshua Nichols
55d47ea4f5 Added link to rip in readme. 2010-05-18 20:57:56 -04:00