mirror of
https://github.com/KevinMidboe/linguist.git
synced 2025-10-29 17:50:22 +00:00
Bump charlock to 0.7.3
This version includes a fix for the encoding lookup table for some encoding aliases in the ICU detection API
This commit is contained in:
@@ -13,7 +13,7 @@ Gem::Specification.new do |s|
|
|||||||
s.files = Dir['lib/**/*']
|
s.files = Dir['lib/**/*']
|
||||||
s.executables << 'linguist'
|
s.executables << 'linguist'
|
||||||
|
|
||||||
s.add_dependency 'charlock_holmes', '~> 0.7.2'
|
s.add_dependency 'charlock_holmes', '~> 0.7.3'
|
||||||
s.add_dependency 'escape_utils', '~> 1.0.1'
|
s.add_dependency 'escape_utils', '~> 1.0.1'
|
||||||
s.add_dependency 'mime-types', '~> 1.19'
|
s.add_dependency 'mime-types', '~> 1.19'
|
||||||
s.add_dependency 'pygments.rb', '~> 0.5.4'
|
s.add_dependency 'pygments.rb', '~> 0.5.4'
|
||||||
|
|||||||
@@ -114,6 +114,9 @@ class TestBlob < Test::Unit::TestCase
|
|||||||
assert_equal "ISO-2022-KR", blob("Text/ISO-2022-KR.txt").encoding
|
assert_equal "ISO-2022-KR", blob("Text/ISO-2022-KR.txt").encoding
|
||||||
assert_equal "binary", blob("Text/ISO-2022-KR.txt").ruby_encoding
|
assert_equal "binary", blob("Text/ISO-2022-KR.txt").ruby_encoding
|
||||||
assert_nil blob("Binary/dog.o").encoding
|
assert_nil blob("Binary/dog.o").encoding
|
||||||
|
|
||||||
|
assert_equal "windows-1252", blob("Text/Visual_Battlers.rb").encoding
|
||||||
|
assert_equal "Windows-1252", blob("Text/Visual_Battlers.rb").ruby_encoding
|
||||||
end
|
end
|
||||||
|
|
||||||
def test_binary
|
def test_binary
|
||||||
|
|||||||
Reference in New Issue
Block a user