github-linguist 7.6.0 → 7.6.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0ed222666d0aca787b0aa049c3a9e224cdbdc4c5
4
- data.tar.gz: c4f8792d4184481ab146d3564268959490e7db68
3
+ metadata.gz: 42b17a0a68c491c4e626189ab9ae76173497217f
4
+ data.tar.gz: d389315885988d9e8d2e12479a8cc1ebd5f85e50
5
5
  SHA512:
6
- metadata.gz: 83d6828a32c1710979bcaa981f0c56d9d2304ae3c68f5f51d336323972a82762c1b1565e6c0e8a5794e89b9e29b0490ed4beeb5cbac44dbcc53ec0c3133b1d6b
7
- data.tar.gz: 5937dd7e2deb2d32cce1b1e854d9d952c1dafa9a926c6fdc6082a66725b2702d6e9f2e3415f7f3a73ef1157dc6894bc32d38ad2e3768173d704a920fa8795ca6
6
+ metadata.gz: 1a7daec8c03873714cb49765a2b8f27e380523f3b5d8e4dba91d68681780f63f3827f722110114f1859dc73049e45411f1fb18b1d5ea15ab379aa8f40b1da1b5
7
+ data.tar.gz: 30f210916c71456d4ba212827784825de4fe518a48f23ec4698d5b7c9deaf687d403d28fab64d34e5a9dd244273eaff924b09b0d33f9a9a0e1b440dcb1d7f683
@@ -1 +1 @@
1
- 7.6.0
1
+ 7.6.1
@@ -1 +1 @@
1
- 7.6.0
1
+ 7.6.1
@@ -621,23 +621,27 @@ module Linguist
621
621
  return false if matches.empty?
622
622
  return matches.map {|x| extract_html_meta(x) }.any? do |attr|
623
623
  attr["name"].to_s.downcase == 'generator' &&
624
- attr["content"].match(/^
625
- ( org \s+ mode
626
- | j?latex2html
627
- | groff
628
- | makeinfo
629
- | texi2html
630
- ) \b
631
- /ix)
624
+ [attr["content"], attr["value"]].any? do |cv|
625
+ !cv.nil? &&
626
+ cv.match(/^
627
+ ( org \s+ mode
628
+ | j?latex2html
629
+ | groff
630
+ | makeinfo
631
+ | texi2html
632
+ | ronn
633
+ ) \b
634
+ /ix)
635
+ end
632
636
  end
633
637
  end
634
638
 
635
639
  # Internal: Extract a Hash of name/content pairs from an HTML <meta> tag
636
640
  def extract_html_meta(match)
637
641
  (match.last.sub(/\/\Z/, "").strip.scan(/
638
- (?<=^|\s) # Check for preceding whitespace
639
- (name|content) # Attribute names we're interested in
640
- \s* = \s* # Key-value separator
642
+ (?<=^|\s) # Check for preceding whitespace
643
+ (name|content|value) # Attribute names we're interested in
644
+ \s* = \s* # Key-value separator
641
645
 
642
646
  # Attribute value
643
647
  ( "[^"]+" # name="value"
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: 7.6.0
4
+ version: 7.6.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - GitHub
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-08-23 00:00:00.000000000 Z
11
+ date: 2019-08-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: charlock_holmes