Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #49 from Shopify/rubocop
fix rubocop warnings
- Loading branch information
Showing
18 changed files
with
74 additions
and
205 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
# frozen_string_literal: true | ||
|
||
source 'https://rubygems.org' | ||
source "https://rubygems.org" | ||
|
||
gemspec |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,4 +10,4 @@ Rake::TestTask.new(:test) do |t| | |
t.warning = true | ||
end | ||
|
||
task default: :test | ||
task default: :test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
# frozen_string_literal: true | ||
|
||
require 'limiter/clock' | ||
require 'limiter/mixin' | ||
require 'limiter/rate_queue' | ||
require 'limiter/version' | ||
require "limiter/clock" | ||
require "limiter/mixin" | ||
require "limiter/rate_queue" | ||
require "limiter/version" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
# frozen_string_literal: true | ||
|
||
module Limiter | ||
VERSION = '2.3.0' | ||
VERSION = "2.3.0" | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,3 @@ | ||
require 'limiter' | ||
# frozen_string_literal: true | ||
|
||
require "limiter" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,41 +1,41 @@ | ||
# frozen_string_literal: true | ||
|
||
lib = File.expand_path('lib', __dir__) | ||
lib = File.expand_path("lib", __dir__) | ||
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib) | ||
require 'limiter/version' | ||
require "limiter/version" | ||
|
||
Gem::Specification.new do |spec| | ||
spec.name = 'ruby-limiter' | ||
spec.name = "ruby-limiter" | ||
spec.version = Limiter::VERSION | ||
spec.authors = ['S. Brent Faulkner'] | ||
spec.email = ['brent.faulkner@shopify.com'] | ||
spec.authors = ["S. Brent Faulkner"] | ||
spec.email = ["brent.faulkner@shopify.com"] | ||
|
||
spec.summary = 'Simple Ruby rate limiting mechanism.' | ||
spec.homepage = 'https://github.com/Shopify/limiter' | ||
spec.license = 'MIT' | ||
spec.summary = "Simple Ruby rate limiting mechanism." | ||
spec.homepage = "https://github.com/Shopify/limiter" | ||
spec.license = "MIT" | ||
spec.required_ruby_version = Gem::Requirement.new(">= 2.6.0") | ||
|
||
if spec.respond_to?(:metadata) | ||
spec.metadata['allowed_push_host'] = "https://rubygems.org" | ||
spec.metadata["allowed_push_host"] = "https://rubygems.org" | ||
else | ||
raise "RubyGems 2.0 or newer is required to protect against public gem pushes." | ||
end | ||
|
||
spec.files = `git ls-files -z`.split("\x0").reject do |f| | ||
spec.files = %x(git ls-files -z).split("\x0").reject do |f| | ||
f.match(%r{^(test|spec|features)/}) | ||
end | ||
spec.bindir = 'exe' | ||
spec.bindir = "exe" | ||
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) } | ||
spec.require_paths = %w(lib) | ||
spec.require_paths = ["lib"] | ||
|
||
spec.add_development_dependency 'bundler' | ||
spec.add_development_dependency 'minitest', '~> 5.20' | ||
spec.add_development_dependency 'minitest-focus', '~> 1.4' | ||
spec.add_development_dependency 'mocha', '~> 2.1' | ||
spec.add_development_dependency 'rake', '~> 13.0' | ||
spec.add_development_dependency 'rubocop', '~> 1.57' | ||
spec.add_development_dependency 'code-scanning-rubocop', '~> 0.6.1' | ||
spec.add_development_dependency 'rubocop-shopify', '~> 2.14' | ||
spec.add_development_dependency 'rubocop-minitest', '~> 0.33.0' | ||
spec.add_development_dependency 'rubocop-rake', '~> 0.6.0' | ||
spec.add_development_dependency("bundler") | ||
spec.add_development_dependency("code-scanning-rubocop", "~> 0.6.1") | ||
spec.add_development_dependency("minitest", "~> 5.20") | ||
spec.add_development_dependency("minitest-focus", "~> 1.4") | ||
spec.add_development_dependency("mocha", "~> 2.1") | ||
spec.add_development_dependency("rake", "~> 13.0") | ||
spec.add_development_dependency("rubocop", "~> 1.57") | ||
spec.add_development_dependency("rubocop-minitest", "~> 0.33.0") | ||
spec.add_development_dependency("rubocop-rake", "~> 0.6.0") | ||
spec.add_development_dependency("rubocop-shopify", "~> 2.14") | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.