Skip to content

Remove redundant utf-8 magic comment from gemspec - #812

Closed
tagliala wants to merge 1 commit into
nesquena:masterfrom
tagliala:remove-utf8-magic-comment
Closed

tagliala wants to merge 1 commit into
nesquena:masterfrom
tagliala:remove-utf8-magic-comment

Conversation

@tagliala

@tagliala tagliala commented Nov 1, 2026

Copy link
Copy Markdown
Collaborator

Ruby 2.0+ reads source files as UTF-8 by default, and rabl.gemspec already
requires Ruby 2.7 or newer, so the # -*- encoding: utf-8 -*- line is
redundant.

test/msgpack_engine_test.rb keeps its # encoding: iso-8859-1 line: that
one is not a default and still matters.

Verification: ruby -c rabl.gemspec and loading the gemspec both succeed.

Ruby 2.0+ defaults source encoding to UTF-8 and the gemspec requires
Ruby 2.7 or newer, so the comment adds nothing.
@tagliala

tagliala commented Nov 1, 2026

Copy link
Copy Markdown
Collaborator Author

Superseded by #813, opened from a branch in this repository instead of a fork.

@tagliala tagliala closed this Nov 1, 2026
@tagliala
tagliala deleted the remove-utf8-magic-comment branch November 1, 2026 09:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant