Skip to content

Commit

Permalink
Merge pull request #9 from netlify/more-dependencies
Browse files Browse the repository at this point in the history
Update dependencies to rubocop < 2
  • Loading branch information
kitop committed Mar 27, 2021
2 parents 469742b + 39dc3cc commit 2df866c
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion lib/rubocop/cop/netlify/invalid_model_assignment.rb
Expand Up @@ -13,7 +13,6 @@ module Netlify
# form.email = "bettse@netlify.com"
class InvalidModelAssignment < Cop
MSG = "Assigning to `attributes` will not update record"
RESTRICT_ON_SEND = [:attributes].freeze

def_node_matcher :assign_attributes?, <<~PATTERN
(send (send (...) :attributes) :[]= _ _)
Expand Down
2 changes: 1 addition & 1 deletion rubocop-netlify.gemspec
Expand Up @@ -14,7 +14,7 @@ Gem::Specification.new do |spec|
spec.license = "MIT"
spec.required_ruby_version = Gem::Requirement.new(">= 2.5.0")

spec.add_dependency "rubocop", "~> 0.72", "< 0.90"
spec.add_dependency "rubocop", "~> 0.72", "< 2.0"
spec.add_development_dependency "minitest", "~> 5.10"

# Specify which files should be added to the gem when it is released.
Expand Down

0 comments on commit 2df866c

Please sign in to comment.