homesick 0.9.4 → 0.9.5

Sign up to get free protection for your applications and to get access to all the features.
data/Rakefile CHANGED
@@ -22,7 +22,7 @@ Jeweler::Tasks.new do |gem|
22
22
  gem.email = ["josh@technicalpickles.com", "info@muratayusuke.com"]
23
23
  gem.homepage = "http://github.com/technicalpickles/homesick"
24
24
  gem.authors = ["Joshua Nichols", "Yusuke Murata"]
25
- gem.version = "0.9.4"
25
+ gem.version = "0.9.5"
26
26
  gem.license = "MIT"
27
27
  # Have dependencies? Add them to Gemfile
28
28
 
data/homesick.gemspec CHANGED
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "homesick"
8
- s.version = "0.9.4"
8
+ s.version = "0.9.5"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Joshua Nichols", "Yusuke Murata"]
12
- s.date = "2013-07-31"
12
+ s.date = "2013-09-18"
13
13
  s.description = "\n A man's home (directory) is his castle, so don't leave home with out it.\n\n Homesick is sorta like rip, but for dotfiles. It uses git to clone a repository containing dotfiles, and saves them in ~/.homesick. It then allows you to symlink all the dotfiles into place with a single command. \n\n "
14
14
  s.email = ["josh@technicalpickles.com", "info@muratayusuke.com"]
15
15
  s.executables = ["homesick"]
@@ -39,11 +39,11 @@ Gem::Specification.new do |s|
39
39
  s.homepage = "http://github.com/technicalpickles/homesick"
40
40
  s.licenses = ["MIT"]
41
41
  s.require_paths = ["lib"]
42
- s.rubygems_version = "2.0.3"
42
+ s.rubygems_version = "1.8.23"
43
43
  s.summary = "A man's home is his castle. Never leave your dotfiles behind."
44
44
 
45
45
  if s.respond_to? :specification_version then
46
- s.specification_version = 4
46
+ s.specification_version = 3
47
47
 
48
48
  if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
49
49
  s.add_runtime_dependency(%q<thor>, [">= 0.14.0"])
@@ -68,7 +68,7 @@ class Homesick
68
68
 
69
69
  def git_add(file, config = {})
70
70
  say_status 'git add file', '', :green unless options[:quiet]
71
- system "git add #{file}" unless options[:pretend]
71
+ system "git add '#{file}'" unless options[:pretend]
72
72
  end
73
73
 
74
74
  def git_status(config = {})
@@ -89,11 +89,11 @@ class Homesick
89
89
  say_status :conflict, "#{destination} exists", :red unless options[:quiet]
90
90
 
91
91
  if options[:force] || shell.file_collision(destination) { source }
92
- system "mv #{source} #{destination}" unless options[:pretend]
92
+ system "mv '#{source}' '#{destination}'" unless options[:pretend]
93
93
  end
94
94
  else
95
95
  # this needs some sort of message here.
96
- system "mv #{source} #{destination}" unless options[:pretend]
96
+ system "mv '#{source}' '#{destination}'" unless options[:pretend]
97
97
  end
98
98
  end
99
99
 
@@ -120,19 +120,19 @@ class Homesick
120
120
  say_status :conflict, "#{destination} exists and points to #{destination.readlink}", :red unless options[:quiet]
121
121
 
122
122
  if options[:force] || shell.file_collision(destination) { source }
123
- system "ln -nsf #{source} #{destination}" unless options[:pretend]
123
+ system "ln -nsf '#{source}' '#{destination}'" unless options[:pretend]
124
124
  end
125
125
  end
126
126
  elsif destination.exist?
127
127
  say_status :conflict, "#{destination} exists", :red unless options[:quiet]
128
128
 
129
129
  if options[:force] || shell.file_collision(destination) { source }
130
- system "rm -rf #{destination}" unless options[:pretend]
131
- system "ln -sf #{source} #{destination}" unless options[:pretend]
130
+ system "rm -rf '#{destination}'" unless options[:pretend]
131
+ system "ln -sf '#{source}' '#{destination}'" unless options[:pretend]
132
132
  end
133
133
  else
134
134
  say_status :symlink, "#{source.expand_path} to #{destination.expand_path}", :green unless options[:quiet]
135
- system "ln -s #{source} #{destination}" unless options[:pretend]
135
+ system "ln -s '#{source}' '#{destination}'" unless options[:pretend]
136
136
  end
137
137
  end
138
138
  end
@@ -397,6 +397,19 @@ describe 'homesick' do
397
397
  some_rc_file.readlink.should == tracked_file
398
398
  end
399
399
 
400
+ it 'should handle files with parens' do
401
+ castle = given_castle('castle_repo')
402
+
403
+ some_rc_file = home.file 'Default (Linux).sublime-keymap'
404
+
405
+ homesick.track(some_rc_file.to_s, 'castle_repo')
406
+
407
+ tracked_file = castle.join('Default (Linux).sublime-keymap')
408
+ tracked_file.should exist
409
+
410
+ some_rc_file.readlink.should == tracked_file
411
+ end
412
+
400
413
  it 'should track a file in nested folder structure' do
401
414
  castle = given_castle('castle_repo')
402
415
 
metadata CHANGED
@@ -1,7 +1,8 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: homesick
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.4
4
+ version: 0.9.5
5
+ prerelease:
5
6
  platform: ruby
6
7
  authors:
7
8
  - Joshua Nichols
@@ -9,39 +10,44 @@ authors:
9
10
  autorequire:
10
11
  bindir: bin
11
12
  cert_chain: []
12
- date: 2013-07-31 00:00:00.000000000 Z
13
+ date: 2013-09-18 00:00:00.000000000 Z
13
14
  dependencies:
14
15
  - !ruby/object:Gem::Dependency
15
16
  name: thor
16
17
  requirement: !ruby/object:Gem::Requirement
18
+ none: false
17
19
  requirements:
18
- - - '>='
20
+ - - ! '>='
19
21
  - !ruby/object:Gem::Version
20
22
  version: 0.14.0
21
23
  type: :runtime
22
24
  prerelease: false
23
25
  version_requirements: !ruby/object:Gem::Requirement
26
+ none: false
24
27
  requirements:
25
- - - '>='
28
+ - - ! '>='
26
29
  - !ruby/object:Gem::Version
27
30
  version: 0.14.0
28
31
  - !ruby/object:Gem::Dependency
29
32
  name: rake
30
33
  requirement: !ruby/object:Gem::Requirement
34
+ none: false
31
35
  requirements:
32
- - - '>='
36
+ - - ! '>='
33
37
  - !ruby/object:Gem::Version
34
38
  version: 0.8.7
35
39
  type: :development
36
40
  prerelease: false
37
41
  version_requirements: !ruby/object:Gem::Requirement
42
+ none: false
38
43
  requirements:
39
- - - '>='
44
+ - - ! '>='
40
45
  - !ruby/object:Gem::Version
41
46
  version: 0.8.7
42
47
  - !ruby/object:Gem::Dependency
43
48
  name: rspec
44
49
  requirement: !ruby/object:Gem::Requirement
50
+ none: false
45
51
  requirements:
46
52
  - - ~>
47
53
  - !ruby/object:Gem::Version
@@ -49,6 +55,7 @@ dependencies:
49
55
  type: :development
50
56
  prerelease: false
51
57
  version_requirements: !ruby/object:Gem::Requirement
58
+ none: false
52
59
  requirements:
53
60
  - - ~>
54
61
  - !ruby/object:Gem::Version
@@ -56,76 +63,86 @@ dependencies:
56
63
  - !ruby/object:Gem::Dependency
57
64
  name: jeweler
58
65
  requirement: !ruby/object:Gem::Requirement
66
+ none: false
59
67
  requirements:
60
- - - '>='
68
+ - - ! '>='
61
69
  - !ruby/object:Gem::Version
62
70
  version: 1.6.2
63
71
  type: :development
64
72
  prerelease: false
65
73
  version_requirements: !ruby/object:Gem::Requirement
74
+ none: false
66
75
  requirements:
67
- - - '>='
76
+ - - ! '>='
68
77
  - !ruby/object:Gem::Version
69
78
  version: 1.6.2
70
79
  - !ruby/object:Gem::Dependency
71
80
  name: rcov
72
81
  requirement: !ruby/object:Gem::Requirement
82
+ none: false
73
83
  requirements:
74
- - - '>='
84
+ - - ! '>='
75
85
  - !ruby/object:Gem::Version
76
86
  version: '0'
77
87
  type: :development
78
88
  prerelease: false
79
89
  version_requirements: !ruby/object:Gem::Requirement
90
+ none: false
80
91
  requirements:
81
- - - '>='
92
+ - - ! '>='
82
93
  - !ruby/object:Gem::Version
83
94
  version: '0'
84
95
  - !ruby/object:Gem::Dependency
85
96
  name: simplecov
86
97
  requirement: !ruby/object:Gem::Requirement
98
+ none: false
87
99
  requirements:
88
- - - '>='
100
+ - - ! '>='
89
101
  - !ruby/object:Gem::Version
90
102
  version: '0'
91
103
  type: :development
92
104
  prerelease: false
93
105
  version_requirements: !ruby/object:Gem::Requirement
106
+ none: false
94
107
  requirements:
95
- - - '>='
108
+ - - ! '>='
96
109
  - !ruby/object:Gem::Version
97
110
  version: '0'
98
111
  - !ruby/object:Gem::Dependency
99
112
  name: test-construct
100
113
  requirement: !ruby/object:Gem::Requirement
114
+ none: false
101
115
  requirements:
102
- - - '>='
116
+ - - ! '>='
103
117
  - !ruby/object:Gem::Version
104
118
  version: '0'
105
119
  type: :development
106
120
  prerelease: false
107
121
  version_requirements: !ruby/object:Gem::Requirement
122
+ none: false
108
123
  requirements:
109
- - - '>='
124
+ - - ! '>='
110
125
  - !ruby/object:Gem::Version
111
126
  version: '0'
112
127
  - !ruby/object:Gem::Dependency
113
128
  name: rubocop
114
129
  requirement: !ruby/object:Gem::Requirement
130
+ none: false
115
131
  requirements:
116
- - - '>='
132
+ - - ! '>='
117
133
  - !ruby/object:Gem::Version
118
134
  version: '0'
119
135
  type: :development
120
136
  prerelease: false
121
137
  version_requirements: !ruby/object:Gem::Requirement
138
+ none: false
122
139
  requirements:
123
- - - '>='
140
+ - - ! '>='
124
141
  - !ruby/object:Gem::Version
125
142
  version: '0'
126
- description: "\n A man's home (directory) is his castle, so don't leave home with
127
- out it.\n\n Homesick is sorta like rip, but for dotfiles. It uses git to clone
128
- a repository containing dotfiles, and saves them in ~/.homesick. It then allows
143
+ description: ! "\n A man's home (directory) is his castle, so don't leave home
144
+ with out it.\n\n Homesick is sorta like rip, but for dotfiles. It uses git to
145
+ clone a repository containing dotfiles, and saves them in ~/.homesick. It then allows
129
146
  you to symlink all the dotfiles into place with a single command. \n\n "
130
147
  email:
131
148
  - josh@technicalpickles.com
@@ -157,25 +174,29 @@ files:
157
174
  homepage: http://github.com/technicalpickles/homesick
158
175
  licenses:
159
176
  - MIT
160
- metadata: {}
161
177
  post_install_message:
162
178
  rdoc_options: []
163
179
  require_paths:
164
180
  - lib
165
181
  required_ruby_version: !ruby/object:Gem::Requirement
182
+ none: false
166
183
  requirements:
167
- - - '>='
184
+ - - ! '>='
168
185
  - !ruby/object:Gem::Version
169
186
  version: '0'
187
+ segments:
188
+ - 0
189
+ hash: -2842111102936979924
170
190
  required_rubygems_version: !ruby/object:Gem::Requirement
191
+ none: false
171
192
  requirements:
172
- - - '>='
193
+ - - ! '>='
173
194
  - !ruby/object:Gem::Version
174
195
  version: '0'
175
196
  requirements: []
176
197
  rubyforge_project:
177
- rubygems_version: 2.0.3
198
+ rubygems_version: 1.8.23
178
199
  signing_key:
179
- specification_version: 4
200
+ specification_version: 3
180
201
  summary: A man's home is his castle. Never leave your dotfiles behind.
181
202
  test_files: []
checksums.yaml DELETED
@@ -1,7 +0,0 @@
1
- ---
2
- SHA1:
3
- metadata.gz: b018e996f0ee25166f43663c5e761e53f12f0f72
4
- data.tar.gz: 8664e007c7b5b45e3dc298b7b1c16b9142b42c1d
5
- SHA512:
6
- metadata.gz: 5fae9ca5dea450348afde9f237eb1c357f74144b35bf1bce5695f46a8336bad5758fb73dab39341fb845a54f1f0100c994e04a7cfd4991a54e9c2251cfae5961
7
- data.tar.gz: 82c49cbe96f65516c73cec976b9ae04e42cc8da176167b20174b3bbf3111fd96b3886e2d0d6b45758f4b4c8b403dd5a72855e81511b4ed74e42df14bbc17d9fa