Skip to content

Commit

Permalink
Revert "So the specs totally don't pass."
Browse files Browse the repository at this point in the history
This reverts commit 3311a7e.
  • Loading branch information
relistan committed Nov 18, 2014
1 parent 3311a7e commit 91a9f6d
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion centurion.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ Gem::Specification.new do |spec|

spec.add_development_dependency 'bundler'
spec.add_development_dependency 'rake'
spec.add_development_dependency 'rspec', '~> 3.1.0'
spec.add_development_dependency 'rspec', '~> 2.14.0'
spec.add_development_dependency 'pry'
spec.add_development_dependency 'simplecov'

Expand Down
3 changes: 1 addition & 2 deletions lib/centurion/docker_registry.rb
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,7 @@ def repository_tags(repository)
path = "/v1/repositories/#{repository}/tags"
uri = uri_for_repository_path(repository, path)
$stderr.puts "GET: #{uri.inspect}"
# Need to workaround a bug in Docker Hub to now pass port in Host header
response = Excon.get(uri, headers: { 'Host' => URI.parse(uri).host })
response = Excon.get(uri)
raise response.inspect unless response.status == 200

tags = JSON.load(response.body)
Expand Down
1 change: 0 additions & 1 deletion spec/dogestry_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@

describe '#which' do
it 'finds dogestry command line' do
allow(File).to receive(:executable?).and_return(true)
registry.which('dogestry').should_not == nil
end
end
Expand Down

0 comments on commit 91a9f6d

Please sign in to comment.