dotme 0.1.3 → 0.1.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.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- MDk1NmNjZjlhYWIyZWZjOTM1MTNmN2Y2YjM0ZWY3ODhhYzY2MGY4Nw==
4
+ ODMyZTVhMTQ4MGFhMjcxYjdmOWM3NGRiZWJlMDg1NjY3NDAzYzJiNw==
5
5
  data.tar.gz: !binary |-
6
- OTA0OTg1ZjYyOTU0MmI4OTNlZDMwNWY3NGQzODExZTMyZDQ0OGNkZA==
6
+ NTFiYTFlYWIxYWJiMjE2ZGYyNjU3NTI0NDlkMzMzMWE4N2ZkY2FlZg==
7
7
  !binary "U0hBNTEy":
8
8
  metadata.gz: !binary |-
9
- NmUwNmNhM2YxOWEzMmI5MjEwZWY1ZTZlMDg5NjZiOTlkZmE0ZTc1YTI5ZDc1
10
- MGFlYTJkN2IzZmQzNzZiMTYyMzViY2U4MzE1MTc3Mzc0MDBhODI4ZTJlYjU4
11
- NDk1YTY5YmNjMmNjMWFiMzQ1ODhkN2E1NTJjODM1YWFkODRhYzI=
9
+ NDg5OWVjMjZlYzExNTZjOWQyZWMzNjY4MTE0ZjY4NmU3OTczZDBkODBiNjBj
10
+ NzdkODhmMGYwMDMyMzZhNjkxYTRhNTdhMDc2NDE0NmZlM2Y2MzJmNDkwNmZi
11
+ NTUyZDM1ZDcxNDNlNzdhMmY1YmQ3Mjk0NGM5NjY4NDI2OTViMjI=
12
12
  data.tar.gz: !binary |-
13
- ZDNjMGYyZDU1MTE5YWNkOGNjN2QxZTJhNDg3YWJmMTJmMWQzZjBiODFkZTdl
14
- OWQxYmJlMDI2N2QyMGZiMDdjZGRlNjQ1MmZhZTk2Yzg3MWQ0OTI2MGJlODUx
15
- MDE4MWEyMDI0MGMyODZkOTk5NmJjNGRkY2EzMDk3NDE2ZmNlNTQ=
13
+ MTk2YThjYzBjM2NlZmEyNmQ0NTBiNzBlMWI2NDFkYTdiNjFiMWYxZWI3MjJl
14
+ MzhmYWQ5ZTk1ZmYwMzQxMjEwMDRmZWE1YWRmM2I0MzRiYjJiNDQ4NGZlYTQy
15
+ MTJhYTEzODEzZmVjMDkxNDRiNzQzOWJlMTkzOTZjNmQ0ODI4MmE=
@@ -29,6 +29,10 @@ module DotMe
29
29
  File.symlink what, where
30
30
  end
31
31
 
32
+ def _git_clone( repo, where )
33
+ system "git clone #{repo} \"#{where}\""
34
+ end
35
+
32
36
  def method_missing( name, *args )
33
37
  name = "_#{name}"
34
38
  if respond_to? name
@@ -39,10 +43,6 @@ module DotMe
39
43
  end
40
44
  end
41
45
 
42
- def git_clone( repo, where )
43
- system "git clone #{repo} \"#{where}\""
44
- end
45
-
46
46
  def sh( cmd )
47
47
  system cmd
48
48
  end
@@ -5,7 +5,7 @@ module DotMe
5
5
  def incubate(to)
6
6
  FileUtils.cp_r @path, ::File.join( to, @basename )
7
7
 
8
- { :link => @basename, :to => @relative }
8
+ { :link => @basename, :to => ::File.join( '~', @relative ) }
9
9
  end
10
10
 
11
11
  def self.incubates?(path)
@@ -4,11 +4,11 @@ module DotMe
4
4
  begin
5
5
  require 'git'
6
6
 
7
- { :git_clone => Git.open( @path ).config['remote.origin.url'], :to => @relative }
7
+ { :git_clone => Git.open( @path ).config['remote.origin.url'], :to => ::File.join( '~', @relative ) }
8
8
  rescue
9
9
  FileUtils.cp_r @path, ::File.join( to, @basename )
10
10
 
11
- { :link => @basename, :to => @relative }
11
+ { :link => @basename, :to => ::File.join( '~', @relative ) }
12
12
  end
13
13
  end
14
14
 
@@ -1,3 +1,3 @@
1
1
  module DotMe
2
- VERSION = '0.1.3'
2
+ VERSION = '0.1.4'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dotme
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Simone Margaritelli