Skip to content
This repository was archived by the owner on Apr 17, 2025. It is now read-only.

Commit b77ea39

Browse files
authored
Address RuboCop warnings (#55)
Addresses latest preferred RuboCop configuration. - RuboCop: Style/WordArray [ignore rev] - RuboCop: Style/StringLiteralsInInterpolation [ignore rev] - Update ignored revs file
2 parents 0f4a101 + b079612 commit b77ea39

5 files changed

Lines changed: 7 additions & 5 deletions

File tree

.git-blame-ignore-revs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,5 @@
88

99
512efa51fbac6687d90da2252b5dec91bf26e0cb
1010
580605ae8d72f5a9b1b6f9225c66c85c8f85e24f
11+
7b5964fffa3ab955efea80fd4b1943eb94d388ca
12+
152a44c9537ec4ce6a1d39f8c5567bfba88022c7

lib/link_header_parser/link_header.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ def context_uri
4848

4949
# @return [String]
5050
def inspect
51-
"#<#{self.class.name}:#{format('%#0x', object_id)} " \
51+
"#<#{self.class.name}:#{format("%#0x", object_id)} " \
5252
"target_uri: #{target_uri.inspect}, " \
5353
"relation_types: #{relation_types.inspect}>"
5454
end

lib/link_header_parser/link_header_parameter.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ def initialize(parameter)
1919

2020
# @return [String]
2121
def inspect
22-
"#<#{self.class.name}:#{format('%#0x', object_id)} " \
22+
"#<#{self.class.name}:#{format("%#0x", object_id)} " \
2323
"name: #{name.inspect}, " \
2424
"value: #{value.inspect}>"
2525
end

lib/link_header_parser/link_headers_collection.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ def group_by_relation_type
3939

4040
# @return [String]
4141
def inspect
42-
"#<#{self.class.name}:#{format('%#0x', object_id)} " \
42+
"#<#{self.class.name}:#{format("%#0x", object_id)} " \
4343
"headers: #{headers.inspect}, " \
4444
"relation_types: #{relation_types.inspect}>"
4545
end

link-header-parser.gemspec

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ Gem::Specification.new do |spec|
1616
spec.license = "MIT"
1717

1818
spec.files = Dir["lib/**/*"].reject { |f| File.directory?(f) }
19-
spec.files += %w[LICENSE CHANGELOG.md README.md]
20-
spec.files += %w[link-header-parser.gemspec]
19+
spec.files += ["LICENSE", "CHANGELOG.md", "README.md"]
20+
spec.files += ["link-header-parser.gemspec"]
2121

2222
spec.require_paths = ["lib"]
2323

0 commit comments

Comments
 (0)