Skip to content

Commit

Permalink
Merge pull request #5 from algolia/develop
Browse files Browse the repository at this point in the history
Fix lint errors
  • Loading branch information
Maria Elisabeth Schreiber committed Aug 24, 2019
2 parents b3102f8 + f01657e commit 86a4871
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/algolia_html_extractor.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require 'nokogiri'
require 'digest/md5'

Expand Down Expand Up @@ -153,6 +155,7 @@ def self.uuid(item)
def self.heading_weight(heading_level)
weight = 100
return weight if heading_level.nil?

weight - ((heading_level + 1) * 10)
end
end
2 changes: 2 additions & 0 deletions lib/version.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

# Expose gem version
# rubocop:disable Style/SingleLineMethods
class AlgoliaHTMLExtractorVersion
Expand Down

0 comments on commit 86a4871

Please sign in to comment.