From ae962bdad10243916a35eefed66054b8ff97c7b2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Anders=20B=C3=A4lter?= Date: Tue, 5 Nov 2024 07:53:34 +0100 Subject: [PATCH] Lint (#5) --- Gemfile | 1 + amqp_actors.gemspec | 6 +++--- lib/amqp_actors/backend/amqp.rb | 1 - 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Gemfile b/Gemfile index c4675c3..f8b7474 100644 --- a/Gemfile +++ b/Gemfile @@ -1,4 +1,5 @@ # frozen_string_literal: true + source "https://rubygems.org" gemspec diff --git a/amqp_actors.gemspec b/amqp_actors.gemspec index 14fa534..24ace36 100644 --- a/amqp_actors.gemspec +++ b/amqp_actors.gemspec @@ -13,12 +13,12 @@ Gem::Specification.new do |spec| # Prevent pushing this gem to RubyGems.org. To allow pushes either set the 'allowed_push_host' # to allow pushing to a single host or delete this section to allow pushing to any host. - if spec.respond_to?(:metadata) - spec.metadata['allowed_push_host'] = "n/a" - else + unless spec.respond_to?(:metadata) raise "RubyGems 2.0 or newer is required to protect against public gem pushes." end + spec.metadata['allowed_push_host'] = "n/a" + spec.files = `git ls-files -z`.split("\x0") .reject { |f| f.match(%r{^(test|spec|features)/}) } spec.bindir = "bin" diff --git a/lib/amqp_actors/backend/amqp.rb b/lib/amqp_actors/backend/amqp.rb index 71ea118..2c8aaaf 100644 --- a/lib/amqp_actors/backend/amqp.rb +++ b/lib/amqp_actors/backend/amqp.rb @@ -3,7 +3,6 @@ require 'zlib' module AmqpActors - # rubocop:disable Style/TrivialAccessors class AmqpQueues class << self def configure(cfg)