mirror of
https://github.com/ditkrg/rabbit_carrots.git
synced 2026-01-22 22:06:40 +00:00
Fix rubocop errors
This commit is contained in:
parent
cbc99c2007
commit
d729bf09cc
10
Gemfile
10
Gemfile
@ -1,14 +1,14 @@
|
|||||||
# frozen_string_literal: true
|
# frozen_string_literal: true
|
||||||
|
|
||||||
source "https://rubygems.org"
|
source 'https://rubygems.org'
|
||||||
|
|
||||||
# Specify your gem's dependencies in rabbit_carrots.gemspec
|
# Specify your gem's dependencies in rabbit_carrots.gemspec
|
||||||
gemspec
|
gemspec
|
||||||
|
|
||||||
gem "rake", "~> 13.0"
|
gem 'rake', '~> 13.0'
|
||||||
|
|
||||||
gem "rspec", "~> 3.0"
|
gem 'rspec', '~> 3.0'
|
||||||
|
|
||||||
gem "rubocop", "~> 1.21"
|
gem 'rubocop', '~> 1.21'
|
||||||
|
|
||||||
gem "rubocop-rails", "~> 2.17"
|
gem 'rubocop-rails', '~> 2.17'
|
||||||
|
|||||||
6
Rakefile
6
Rakefile
@ -1,11 +1,11 @@
|
|||||||
# frozen_string_literal: true
|
# frozen_string_literal: true
|
||||||
|
|
||||||
require "bundler/gem_tasks"
|
require 'bundler/gem_tasks'
|
||||||
require "rspec/core/rake_task"
|
require 'rspec/core/rake_task'
|
||||||
|
|
||||||
RSpec::Core::RakeTask.new(:spec)
|
RSpec::Core::RakeTask.new(:spec)
|
||||||
|
|
||||||
require "rubocop/rake_task"
|
require 'rubocop/rake_task'
|
||||||
|
|
||||||
RuboCop::RakeTask.new
|
RuboCop::RakeTask.new
|
||||||
|
|
||||||
|
|||||||
@ -1,13 +1,13 @@
|
|||||||
# frozen_string_literal: true
|
# frozen_string_literal: true
|
||||||
|
|
||||||
require_relative "rabbit_carrots/version"
|
require_relative 'rabbit_carrots/version'
|
||||||
require 'rabbit_carrots/connection'
|
require 'rabbit_carrots/connection'
|
||||||
require 'rabbit_carrots/configuration'
|
require 'rabbit_carrots/configuration'
|
||||||
require 'rabbit_carrots/railtie' if defined?(Rails)
|
require 'rabbit_carrots/railtie' if defined?(Rails)
|
||||||
|
|
||||||
|
|
||||||
module RabbitCarrots
|
module RabbitCarrots
|
||||||
class Error < StandardError; end
|
class Error < StandardError; end
|
||||||
|
|
||||||
module EventHandlers
|
module EventHandlers
|
||||||
module Errors
|
module Errors
|
||||||
class IrrelevantMessage < StandardError
|
class IrrelevantMessage < StandardError
|
||||||
@ -20,5 +20,4 @@ module RabbitCarrots
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
# frozen_string_literal: true
|
# frozen_string_literal: true
|
||||||
|
|
||||||
module RabbitCarrots
|
module RabbitCarrots
|
||||||
VERSION = "0.1.15"
|
VERSION = '0.1.15'
|
||||||
end
|
end
|
||||||
|
|||||||
@ -1,24 +1,24 @@
|
|||||||
# frozen_string_literal: true
|
# frozen_string_literal: true
|
||||||
|
|
||||||
require_relative "lib/rabbit_carrots/version"
|
require_relative 'lib/rabbit_carrots/version'
|
||||||
|
|
||||||
Gem::Specification.new do |spec|
|
Gem::Specification.new do |spec|
|
||||||
spec.name = "rabbit_carrots"
|
spec.name = 'rabbit_carrots'
|
||||||
spec.version = RabbitCarrots::VERSION
|
spec.version = RabbitCarrots::VERSION
|
||||||
spec.authors = ["Brusk Awat"]
|
spec.authors = ['Brusk Awat']
|
||||||
spec.email = ["broosk.edogawa@gmail.com"]
|
spec.email = ['broosk.edogawa@gmail.com']
|
||||||
|
|
||||||
spec.summary = "A simple RabbitMQ consumer task"
|
spec.summary = 'A simple RabbitMQ consumer task'
|
||||||
spec.description = "A background task based on rake to consume RabbitMQ messages"
|
spec.description = 'A background task based on rake to consume RabbitMQ messages'
|
||||||
spec.homepage = "https://github.com/ditkrg"
|
spec.homepage = 'https://github.com/ditkrg'
|
||||||
spec.license = "MIT"
|
spec.license = 'MIT'
|
||||||
spec.required_ruby_version = ">= 3.1.0"
|
spec.required_ruby_version = '>= 3.1.0'
|
||||||
|
|
||||||
spec.metadata["allowed_push_host"] = "https://rubygems.org"
|
spec.metadata['allowed_push_host'] = 'https://rubygems.org'
|
||||||
|
|
||||||
spec.metadata["homepage_uri"] = spec.homepage
|
spec.metadata['homepage_uri'] = spec.homepage
|
||||||
spec.metadata["source_code_uri"] = "https://github.com/ditkrg/rabbit_carrots"
|
spec.metadata['source_code_uri'] = 'https://github.com/ditkrg/rabbit_carrots'
|
||||||
spec.metadata["changelog_uri"] = "https://github.com/ditkrg/rabbit_carrots"
|
spec.metadata['changelog_uri'] = 'https://github.com/ditkrg/rabbit_carrots'
|
||||||
|
|
||||||
# Specify which files should be added to the gem when it is released.
|
# Specify which files should be added to the gem when it is released.
|
||||||
# The `git ls-files -z` loads the files in the RubyGem that have been added into git.
|
# The `git ls-files -z` loads the files in the RubyGem that have been added into git.
|
||||||
@ -27,14 +27,15 @@ Gem::Specification.new do |spec|
|
|||||||
(f == __FILE__) || f.match(%r{\A(?:(?:bin|test|spec|features)/|\.(?:git|travis|circleci)|appveyor)})
|
(f == __FILE__) || f.match(%r{\A(?:(?:bin|test|spec|features)/|\.(?:git|travis|circleci)|appveyor)})
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
spec.bindir = "exe"
|
spec.bindir = 'exe'
|
||||||
spec.executables = spec.files.grep(%r{\Aexe/}) { |f| File.basename(f) }
|
spec.executables = spec.files.grep(%r{\Aexe/}) { |f| File.basename(f) }
|
||||||
spec.require_paths = ["lib"]
|
spec.require_paths = ['lib']
|
||||||
|
|
||||||
# Uncomment to register a new dependency of your gem
|
# Uncomment to register a new dependency of your gem
|
||||||
spec.add_dependency "bunny", ">= 2.19.0"
|
spec.add_dependency 'bunny', '>= 2.19.0'
|
||||||
spec.add_dependency "connection_pool", "~> 2.3.0"
|
spec.add_dependency 'connection_pool', '~> 2.3.0'
|
||||||
|
|
||||||
# For more information and examples about making a new gem, check out our
|
# For more information and examples about making a new gem, check out our
|
||||||
# guide at: https://bundler.io/guides/creating_gem.html
|
# guide at: https://bundler.io/guides/creating_gem.html
|
||||||
|
spec.metadata['rubygems_mfa_required'] = 'true'
|
||||||
end
|
end
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
# frozen_string_literal: true
|
# frozen_string_literal: true
|
||||||
|
|
||||||
RSpec.describe RabbitCarrots do
|
RSpec.describe RabbitCarrots do
|
||||||
it "has a version number" do
|
it 'has a version number' do
|
||||||
expect(RabbitCarrots::VERSION).not_to be nil
|
expect(RabbitCarrots::VERSION).not_to be nil
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
@ -1,10 +1,10 @@
|
|||||||
# frozen_string_literal: true
|
# frozen_string_literal: true
|
||||||
|
|
||||||
require "rabbit_carrots"
|
require 'rabbit_carrots'
|
||||||
|
|
||||||
RSpec.configure do |config|
|
RSpec.configure do |config|
|
||||||
# Enable flags like --only-failures and --next-failure
|
# Enable flags like --only-failures and --next-failure
|
||||||
config.example_status_persistence_file_path = ".rspec_status"
|
config.example_status_persistence_file_path = '.rspec_status'
|
||||||
|
|
||||||
# Disable RSpec exposing methods globally on `Module` and `main`
|
# Disable RSpec exposing methods globally on `Module` and `main`
|
||||||
config.disable_monkey_patching!
|
config.disable_monkey_patching!
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user