Skip to content

Commit

Permalink
fix linter errors
Browse files Browse the repository at this point in the history
Signed-off-by: Kirill Mokevnin <[email protected]>
  • Loading branch information
mokevnin committed Jun 1, 2024
1 parent 166df73 commit 2eaa9d1
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 8 deletions.
3 changes: 2 additions & 1 deletion .rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ require:

AllCops:
NewCops: enable
TargetRubyVersion: 2.7
Exclude:
- 'lib/generators/**/*.rb'

Style/Documentation:
Enabled: false
4 changes: 4 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ gem 'rake'

gem 'rubocop'

gem 'actionpack'
gem 'activemodel'
gem 'activerecord'
gem 'minitest-power_assert'
gem 'rubocop-minitest'
gem 'rubocop-rake'
gem 'sqlite3', '~> 1.7'
8 changes: 2 additions & 6 deletions active_form_model.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,13 @@ Gem::Specification.new do |spec|
spec.description = 'Based on inheritance'
spec.homepage = 'https://github.com/Hexlet/active_form_model'
spec.license = 'MIT'
spec.required_ruby_version = Gem::Requirement.new('>= 2.7.0')
spec.required_ruby_version = Gem::Requirement.new('>= 3.0.0')

# spec.metadata["allowed_push_host"] = "TODO: Set to 'http://mygemserver.com'"

spec.metadata['homepage_uri'] = spec.homepage
spec.metadata['source_code_uri'] = 'https://github.com/Hexlet/form-model.git'
spec.metadata['rubygems_mfa_required'] = 'true'
# spec.metadata["changelog_uri"] = "TODO: Put your gem's CHANGELOG.md URL here."

# Specify which files should be added to the gem when it is released.
Expand All @@ -30,9 +31,4 @@ Gem::Specification.new do |spec|
spec.require_paths = ['lib']

spec.add_dependency('activesupport', '>= 3')

spec.add_development_dependency('actionpack', '>= 5')
spec.add_development_dependency('activemodel', '>= 5')
spec.add_development_dependency('activerecord', '>= 5')
spec.add_development_dependency('sqlite3')
end
2 changes: 1 addition & 1 deletion lib/active_form_model/permittable.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ module Permittable
def new(attrs = nil, &block)
attrs = _permit_attrs(attrs) if attrs

super(attrs, &block)
super
end

def permit(*args)
Expand Down

0 comments on commit 2eaa9d1

Please sign in to comment.