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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1364e6a304ab46045c212267632f3e38bc2c053b
4
- data.tar.gz: 4c4d5bf4c3a8d2a2600ceca5fd4cc95f48b5ec9e
3
+ metadata.gz: ecebbf9cbb597270b89d92cdaadfc31dd4e311e6
4
+ data.tar.gz: 1b73a67e2d55b8aee243418905431a0aee699197
5
5
  SHA512:
6
- metadata.gz: 6fc8bde0cd0be42a02463058c39ca00832f8329719fb10241f201546445a6f2a0d9649d472bcda4846a84ad2ff693b2fe68506defb87a209da5d6135ae9272aa
7
- data.tar.gz: 5affded6994c2a5450f34bd007098e5e8c2b8d2bcd1c95a96c92b7a5623e3884cb4c45f046ba7e766dbfd5b11787cc455933e5642c23140bc40e00481a9a0781
6
+ metadata.gz: eef283f2a50efd1c0447819a8897c4dd85a388946cef9e7a47cefd46ff5bd5ed8ad624c081ce45bd59d68a8f8f50fb69676a937f2815d51132e6484e29d85760
7
+ data.tar.gz: 3c2237fde6a19897d51460c973f533f921d4ea5e98f01ec6b8ea7255474121b7eff0c7843d8008dc40da5fbf6f12d9dafab34d9fb4bc356fb58e32c2f8eb3ff9
@@ -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
@@ -1,3 +1,3 @@
1
1
  module Linguist
2
- VERSION = "3.5.0"
2
+ VERSION = "3.5.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: github-linguist
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.5.0
4
+ version: 3.5.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - GitHub