pygments.rb 2.4.0 → 2.4.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: 06ee50536364c613df97577b86bb28e455c9e53357777f3a3b345740a68d2360
4
- data.tar.gz: def24e3a74fb3f257cdec0c29bc8a511f67db9e077a595ff6c00ff8ee9a79428
3
+ metadata.gz: 280541d2488a2731822c26c80dba6d5b3daa03bcdb44b6ae0709f132c4d5a50d
4
+ data.tar.gz: c1adc0a17a1432b61412f834a6106f484494d3dd09049a0e350adb9668500566
5
5
  SHA512:
6
- metadata.gz: 1e8bcb9c40aced27415227b43b978fd475c6b1c7d6825c294cb5b09bcf9991f2ec77eb5f8fb221fd9f7b5a78f26b07a319ef1af253aea6ad25669544d76ae5d3
7
- data.tar.gz: f1b7d381a6244ffca240919bb81a527b373b73689ea31d04fac7153d20dd68b9ce79d8acbb09f3ad9d1ccf816c1be83b85e6777e889192d94394c6464a193298
6
+ metadata.gz: 0fe3fa9a236df3fa355e0e6c66ee16304e54b4ede0c50898dc1d15f934897d2499e28e144019ea8cdf717e1fddb26e1ce3370cf9e5076d1bfa0cb36f788e4567
7
+ data.tar.gz: 4a2ed57d7d62b5e899fe56cdf6c535b6349037c9ebec81018ed625edb5e21394c027c6fcb1af43fadb7f92dd61e9295f84bb3d79d8b6496f3a7f2802d9919984
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.4.1
9
+
10
+ * Fix handling of Python virtual environments on Windows ({uri-repo})/issues/256[#256])
11
+
8
12
  == 2.4.0
9
13
 
10
14
  * Update Pygments to 2.15.1
@@ -196,9 +196,9 @@ module Pygments
196
196
  # Detect a suitable Python binary to use.
197
197
  def find_python_binary
198
198
  if Gem.win_platform?
199
+ return 'python3' if which('python3')
200
+ return 'python' if which('python')
199
201
  return %w[py -3] if which('py')
200
-
201
- return [%w[python3 python].find { |py| !which(py).nil? }]
202
202
  end
203
203
 
204
204
  # On non-Windows platforms, we simply rely on shebang
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Pygments
4
- VERSION = '2.4.0'
4
+ VERSION = '2.4.1'
5
5
  end
data/pygments.rb.gemspec CHANGED
@@ -24,9 +24,9 @@ Gem::Specification.new do |s|
24
24
 
25
25
  s.required_ruby_version = '>= 2.5.0'
26
26
 
27
- s.add_development_dependency 'rake', '~> 13.0.0'
27
+ s.add_development_dependency 'rake', '~> 13.1.0'
28
28
  s.add_development_dependency 'rubocop', '~> 1.28.2'
29
- s.add_development_dependency 'test-unit', '~> 3.5.0'
29
+ s.add_development_dependency 'test-unit', '~> 3.6.0'
30
30
 
31
31
  s.files = `git ls-files -z`.split("\0").reject { |f| File.symlink?(f) }
32
32
  end
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.4.0
4
+ version: 2.4.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: 2023-04-19 00:00:00.000000000 Z
13
+ date: 2023-11-13 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rake
@@ -18,14 +18,14 @@ dependencies:
18
18
  requirements:
19
19
  - - "~>"
20
20
  - !ruby/object:Gem::Version
21
- version: 13.0.0
21
+ version: 13.1.0
22
22
  type: :development
23
23
  prerelease: false
24
24
  version_requirements: !ruby/object:Gem::Requirement
25
25
  requirements:
26
26
  - - "~>"
27
27
  - !ruby/object:Gem::Version
28
- version: 13.0.0
28
+ version: 13.1.0
29
29
  - !ruby/object:Gem::Dependency
30
30
  name: rubocop
31
31
  requirement: !ruby/object:Gem::Requirement
@@ -46,14 +46,14 @@ dependencies:
46
46
  requirements:
47
47
  - - "~>"
48
48
  - !ruby/object:Gem::Version
49
- version: 3.5.0
49
+ version: 3.6.0
50
50
  type: :development
51
51
  prerelease: false
52
52
  version_requirements: !ruby/object:Gem::Requirement
53
53
  requirements:
54
54
  - - "~>"
55
55
  - !ruby/object:Gem::Version
56
- version: 3.5.0
56
+ version: 3.6.0
57
57
  description: pygments.rb is a Ruby wrapper for Pygments syntax highlighter
58
58
  email:
59
59
  - marat@slonopotamus.org