kuyio-rubocop.gemspec in kuyio-rubocop-0.1.5 vs kuyio-rubocop.gemspec in kuyio-rubocop-0.2.1

- old
+ new

@@ -1,11 +1,13 @@ -# coding: utf-8 -lib = File.expand_path("../lib", __FILE__) +# frozen_string_literal: true + +lib = File.expand_path('lib', __dir__) $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib) require "kuyio/rubocop/version" Gem::Specification.new do |spec| + spec.required_ruby_version = '>= 2.6' spec.name = "kuyio-rubocop" spec.version = Kuyio::Rubocop::VERSION spec.authors = ["KUY.io Inc."] spec.email = ["dev@kuy.io"] spec.license = 'MIT' @@ -16,27 +18,29 @@ # 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'] = 'https://rubygems.org' else raise "RubyGems 2.0 or newer is required to protect against " \ - "public gem pushes." + "public gem pushes." end - spec.files = `git ls-files -z`.split("\x0").reject do |f| + spec.files = `git ls-files -z`.split("\x0").reject do |f| f.match(%r{^(test|spec|features)/}) end spec.bindir = "exe" spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) } spec.require_paths = ["lib"] # Define Rubocop as gem dependencies so all projects # importing this gem can run bundle exec rubocop out # of the box without having to maintain rubocop gem # dependencies themselves. - spec.add_dependency "rubocop", "~> 1.4" - spec.add_dependency "rubocop-rspec", "~> 2.19" - spec.add_dependency "rubocop-rails", "~> 2.18" - spec.add_dependency "rubocop-performance", "~> 1.16" + spec.add_dependency 'rubocop', '~> 1.50.2' + spec.add_dependency 'rubocop-performance', '~> 1.15.0' + spec.add_dependency 'rubocop-rails', '~> 2.17.0' + spec.add_dependency 'rubocop-rspec', '~> 2.22.0' + spec.add_dependency "brakeman", "~> 5.4" spec.add_development_dependency "bundler", "~> 2.3" spec.add_development_dependency "rake", "~> 13.0" + spec.add_development_dependency 'rubocop-rake', '~> 0.6' end