github-linguist 3.5.0 → 3.5.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/linguist/language.rb +3 -3
- data/lib/linguist/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ecebbf9cbb597270b89d92cdaadfc31dd4e311e6
|
4
|
+
data.tar.gz: 1b73a67e2d55b8aee243418905431a0aee699197
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: eef283f2a50efd1c0447819a8897c4dd85a388946cef9e7a47cefd46ff5bd5ed8ad624c081ce45bd59d68a8f8f50fb69676a937f2815d51132e6484e29d85760
|
7
|
+
data.tar.gz: 3c2237fde6a19897d51460c973f533f921d4ea5e98f01ec6b8ea7255474121b7eff0c7843d8008dc40da5fbf6f12d9dafab34d9fb4bc356fb58e32c2f8eb3ff9
|
data/lib/linguist/language.rb
CHANGED
@@ -164,7 +164,7 @@ module Linguist
|
|
164
164
|
#
|
165
165
|
# Returns the Language or nil if none was found.
|
166
166
|
def self.find_by_name(name)
|
167
|
-
@name_index[name.downcase]
|
167
|
+
name && @name_index[name.downcase]
|
168
168
|
end
|
169
169
|
|
170
170
|
# Public: Look up Language by one of its aliases.
|
@@ -178,7 +178,7 @@ module Linguist
|
|
178
178
|
#
|
179
179
|
# Returns the Lexer or nil if none was found.
|
180
180
|
def self.find_by_alias(name)
|
181
|
-
@alias_index[name.downcase]
|
181
|
+
name && @alias_index[name.downcase]
|
182
182
|
end
|
183
183
|
|
184
184
|
# Public: Look up Languages by filename.
|
@@ -243,7 +243,7 @@ module Linguist
|
|
243
243
|
#
|
244
244
|
# Returns the Language or nil if none was found.
|
245
245
|
def self.[](name)
|
246
|
-
@index[name.downcase]
|
246
|
+
name && @index[name.downcase]
|
247
247
|
end
|
248
248
|
|
249
249
|
# Public: A List of popular languages
|
data/lib/linguist/version.rb
CHANGED