Skip to content

Commit

Permalink
🚨 fix linter warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
alaz committed Jun 18, 2020
1 parent 8bb60c4 commit b943dbf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 0 additions & 2 deletions legitbot.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
$LOAD_PATH.push File.expand_path('lib', __dir__)
require 'legitbot/version'

# rubocop:disable Layout/LineLength
Gem::Specification.new do |spec|
spec.name = 'legitbot'
spec.version = Legitbot::VERSION
Expand All @@ -27,4 +26,3 @@ Gem::Specification.new do |spec|
spec.rdoc_options = ['--charset=UTF-8']
spec.test_files = Dir.glob('test/**/*')
end
# rubocop:enable Layout/LineLength
4 changes: 2 additions & 2 deletions test/apple_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ def test_invalid_ip
assert match.fake?, msg: "#{ip} is a fake Applebot IP"
end

# rubocop:disable Metrics/LineLength
# rubocop:disable Layout/LineLength
def test_user_agent
bot = Legitbot.bot(
'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_1) AppleWebKit/600.2.5 (KHTML, like Gecko) Version/8.0.2 Safari/600.2.5 (Applebot/0.1; +http://www.apple.com/go/applebot)',
Expand All @@ -25,5 +25,5 @@ def test_user_agent
assert_equal :apple, bot.detected_as
assert bot.valid?, msg: 'A valid Applebot User-agent and IP'
end
# rubocop:enable Metrics/LineLength
# rubocop:enable Layout/LineLength
end

0 comments on commit b943dbf

Please sign in to comment.