Fixed typos

This commit is contained in:
Pascal Borreli
2013-03-03 21:26:31 +00:00
parent 983a3e6073
commit 70eafb2ffc
8 changed files with 14 additions and 14 deletions

View File

@@ -267,7 +267,7 @@ module Linguist
# Public: Is the blob a generated file? # 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. # language statistics.
# #
# May load Blob#data # May load Blob#data
@@ -282,7 +282,7 @@ module Linguist
# Excluded: # Excluded:
# - Files over 0.1MB # - Files over 0.1MB
# - Non-text files # - Non-text files
# - Langauges marked as not searchable # - Languages marked as not searchable
# - Generated source files # - Generated source files
# #
# Please add additional test coverage to # Please add additional test coverage to

View File

@@ -40,7 +40,7 @@ module Linguist
# Public: Guess language of data. # 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. # data - Array of tokens or String data to analyze.
# languages - Array of language name Strings to restrict to. # 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]] } scores.sort { |a, b| b[1] <=> a[1] }.map { |score| [score[0], score[1]] }
end 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. # tokens - Array of String tokens.
# language - Language to check. # language - Language to check.
@@ -97,7 +97,7 @@ module Linguist
end end
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. # token - String token.
# language - Language to check. # language - Language to check.
@@ -111,7 +111,7 @@ module Linguist
end end
end end
# Internal: Probably of a language occuring - P(C) # Internal: Probably of a language occurring - P(C)
# #
# language - Language to check. # language - Language to check.
# #

View File

@@ -43,7 +43,7 @@ module Linguist
# Internal: Is the blob a generated file? # 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. # language statistics.
# #
# Please add additional test coverage to # Please add additional test coverage to

View File

@@ -73,7 +73,7 @@ module Linguist
# #
# Returns Language or nil. # Returns Language or nil.
def self.detect(name, data, mode = 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 # append a "magic" extension so it can be classified with other
# languages that have shebang scripts. # languages that have shebang scripts.
if File.extname(name).empty? && mode && (mode.to_i(8) & 05) == 05 if File.extname(name).empty? && mode && (mode.to_i(8) & 05) == 05
@@ -329,7 +329,7 @@ module Linguist
# Deprecated: Get primary extension # 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. # in the languages.yml.
# #
# The primary extension can not be nil. Tests should verify this. # The primary extension can not be nil. Tests should verify this.

View File

@@ -4,7 +4,7 @@ module Linguist
module MD5 module MD5
# Public: Create deep nested digest of value object. # Public: Create deep nested digest of value object.
# #
# Useful for object comparsion. # Useful for object comparison.
# #
# obj - Object to digest. # obj - Object to digest.
# #

View File

@@ -17,10 +17,10 @@
- ^deps/ - ^deps/
- ^tools/ - ^tools/
# Node depedencies # Node dependencies
- node_modules/ - node_modules/
# Vendored depedencies # Vendored dependencies
- vendor/ - vendor/
# Debian packaging # Debian packaging

View File

@@ -199,7 +199,7 @@ class TestBlob < Test::Unit::TestCase
assert !blob("Text/README").vendored? assert !blob("Text/README").vendored?
assert !blob("ext/extconf.rb").vendored? assert !blob("ext/extconf.rb").vendored?
# Node depedencies # Node dependencies
assert blob("node_modules/coffee-script/lib/coffee-script.js").vendored? assert blob("node_modules/coffee-script/lib/coffee-script.js").vendored?
# Rails vendor/ # Rails vendor/

View File

@@ -322,7 +322,7 @@ class TestLanguage < Test::Unit::TestCase
assert_equal '.t', Language['Turing'].primary_extension assert_equal '.t', Language['Turing'].primary_extension
assert_equal '.ts', Language['TypeScript'].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. # expects this. Really want to drop this.
Language.all.each do |language| Language.all.each do |language|
assert language.primary_extension, "#{language} has no primary extension" assert language.primary_extension, "#{language} has no primary extension"