From 70eafb2ffcc28496dc85a96932090f6021c54a32 Mon Sep 17 00:00:00 2001 From: Pascal Borreli Date: Sun, 3 Mar 2013 21:26:31 +0000 Subject: [PATCH] Fixed typos --- lib/linguist/blob_helper.rb | 4 ++-- lib/linguist/classifier.rb | 8 ++++---- lib/linguist/generated.rb | 2 +- lib/linguist/language.rb | 4 ++-- lib/linguist/md5.rb | 2 +- lib/linguist/vendor.yml | 4 ++-- test/test_blob.rb | 2 +- test/test_language.rb | 2 +- 8 files changed, 14 insertions(+), 14 deletions(-) diff --git a/lib/linguist/blob_helper.rb b/lib/linguist/blob_helper.rb index b860cf08..aa55984b 100644 --- a/lib/linguist/blob_helper.rb +++ b/lib/linguist/blob_helper.rb @@ -267,7 +267,7 @@ module Linguist # Public: Is the blob a generated file? # - # Generated source code is supressed in diffs and is ignored by + # Generated source code is suppressed in diffs and is ignored by # language statistics. # # May load Blob#data @@ -282,7 +282,7 @@ module Linguist # Excluded: # - Files over 0.1MB # - Non-text files - # - Langauges marked as not searchable + # - Languages marked as not searchable # - Generated source files # # Please add additional test coverage to diff --git a/lib/linguist/classifier.rb b/lib/linguist/classifier.rb index ce92af30..6761e3d4 100644 --- a/lib/linguist/classifier.rb +++ b/lib/linguist/classifier.rb @@ -40,7 +40,7 @@ module Linguist # Public: Guess language of data. # - # db - Hash of classifer tokens database. + # db - Hash of classifier tokens database. # data - Array of tokens or String data to analyze. # languages - Array of language name Strings to restrict to. # @@ -85,7 +85,7 @@ module Linguist scores.sort { |a, b| b[1] <=> a[1] }.map { |score| [score[0], score[1]] } end - # Internal: Probably of set of tokens in a language occuring - P(D | C) + # Internal: Probably of set of tokens in a language occurring - P(D | C) # # tokens - Array of String tokens. # language - Language to check. @@ -97,7 +97,7 @@ module Linguist end end - # Internal: Probably of token in language occuring - P(F | C) + # Internal: Probably of token in language occurring - P(F | C) # # token - String token. # language - Language to check. @@ -111,7 +111,7 @@ module Linguist end end - # Internal: Probably of a language occuring - P(C) + # Internal: Probably of a language occurring - P(C) # # language - Language to check. # diff --git a/lib/linguist/generated.rb b/lib/linguist/generated.rb index 534ed798..e3fff316 100644 --- a/lib/linguist/generated.rb +++ b/lib/linguist/generated.rb @@ -43,7 +43,7 @@ module Linguist # Internal: Is the blob a generated file? # - # Generated source code is supressed in diffs and is ignored by + # Generated source code is suppressed in diffs and is ignored by # language statistics. # # Please add additional test coverage to diff --git a/lib/linguist/language.rb b/lib/linguist/language.rb index 36db0380..54fc4698 100644 --- a/lib/linguist/language.rb +++ b/lib/linguist/language.rb @@ -73,7 +73,7 @@ module Linguist # # Returns Language or nil. def self.detect(name, data, mode = nil) - # A bit of an elegant hack. If the file is exectable but extensionless, + # A bit of an elegant hack. If the file is executable but extensionless, # append a "magic" extension so it can be classified with other # languages that have shebang scripts. if File.extname(name).empty? && mode && (mode.to_i(8) & 05) == 05 @@ -329,7 +329,7 @@ module Linguist # Deprecated: Get primary extension # - # Defaults to the first extension but can be overriden + # Defaults to the first extension but can be overridden # in the languages.yml. # # The primary extension can not be nil. Tests should verify this. diff --git a/lib/linguist/md5.rb b/lib/linguist/md5.rb index 0b43fd8a..4853aa80 100644 --- a/lib/linguist/md5.rb +++ b/lib/linguist/md5.rb @@ -4,7 +4,7 @@ module Linguist module MD5 # Public: Create deep nested digest of value object. # - # Useful for object comparsion. + # Useful for object comparison. # # obj - Object to digest. # diff --git a/lib/linguist/vendor.yml b/lib/linguist/vendor.yml index b01b28ce..310db6d6 100644 --- a/lib/linguist/vendor.yml +++ b/lib/linguist/vendor.yml @@ -17,10 +17,10 @@ - ^deps/ - ^tools/ -# Node depedencies +# Node dependencies - node_modules/ -# Vendored depedencies +# Vendored dependencies - vendor/ # Debian packaging diff --git a/test/test_blob.rb b/test/test_blob.rb index d79fe64b..5c90d59e 100644 --- a/test/test_blob.rb +++ b/test/test_blob.rb @@ -199,7 +199,7 @@ class TestBlob < Test::Unit::TestCase assert !blob("Text/README").vendored? assert !blob("ext/extconf.rb").vendored? - # Node depedencies + # Node dependencies assert blob("node_modules/coffee-script/lib/coffee-script.js").vendored? # Rails vendor/ diff --git a/test/test_language.rb b/test/test_language.rb index f83a7218..190cb934 100644 --- a/test/test_language.rb +++ b/test/test_language.rb @@ -322,7 +322,7 @@ class TestLanguage < Test::Unit::TestCase assert_equal '.t', Language['Turing'].primary_extension assert_equal '.ts', Language['TypeScript'].primary_extension - # This is a nasty requirement, but theres some code in GitHub that + # This is a nasty requirement, but there's some code in GitHub that # expects this. Really want to drop this. Language.all.each do |language| assert language.primary_extension, "#{language} has no primary extension"