infect 0.0.3 → 0.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/README.md CHANGED
@@ -1,6 +1,8 @@
1
1
  # ☣ Infect
2
2
 
3
- Asset Pipeline Bundler for Vim and Pathogen
3
+ Bundle manager for [pathogen](https://github.com/tpope/vim-pathogen).
4
+
5
+ Manage your entire vim config with a single '.vimrc' file. Much the same way that [sprockets](https://github.com/sstephenson/sprockets) lets you include web assets, infect will handle install vim plugins for you.
4
6
 
5
7
  ## Installation
6
8
 
@@ -1,18 +1,20 @@
1
+ require 'fileutils'
1
2
  module Infect
2
3
  class Command
3
4
  class Prereqs < Command
5
+ def mkdirs(list)
6
+ list.each do |path|
7
+ FileUtils.mkdir_p path
8
+ end
9
+ end
4
10
  def call
5
- mkdir_p "~/.vim/bundle"
11
+ mkdir "~/.vim/bundle"
6
12
  # create the cache directories for sensible.vim:
7
13
  # TODO: Support Windows
8
14
  if RUBY_PLATFORM =~ /darwin/
9
- mkdir_p "~/Library/Vim/swap"
10
- mkdir_p "~/Library/Vim/backup"
11
- mkdir_p "~/Library/Vim/undo"
15
+ mkdirs %w(~/Library/Vim/swap ~/Library/Vim/backup ~/Library/Vim/undo)
12
16
  else
13
- mkdir_p "~/.local/share/vim/swap"
14
- mkdir_p "~/.local/share/vim/backup"
15
- mkdir_p "~/.local/share/vim/undo"
17
+ mkdirs %w(~/.local/share/vim/swap ~/.local/share/vim/backup ~/.local/share/vim/undo")
16
18
  end
17
19
  end
18
20
  end
@@ -1,3 +1,3 @@
1
1
  module Infect
2
- VERSION = "0.0.3"
2
+ VERSION = "0.0.4"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: infect
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: