pygments.rb 2.3.0 → 2.3.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 +4 -4
- data/.github/workflows/ci.yml +12 -7
- data/.github/workflows/release.yml +5 -5
- data/CHANGELOG.adoc +4 -0
- data/README.adoc +1 -1
- data/lib/pygments/popen.rb +6 -4
- data/lib/pygments/version.rb +1 -1
- data/test/test_pygments.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 171add681ed69631367cfa8cfed81fc99a9410743ba0236506e773d154fbc10f
|
4
|
+
data.tar.gz: c229e0b38f14de10bc909c0a4b6ec565d097545c639c3d5efa363cc40cbc54b5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 55f6e366bc0339454833035d851c300b376d12c5d7cf8144a640559d0157fc9c163a5094bd4b4399e686b909647827b76a8a18af63b4013a86298b4dc2a57969
|
7
|
+
data.tar.gz: 1fd392a704bfb84d798ef822a799b8a8b8b56ac656afd43efa8aa3bb31edbdd634a3ed9dc3ec18572e0ea254ae952920bbee579af14fb176440c4753de51be25
|
data/.github/workflows/ci.yml
CHANGED
@@ -6,10 +6,10 @@ on:
|
|
6
6
|
pull_request:
|
7
7
|
jobs:
|
8
8
|
rubocop:
|
9
|
-
runs-on: ubuntu-
|
9
|
+
runs-on: ubuntu-20.04
|
10
10
|
steps:
|
11
11
|
- name: Checkout
|
12
|
-
uses: actions/checkout@
|
12
|
+
uses: actions/checkout@v3
|
13
13
|
- name: Set up Ruby
|
14
14
|
uses: ruby/setup-ruby@v1
|
15
15
|
with:
|
@@ -20,21 +20,26 @@ jobs:
|
|
20
20
|
build:
|
21
21
|
strategy:
|
22
22
|
matrix:
|
23
|
-
ruby: [ 'jruby-9.2', '2.3', '3.
|
24
|
-
python: [ '3.
|
25
|
-
platform: [ ubuntu-
|
23
|
+
ruby: [ 'jruby-9.2', '2.3', '3.1' ]
|
24
|
+
python: [ '3.6', '3.11' ]
|
25
|
+
platform: [ ubuntu-20.04, macos-latest, windows-2019 ]
|
26
26
|
runs-on: ${{ matrix.platform }}
|
27
27
|
steps:
|
28
28
|
- name: Checkout
|
29
|
-
uses: actions/checkout@
|
29
|
+
uses: actions/checkout@v3
|
30
30
|
- name: Setup Ruby
|
31
31
|
uses: ruby/setup-ruby@v1
|
32
32
|
with:
|
33
33
|
ruby-version: ${{ matrix.ruby }}
|
34
34
|
bundler-cache: true
|
35
35
|
- name: Setup Python
|
36
|
-
uses: actions/setup-python@
|
36
|
+
uses: actions/setup-python@v4
|
37
37
|
with:
|
38
38
|
python-version: ${{ matrix.python }}
|
39
39
|
- name: Run Tests
|
40
40
|
run: bundle exec rake test
|
41
|
+
env:
|
42
|
+
# Workaround JVM bug that causes JRuby to fail: https://bugs.openjdk.org/browse/JDK-8285445
|
43
|
+
# See https://github.com/ruby/setup-ruby/issues/339
|
44
|
+
# See https://github.com/jruby/jruby/issues/7182#issuecomment-1111610677
|
45
|
+
JAVA_OPTS: -Djdk.io.File.enableADS=true
|
@@ -4,18 +4,18 @@ on:
|
|
4
4
|
tags: [ '*' ]
|
5
5
|
jobs:
|
6
6
|
build:
|
7
|
-
runs-on: ubuntu-
|
7
|
+
runs-on: ubuntu-20.04
|
8
8
|
steps:
|
9
|
-
- uses: actions/checkout@
|
9
|
+
- uses: actions/checkout@v3
|
10
10
|
- name: Set up Ruby
|
11
11
|
uses: ruby/setup-ruby@v1
|
12
12
|
with:
|
13
|
-
ruby-version: '3.
|
13
|
+
ruby-version: '3.1'
|
14
14
|
bundler-cache: true
|
15
15
|
- name: Setup Python
|
16
|
-
uses: actions/setup-python@
|
16
|
+
uses: actions/setup-python@v4
|
17
17
|
with:
|
18
|
-
python-version: '3.
|
18
|
+
python-version: '3.11'
|
19
19
|
- name: Build
|
20
20
|
run: bundle exec rake build
|
21
21
|
- name: Publish to RubyGems.org
|
data/CHANGELOG.adoc
CHANGED
@@ -5,6 +5,10 @@
|
|
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.3.1 (2022-12-04) - @slonopotamus
|
9
|
+
|
10
|
+
* Fix bogus search for Python executable ({uri-repo})/issues/242[#242])
|
11
|
+
|
8
12
|
== 2.3.0 (2022-01-05) - @slonopotamus
|
9
13
|
|
10
14
|
* Add `Pygments.pygments_version` method to query underlying Pygments version ({uri-repo}/issues/226[#226])
|
data/README.adoc
CHANGED
data/lib/pygments/popen.rb
CHANGED
@@ -39,9 +39,7 @@ module Pygments
|
|
39
39
|
@python_binary ||= find_python_binary
|
40
40
|
end
|
41
41
|
|
42
|
-
|
43
|
-
@python_bin = python_bin
|
44
|
-
end
|
42
|
+
attr_writer :python_binary
|
45
43
|
|
46
44
|
# Stop the child process by issuing a kill -9.
|
47
45
|
#
|
@@ -197,7 +195,11 @@ module Pygments
|
|
197
195
|
|
198
196
|
# Detect a suitable Python binary to use.
|
199
197
|
def find_python_binary
|
200
|
-
|
198
|
+
if Gem.win_platform?
|
199
|
+
return %w[py -3] if which('py')
|
200
|
+
|
201
|
+
return [%w[python3 python].find { |py| !which(py).nil? }]
|
202
|
+
end
|
201
203
|
|
202
204
|
# On non-Windows platforms, we simply rely on shebang
|
203
205
|
[]
|
data/lib/pygments/version.rb
CHANGED
data/test/test_pygments.rb
CHANGED
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.3.
|
4
|
+
version: 2.3.1
|
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: 2022-
|
13
|
+
date: 2022-12-04 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: rake
|
@@ -370,7 +370,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
370
370
|
- !ruby/object:Gem::Version
|
371
371
|
version: '0'
|
372
372
|
requirements: []
|
373
|
-
rubygems_version: 3.
|
373
|
+
rubygems_version: 3.3.26
|
374
374
|
signing_key:
|
375
375
|
specification_version: 4
|
376
376
|
summary: pygments wrapper for ruby
|