RuboCop: Bundler and Gemspec

Change-Id: I3077a90ba421f5996bb7ef2d4b7d85c2134b4c11
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/274193
Reviewed-by: Simon Williams <simon@instructure.com>
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
QA-Review: Cody Cutrer <cody@instructure.com>
Product-Review: Cody Cutrer <cody@instructure.com>
This commit is contained in:
Cody Cutrer 2021-09-22 12:59:02 -06:00
parent c65d57737a
commit 2d7a070910
38 changed files with 66 additions and 60 deletions

View File

@ -14,8 +14,12 @@ AllCops:
Bundler/OrderedGems:
Enabled: false # this isn't good for us because of how we pin dependencies
Gemspec/OrderedDependencies:
Enabled: false # this isn't good for us because of how we pin dependencies
Gemspec/RequiredRubyVersion:
# all the gemspecs in this repo are non-published gems
# the root Gemfile enforces the Ruby version, and we purposely
# don't specify required_ruby_version in the rest to reduce
# maintenance pain when updating ruby versions
Enabled: false
Layout/EmptyLineAfterMagicComment:
Exclude:

View File

@ -16,6 +16,8 @@ AllCops:
# values are an array of directories to opt in for (nil being all directories)
OPT_IN = {
nil => %w[Gemfile.d].freeze,
'Bundler' => nil,
'Gemspec' => nil,
'Layout' => %w[bin build config db doc engines gems script].freeze
}.freeze

View File

@ -15,14 +15,14 @@ Gem::Specification.new do |spec|
spec.description = "append-only log of important changes within canvas"
spec.files = Dir["{app,config,db,lib}/**/*", "Rakefile", "README.md"]
spec.add_dependency "rails", ">= 5.2.4.5"
spec.add_dependency "switchman", '>= 2.0.3'
spec.add_dependency "canvas_cassandra"
spec.add_dependency "dynamic_settings"
spec.add_dependency "event_stream"
spec.add_dependency "rails", ">= 5.2.4.5"
spec.add_dependency "switchman", '>= 2.0.3'
spec.add_development_dependency "pg"
spec.add_development_dependency "rspec-rails"
spec.add_development_dependency "brakeman"
spec.add_development_dependency "byebug"
spec.add_development_dependency "pg"
spec.add_development_dependency "rspec-rails"
end

View File

@ -21,6 +21,6 @@ Gem::Specification.new do |spec|
spec.add_dependency 'rails', ">= 3.2"
spec.add_development_dependency "bundler", ">= 1.5", "< 3.0"
spec.add_development_dependency "sqlite3"
spec.add_development_dependency "rspec", "~> 3.5.0"
spec.add_development_dependency "sqlite3"
end

View File

@ -17,7 +17,7 @@ Gem::Specification.new do |spec|
spec.required_ruby_version = '>= 2.0'
spec.add_development_dependency "byebug"
spec.add_development_dependency "activesupport"
spec.add_development_dependency "byebug"
spec.add_development_dependency "rspec", "~> 3.5.0"
end

View File

@ -17,15 +17,15 @@ Gem::Specification.new do |spec|
spec.require_paths = ["lib"]
spec.add_dependency "folio-pagination", "~> 0.0.12"
spec.add_dependency "will_paginate", "~> 3.0"
spec.add_dependency "rails", ">= 3.2"
spec.add_dependency "will_paginate", "~> 3.0"
spec.add_dependency "paginated_collection"
spec.add_dependency "json_token"
spec.add_dependency "paginated_collection"
spec.add_development_dependency "bundler", "~> 2.2"
spec.add_development_dependency "byebug"
spec.add_development_dependency "rake"
spec.add_development_dependency "rspec", "~> 3.5.0"
spec.add_development_dependency "sqlite3"
spec.add_development_dependency "byebug"
end

View File

@ -19,7 +19,7 @@ Gem::Specification.new do |s|
s.add_dependency "activesupport"
s.add_dependency "after_transaction_commit"
s.add_development_dependency "rspec", "~> 3.5.0"
s.add_development_dependency "byebug"
s.add_development_dependency "pry"
s.add_development_dependency "rspec", "~> 3.5.0"
end

View File

@ -20,15 +20,15 @@ Gem::Specification.new do |spec|
spec.add_dependency 'rails'
# redis things required in canvas
spec.add_dependency 'digest-murmurhash', '>= 1.1.0'
spec.add_dependency 'redis', '>= 4.1.0'
spec.add_dependency 'redis-scripting', '>= 1.0.0'
spec.add_dependency 'digest-murmurhash', '>= 1.1.0'
spec.add_dependency 'guardrail', '>= 2.0.0'
spec.add_dependency 'inst_statsd', '>= 2.1.0'
spec.add_development_dependency 'bundler'
spec.add_development_dependency 'rspec'
spec.add_development_dependency 'byebug'
spec.add_development_dependency 'rspec'
spec.add_development_dependency 'timecop'
end

View File

@ -19,11 +19,11 @@ Gem::Specification.new do |spec|
spec.require_paths = ["lib"]
spec.add_dependency 'cassandra-cql', '~> 1.2.2'
spec.add_dependency "rails", ">= 5.0"
spec.add_dependency "config_file"
spec.add_dependency "rails", ">= 5.0"
spec.add_development_dependency "bundler", "~> 2.2"
spec.add_development_dependency "byebug"
spec.add_development_dependency "rake"
spec.add_development_dependency "rspec", "~> 3.5.0"
spec.add_development_dependency "byebug"
end

View File

@ -18,8 +18,8 @@ Gem::Specification.new do |spec|
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
spec.require_paths = ["lib"]
spec.add_runtime_dependency 'aws-sdk-dynamodb', '~> 1.32'
spec.add_runtime_dependency 'aws-sdk-applicationautoscaling', '~> 1.26'
spec.add_runtime_dependency 'aws-sdk-dynamodb', '~> 1.32'
spec.add_development_dependency "bundler", "~> 2.2"
spec.add_development_dependency "rake"

View File

@ -20,6 +20,6 @@ Gem::Specification.new do |spec|
spec.add_dependency 'inst-jobs'
spec.add_development_dependency 'bundler'
spec.add_development_dependency 'rspec'
spec.add_development_dependency 'byebug'
spec.add_development_dependency 'rspec'
end

View File

@ -16,8 +16,8 @@ Gem::Specification.new do |spec|
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
spec.require_paths = ["lib"]
spec.add_dependency "tzinfo"
spec.add_dependency "activesupport", ">= 3.2"
spec.add_dependency "tzinfo"
spec.add_development_dependency "bundler", "~> 2.2"
spec.add_development_dependency "rake"

View File

@ -19,8 +19,8 @@ Gem::Specification.new do |spec|
spec.add_dependency "multipart"
spec.add_development_dependency "bundler", "~> 2.2"
spec.add_development_dependency "multipart"
spec.add_development_dependency "rake"
spec.add_development_dependency "rspec", "~> 3.5.0"
spec.add_development_dependency "multipart"
spec.add_development_dependency "webmock", "1.24.6"
end

View File

@ -16,11 +16,11 @@ Gem::Specification.new do |spec|
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
spec.require_paths = ["lib"]
spec.add_dependency "nokogiri"
spec.add_dependency "canvas_http"
spec.add_dependency "canvas_slug"
spec.add_dependency "canvas_sort"
spec.add_dependency "multipart"
spec.add_dependency "canvas_slug"
spec.add_dependency "nokogiri"
spec.add_development_dependency "bundler", "~> 2.2"
spec.add_development_dependency "rake"

View File

@ -15,8 +15,8 @@ Gem::Specification.new do |spec|
spec.license = 'AGPL'
spec.add_dependency 'activerecord', '>= 3.2'
spec.add_dependency 'pg', '>= 0.17', '< 2.0'
spec.add_dependency 'activerecord-pg-extensions', '>= 0.3.0'
spec.add_dependency 'pg', '>= 0.17', '< 2.0'
spec.add_development_dependency 'bundler', '~> 2.2'
spec.add_development_dependency 'rspec', '~> 3.5.0'

View File

@ -17,11 +17,11 @@ Gem::Specification.new do |spec|
spec.add_dependency 'html_text_helper'
spec.add_development_dependency 'bundler', '~> 2.2'
spec.add_development_dependency 'rake'
spec.add_development_dependency 'rspec', "~> 3.5.0"
spec.add_development_dependency 'byebug'
spec.add_development_dependency 'guard'
spec.add_development_dependency 'guard-rspec'
spec.add_development_dependency 'terminal-notifier-guard'
spec.add_development_dependency 'listen', "3.0.8"
spec.add_development_dependency 'rake'
spec.add_development_dependency 'rspec', "~> 3.5.0"
spec.add_development_dependency 'terminal-notifier-guard'
end

View File

@ -18,12 +18,12 @@ Gem::Specification.new do |spec|
spec.add_dependency 'canvas_cache'
spec.add_dependency 'canvas_errors'
spec.add_dependency 'rails'
spec.add_dependency 'json-jwt', '1.13.0'
spec.add_dependency 'dynamic_settings'
spec.add_dependency 'json-jwt', '1.13.0'
spec.add_dependency 'rails'
spec.add_development_dependency 'bundler'
spec.add_development_dependency 'rspec'
spec.add_development_dependency 'byebug'
spec.add_development_dependency 'rspec'
spec.add_development_dependency 'timecop'
end

View File

@ -21,7 +21,7 @@ Gem::Specification.new do |spec|
spec.add_development_dependency "activerecord"
spec.add_development_dependency "bundler", ">= 1.5", "< 3"
spec.add_development_dependency "rake"
spec.add_development_dependency "sqlite3"
spec.add_development_dependency "RedCloth"
spec.add_development_dependency "rspec", "~> 3.5.0"
spec.add_development_dependency "sqlite3"
end

View File

@ -19,6 +19,6 @@ Gem::Specification.new do |spec|
spec.add_dependency 'rails', ">= 5.0"
spec.add_development_dependency 'bundler'
spec.add_development_dependency 'rspec'
spec.add_development_dependency 'byebug'
spec.add_development_dependency 'rspec'
end

View File

@ -16,8 +16,8 @@ Gem::Specification.new do |spec|
spec.require_paths = ["lib"]
spec.add_dependency "gergich", "1.2.1"
spec.add_development_dependency "rspec", "~> 3.5.0"
spec.add_development_dependency "rspec-mocks"
spec.add_development_dependency "pry"
spec.add_development_dependency "pry-nav"
spec.add_development_dependency "rspec", "~> 3.5.0"
spec.add_development_dependency "rspec-mocks"
end

View File

@ -22,6 +22,6 @@ Gem::Specification.new do |spec|
spec.add_dependency 'railties'
spec.add_development_dependency 'bundler'
spec.add_development_dependency 'rspec'
spec.add_development_dependency 'byebug'
spec.add_development_dependency 'rspec'
end

View File

@ -20,9 +20,9 @@ Gem::Specification.new do |spec|
spec.add_runtime_dependency "google-api-client", "0.8.2"
spec.add_development_dependency "bundler"
spec.add_development_dependency "byebug"
spec.add_development_dependency "rake"
spec.add_development_dependency "rspec", "~> 3.5.0"
spec.add_development_dependency "byebug"
spec.add_development_dependency "timecop"
spec.add_development_dependency "webmock"
spec.add_dependency 'faraday', '~> 0.17.3'

View File

@ -16,9 +16,9 @@ Gem::Specification.new do |spec|
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
spec.require_paths = ["lib"]
spec.add_dependency 'canvas_text_helper'
spec.add_dependency 'nokogiri'
spec.add_dependency 'sanitize', '~> 5.2'
spec.add_dependency 'canvas_text_helper'
spec.add_dependency 'activesupport', ">= 3.2"

View File

@ -16,10 +16,10 @@ Gem::Specification.new do |spec|
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
spec.require_paths = ["lib"]
spec.add_dependency "sexp_processor", "~> 4.14", ">= 4.14.1"
spec.add_dependency "ruby_parser", "~> 3.7"
spec.add_dependency "activesupport", ">= 3.2"
spec.add_dependency "i18nliner", "~> 0.1"
spec.add_dependency "ruby_parser", "~> 3.7"
spec.add_dependency "sexp_processor", "~> 4.14", ">= 4.14.1"
spec.add_development_dependency "bundler", "~> 2.2"
spec.add_development_dependency "rake"

View File

@ -19,8 +19,8 @@ Gem::Specification.new do |spec|
spec.add_dependency "activesupport", ">= 3.2"
spec.add_dependency "i18n", ">= 0.7", "< 2"
spec.add_dependency "ruby_parser", "~> 3.7"
spec.add_dependency "i18n_extraction"
spec.add_dependency "ruby_parser", "~> 3.7"
spec.add_dependency "utf8_cleaner"
spec.add_development_dependency "bundler", "~> 2.2"

View File

@ -18,12 +18,12 @@ Gem::Specification.new do |spec|
spec.add_dependency "activesupport", ">= 3.2"
spec.add_dependency "mail", "~> 2.7.0"
spec.add_dependency "html_text_helper"
spec.add_dependency "utf8_cleaner"
spec.add_dependency "inst_statsd"
spec.add_dependency "aws-sdk-s3"
spec.add_dependency "aws-sdk-sqs"
spec.add_dependency "html_text_helper"
spec.add_dependency "inst_statsd"
spec.add_dependency "mail", "~> 2.7.0"
spec.add_dependency "utf8_cleaner"
spec.add_development_dependency "bundler", "~> 2.2"
spec.add_development_dependency "byebug"

View File

@ -20,7 +20,7 @@ Gem::Specification.new do |spec|
spec.add_dependency 'json-jwt', '1.13.0'
spec.add_development_dependency 'bundler'
spec.add_development_dependency 'rspec'
spec.add_development_dependency 'byebug'
spec.add_development_dependency 'rspec'
spec.add_development_dependency 'timecop'
end

View File

@ -16,8 +16,8 @@ Gem::Specification.new do |spec|
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
spec.require_paths = ["lib"]
spec.add_dependency "oauth"
spec.add_dependency "nokogiri"
spec.add_dependency "oauth"
spec.add_development_dependency "bundler", "~> 2.2"
spec.add_development_dependency "rake"

View File

@ -16,12 +16,12 @@ Gem::Specification.new do |spec|
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
spec.require_paths = ["lib"]
spec.add_dependency "activesupport"
spec.add_dependency "aws-sdk-kinesis"
spec.add_dependency "inst_statsd"
spec.add_dependency "activesupport"
spec.add_development_dependency "bundler", "~> 2.2"
spec.add_development_dependency "rake"
spec.add_development_dependency "byebug"
spec.add_development_dependency "rake"
spec.add_development_dependency "rspec", "~> 3.5.0"
end

View File

@ -28,11 +28,11 @@ Gem::Specification.new do |spec|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
spec.require_paths = ["lib"]
spec.add_runtime_dependency 'json-jwt', '~> 1.5'
spec.add_runtime_dependency "activemodel", ">= 5.1"
spec.add_runtime_dependency 'json-jwt', '~> 1.5'
spec.add_development_dependency "redcarpet"
spec.add_development_dependency "bundler", "~> 2.2"
spec.add_development_dependency "rake", "~> 10.0"
spec.add_development_dependency "redcarpet"
spec.add_development_dependency "rspec", "~> 3.0"
end

View File

@ -16,12 +16,12 @@ Gem::Specification.new do |spec|
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
spec.require_paths = ["lib"]
spec.add_dependency "mime-types", "~> 3.2"
spec.add_dependency "canvas_slug"
spec.add_dependency "mime-types", "~> 3.2"
spec.add_development_dependency "bundler", "~> 2.2"
spec.add_development_dependency "rake"
spec.add_development_dependency "rspec", "~> 3.5.0"
spec.add_development_dependency "rack", "~> 1.6"
spec.add_development_dependency "rack-test", "0.6.2"
spec.add_development_dependency "rake"
spec.add_development_dependency "rspec", "~> 3.5.0"
end

View File

@ -15,6 +15,6 @@ Gem::Specification.new do |spec|
spec.files = Dir["{app,config,db,lib}/**/*"]
spec.test_files = Dir["spec_canvas/**/*"]
spec.add_dependency "rails", ">= 3.2"
spec.add_dependency "academic_benchmarks", "~> 1.1.0"
spec.add_dependency "rails", ">= 3.2"
end

View File

@ -18,6 +18,6 @@ Gem::Specification.new do |s|
s.files = Dir["{lib}/**/*"]
s.test_files = Dir["spec_canvas/**/*"]
s.add_dependency "rails", ">= 3.2"
s.add_dependency "moodle2cc", "0.2.41"
s.add_dependency "rails", ">= 3.2"
end

View File

@ -16,8 +16,8 @@ Gem::Specification.new do |spec|
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
spec.require_paths = ["lib"]
spec.add_dependency 'canvas_security'
spec.add_dependency 'actionpack'
spec.add_dependency 'canvas_security'
spec.add_dependency 'railties'
spec.add_development_dependency 'bundler'

View File

@ -22,9 +22,9 @@ Gem::Specification.new do |spec|
spec.add_dependency "rubocop", "~> 1.19"
spec.add_development_dependency "bundler", "~> 2.2"
spec.add_development_dependency "byebug"
spec.add_development_dependency "pry", "~> 0.10.1"
spec.add_development_dependency "pry-nav", "~> 0.2.4"
spec.add_development_dependency "rake", "~> 10.0"
spec.add_development_dependency "rspec", "~> 3.5.0"
spec.add_development_dependency "byebug"
end

View File

@ -15,7 +15,7 @@ Gem::Specification.new do |spec|
spec.test_files = spec.files.grep(%r{^spec/})
spec.require_paths = ["lib"]
spec.add_development_dependency "rspec", "~> 3.5.0"
spec.add_development_dependency "fakefs", "~> 1.2"
spec.add_development_dependency "rspec", "~> 3.5.0"
spec.add_development_dependency "timecop", "0.8.1"
end

View File

@ -18,10 +18,10 @@ Gem::Specification.new do |spec|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
spec.require_paths = ["lib"]
spec.add_dependency 'simple_oauth', '0.2'
spec.add_dependency 'webmock', '3.3.0'
spec.add_dependency 'faraday', '~> 0.17.3'
spec.add_dependency 'faraday_middleware', '~> 0.8'
spec.add_dependency 'simple_oauth', '0.2'
spec.add_dependency 'webmock', '3.3.0'
spec.add_development_dependency "bundler", "~> 2.2"
spec.add_development_dependency "rake", "~> 10.0"

View File

@ -20,7 +20,7 @@ Gem::Specification.new do |spec|
spec.add_dependency "oauth"
spec.add_development_dependency "bundler", "~> 2.2"
spec.add_development_dependency "byebug"
spec.add_development_dependency "rake"
spec.add_development_dependency "rspec", "~> 3.5.0"
spec.add_development_dependency "byebug"
end