Skip to content

Commit

Permalink
Merge pull request #5 from alphasights/introduce_retry_handler
Browse files Browse the repository at this point in the history
Allow uploading to rubygems.org
  • Loading branch information
Abraham Petrillo committed Apr 12, 2016
2 parents b24decd + a311dfa commit a4a0959
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 9 deletions.
1 change: 0 additions & 1 deletion lib/sneakers_handlers/retry_handler.rb
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,6 @@ def retry_message(hdr, props, msg)
Sneakers.logger.info do
"Retrying message: queue=#{@queue.name} retry_count=#{retry_count}."
end

@channel.default_exchange.publish(msg,
routing_key: @queue.name,
headers: { "x-retry-count": retry_count + 1 })
Expand Down
2 changes: 1 addition & 1 deletion lib/sneakers_handlers/version.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module SneakersHandlers
VERSION = "0.1.0"
VERSION = "0.0.1"
end
8 changes: 1 addition & 7 deletions sneakers_handlers.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,7 @@ Gem::Specification.new do |spec|
spec.description = %q{Adds handlers to support retry and custom shoveling}
spec.homepage = "https://github.com/alphasights/sneakers_handlers"

# Prevent pushing this gem to RubyGems.org by setting 'allowed_push_host', or
# delete this section to allow pushing this gem to any host.
if spec.respond_to?(:metadata)
spec.metadata['allowed_push_host'] = "TODO: Set to 'http://mygemserver.com'"
else
raise "RubyGems 2.0 or newer is required to protect against public gem pushes."
end
spec.metadata['allowed_push_host'] = 'https://rubygems.org'

spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
spec.bindir = "exe"
Expand Down

0 comments on commit a4a0959

Please sign in to comment.