fixing typo

This commit is contained in:
Carlos Galdino
2011-06-27 20:47:44 -03:00
parent ebba204ba3
commit 176aad0259
5 changed files with 13 additions and 13 deletions

View File

@@ -154,7 +154,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 supressed in diffs and is ignored by
# langauge statistics. # language statistics.
# #
# Requires Blob#data # Requires Blob#data
# #

View File

@@ -3,10 +3,10 @@ require 'linguist/lexer'
require 'yaml' require 'yaml'
module Linguist module Linguist
# Langage names that are recognizable by GitHub. Defined languages # Language names that are recognizable by GitHub. Defined languages
# can be highlighted, searched and listed under the Top Languages page. # can be highlighted, searched and listed under the Top Languages page.
# #
# Langages are defined in `lib/linguist/langages.yml`. # Languages are defined in `lib/linguist/languages.yml`.
class Language class Language
@languages = [] @languages = []
@index = {} @index = {}
@@ -201,7 +201,7 @@ module Linguist
# If group name is set, save the name so we can lazy load it later # If group name is set, save the name so we can lazy load it later
if attributes[:group_name] if attributes[:group_name]
if major? if major?
warn "#{name} is a major langauage, it should not be grouped with #{attributes[:group_name]}" warn "#{name} is a major language, it should not be grouped with #{attributes[:group_name]}"
end end
@group = nil @group = nil
@@ -315,7 +315,7 @@ module Linguist
# Public: Is it a minor language? # Public: Is it a minor language?
# #
# Minor langauage include variants of major languages and # Minor language include variants of major languages and
# markup languages like HTML and YAML. # markup languages like HTML and YAML.
# #
# Returns true or false # Returns true or false

View File

@@ -11,7 +11,7 @@
# extension - An Array of associated extensions # extension - An Array of associated extensions
# major - Boolean flag major programming languages # major - Boolean flag major programming languages
# searchable - Boolean flag to enable searching (defaults to true) # searchable - Boolean flag to enable searching (defaults to true)
# search_term - Deprecated: Some langauges maybe indexed under a # search_term - Deprecated: Some languages maybe indexed under a
# different alias. Avoid defining new exceptions. # different alias. Avoid defining new exceptions.
# #
# Any additions or modifications (even trivial) should have corresponding # Any additions or modifications (even trivial) should have corresponding

View File

@@ -4,7 +4,7 @@ require 'linguist/mime'
module Linguist module Linguist
# Similar to ::Pathname, Linguist::Pathname wraps a path string and # Similar to ::Pathname, Linguist::Pathname wraps a path string and
# provides helpful query methods. Its useful when you only have a # provides helpful query methods. Its useful when you only have a
# filename but not a blob and need to figure out the langauge of the file. # filename but not a blob and need to figure out the language of the file.
class Pathname class Pathname
# Public: Initialize a Pathname # Public: Initialize a Pathname
# #
@@ -52,7 +52,7 @@ module Linguist
# Pathname.new('file.rb').language # Pathname.new('file.rb').language
# # => Language['Ruby'] # # => Language['Ruby']
# #
# Returns a Langauge or nil if none was found. # Returns a Language or nil if none was found.
def language def language
@language ||= Language.find_by_filename(@path) @language ||= Language.find_by_filename(@path)
end end

View File

@@ -4,7 +4,7 @@ module Linguist
# A Repository is an abstraction of a Grit::Repo or a basic file # A Repository is an abstraction of a Grit::Repo or a basic file
# system tree. It holds a list of paths pointing to Blobish objects. # system tree. It holds a list of paths pointing to Blobish objects.
# #
# Its primary purpose is for gathering langauge statistics across # Its primary purpose is for gathering language statistics across
# the entire project. # the entire project.
class Repository class Repository
# Public: Initialize a new Repository from a File directory # Public: Initialize a new Repository from a File directory
@@ -49,12 +49,12 @@ module Linguist
@paths[path] @paths[path]
end end
# Public: Returns a breakdown of langauge stats. # Public: Returns a breakdown of language stats.
# #
# Examples # Examples
# #
# # => { Langauge['Ruby'] => 46319, # # => { Language['Ruby'] => 46319,
# Langauge['JavaScript'] => 258 } # Language['JavaScript'] => 258 }
# #
# Returns a Hash of Language keys and Integer size values. # Returns a Hash of Language keys and Integer size values.
def languages def languages
@@ -88,7 +88,7 @@ module Linguist
# Skip vendored or generated blobs # Skip vendored or generated blobs
next if blob.vendored? || blob.generated? || blob.language.nil? next if blob.vendored? || blob.generated? || blob.language.nil?
# Get langauge group # Get language group
language = blob.language.group language = blob.language.group
# Only include major languages # Only include major languages