Skip to content

Commit

Permalink
Remove all magic comments about encoding (#468)
Browse files Browse the repository at this point in the history
They only work when they are on the first line as pointed out by
#423
(#309 broke that when adding the frozen_string_literal pragma)

UTF-8 is the default (as pointed out by our bot in #467), so remove
them.

Close #423
  • Loading branch information
dentarg committed Jul 25, 2022
1 parent 183b6ea commit ab4bc46
Show file tree
Hide file tree
Showing 11 changed files with 0 additions and 11 deletions.
1 change: 0 additions & 1 deletion lib/addressable/idna.rb
@@ -1,6 +1,5 @@
# frozen_string_literal: true

# encoding:utf-8
#--
# Copyright (C) Bob Aman
#
Expand Down
1 change: 0 additions & 1 deletion lib/addressable/idna/native.rb
@@ -1,6 +1,5 @@
# frozen_string_literal: true

# encoding:utf-8
#--
# Copyright (C) Bob Aman
#
Expand Down
1 change: 0 additions & 1 deletion lib/addressable/idna/pure.rb
@@ -1,6 +1,5 @@
# frozen_string_literal: true

# encoding:utf-8
#--
# Copyright (C) Bob Aman
#
Expand Down
1 change: 0 additions & 1 deletion lib/addressable/template.rb
@@ -1,6 +1,5 @@
# frozen_string_literal: true

# encoding:utf-8
#--
# Copyright (C) Bob Aman
#
Expand Down
1 change: 0 additions & 1 deletion lib/addressable/uri.rb
@@ -1,6 +1,5 @@
# frozen_string_literal: true

# encoding:utf-8
#--
# Copyright (C) Bob Aman
#
Expand Down
1 change: 0 additions & 1 deletion lib/addressable/version.rb
@@ -1,6 +1,5 @@
# frozen_string_literal: true

# encoding:utf-8
#--
# Copyright (C) Bob Aman
#
Expand Down
1 change: 0 additions & 1 deletion spec/addressable/idna_spec.rb
@@ -1,6 +1,5 @@
# frozen_string_literal: true

# coding: utf-8
# Copyright (C) Bob Aman
#
# Licensed under the Apache License, Version 2.0 (the "License");
Expand Down
1 change: 0 additions & 1 deletion spec/addressable/net_http_compat_spec.rb
@@ -1,6 +1,5 @@
# frozen_string_literal: true

# coding: utf-8
# Copyright (C) Bob Aman
#
# Licensed under the Apache License, Version 2.0 (the "License");
Expand Down
1 change: 0 additions & 1 deletion spec/addressable/security_spec.rb
@@ -1,6 +1,5 @@
# frozen_string_literal: true

# coding: utf-8
# Copyright (C) Bob Aman
#
# Licensed under the Apache License, Version 2.0 (the "License");
Expand Down
1 change: 0 additions & 1 deletion spec/addressable/template_spec.rb
@@ -1,6 +1,5 @@
# frozen_string_literal: true

# coding: utf-8
# Copyright (C) Bob Aman
#
# Licensed under the Apache License, Version 2.0 (the "License");
Expand Down
1 change: 0 additions & 1 deletion spec/addressable/uri_spec.rb
@@ -1,6 +1,5 @@
# frozen_string_literal: true

# coding: utf-8
# Copyright (C) Bob Aman
#
# Licensed under the Apache License, Version 2.0 (the "License");
Expand Down

0 comments on commit ab4bc46

Please sign in to comment.