From ab4bc464027d9edc4aee410f20895483b107b3cd Mon Sep 17 00:00:00 2001 From: Patrik Ragnarsson Date: Mon, 25 Jul 2022 18:12:49 +0200 Subject: [PATCH] Remove all magic comments about encoding (#468) They only work when they are on the first line as pointed out by https://github.com/sporkmonger/addressable/issues/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 --- lib/addressable/idna.rb | 1 - lib/addressable/idna/native.rb | 1 - lib/addressable/idna/pure.rb | 1 - lib/addressable/template.rb | 1 - lib/addressable/uri.rb | 1 - lib/addressable/version.rb | 1 - spec/addressable/idna_spec.rb | 1 - spec/addressable/net_http_compat_spec.rb | 1 - spec/addressable/security_spec.rb | 1 - spec/addressable/template_spec.rb | 1 - spec/addressable/uri_spec.rb | 1 - 11 files changed, 11 deletions(-) diff --git a/lib/addressable/idna.rb b/lib/addressable/idna.rb index e41c1f5d..2dbd3934 100644 --- a/lib/addressable/idna.rb +++ b/lib/addressable/idna.rb @@ -1,6 +1,5 @@ # frozen_string_literal: true -# encoding:utf-8 #-- # Copyright (C) Bob Aman # diff --git a/lib/addressable/idna/native.rb b/lib/addressable/idna/native.rb index 84de8e8c..302e1b0c 100644 --- a/lib/addressable/idna/native.rb +++ b/lib/addressable/idna/native.rb @@ -1,6 +1,5 @@ # frozen_string_literal: true -# encoding:utf-8 #-- # Copyright (C) Bob Aman # diff --git a/lib/addressable/idna/pure.rb b/lib/addressable/idna/pure.rb index 7a0c1fda..a7c796e3 100644 --- a/lib/addressable/idna/pure.rb +++ b/lib/addressable/idna/pure.rb @@ -1,6 +1,5 @@ # frozen_string_literal: true -# encoding:utf-8 #-- # Copyright (C) Bob Aman # diff --git a/lib/addressable/template.rb b/lib/addressable/template.rb index 398af17c..232595c1 100644 --- a/lib/addressable/template.rb +++ b/lib/addressable/template.rb @@ -1,6 +1,5 @@ # frozen_string_literal: true -# encoding:utf-8 #-- # Copyright (C) Bob Aman # diff --git a/lib/addressable/uri.rb b/lib/addressable/uri.rb index b91d513a..6e55cda9 100644 --- a/lib/addressable/uri.rb +++ b/lib/addressable/uri.rb @@ -1,6 +1,5 @@ # frozen_string_literal: true -# encoding:utf-8 #-- # Copyright (C) Bob Aman # diff --git a/lib/addressable/version.rb b/lib/addressable/version.rb index 2efe4340..76670295 100644 --- a/lib/addressable/version.rb +++ b/lib/addressable/version.rb @@ -1,6 +1,5 @@ # frozen_string_literal: true -# encoding:utf-8 #-- # Copyright (C) Bob Aman # diff --git a/spec/addressable/idna_spec.rb b/spec/addressable/idna_spec.rb index 4104b370..b1509d22 100644 --- a/spec/addressable/idna_spec.rb +++ b/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"); diff --git a/spec/addressable/net_http_compat_spec.rb b/spec/addressable/net_http_compat_spec.rb index 8663a867..d07a43e5 100644 --- a/spec/addressable/net_http_compat_spec.rb +++ b/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"); diff --git a/spec/addressable/security_spec.rb b/spec/addressable/security_spec.rb index 601e8088..3bf90a20 100644 --- a/spec/addressable/security_spec.rb +++ b/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"); diff --git a/spec/addressable/template_spec.rb b/spec/addressable/template_spec.rb index d47589ab..feaa9bde 100644 --- a/spec/addressable/template_spec.rb +++ b/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"); diff --git a/spec/addressable/uri_spec.rb b/spec/addressable/uri_spec.rb index 00baaacf..76edaad0 100644 --- a/spec/addressable/uri_spec.rb +++ b/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");