Skip to content

Commit 60aa7ba

Browse files
committed
add encoding magic comments to files with utf-8 chars
Change-Id: Ieba9245724da8aeeb816d7f178bb704b3dcda80f Reviewed-on: https://gerrit.instructure.com/5832 Tested-by: Hudson <hudson@instructure.com> Reviewed-by: Jon Jensen <jon@instructure.com>
1 parent 5184a7f commit 60aa7ba

9 files changed

Lines changed: 17 additions & 3 deletions

File tree

lib/text_helper.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# encoding: UTF-8
2+
#
13
# By Henrik Nyh <http://henrik.nyh.se> 2008-01-30.
24
# Free to modify and redistribute with credit.
35

lib/user_list.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# encoding: UTF-8
12
#
23
# Copyright (C) 2011 Instructure, Inc.
34
#

spec/lib/text_helper_spec.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# encoding: UTF-8
12
#
23
# Copyright (C) 2011 Instructure, Inc.
34
#

spec/models/quiz_submission_spec.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# encoding: UTF-8
12
#
23
# Copyright (C) 2011 Instructure, Inc.
34
#

vendor/plugins/attachment_fu/test/basic_test.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# encoding: UTF-8
12
require File.expand_path(File.join(File.dirname(__FILE__), 'test_helper'))
23

34
class BasicTest < Test::Unit::TestCase

vendor/plugins/qti_exporter/spec/lib/qti_converter/canvas_questions_spec.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# encoding: UTF-8
2+
13
require File.dirname(__FILE__) + '/../../qti_helper'
24

35
describe "Converting Canvas QTI" do

vendor/plugins/stringex/lib/lucky_sneaks/string_extensions.rb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# encoding: UTF-8
2+
13
module LuckySneaks
24
# These methods are all added on String class.
35
module StringExtensions
@@ -173,4 +175,4 @@ def random(limit)
173175
end
174176
end
175177
end
176-
end
178+
end

vendor/plugins/stringex/test/string_extensions_test.rb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# encoding: UTF-8
2+
13
require "test/unit"
24

35
$: << File.join(File.dirname(__FILE__), '../lib')
@@ -139,4 +141,4 @@ def test_collapse
139141

140142
assert_equal "now-with-hyphens", "----now---------with-hyphens--------".collapse("-")
141143
end
142-
end
144+
end

vendor/plugins/stringex/test/unidecoder_test.rb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# encoding: UTF-8
2+
13
require "test/unit"
24

35
$: << File.join(File.dirname(__FILE__), '../lib')
@@ -87,4 +89,4 @@ def test_unidecoder_in_yaml_file
8789
assert_equal output, LuckySneaks::Unidecoder.in_yaml_file(character)
8890
end
8991
end
90-
end
92+
end

0 commit comments

Comments
 (0)