dotman 0.0.3.8 → 0.0.3.9

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ea42429b86a3cbc3b8a9ffe0a41ec9995cfaee61
4
- data.tar.gz: f1daf62110ae91f79e967e11a8c7325a2bd3db80
3
+ metadata.gz: 1edc6cdb37027c07b761aac9120768ef8fb24031
4
+ data.tar.gz: 170570e98adf6c4acd112e17d281fba09dd1ff25
5
5
  SHA512:
6
- metadata.gz: 58facb08d299ab8241d68a1e572981e72be9131f0082613597d53836041abbbf0553d7ebbf01afb220e686d4b1e9a2acfaa072637a804f582722a956fbf89cb9
7
- data.tar.gz: b4e5bde32eb68b8d2882fc13e5f41d6cb2d5fbef18cb35ee979a058ba5e6891f20671cdf669d5a0007c4e2c9b0d710f98583db34d76499c28e3b9d554cdd3142
6
+ metadata.gz: e4c62e0ce3062f63e4d66e311a25756d5c1a70ece15a7a0a05e6e09768d32033e1d3564b4bcb7cd0ede2ce290f08fc2a6b2fa6a771cdbd668564fde8fb7ff6e8
7
+ data.tar.gz: 4892d687eaa836fa89279f6353c7eb98e53a882c86fe32ca1d8e1619367a8abcb3b54b2ee3eb4a1c5917116f907746f9caed287f6afa41946be2d5245adc9c8a
data/README.md CHANGED
@@ -53,11 +53,17 @@ To create a new dotfiles directory with all current dotfiles located in the HOME
53
53
 
54
54
  dot collect
55
55
 
56
+ To show the current user set for your dotfiles:
57
+
58
+ dot current
59
+
56
60
  ### After Clone Hook
57
61
 
58
- If you would like to execute a script after cloning down your dotfiles;
62
+ If you would like to execute a script after cloning down your dotfiles...
59
63
  Add the script as an executable file named `.dotman.after_clone` in the root of your dotfiles
60
64
 
65
+ Check the example in the examples folder
66
+
61
67
  ## Contributing
62
68
 
63
69
  1. Fork it
data/bin/dot CHANGED
@@ -12,6 +12,8 @@ when 'use'
12
12
  Dotman::User.set(ARGV[1])
13
13
  when 'collect'
14
14
  Dotman::Collect.new.create_dotman
15
+ when 'current'
16
+ Dotman::Notification.display_current_user
15
17
  when 'list'
16
18
  Dotman::Notification.display_all_aliases
17
19
  when 'delete'
@@ -20,6 +20,6 @@ Gem::Specification.new do |spec|
20
20
 
21
21
  spec.add_development_dependency "bundler", "~> 1.3"
22
22
  spec.add_development_dependency "rake"
23
- spec.add_development_dependency "rspec"
23
+ spec.add_development_dependency "rspec", "~> 2.13.0"
24
24
  spec.add_development_dependency "fakefs"
25
25
  end
@@ -0,0 +1,54 @@
1
+ #!/bin/bash
2
+ # This is an example of my dotfiles after clone script.
3
+ # I use pathogen in my .vimrc so I am writing a script to clone
4
+ # down my git vim add ons. I want to make sure that I clone to the
5
+ # appropriate folder so the DIR variable you see below is used to
6
+ # hold scope of where this file is downloaded to.
7
+
8
+ DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
9
+
10
+ # bundle variable points to where my git repo's will be cloned for
11
+ # pathogen to find and include them.
12
+
13
+ bundle=$DIR/.vim/bundle
14
+
15
+ # I now clone my pathogen vim goodies
16
+
17
+ if [ -e $HOME/.oh-my-zsh ]; then
18
+ cp tim.zsh-theme $HOME/.oh-my-zsh/themes
19
+ fi
20
+
21
+ if [ ! -e $bundle/ack.vim ]; then
22
+ git clone git@github.com:mileszs/ack.vim.git $bundle/ack.vim/
23
+ fi
24
+
25
+ if [ ! -e $bundle/tcomment_vim ]; then
26
+ git clone git@github.com:tomtom/tcomment_vim.git $bundle/tcomment_vim/
27
+ fi
28
+
29
+ if [ ! -e $bundle/vim-fugitive ]; then
30
+ git clone git@github.com:tpope/vim-fugitive.git $bundle/vim-fugitive/
31
+ fi
32
+
33
+ if [ ! -e $bundle/vim-rails ]; then
34
+ git clone git@github.com:tpope/vim-rails.git $bundle/vim-rails/
35
+ fi
36
+
37
+ if [ ! -e $bundle/vim-ruby ]; then
38
+ git clone git@github.com:vim-ruby/vim-ruby.git $bundle/vim-ruby/
39
+ fi
40
+
41
+ # For command-t you have to load the c extensions. This is tricky
42
+ # considering you have to create them using the same version of
43
+ # ruby that vim was compiled for. When I clone dotman I make
44
+ # sure to clone using the version on ruby that my vim was compiled
45
+ # for. This has typically been 1.8.7, however recently I've seen
46
+ # it compiled for 1.9.2. I use apt-get install vim-nox on ubuntu
47
+ # or lubuntu.
48
+
49
+ if [ ! -e $bundle/Command-T ]; then
50
+ git clone git@github.com:wincent/Command-T.git $bundle/Command-T/
51
+ cd $bundle/Command-T/ruby/command-t/
52
+ ruby extconf.rb
53
+ make
54
+ fi
@@ -9,7 +9,8 @@ module Dotman
9
9
  dot delete <alias> : delete dotfile collection
10
10
  dot collect : collects all dot files within a directory called dotfiles
11
11
  dot alias rename <old alias> <new alias> : changes alias from old to new
12
- dot alias list : same as dot list"
12
+ dot alias list : same as dot list
13
+ dot current: shows the current dotfile user"
13
14
  end
14
15
 
15
16
  def self.already_cloned
@@ -31,5 +32,9 @@ module Dotman
31
32
  def self.dotfile_collection_not_found(alias_name)
32
33
  STDOUT.puts "Dotfile collection not found for #{alias_name}"
33
34
  end
35
+
36
+ def self.display_current_user
37
+ STDOUT.puts Dotman::User.current_user_alias
38
+ end
34
39
  end
35
40
  end
@@ -1,3 +1,3 @@
1
1
  module Dotman
2
- VERSION = "0.0.3.8"
2
+ VERSION = "0.0.3.9"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dotman
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3.8
4
+ version: 0.0.3.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tim
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-06-20 00:00:00.000000000 Z
11
+ date: 2015-01-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -42,16 +42,16 @@ dependencies:
42
42
  name: rspec
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - '>='
45
+ - - ~>
46
46
  - !ruby/object:Gem::Version
47
- version: '0'
47
+ version: 2.13.0
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - '>='
52
+ - - ~>
53
53
  - !ruby/object:Gem::Version
54
- version: '0'
54
+ version: 2.13.0
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: fakefs
57
57
  requirement: !ruby/object:Gem::Requirement
@@ -83,6 +83,7 @@ files:
83
83
  - Rakefile
84
84
  - bin/dot
85
85
  - dotman.gemspec
86
+ - examples/.dotman.after_clone
86
87
  - lib/dotman.rb
87
88
  - lib/dotman/after_clone.rb
88
89
  - lib/dotman/base.rb
@@ -124,7 +125,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
124
125
  version: '0'
125
126
  requirements: []
126
127
  rubyforge_project:
127
- rubygems_version: 2.0.3
128
+ rubygems_version: 2.4.3
128
129
  signing_key:
129
130
  specification_version: 4
130
131
  summary: Use this utility to manage your dotfiles and others who may use the same