pygments.rb 2.1.0 → 2.2.0

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
  SHA256:
3
- metadata.gz: a81b37936d77daa0478878031e065f4c4248ec09f8e5aad0955cb9d3906fdde2
4
- data.tar.gz: f4eeaa4c16489986301798f0d760c924b8c5dbe600fe915b3d41607ead341287
3
+ metadata.gz: 3593fa0f51b043d8ffa0c2d91fef900f0d650d6e8c8787e32276a54682990089
4
+ data.tar.gz: 1ff949d4aaaf38d6baa557e01150a1c9838e42aca0eb99a0eb391c9a89924b8d
5
5
  SHA512:
6
- metadata.gz: 764c90e3afefa3914a4c9dc21e0bef73f6ab94c87a30aa86e56e4080166a83f943bdd0058fc204ae878f7d2ccf7f23bc849f1363fce510f1062babe8aff66fb5
7
- data.tar.gz: f90e47da1207df3ff7913f0acdee8ddd11438015c0664030908f42587bfd97ef67eedae6dcb0f668c2955c1022f3a8fe2127195b339618a4925b4632f0926710
6
+ metadata.gz: 9f6d6dfb5b4808dcd265206b30b19e8a865e3b53d3161ad891de99340a1903474eca425bdc92f6eba9116322d2ee96fc436a5931dacdf262e85f489385ac5068
7
+ data.tar.gz: a3f5aa3cda14507d939db624d6dbd1a0fd585ab1923d9aa87e367851cf0e5dd269cffa209ca28e511927ad018e27e9e1bc1008c7e4d2791cc532cbd5279b7ae7
data/.gitignore CHANGED
@@ -3,4 +3,3 @@
3
3
  /pkg/
4
4
  /tmp
5
5
  *.pyc
6
- /lexers
data/.rubocop.yml CHANGED
@@ -10,8 +10,6 @@ Layout/LineLength:
10
10
  Max: 120
11
11
  Metrics/MethodLength:
12
12
  Enabled: false
13
- Security/MarshalLoad:
14
- Enabled: false
15
13
  Style/StructInheritance:
16
14
  Enabled: false
17
15
  Style/Documentation:
data/CHANGELOG.adoc CHANGED
@@ -5,6 +5,11 @@
5
5
  This document provides a high-level view of the changes to the {project-name} by release.
6
6
  For a detailed view of what has changed, refer to the {uri-repo}/commits/master[commit history] on GitHub.
7
7
 
8
+ == 2.2.0 (2021-03-18) - @slonopotamus
9
+
10
+ * Add support for custom lexers ({uri-repo}/pull/187[#187])
11
+ * Update Pygments to 2.8.1
12
+
8
13
  == 2.1.0 (2021-02-14) - @slonopotamus
9
14
 
10
15
  * Update Pygments to 2.8.0
data/README.adoc CHANGED
@@ -2,7 +2,6 @@
2
2
  Ted Nyman <ted@ted.io>; Aman Gupta <aman@tmm1.net>; Marat Radchenko <marat@slonopotamus.org>
3
3
  :project-name: pygments.rb
4
4
  :slug: pygments/{project-name}
5
- :toc: preamble
6
5
  :uri-project: https://github.com/{slug}
7
6
  :uri-ci: {uri-project}/actions?query=branch%3Amaster
8
7
  :uri-gem: https://rubygems.org/gems/{project-name}
data/Rakefile CHANGED
@@ -28,18 +28,6 @@ task :bench do
28
28
  sh 'ruby bench.rb'
29
29
  end
30
30
 
31
- # ==========================================================
32
- # Cache lexers
33
- # ==========================================================
34
-
35
- # Write all the lexers to a file for easy lookup
36
- task :lexers do
37
- sh 'ruby cache_lexers.rb'
38
- end
39
-
40
- task(:test).enhance([:lexers])
41
- task(:build).enhance([:lexers])
42
-
43
31
  # ==========================================================
44
32
  # Vendor
45
33
  # ==========================================================
data/lib/pygments.rb CHANGED
@@ -1,14 +1,18 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require File.join(File.dirname(__FILE__), 'pygments/popen')
4
3
  require 'forwardable'
5
4
 
6
- module Pygments
7
- autoload :Lexer, 'pygments/lexer'
5
+ require_relative 'pygments/lexer'
6
+ require_relative 'pygments/popen'
8
7
 
8
+ module Pygments
9
9
  class << self
10
10
  extend Forwardable
11
11
 
12
+ def lexers
13
+ LexerCache.instance.raw_lexers
14
+ end
15
+
12
16
  def engine
13
17
  Thread.current.thread_variable_get(:pygments_engine) ||
14
18
  Thread.current.thread_variable_set(:pygments_engine, Pygments::Popen.new)
@@ -16,7 +20,6 @@ module Pygments
16
20
 
17
21
  def_delegators :engine,
18
22
  :formatters,
19
- :lexers,
20
23
  :lexers!,
21
24
  :filters,
22
25
  :styles,
@@ -1,61 +1,14 @@
1
1
  # frozen_string_literal: true
2
2
 
3
+ require 'singleton'
4
+
3
5
  module Pygments
4
6
  class Lexer < Struct.new(:name, :aliases, :filenames, :mimetypes)
5
- @lexers = []
6
- @index = {}
7
- @name_index = {}
8
- @alias_index = {}
9
- @extname_index = {}
10
- @mimetypes_index = {}
11
-
12
- # Internal: Create a new Lexer object
13
- #
14
- # hash - A hash of attributes
15
- #
16
- # Returns a Lexer object
17
- def self.create(hash)
18
- lexer = new(hash[:name], hash[:aliases], hash[:filenames], hash[:mimetypes])
19
-
20
- @lexers << lexer
21
-
22
- @index[lexer.name.downcase] = @name_index[lexer.name] = lexer
23
-
24
- lexer.aliases.each do |name|
25
- @alias_index[name] = lexer
26
- @index[name.downcase] ||= lexer
27
- end
28
-
29
- lexer.filenames.each do |filename|
30
- extnames = []
31
-
32
- extname = File.extname(filename)
33
- if (m = extname.match(/\[(.+)\]/))
34
- m[1].scan(/./).each do |s|
35
- extnames << extname.sub(m[0], s)
36
- end
37
- elsif extname != ''
38
- extnames << extname
39
- end
40
-
41
- extnames.each do |the_extname|
42
- @extname_index[the_extname] = lexer
43
- @index[the_extname.downcase.sub(/^\./, '')] ||= lexer
44
- end
45
- end
46
-
47
- lexer.mimetypes.each do |type|
48
- @mimetypes_index[type] = lexer
49
- end
50
-
51
- lexer
52
- end
53
-
54
7
  # Public: Get all Lexers
55
8
  #
56
- # Returns an Array of Lexers
9
+ # @return [Array<Lexer>]
57
10
  def self.all
58
- @lexers
11
+ LexerCache.instance.lexers
59
12
  end
60
13
 
61
14
  # Public: Look up Lexer by name or alias.
@@ -65,12 +18,15 @@ module Pygments
65
18
  # Lexer.find('Ruby')
66
19
  # => #<Lexer name="Ruby">
67
20
  #
68
- # Returns the Lexer or nil if none was found.
21
+ # @return [Lexer, nil]
69
22
  def self.find(name)
70
- @index[name.to_s.downcase]
23
+ LexerCache.instance.index[name.to_s.downcase]
71
24
  end
72
25
 
73
26
  # Public: Alias for find.
27
+ #
28
+ # @param name [String]
29
+ # @return [Lexer, nil]
74
30
  def self.[](name)
75
31
  find(name)
76
32
  end
@@ -84,9 +40,10 @@ module Pygments
84
40
  # Lexer.find_by_name('Ruby')
85
41
  # # => #<Lexer name="Ruby">
86
42
  #
87
- # Returns the Lexer or nil if none was found.
43
+ # @param name [String]
44
+ # @return [Lexer, nil]
88
45
  def self.find_by_name(name)
89
- @name_index[name]
46
+ LexerCache.instance.name_index[name]
90
47
  end
91
48
 
92
49
  # Public: Look up Lexer by one of its aliases.
@@ -98,9 +55,10 @@ module Pygments
98
55
  # Lexer.find_by_alias('rb')
99
56
  # # => #<Lexer name="Ruby">
100
57
  #
101
- # Returns the Lexer or nil if none was found.
58
+ # @param name [String]
59
+ # @return [Lexer, nil]
102
60
  def self.find_by_alias(name)
103
- @alias_index[name]
61
+ LexerCache.instance.alias_index[name]
104
62
  end
105
63
 
106
64
  # Public: Look up Lexer by one of it's file extensions.
@@ -112,9 +70,10 @@ module Pygments
112
70
  # Lexer.find_by_extname('.rb')
113
71
  # # => #<Lexer name="Ruby">
114
72
  #
115
- # Returns the Lexer or nil if none was found.
73
+ # @param extname [String]
74
+ # @return [Lexer, nil]
116
75
  def self.find_by_extname(extname)
117
- @extname_index[extname]
76
+ LexerCache.instance.extname_index[extname]
118
77
  end
119
78
 
120
79
  # Public: Look up Lexer by one of it's mime types.
@@ -126,9 +85,10 @@ module Pygments
126
85
  # Lexer.find_by_mimetype('application/x-ruby')
127
86
  # # => #<Lexer name="Ruby">
128
87
  #
129
- # Returns the Lexer or nil if none was found.
88
+ # @param type [String]
89
+ # @return [Lexer, nil]
130
90
  def self.find_by_mimetype(type)
131
- @mimetypes_index[type]
91
+ LexerCache.instance.mimetypes_index[type]
132
92
  end
133
93
 
134
94
  # Public: Highlight syntax of text
@@ -146,5 +106,67 @@ module Pygments
146
106
  alias eql? equal?
147
107
  end
148
108
 
149
- lexers.values.each { |h| Lexer.create(h) }
109
+ class LexerCache
110
+ include Singleton
111
+
112
+ # @return [Array<Lexer>]
113
+ attr_reader(:lexers)
114
+ # @return [Map<String, Lexer>]
115
+ attr_reader(:index)
116
+ # @return [Map<String, Lexer>]
117
+ attr_reader(:name_index)
118
+ # @return [Map<String, Lexer]
119
+ attr_reader(:alias_index)
120
+ # @return [Map<String, Lexer>]
121
+ attr_reader(:extname_index)
122
+ # @return [Map<String, Lexer>]
123
+ attr_reader(:mimetypes_index)
124
+
125
+ attr_reader(:raw_lexers)
126
+
127
+ def initialize
128
+ @lexers = []
129
+ @index = {}
130
+ @name_index = {}
131
+ @alias_index = {}
132
+ @extname_index = {}
133
+ @mimetypes_index = {}
134
+ @raw_lexers = Pygments.lexers!
135
+
136
+ @raw_lexers.values.each do |hash|
137
+ lexer = Lexer.new(hash[:name], hash[:aliases], hash[:filenames], hash[:mimetypes])
138
+
139
+ @lexers << lexer
140
+
141
+ @index[lexer.name.downcase] = @name_index[lexer.name] = lexer
142
+
143
+ lexer.aliases.each do |name|
144
+ @alias_index[name] = lexer
145
+ @index[name.downcase] ||= lexer
146
+ end
147
+
148
+ lexer.filenames.each do |filename|
149
+ extnames = []
150
+
151
+ extname = File.extname(filename)
152
+ if (m = extname.match(/\[(.+)\]/))
153
+ m[1].scan(/./).each do |s|
154
+ extnames << extname.sub(m[0], s)
155
+ end
156
+ elsif extname != ''
157
+ extnames << extname
158
+ end
159
+
160
+ extnames.each do |the_extname|
161
+ @extname_index[the_extname] = lexer
162
+ @index[the_extname.downcase.sub(/^\./, '')] ||= lexer
163
+ end
164
+ end
165
+
166
+ lexer.mimetypes.each do |type|
167
+ @mimetypes_index[type] = lexer
168
+ end
169
+ end
170
+ end
171
+ end
150
172
  end
@@ -103,25 +103,8 @@ module Pygments
103
103
  end
104
104
  end
105
105
 
106
- # Get all lexers from a serialized array.
107
- # This avoids needing to spawn mentos when it's not really needed
108
- # (e.g., one-off jobs, loading the Rails env, etc).
109
- #
110
- # Should be preferred to #lexers!
111
- #
112
- # @return [Array<String>] an array of lexers
113
- def lexers
114
- lexer_file = File.join(__dir__, '..', '..', 'lexers')
115
- begin
116
- File.open(lexer_file, 'rb') do |f|
117
- Marshal.load(f)
118
- end
119
- rescue Errno::ENOENT
120
- raise MentosError, %(Error loading #{lexer_file}. Was it created and vendored?)
121
- end
122
- end
123
-
124
- # Get back all available lexers from mentos itself
106
+ # Get all available lexers from mentos itself
107
+ # Do not use this method directly, instead use Pygments#lexers
125
108
  #
126
109
  # @return [Array<String>] an array of lexers
127
110
  def lexers!
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Pygments
4
- VERSION = '2.1.0'
4
+ VERSION = '2.2.0'
5
5
  end
data/pygments.rb.gemspec CHANGED
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require File.expand_path('lib/pygments/version', __dir__)
3
+ require_relative 'lib/pygments/version'
4
4
 
5
5
  Gem::Specification.new do |s|
6
6
  s.name = 'pygments.rb'
@@ -8,20 +8,25 @@ Gem::Specification.new do |s|
8
8
 
9
9
  s.summary = 'pygments wrapper for ruby'
10
10
  s.description = 'pygments.rb is a Ruby wrapper for Pygments syntax highlighter'
11
-
11
+ s.license = 'MIT'
12
12
  s.homepage = 'https://github.com/pygments/pygments.rb'
13
- s.required_ruby_version = '>= 2.3.0'
14
13
 
15
14
  s.authors = ['Aman Gupta', 'Ted Nyman', 'Marat Radchenko']
16
15
  s.email = ['marat@slonopotamus.org']
17
- s.license = 'MIT'
16
+
17
+ s.metadata = {
18
+ 'homepage_uri' => s.homepage,
19
+ 'bug_tracker_uri' => s.homepage + '/issues',
20
+ 'changelog_uri' => s.homepage + '/blob/master/CHANGELOG.adoc',
21
+ 'documentation_uri' => 'https://www.rubydoc.info/gems/' + s.name,
22
+ 'source_code_uri' => s.homepage
23
+ }
24
+
25
+ s.required_ruby_version = '>= 2.3.0'
18
26
 
19
27
  s.add_development_dependency 'rake', '~> 13.0.0'
20
28
  s.add_development_dependency 'rubocop', '~> 0.81.0'
21
29
  s.add_development_dependency 'test-unit', '~> 3.4.0'
22
30
 
23
- # s.extensions = ['ext/extconf.rb']
24
- s.require_paths = ['lib']
25
-
26
- s.files = `git ls-files`.split("\n").reject { |f| File.symlink?(f) } + ['lexers']
31
+ s.files = `git ls-files -z`.split("\0").reject { |f| File.symlink?(f) }
27
32
  end
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: Pygments
3
- Version: 2.8.0
3
+ Version: 2.8.1
4
4
  Summary: Pygments is a syntax highlighting package written in Python.
5
5
  Home-page: https://pygments.org/
6
6
  Author: Georg Brandl
@@ -1,14 +1,14 @@
1
1
  ../../bin/pygmentize,sha256=tI1lspmgVfsR48Rydk5v3aLnl07D9v4TuU-ozRWTigA,217
2
- Pygments-2.8.0.dist-info/AUTHORS,sha256=lJ6QbbYXTyienm-GZXbKNOx3cSYiP1y0VemKmvgmu60,9002
3
- Pygments-2.8.0.dist-info/INSTALLER,sha256=zuuue4knoyJ-UwPPXg8fezS7VCrXJQrAP7zeNuwvFQg,4
4
- Pygments-2.8.0.dist-info/LICENSE,sha256=wBLPF6K6eRQpd8jMW7FJemdUAb95wsm5WnYE4t396Lg,1331
5
- Pygments-2.8.0.dist-info/METADATA,sha256=7SmfRKZaCDjwifTC7RqZ4vKXq3fhcRzeo_AZrKdFW9A,1884
6
- Pygments-2.8.0.dist-info/RECORD,,
7
- Pygments-2.8.0.dist-info/REQUESTED,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
8
- Pygments-2.8.0.dist-info/WHEEL,sha256=EVRjI69F5qVjm_YgqcTXPnTAv3BfSUr0WVAHuSP3Xoo,92
9
- Pygments-2.8.0.dist-info/entry_points.txt,sha256=NXt9BRDRv6tAfDwqKM0bDHrrxaIt2f1nxH9CwjyjSKc,54
10
- Pygments-2.8.0.dist-info/top_level.txt,sha256=RjKKqrVIStoebLHdbs0yZ2Lk4rS7cxGguXsLCYvZ2Ak,9
11
- pygments/__init__.py,sha256=fYaenUPVtSn3coLWx4vbHxEx1noj0y77FPl7H0UIakw,3012
2
+ Pygments-2.8.1.dist-info/AUTHORS,sha256=lJ6QbbYXTyienm-GZXbKNOx3cSYiP1y0VemKmvgmu60,9002
3
+ Pygments-2.8.1.dist-info/INSTALLER,sha256=zuuue4knoyJ-UwPPXg8fezS7VCrXJQrAP7zeNuwvFQg,4
4
+ Pygments-2.8.1.dist-info/LICENSE,sha256=wBLPF6K6eRQpd8jMW7FJemdUAb95wsm5WnYE4t396Lg,1331
5
+ Pygments-2.8.1.dist-info/METADATA,sha256=W_BWdvAhZr3S1gcFWXUEdtcdoq8oaqKkBGKfuwCizzU,1884
6
+ Pygments-2.8.1.dist-info/RECORD,,
7
+ Pygments-2.8.1.dist-info/REQUESTED,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
8
+ Pygments-2.8.1.dist-info/WHEEL,sha256=EVRjI69F5qVjm_YgqcTXPnTAv3BfSUr0WVAHuSP3Xoo,92
9
+ Pygments-2.8.1.dist-info/entry_points.txt,sha256=NXt9BRDRv6tAfDwqKM0bDHrrxaIt2f1nxH9CwjyjSKc,54
10
+ Pygments-2.8.1.dist-info/top_level.txt,sha256=RjKKqrVIStoebLHdbs0yZ2Lk4rS7cxGguXsLCYvZ2Ak,9
11
+ pygments/__init__.py,sha256=iF5depWHZUVBHQzKCp_Go4P0aVMNtHj_imXYToxWLHw,3012
12
12
  pygments/__main__.py,sha256=B2xzjMErGo0ddFrGd8L55Tl9GLEP4lTbsUjKJ9DwqQM,348
13
13
  pygments/__pycache__/__init__.cpython-38.pyc,,
14
14
  pygments/__pycache__/__main__.cpython-38.pyc,,
@@ -50,7 +50,7 @@ pygments/formatters/bbcode.py,sha256=3Il76ivFigb8C6GBRnUj2Zzy6pIs7koVmJnYjWKRSqE
50
50
  pygments/formatters/html.py,sha256=H1a9AE7HREmrX0SzodhIZs0o0995ADNDDLQE1i49NB4,33861
51
51
  pygments/formatters/img.py,sha256=kTnWVgf6kpOKDqhHbgpZu5GwWADOm18KFnPJZAD55j0,21795
52
52
  pygments/formatters/irc.py,sha256=CpVJKZv9253OPxJhWB2eUZHY-JB1Mm4TwY1REf44g4Q,5845
53
- pygments/formatters/latex.py,sha256=fk1bDa8A9zt3mq12pkHmozidlh7KpyP2czo_UzonOC8,18874
53
+ pygments/formatters/latex.py,sha256=gW7qKJDErjz7rH3x6nIH-izA67B2mEzlzz35VY4rh5k,18882
54
54
  pygments/formatters/other.py,sha256=OVt6uyJrkxOQvVAki5JJj4-_hmMkjlP4WRwPMgYx8nU,5025
55
55
  pygments/formatters/rtf.py,sha256=5b5DxR1L7SLv_I_9pvsF73aV_fOHrh0zNkcs2ZgN5WE,4990
56
56
  pygments/formatters/svg.py,sha256=9qgAf55XDDB7BZ-r51NRG85BUwcYzM1F-6DS7-gZXTE,7299
@@ -27,7 +27,7 @@
27
27
  import sys
28
28
  from io import StringIO, BytesIO
29
29
 
30
- __version__ = '2.8.0'
30
+ __version__ = '2.8.1'
31
31
  __docformat__ = 'restructuredtext'
32
32
 
33
33
  __all__ = ['lex', 'format', 'highlight']
@@ -299,7 +299,7 @@ class LatexFormatter(Formatter):
299
299
  cmndef += (r'\def\$$@tc##1{\textcolor[rgb]{%s}{##1}}' %
300
300
  rgbcolor(ndef['color']))
301
301
  if ndef['border']:
302
- cmndef += (r'\def\$$@bc##1{{\setlength{\fboxsep}{-\fboxrule}'
302
+ cmndef += (r'\def\$$@bc##1{{\setlength{\fboxsep}{\string -\fboxrule}'
303
303
  r'\fcolorbox[rgb]{%s}{%s}{\strut ##1}}}' %
304
304
  (rgbcolor(ndef['border']),
305
305
  rgbcolor(ndef['bgcolor'])))
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pygments.rb
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.0
4
+ version: 2.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Aman Gupta
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2021-02-14 00:00:00.000000000 Z
13
+ date: 2021-03-18 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rake
@@ -72,8 +72,6 @@ files:
72
72
  - README.adoc
73
73
  - Rakefile
74
74
  - bench.rb
75
- - cache_lexers.rb
76
- - lexers
77
75
  - lib/pygments.rb
78
76
  - lib/pygments/lexer.rb
79
77
  - lib/pygments/mentos.py
@@ -81,15 +79,15 @@ files:
81
79
  - lib/pygments/version.rb
82
80
  - pygments.rb.gemspec
83
81
  - test/test_pygments.rb
84
- - vendor/pygments-main/Pygments-2.8.0.dist-info/AUTHORS
85
- - vendor/pygments-main/Pygments-2.8.0.dist-info/INSTALLER
86
- - vendor/pygments-main/Pygments-2.8.0.dist-info/LICENSE
87
- - vendor/pygments-main/Pygments-2.8.0.dist-info/METADATA
88
- - vendor/pygments-main/Pygments-2.8.0.dist-info/RECORD
89
- - vendor/pygments-main/Pygments-2.8.0.dist-info/REQUESTED
90
- - vendor/pygments-main/Pygments-2.8.0.dist-info/WHEEL
91
- - vendor/pygments-main/Pygments-2.8.0.dist-info/entry_points.txt
92
- - vendor/pygments-main/Pygments-2.8.0.dist-info/top_level.txt
82
+ - vendor/pygments-main/Pygments-2.8.1.dist-info/AUTHORS
83
+ - vendor/pygments-main/Pygments-2.8.1.dist-info/INSTALLER
84
+ - vendor/pygments-main/Pygments-2.8.1.dist-info/LICENSE
85
+ - vendor/pygments-main/Pygments-2.8.1.dist-info/METADATA
86
+ - vendor/pygments-main/Pygments-2.8.1.dist-info/RECORD
87
+ - vendor/pygments-main/Pygments-2.8.1.dist-info/REQUESTED
88
+ - vendor/pygments-main/Pygments-2.8.1.dist-info/WHEEL
89
+ - vendor/pygments-main/Pygments-2.8.1.dist-info/entry_points.txt
90
+ - vendor/pygments-main/Pygments-2.8.1.dist-info/top_level.txt
93
91
  - vendor/pygments-main/bin/pygmentize
94
92
  - vendor/pygments-main/pygments/__init__.py
95
93
  - vendor/pygments-main/pygments/__main__.py
@@ -336,7 +334,12 @@ files:
336
334
  homepage: https://github.com/pygments/pygments.rb
337
335
  licenses:
338
336
  - MIT
339
- metadata: {}
337
+ metadata:
338
+ homepage_uri: https://github.com/pygments/pygments.rb
339
+ bug_tracker_uri: https://github.com/pygments/pygments.rb/issues
340
+ changelog_uri: https://github.com/pygments/pygments.rb/blob/master/CHANGELOG.adoc
341
+ documentation_uri: https://www.rubydoc.info/gems/pygments.rb
342
+ source_code_uri: https://github.com/pygments/pygments.rb
340
343
  post_install_message:
341
344
  rdoc_options: []
342
345
  require_paths:
data/cache_lexers.rb DELETED
@@ -1,9 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require File.join(File.dirname(__FILE__), '/lib/pygments.rb')
4
-
5
- # Simple marshalling
6
- serialized_lexers = Marshal.dump(Pygments.lexers!)
7
-
8
- # Write to a file
9
- File.open('lexers', 'wb') { |file| file.write(serialized_lexers) }