github-linguist 5.0.3 → 5.0.4

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: 56289e9cd7cef6ea2d32066714be337555e80ef5
4
- data.tar.gz: bbbcf1fdd511fb569ce5956bf3c288cebcf90fc1
3
+ metadata.gz: ed0e005b8d1e526a91b395a5fb22a99e8514cb27
4
+ data.tar.gz: ca281e9fe0c871c357b8ed5680ec24b9d498384a
5
5
  SHA512:
6
- metadata.gz: 10434a82231e7d3602398926e55670718b8d476b2cb896f9b84ecd9821939c9392bf2d788f1e43160b3ac0aad2cc2eb1fecfad1ac6e03ea124b42c09faeac41e
7
- data.tar.gz: 27786ad89380d53b8121cf08ad6d29c965f887308bd87d7e0fcee5bb4597fb28db61a753ad08be38f31322ffb26ec8ec8e19d61f729bdebefa0b6c3bc225ded5
6
+ metadata.gz: c70a395d1e8b59dd2d1002f5853455d99553d604f91aaa70c89e5dfd4ca8e2329046258c47de9da5548ce1fe005453cb708a970aaadf3e046b70b9f2bfcc3db1
7
+ data.tar.gz: 580f358b0e43de47613f208c5d5fa409066c35673f239c6c5d6797895c94193e8dfb4fcdcd3cedf1cf66df84a5f9211cbd1950a58663403e47d7e198edf68482
@@ -486,6 +486,7 @@ module Linguist
486
486
  # Returns true or false.
487
487
  def generated_yarn_lock?
488
488
  return false unless name.match(/yarn\.lock/)
489
+ return false unless lines.count > 0
489
490
  return lines[0].include?("# THIS IS AN AUTOGENERATED FILE")
490
491
  end
491
492
  end
@@ -278,7 +278,7 @@ module Linguist
278
278
  disambiguate ".mod" do |data|
279
279
  if data.include?('<!ENTITY ')
280
280
  Language["XML"]
281
- elsif /MODULE\s\w+\s*;/i.match(data) || /^\s*END \w+;$/i.match(data)
281
+ elsif /^\s*MODULE [\w\.]+;/i.match(data) || /^\s*END [\w\.]+;/i.match(data)
282
282
  Language["Modula-2"]
283
283
  else
284
284
  [Language["Linux Kernel Module"], Language["AMPL"]]
@@ -1,3 +1,3 @@
1
1
  module Linguist
2
- VERSION = "5.0.3"
2
+ VERSION = "5.0.4"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: github-linguist
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.0.3
4
+ version: 5.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - GitHub
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-01-24 00:00:00.000000000 Z
11
+ date: 2017-01-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: charlock_holmes
@@ -58,14 +58,14 @@ dependencies:
58
58
  requirements:
59
59
  - - '='
60
60
  - !ruby/object:Gem::Version
61
- version: 0.25.0b10
61
+ version: 0.25.1.1
62
62
  type: :runtime
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
66
  - - '='
67
67
  - !ruby/object:Gem::Version
68
- version: 0.25.0b10
68
+ version: 0.25.1.1
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: minitest
71
71
  requirement: !ruby/object:Gem::Requirement