pygments.rb 2.3.0 → 2.3.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
  SHA256:
3
- metadata.gz: 494fdb817ce25f9a10420c22c8dce5c725b157da060f61bad53527af80bb1dff
4
- data.tar.gz: 5bb0321b93ea7bac8ee0675803a5bbeee4b74b3784deb0302e50bde0d4dd53e6
3
+ metadata.gz: 171add681ed69631367cfa8cfed81fc99a9410743ba0236506e773d154fbc10f
4
+ data.tar.gz: c229e0b38f14de10bc909c0a4b6ec565d097545c639c3d5efa363cc40cbc54b5
5
5
  SHA512:
6
- metadata.gz: 363d098055a9887fa9146a2aef00cc5d04929328a55a6c63fca726a34a9b6a4f32d3c4d8f2ba9cf071db23d978fb30868fd6c5d02e2027b1f5bf5529a3394298
7
- data.tar.gz: a80e5d794c22e8d700995346c113877b4a8440253d2482578c3393f54f4ffe57f8fcb076731f63a96d1706de19fbeb7c81d42130f9cfbe87c1e06a9783821e8c
6
+ metadata.gz: 55f6e366bc0339454833035d851c300b376d12c5d7cf8144a640559d0157fc9c163a5094bd4b4399e686b909647827b76a8a18af63b4013a86298b4dc2a57969
7
+ data.tar.gz: 1fd392a704bfb84d798ef822a799b8a8b8b56ac656afd43efa8aa3bb31edbdd634a3ed9dc3ec18572e0ea254ae952920bbee579af14fb176440c4753de51be25
@@ -6,10 +6,10 @@ on:
6
6
  pull_request:
7
7
  jobs:
8
8
  rubocop:
9
- runs-on: ubuntu-latest
9
+ runs-on: ubuntu-20.04
10
10
  steps:
11
11
  - name: Checkout
12
- uses: actions/checkout@v2
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.0' ]
24
- python: [ '3.5', '3.10' ]
25
- platform: [ ubuntu-latest, macos-latest, windows-latest ]
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@v2
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@v2
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-latest
7
+ runs-on: ubuntu-20.04
8
8
  steps:
9
- - uses: actions/checkout@v2
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.0'
13
+ ruby-version: '3.1'
14
14
  bundler-cache: true
15
15
  - name: Setup Python
16
- uses: actions/setup-python@v2
16
+ uses: actions/setup-python@v4
17
17
  with:
18
- python-version: '3.9'
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
@@ -22,7 +22,7 @@ If a Python process dies, a new one will be spawned on the next pygments.rb requ
22
22
 
23
23
  == System Requirements
24
24
 
25
- - Python >= 3.5
25
+ - Python >= 3.6
26
26
  - Ruby >= 2.3
27
27
 
28
28
  == Installation
@@ -39,9 +39,7 @@ module Pygments
39
39
  @python_binary ||= find_python_binary
40
40
  end
41
41
 
42
- def python_binary=(python_bin)
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
- return %w[py python3 python].first { |py| !which(py).nil? } if Gem.win_platform?
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
  []
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Pygments
4
- VERSION = '2.3.0'
4
+ VERSION = '2.3.1'
5
5
  end
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  require 'test/unit'
4
- require File.join(File.dirname(__FILE__), '..', '/lib/pygments.rb')
4
+ require 'pygments'
5
5
  ENV['mentos-test'] = 'yes'
6
6
 
7
7
  P = Pygments
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.0
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-01-05 00:00:00.000000000 Z
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.2.32
373
+ rubygems_version: 3.3.26
374
374
  signing_key:
375
375
  specification_version: 4
376
376
  summary: pygments wrapper for ruby