Skip to content

Commit ab4bc46

Browse files
authored
Remove all magic comments about encoding (#468)
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
1 parent 183b6ea commit ab4bc46

File tree

11 files changed

+0
-11
lines changed

11 files changed

+0
-11
lines changed

lib/addressable/idna.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
# frozen_string_literal: true
22

3-
# encoding:utf-8
43
#--
54
# Copyright (C) Bob Aman
65
#

lib/addressable/idna/native.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
# frozen_string_literal: true
22

3-
# encoding:utf-8
43
#--
54
# Copyright (C) Bob Aman
65
#

lib/addressable/idna/pure.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
# frozen_string_literal: true
22

3-
# encoding:utf-8
43
#--
54
# Copyright (C) Bob Aman
65
#

lib/addressable/template.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
# frozen_string_literal: true
22

3-
# encoding:utf-8
43
#--
54
# Copyright (C) Bob Aman
65
#

lib/addressable/uri.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
# frozen_string_literal: true
22

3-
# encoding:utf-8
43
#--
54
# Copyright (C) Bob Aman
65
#

lib/addressable/version.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
# frozen_string_literal: true
22

3-
# encoding:utf-8
43
#--
54
# Copyright (C) Bob Aman
65
#

spec/addressable/idna_spec.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
# frozen_string_literal: true
22

3-
# coding: utf-8
43
# Copyright (C) Bob Aman
54
#
65
# Licensed under the Apache License, Version 2.0 (the "License");

spec/addressable/net_http_compat_spec.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
# frozen_string_literal: true
22

3-
# coding: utf-8
43
# Copyright (C) Bob Aman
54
#
65
# Licensed under the Apache License, Version 2.0 (the "License");

spec/addressable/security_spec.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
# frozen_string_literal: true
22

3-
# coding: utf-8
43
# Copyright (C) Bob Aman
54
#
65
# Licensed under the Apache License, Version 2.0 (the "License");

spec/addressable/template_spec.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
# frozen_string_literal: true
22

3-
# coding: utf-8
43
# Copyright (C) Bob Aman
54
#
65
# Licensed under the Apache License, Version 2.0 (the "License");

0 commit comments

Comments
 (0)