Jeremy Cook
8b6bf92e9a
Applied fixes that allow tests to pass again.
2014-04-05 09:18:56 -04:00
Nicolas McCurdy
fa61e7b10e
Avoid using "should" in example descriptions
2014-04-04 01:53:23 -04:00
Nicolas McCurdy
8397dcacc5
Convert specs to RSpec 2.14.8 syntax with Transpec
...
This conversion is done by Transpec 1.10.4 with the following command:
transpec
* 39 conversions
from: obj.should
to: expect(obj).to
* 22 conversions
from: == expected
to: eq(expected)
* 18 conversions
from: obj.should_receive(:message)
to: expect(obj).to receive(:message)
* 13 conversions
from: obj.stub(:message)
to: allow(obj).to receive(:message)
* 11 conversions
from: obj.should_not
to: expect(obj).not_to
* 5 conversions
from: =~ /pattern/
to: match(/pattern/)
* 2 conversions
from: obj.should_not_receive(:message)
to: expect(obj).not_to receive(:message)
2014-04-04 01:37:44 -04:00
Jeremy Cook
d91628f811
Made tests more generic since file paths may be different on various
...
systems.
2014-03-08 17:26:07 -05:00
Nicolas McCurdy
98edb54ca4
Merge remote-tracking branch 'upstream/master' into rubocop-fixes
...
Conflicts:
lib/homesick.rb
2014-01-21 22:37:48 -05:00
Jeremy Cook
59f6239ea0
Renamed symlink command to link.
2014-01-21 17:21:07 -05:00
Nicolas McCurdy
c2cb6081e1
Fix some more code style issues with block params being in the wrong place
2014-01-20 23:26:29 -05:00
Nicolas McCurdy
95943deb82
Revert changes that use "\" and disable the line length cop
2014-01-20 21:03:21 -05:00
Nicolas McCurdy
82be04ad8a
Fix rubocop issues for some recently merged code
2014-01-16 00:22:13 -05:00
Nicolas McCurdy
0bbb82f9ba
Wrap all lines of Ruby code to 79 characters (maximum)
2014-01-15 23:44:39 -05:00
Nicolas McCurdy
12244abb56
Fix a few more syntax-related rubocop issues manually
2014-01-15 23:23:29 -05:00
Nicolas McCurdy
fc2bbb1d6e
Fix several rubocop issues with "rubocop -a"
2014-01-15 23:23:29 -05:00
Jeremy Cook
df8f6b1cb0
Added command to display current version of homesick.
2014-01-10 09:36:09 -05:00
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
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