1
0
Fork 0
mirror of synced 2024-11-10 10:58:57 -05:00
Commit graph

195 commits

Author SHA1 Message Date
Anish Athalye
191559601a Fix linking when using both relink and relative
Prior to this patch, the following config led to incorrect behavior:

    - link:
        ~/.folder/file:
          path: file
          create: true
          relative: true
          relink: true

Prior to the change, running the config the first time would result in
expected behavior. However, running the config for the second time would
result in deletion and re-creation of the link (even when the link is
correct).

This patch improves the interaction of relink and relative, taking
relative paths into account when checking the validity of existing links
in the `_delete()` method.
2016-04-07 14:45:46 -04:00
Anish Athalye
3d9b3ae2a8 Fix link 2016-03-26 09:16:41 -04:00
Anish Athalye
1374416362 Add link to wiki 2016-03-20 08:34:29 -04:00
Anish Athalye
56aeffa387 Switch to Debian for testing in Vagrant 2016-03-05 02:07:01 -05:00
Anish Athalye
f52bbd1eec Add default options
This feature was implemented with feedback from Aleks Kamko
<aykamko@gmail.com> and Casey Rodarmor <casey@rodarmor.com>.
2016-03-03 09:42:50 -05:00
Anish Athalye
daf8d82e02 Add functionality to create relative links
This commit adds an option to the extended configuration syntax for
linking files and directories. Enabling the relative option makes it so
that symbolic links are created with relative paths instead of absolute
paths.
2016-02-14 23:06:52 -05:00
Anish Athalye
c402396c58 Add documentation and tests for plugins 2016-02-06 15:23:39 -05:00
Anish Athalye
aaf093b124 Merge branch 'casey/directive-plugins' 2016-02-06 15:17:47 -05:00
Casey Rodarmor
eeb4c284fb Add plugin loader 2016-02-06 15:14:35 -05:00
Anish Athalye
ba9e9cbe70 Update dates 2016-01-31 08:03:06 -05:00
Anish Athalye
38666c8937 Merge branch 'bchretien/master' 2016-01-18 04:16:04 -05:00
Benjamin Chrétien
c536f5fa3f Travis: use container-based infrastructure 2016-01-18 13:14:58 +09:00
Benjamin Chrétien
9670a7b6fa Travis: add guard to test_travis 2016-01-18 13:14:56 +09:00
Anish Athalye
80c2d83855 Move Travis CI test script 2016-01-16 16:43:58 -05:00
Anish Athalye
2e64388b20 Merge branch 'bchretien/topic/travis-ci' 2016-01-16 15:43:47 -05:00
Benjamin Chrétien
07a26a843e Add Travis CI support
The test suite has been slightly modified to allow running tests without
Vagrant on Travis.
2016-01-16 17:34:52 +09:00
Anish Athalye
582edd6bd3 Fix compatibility with Python 3
This patch removes a stray print statement that was causing problems
with Python 3.
2016-01-15 01:21:16 -05:00
Anish Athalye
47ad7f4d3b Use file extension to select config file parser
This patch makes Dotbot provide better error messages when parsing JSON
files.
2016-01-13 13:46:41 -05:00
Anish Athalye
c48d16cbce Use standard library JSON parser for JSON files
This patch reverts the changes to the README made in
57265f78b4 and makes it so that Dotbot
supports JSON files with tab characters.
2016-01-13 11:29:12 -05:00
Anish Athalye
9250bef422 Add hook showing usage to README 2016-01-11 14:02:16 -05:00
Anish Athalye
57265f78b4 Add note to README about JSON parsing
Casey Rodarmor <casey@rodarmor.com> pointed out that Dotbot parses JSON
files as YAML. The YAML format doesn't allow tab characters, which are
normally allowed in JSON. This patch adds a note about this to the
README.
2016-01-11 13:36:16 -05:00
Anish Athalye
5babc8f562 Add ability to test with specific Python versions 2015-10-22 22:08:35 -04:00
Anish Athalye
30dc7d5788 Fix typo 2015-10-19 10:13:23 -04:00
Anish Athalye
bb209bd17f Fix typo 2015-08-17 21:30:56 -07:00
Anish Athalye
4381c4cabb Use safe_load function to load YAML
In our use case, we are *not* reading arbitrary input that could be
malicious. Still, because we know that what we're reading is made up of
only dictionaries and lists and not arbitrary Python objects, we might
as well use the more restrictive `safe_load` function rather than the
`load` function.
2015-08-03 17:47:32 -07:00
Anish Athalye
dcc3a1947a Add link to init-dotfiles repository to README 2015-06-11 21:38:52 -07:00
Anish Athalye
9dad17bc80 Merge branch 'Aviator45003/spellcheck' 2015-06-08 08:30:08 -07:00
The Aviator
01c022154e Fix typos in README 2015-06-08 08:29:58 -07:00
Anish Athalye
c2036b7960 Restore information to README
The information that was added in
115210ab17 was removed in
4ed3ffc411 when reorganizing the README.
This commit restores the information.
2015-06-02 22:46:39 -07:00
Anish Athalye
9c1af76e9e Add Mercurial install script 2015-05-22 13:33:10 -04:00
Anish Athalye
fd7f3b8551 Add environment variable expansion in link paths
This feature was proposed by Brian Knobbs <brian@redlattice.com>.
2015-05-12 20:28:58 -04:00
Anish Athalye
53c26ba9e6 Clean up code 2015-05-06 10:38:58 -04:00
Anish Athalye
b0d09b7047 Make driver display file names of tests 2015-05-06 10:04:32 -04:00
Anish Athalye
b1f9251e1f Update editorconfig 2015-05-06 08:39:10 -04:00
Anish Athalye
eeab507d15 Add testing framework and tests 2015-05-05 20:11:46 -04:00
Anish Athalye
49181b0666 Update README 2015-05-04 11:33:16 -04:00
Anish Athalye
3725d21684 Add functionality to overwrite broken links
This commit adds an option to the extended configuration syntax for
linking files and directories. The relink option is a safe alternative
to forcibly linking that only removes broken symbolic links, so it
cannot result in data loss.
2015-05-02 22:30:14 -04:00
Anish Athalye
db8364490d Merge branch 'antaflos/force-symlinked-dirs' 2015-04-27 17:03:40 -04:00
Andreas Ntaflos
1a10f88c43 Handle force creation of symlinked directories
Check if entry to force-create (delete) is a symlink and if so, simply
unlink it. Don't try to run rmtree on the underlying directory, which
will fail anyway.
2015-04-27 22:58:22 +02:00
Anish Athalye
aa06a18cff Merge branch 'joshblum/streamline-readme' 2015-04-26 20:15:12 -04:00
Joshua Blum
4ed3ffc411 Reorganize README 2015-04-27 03:12:34 +03:00
Anish Athalye
3c60899895 Improve error message for malformed files
This patch makes Dotbot warn the user and gracefully exit when the
configuration file is not a list.
2015-04-26 19:46:14 -04:00
Anish Athalye
3a649c1112 Merge branch 'joshblum/config-logging' 2015-04-24 18:34:51 -04:00
Joshua Blum
56d8d05e77 Provide exception information when reading config 2015-04-24 18:33:13 -04:00
Anish Athalye
fd08ddacd3 Fix style
Fix formatting of keyword arguments according to PEP 8.
2015-04-24 18:26:20 -04:00
Anish Athalye
bdc1b2205f Add information about spacing and formatting 2015-03-26 22:41:49 -04:00
Anish Athalye
c4df1bf2a8 Update contributing guide
This change adds a section about working on open issues to encourage
contributors to work on those.
2015-03-22 17:30:19 -04:00
Anish Athalye
115210ab17 Add information about upgrading 2015-02-12 21:58:42 -05:00
Anish Athalye
c32b6f0b99 Fix typo 2015-02-12 21:41:39 -05:00
Anish Athalye
d50efe2746 Remove JSON configuration examples 2015-02-10 18:34:34 -05:00