rouge 1.10.0 → 1.10.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: 6626653a9eced6e141de02204ad519974a33681f
4
- data.tar.gz: e3bc6c8899c3477de2fb5df663dff3994abadbee
3
+ metadata.gz: 97effe9cafa1378b8091163a176fabb3a0157c9e
4
+ data.tar.gz: a594ae8d0e46031aadea8ec3662b660310a4e0ff
5
5
  SHA512:
6
- metadata.gz: c636bc9ae3a393af8e4a3885d1cbdef9d5fdea28c6d7adcfce158a462bbd0249b338193a8e2b5ad5cd6aa7048b1305127eae33df4e5443da194e6d0e3cfd3d7e
7
- data.tar.gz: 75349c93480fc528bc20fa3dc93499a35e9a55956b2efda421c10ba8b991541830f7c7a60808a27d3212492baea3e6f57c32d4e0115277b200681f19413b93e6
6
+ metadata.gz: fb0e3c6b15a4e79c6239b93a4d82ff46863aa2ce8c3e11c971358b908a80927209db3912d696c7786aabd2134bd8d2822fad774ca08e98eec21ac366f7120e53
7
+ data.tar.gz: daca6241c49f157150f0cefcfaf201cd96bb4a510b3cc0bb2ff71653726216b142a5fb8b1c287e1af7efd46b93a214253fb8e818984c1c0a342e5d1400e5d3a6
@@ -12,17 +12,14 @@ module Rouge
12
12
  def self.analyze_text(text)
13
13
  return 1 if text.start_with?('Index: ')
14
14
  return 1 if text.start_with?('diff ')
15
-
16
- # TODO: Have a look at pygments here, seems better
17
- return 0.9 if text =~ /\A---.*?\n\+\+\+/m
15
+ return 0.9 if text.start_with?('--- ')
18
16
  end
19
17
 
20
18
  state :root do
21
19
  rule(/^ .*\n/, Text)
20
+ rule(/^---\n/, Text)
22
21
  rule(/^\+.*\n/, Generic::Inserted)
23
- # Do not highlight the delimiter line
24
- # before the diffstat in email patches.
25
- rule(/^-+ .*\n/, Generic::Deleted)
22
+ rule(/^-+.*\n/, Generic::Deleted)
26
23
  rule(/^!.*\n/, Generic::Strong)
27
24
  rule(/^@.*\n/, Generic::Subheading)
28
25
  rule(/^([Ii]ndex|diff).*\n/, Generic::Heading)
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Rouge
4
4
  def self.version
5
- "1.10.0"
5
+ "1.10.1"
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rouge
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.10.0
4
+ version: 1.10.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jeanine Adkisson