Add support for Ruby 1.9.
Some dependencies needed updating, and String#start_with? behaves slightly differently.
This commit is contained in:
8
Gemfile
8
Gemfile
@@ -6,10 +6,10 @@ gem "thor", ">= 0.14.0"
|
|||||||
# Add dependencies to develop your gem here.
|
# Add dependencies to develop your gem here.
|
||||||
# Include everything needed to run rake, tests, features, etc.
|
# Include everything needed to run rake, tests, features, etc.
|
||||||
group :development do
|
group :development do
|
||||||
gem "rake"
|
gem "rake", "~> 0.8.7"
|
||||||
gem "rspec", "~> 2.1.0"
|
gem "rspec", "~> 2.10"
|
||||||
gem "jeweler", ">= 1.6.2"
|
gem "jeweler", ">= 1.6.2"
|
||||||
gem "rcov", ">= 0"
|
gem "rcov", :platforms => :mri_18
|
||||||
|
gem "simplecov", :platforms => :mri_19
|
||||||
gem "test-construct"
|
gem "test-construct"
|
||||||
gem "ruby-debug"
|
|
||||||
end
|
end
|
||||||
|
|||||||
48
Gemfile.lock
48
Gemfile.lock
@@ -1,40 +1,42 @@
|
|||||||
GEM
|
GEM
|
||||||
remote: http://rubygems.org/
|
remote: http://rubygems.org/
|
||||||
specs:
|
specs:
|
||||||
columnize (0.3.2)
|
diff-lcs (1.1.3)
|
||||||
diff-lcs (1.1.2)
|
|
||||||
git (1.2.5)
|
git (1.2.5)
|
||||||
jeweler (1.6.2)
|
jeweler (1.8.3)
|
||||||
bundler (~> 1.0)
|
bundler (~> 1.0)
|
||||||
git (>= 1.2.5)
|
git (>= 1.2.5)
|
||||||
rake
|
rake
|
||||||
linecache (0.43)
|
rdoc
|
||||||
rake (0.9.2)
|
json (1.7.3)
|
||||||
rcov (0.9.9)
|
multi_json (1.3.6)
|
||||||
rspec (2.1.0)
|
rake (0.8.7)
|
||||||
rspec-core (~> 2.1.0)
|
rcov (1.0.0)
|
||||||
rspec-expectations (~> 2.1.0)
|
rdoc (3.12)
|
||||||
rspec-mocks (~> 2.1.0)
|
json (~> 1.4)
|
||||||
rspec-core (2.1.0)
|
rspec (2.10.0)
|
||||||
rspec-expectations (2.1.0)
|
rspec-core (~> 2.10.0)
|
||||||
diff-lcs (~> 1.1.2)
|
rspec-expectations (~> 2.10.0)
|
||||||
rspec-mocks (2.1.0)
|
rspec-mocks (~> 2.10.0)
|
||||||
ruby-debug (0.10.4)
|
rspec-core (2.10.1)
|
||||||
columnize (>= 0.1)
|
rspec-expectations (2.10.0)
|
||||||
ruby-debug-base (~> 0.10.4.0)
|
diff-lcs (~> 1.1.3)
|
||||||
ruby-debug-base (0.10.4)
|
rspec-mocks (2.10.1)
|
||||||
linecache (>= 0.3)
|
simplecov (0.6.4)
|
||||||
|
multi_json (~> 1.0)
|
||||||
|
simplecov-html (~> 0.5.3)
|
||||||
|
simplecov-html (0.5.3)
|
||||||
test-construct (1.2.0)
|
test-construct (1.2.0)
|
||||||
thor (0.14.6)
|
thor (0.15.2)
|
||||||
|
|
||||||
PLATFORMS
|
PLATFORMS
|
||||||
ruby
|
ruby
|
||||||
|
|
||||||
DEPENDENCIES
|
DEPENDENCIES
|
||||||
jeweler (>= 1.6.2)
|
jeweler (>= 1.6.2)
|
||||||
rake
|
rake (~> 0.8.7)
|
||||||
rcov
|
rcov
|
||||||
rspec (~> 2.1.0)
|
rspec (~> 2.10)
|
||||||
ruby-debug
|
simplecov
|
||||||
test-construct
|
test-construct
|
||||||
thor (>= 0.14.0)
|
thor (>= 0.14.0)
|
||||||
|
|||||||
@@ -22,7 +22,7 @@ class Homesick < Thor
|
|||||||
destination = nil
|
destination = nil
|
||||||
if File.exist?(uri)
|
if File.exist?(uri)
|
||||||
uri = Pathname.new(uri).expand_path
|
uri = Pathname.new(uri).expand_path
|
||||||
if uri.to_s.start_with?(repos_dir)
|
if uri.to_s.start_with?(repos_dir.to_s)
|
||||||
raise "Castle already cloned to #{uri}"
|
raise "Castle already cloned to #{uri}"
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user