lib/legion/transport/queue.rb in legion-transport-1.1.2 vs lib/legion/transport/queue.rb in legion-transport-1.1.3
- old
+ new
@@ -36,11 +36,11 @@
def queue_options
{}
end
- def queue_name # rubocop:disable Metrics/AbcSize
+ def queue_name
ancestor = self.class.ancestors.first.to_s.split('::')
name = if ancestor[5].scan(/[A-Z]/).length > 1
ancestor[5].gsub!(/(.)([A-Z])/, '\1_\2').downcase!
else
ancestor[5].downcase!
@@ -57,10 +57,10 @@
def acknowledge(delivery_tag)
channel.acknowledge(delivery_tag)
end
- def reject(delivery_tag, requeue = false)
+ def reject(delivery_tag, requeue: false)
channel.reject(delivery_tag, requeue)
end
end
end
end