Skip to content

Commit

Permalink
[HTTP] Rescue REST::Error
Browse files Browse the repository at this point in the history
  • Loading branch information
segiddins committed Aug 3, 2014
1 parent 2944407 commit e6cb710
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions .kick
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ process do |files|
files.each do |file|
case file
when 'Gemfile'
when /.gemspec/
files.delete(file)
execute 'bundle install'
end
Expand Down
2 changes: 1 addition & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ PATH
activesupport (>= 3.2.15)
fuzzy_match (~> 2.0.4)
json_pure (~> 1.8)
nap (~> 0.5)
nap (~> 0.8.0)

GEM
remote: http://rubygems.org/
Expand Down
2 changes: 1 addition & 1 deletion cocoapods-core.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ Gem::Specification.new do |s|
s.require_paths = %w{ lib }

s.add_runtime_dependency 'activesupport', '>= 3.2.15'
s.add_runtime_dependency 'nap', "~> 0.5"
s.add_runtime_dependency 'nap', "~> 0.8.0"
s.add_runtime_dependency "json_pure", "~> 1.8"
s.add_runtime_dependency 'fuzzy_match', "~> 2.0.4"

Expand Down
2 changes: 1 addition & 1 deletion lib/cocoapods-core/http.rb
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ def self.validate_url(url)
begin
url = get_actual_url(url)
resp = perform_head_request(url)
rescue SocketError, URI::InvalidURIError
rescue SocketError, URI::InvalidURIError, REST::Error
resp = nil
end

Expand Down

0 comments on commit e6cb710

Please sign in to comment.