From c4538b1c0d7db95d9f2a3e63f92164fcfdc377dd Mon Sep 17 00:00:00 2001 From: Jon Bernard Date: Sun, 1 Jan 2012 11:12:56 -0500 Subject: Mention support for directories in documentation Re: #6 --- README.rst | 3 +++ 1 file changed, 3 insertions(+) diff --git a/README.rst b/README.rst index 22813c5..39a5363 100644 --- a/README.rst +++ b/README.rst @@ -7,6 +7,9 @@ easy, allowing you to keep all your dotfiles in a single directory. Hosting is up to you. Using whatever VCS you prefer, or even rsync, you can easily distribute your dotfiles repository across multiple hosts. +Directories are supported as well. Any file object in your home directory that +starts with a ``.`` is fair game. + Interface --------- -- cgit v1.2.3 From 40d046af9ab265cfb9ab420c9dc8c10defea47be Mon Sep 17 00:00:00 2001 From: Jon Bernard Date: Sun, 1 Jan 2012 11:16:01 -0500 Subject: Fix adding a directory with a trailing slash Closes: #6 --- dotfiles/core.py | 1 + 1 file changed, 1 insertion(+) diff --git a/dotfiles/core.py b/dotfiles/core.py index aa0dce9..e9f34bc 100644 --- a/dotfiles/core.py +++ b/dotfiles/core.py @@ -137,6 +137,7 @@ class Dotfiles(object): def _perform_action(self, action, files): for file in files: + file = file.rstrip('/') if os.path.basename(file).startswith('.'): getattr(Dotfile(file, self._fqpn(file), self.homedir), action)() else: -- cgit v1.2.3 From a29704fc0b8c8dd80910dc41377b03ea00cd290b Mon Sep 17 00:00:00 2001 From: Jon Bernard Date: Sun, 1 Jan 2012 11:17:05 -0500 Subject: Improve wording of "unmanaged" with "unsynced" Closes: #5 --- README.rst | 2 +- dotfiles/cli.py | 2 +- dotfiles/core.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.rst b/README.rst index 39a5363..cc8f6b5 100644 --- a/README.rst +++ b/README.rst @@ -17,7 +17,7 @@ Interface Add dotfile(s) to the repository. ``-c, --check`` - Check for missing or unmanged dotfiles. + Check for missing or unsynced dotfiles. ``-l, --list`` List currently managed dotfiles, one per line. diff --git a/dotfiles/cli.py b/dotfiles/cli.py index 192144f..1de9f1c 100644 --- a/dotfiles/cli.py +++ b/dotfiles/cli.py @@ -91,7 +91,7 @@ def add_action_group(parser): action_group.add_option("-c", "--check", action="store_const", dest="action", const="check", - help="check for broken and unmanaged dotfiles") + help="check for broken and unsynced dotfiles") action_group.add_option("-l", "--list", action="store_const", dest="action", const="list", diff --git a/dotfiles/core.py b/dotfiles/core.py index e9f34bc..f6c675e 100644 --- a/dotfiles/core.py +++ b/dotfiles/core.py @@ -113,7 +113,7 @@ class Dotfiles(object): print dotfile def check(self): - """List only unmanaged and/or missing dotfiles.""" + """List only unsynced and/or missing dotfiles.""" self.list(verbose=False) -- cgit v1.2.3 From c595cf3473e90c4222a3752c0fecb238bb796b5b Mon Sep 17 00:00:00 2001 From: Jon Bernard Date: Sun, 1 Jan 2012 11:17:56 -0500 Subject: Add Reinout van Rees as a contributer --- AUTHORS.rst | 1 + 1 file changed, 1 insertion(+) diff --git a/AUTHORS.rst b/AUTHORS.rst index dc83965..2d33bcb 100644 --- a/AUTHORS.rst +++ b/AUTHORS.rst @@ -12,3 +12,4 @@ Patches and Suggestions - Anaƫl Beutot - Remco Wendt - Sebastian Rahlf +- Reinout van Rees -- cgit v1.2.3 From 73446482429d40903d0d65f2ce6785e7b56aff74 Mon Sep 17 00:00:00 2001 From: Jon Bernard Date: Sun, 1 Jan 2012 11:19:11 -0500 Subject: Document the ability to manage multiple repositories --- README.rst | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/README.rst b/README.rst index cc8f6b5..e396b75 100644 --- a/README.rst +++ b/README.rst @@ -7,6 +7,10 @@ easy, allowing you to keep all your dotfiles in a single directory. Hosting is up to you. Using whatever VCS you prefer, or even rsync, you can easily distribute your dotfiles repository across multiple hosts. +The repository can be specified at runtime, so you can manage multiple +repositories without hassle. See the Configuration_ section below for further +details. + Directories are supported as well. Any file object in your home directory that starts with a ``.`` is fair game. -- cgit v1.2.3 From 4a690c73c9d44f1450c98b0627d48f6caf2e9d7b Mon Sep 17 00:00:00 2001 From: Jon Bernard Date: Sun, 1 Jan 2012 11:23:06 -0500 Subject: Update copyright notice to include 2012 --- LICENSE.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/LICENSE.rst b/LICENSE.rst index d7d596d..e00fc0e 100644 --- a/LICENSE.rst +++ b/LICENSE.rst @@ -3,7 +3,7 @@ License ISC License. :: - Copyright (c) 2011, Jon Bernard + Copyright (c) 2011-2012, Jon Bernard Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above -- cgit v1.2.3 From 6cf8d5fdae4fda5be0fd3bcea4afd7883d56a188 Mon Sep 17 00:00:00 2001 From: Jon Bernard Date: Sun, 1 Jan 2012 11:40:01 -0500 Subject: Update history and bump version number --- HISTORY.rst | 7 +++++++ dotfiles/core.py | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/HISTORY.rst b/HISTORY.rst index 6f874d1..78da6ac 100644 --- a/HISTORY.rst +++ b/HISTORY.rst @@ -1,6 +1,13 @@ History ------- +0.5.2 ++++++ + +* Improve wording of "unmanaged" with "unsynced" +* Fix adding a directory with a trailing slash +* Mention support for directories in documentation + 0.5.1 +++++ diff --git a/dotfiles/core.py b/dotfiles/core.py index f6c675e..76a354d 100644 --- a/dotfiles/core.py +++ b/dotfiles/core.py @@ -12,7 +12,7 @@ import shutil import fnmatch -__version__ = '0.5.1' +__version__ = '0.5.2' __author__ = 'Jon Bernard' __license__ = 'ISC' -- cgit v1.2.3