4 Commits

Author SHA1 Message Date
Joshua Nichols
832eade857 Regenerated gemspec for version 0.5.4 2010-09-03 18:50:17 -04:00
Joshua Nichols
44ff9a8b4b Version bump to 0.5.4. 2010-09-03 18:50:05 -04:00
Joshua Nichols
3f26a74c71 Use || instead of or 2010-09-03 18:49:49 -04:00
Mathieu Sauve-Frankel
1041cb5160 make homesick symlink respect the force option
Signed-off-by: Joshua Nichols <josh@technicalpickles.com>
2010-09-03 18:49:25 -04:00
3 changed files with 7 additions and 7 deletions

View File

@@ -22,7 +22,7 @@ Jeweler::Tasks.new do |gem|
gem.email = "josh@technicalpickles.com"
gem.homepage = "http://github.com/technicalpickles/homesick"
gem.authors = ["Joshua Nichols"]
gem.version = "0.5.3"
gem.version = "0.5.4"
# Have dependencies? Add them to Gemfile
# gem is a Gem::Specification... see http://www.rubygems.org/read/chapter/20 for additional settings

View File

@@ -5,11 +5,11 @@
Gem::Specification.new do |s|
s.name = %q{homesick}
s.version = "0.5.3"
s.version = "0.5.4"
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
s.authors = ["Joshua Nichols"]
s.date = %q{2010-08-19}
s.date = %q{2010-09-03}
s.default_executable = %q{homesick}
s.description = %q{
A man's home (directory) is his castle, so don't leave home with out it.
@@ -44,7 +44,7 @@ Gem::Specification.new do |s|
]
s.homepage = %q{http://github.com/technicalpickles/homesick}
s.require_paths = ["lib"]
s.rubygems_version = %q{1.3.7}
s.rubygems_version = %q{1.3.6}
s.summary = %q{A man's home is his castle. Never leave your dotfiles behind.}
s.test_files = [
"spec/homesick_spec.rb",
@@ -55,7 +55,7 @@ Gem::Specification.new do |s|
current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
s.specification_version = 3
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
s.add_runtime_dependency(%q<thor>, [">= 0.14.0"])
s.add_development_dependency(%q<rake>, [">= 0"])
s.add_development_dependency(%q<rspec>, [">= 1.2.9"])

View File

@@ -69,14 +69,14 @@ class Homesick
else
say_status :conflict, "#{destination} exists and points to #{destination.readlink}", :red unless options[:quiet]
if shell.file_collision(destination) { source }
if options[:force] || shell.file_collision(destination) { source }
system "ln -sf #{source} #{destination}" unless options[:pretend]
end
end
elsif destination.exist?
say_status :conflict, "#{destination} exists", :red unless options[:quiet]
if shell.file_collision(destination) { source }
if options[:force] || shell.file_collision(destination) { source }
system "ln -sf #{source} #{destination}" unless options[:pretend]
end
else