Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions .rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,14 @@ inherit_mode:

require:
- standard
- rubocop-packaging
- rubocop-rake

plugins:
- standard-custom
- standard-performance
- rubocop-performance
- rubocop-minitest
- rubocop-packaging
- rubocop-rake

inherit_gem:
standard: config/base.yml
Expand Down
2 changes: 1 addition & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ group :development do
gem "simplecov", "= 0.21.2"

# rubocop
gem "standard", "1.45.0"
gem "standard", "1.47.0"
gem "rubocop-minitest", "0.37.0"
gem "rubocop-packaging", "0.5.2"
gem "rubocop-rake", "0.6.0"
Expand Down
2 changes: 1 addition & 1 deletion ext/nokogiri/extconf.rb
Original file line number Diff line number Diff line change
Expand Up @@ -461,7 +461,7 @@ def recipe.port_path
yield recipe

env = Hash.new do |hash, key|
hash[key] = (ENV[key]).to_s
hash[key] = ENV[key].to_s
end

recipe.configure_options.flatten!
Expand Down
4 changes: 2 additions & 2 deletions lib/nokogiri/xml/document.rb
Original file line number Diff line number Diff line change
Expand Up @@ -502,10 +502,10 @@ def deconstruct_keys(keys)
{ root: root }
end

private

IMPLIED_XPATH_CONTEXTS = ["//"].freeze # :nodoc:

private

def inspect_attributes
[:name, :children]
end
Expand Down
4 changes: 2 additions & 2 deletions lib/nokogiri/xml/node.rb
Original file line number Diff line number Diff line change
Expand Up @@ -1605,6 +1605,8 @@ def coerce(data)
EOERR
end

IMPLIED_XPATH_CONTEXTS = [".//"].freeze # :nodoc:

private

def keywordify(keywords)
Expand Down Expand Up @@ -1655,8 +1657,6 @@ def inspect_attributes
[:name, :namespace, :attribute_nodes, :children]
end

IMPLIED_XPATH_CONTEXTS = [".//"].freeze

def add_child_node_and_reparent_attrs(node)
add_child_node(node)
node.attribute_nodes.find_all { |a| a.name.include?(":") }.each do |attr_node|
Expand Down
Loading