Skip to content

Commit ccb7536

Browse files
Upgrade: rubygem-rouge version to 4.4.0 (microsoft#11704)
1 parent cfa797a commit ccb7536

File tree

5 files changed

+138
-24
lines changed

5 files changed

+138
-24
lines changed
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
module Bundler
2+
class << self
3+
def require
4+
end
5+
end
6+
end
Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
{
22
"Signatures": {
3-
"rouge-3.26.0.tar.gz": "d856bf074925dff523f0e1232d5ff0be81cdf7428bf9b4425d0055bce61ad43d"
3+
"bundler.rb": "5568b03c72652879f7d07b9bdd27a41fc8d3fc3e2f60ae8b40ff71a2b0f2023f",
4+
"rubygem-rouge-4.4.0.tar.gz": "f4cb2b74fa0db748b1f31a51f1f77cb5e0c1aa5552f6d1632a08743e1eaa1aef",
5+
"spec_helper_assert.rb": "4a510a7d0ba8cd0df97b19854a8fcba3659ea8b5f3de7c8abd5879b7e5bc137c"
46
}
5-
}
7+
}

SPECS-EXTENDED/rubygem-rouge/rubygem-rouge.spec

Lines changed: 102 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,24 @@
1-
Vendor: Microsoft Corporation
2-
Distribution: Azure Linux
31
%global gem_name rouge
42

53
Name: rubygem-%{gem_name}
6-
Version: 3.26.0
7-
Release: 3%{?dist}
4+
Version: 4.4.0
5+
Release: 2%{?dist}
86
Summary: Pure-ruby colorizer based on pygments
9-
License: MIT and BSD
7+
# From LICENSE file
8+
# SPDX confirmed
9+
License: MIT AND BSD-2-Clause
10+
Vendor: Microsoft Corporation
11+
Distribution: Azure Linux
1012
URL: http://rouge.jneen.net/
11-
Source0: https://github.com/rouge-ruby/rouge/archive/refs/tags/v%{version}.tar.gz#/%{gem_name}-%{version}.tar.gz
13+
Source0: https://github.com/rouge-ruby/%{gem_name}/archive/refs/tags/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
14+
Source10: spec_helper_assert.rb
15+
Source11: bundler.rb
1216
BuildRequires: ruby(release)
1317
BuildRequires: rubygems-devel
14-
BuildRequires: ruby >= 2.0
1518
BuildRequires: help2man
19+
BuildRequires: rubygem(minitest)
20+
BuildRequires: rubygem(rake)
21+
1622
BuildArch: noarch
1723

1824
%description
@@ -27,10 +33,15 @@ BuildArch: noarch
2733
Documentation for %{name}.
2834

2935
%prep
30-
%setup -q -n %{gem_name}-%{version}
36+
%autosetup -n %{gem_name}-%{version}
37+
38+
cp -a spec ..
39+
mkdir FAKE
40+
cp -a %{SOURCE11} FAKE/
41+
cp -pa %{SOURCE10} spec/
3142

3243
%build
33-
gem build %{gem_name}
44+
gem build %{gem_name}.gemspec
3445
%gem_install
3546

3647
%install
@@ -46,32 +57,100 @@ find %{buildroot}%{gem_instdir}/bin -type f | xargs chmod a+x
4657
export GEM_PATH="%{buildroot}%{gem_dir}:%{gem_dir}"
4758

4859
mkdir -p %{buildroot}%{_mandir}/man1
49-
5060
help2man -N -s1 -o %{buildroot}%{_mandir}/man1/rougify.1 \
5161
%{buildroot}%{_bindir}/rougify
5262

63+
rm -f %{buildroot}%{gem_cache}
64+
pushd %{buildroot}%{gem_instdir}
65+
rm -rf \
66+
Gemfile \
67+
%{gem_name}.gemspec \
68+
%{nil}
69+
popd
70+
71+
%check
72+
find spec -name \*_spec.rb -print0 | \
73+
sort --zero-terminated | \
74+
xargs --null ruby -Ilib:FAKE \
75+
-r./spec/spec_helper \
76+
-r./spec/spec_helper_assert \
77+
-r rake/rake_test_loader \
78+
%{nil}
79+
5380
%files
81+
%dir %{gem_instdir}
5482
%license %{gem_instdir}/LICENSE
83+
%{gem_libdir}
84+
%exclude %{gem_libdir}/%{gem_name}/demos
5585
%{_bindir}/rougify
56-
%{_mandir}/man1/rougify.1*
57-
%dir %{gem_instdir}
5886
%{gem_instdir}/bin
59-
%exclude %{gem_instdir}/rouge.gemspec
60-
%{gem_libdir}
61-
%exclude %{gem_cache}
87+
%{_mandir}/man1/rougify.1*
6288
%{gem_spec}
6389

6490
%files doc
6591
%doc %{gem_docdir}
66-
%{gem_instdir}/Gemfile
92+
%{gem_libdir}/%{gem_name}/demos
6793

6894
%changelog
69-
* Tue Mar 22 2022 Neha Agarwal <[email protected]> - 3.26.0-3
95+
* Tue Dec 24 2024 Akhila Guruju <[email protected]> - 4.4.0-2
96+
- Initial Azure Linux import from Fedora 41 (license: MIT).
97+
- Build from .tar.gz source
7098
- License verified.
71-
- Build from .tar.gz source.
7299

73-
* Fri Oct 15 2021 Pawel Winogrodzki <[email protected]> - 3.26.0-2
74-
- Initial CBL-Mariner import from Fedora 32 (license: MIT).
100+
* Fri Sep 20 2024 Mamoru TASAKA <[email protected]> - 4.4.0-1
101+
- 4.4.0
102+
103+
* Fri Jul 19 2024 Fedora Release Engineering <[email protected]> - 4.3.0-2
104+
- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild
105+
106+
* Tue Jun 18 2024 Mamoru TASAKA <[email protected]> - 4.3.0-1
107+
- 4.3.0
108+
109+
* Mon Mar 18 2024 Mamoru TASAKA <[email protected]> - 4.2.1-1
110+
- 4.2.1
111+
112+
* Fri Jan 26 2024 Fedora Release Engineering <[email protected]> - 4.2.0-2
113+
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
114+
115+
* Wed Oct 25 2023 Mamoru TASAKA <[email protected]> - 4.2.0-1
116+
- 4.2.0
117+
118+
* Fri Aug 18 2023 Mamoru TASAKA <[email protected]> - 4.1.3-1
119+
- 4.1.3
120+
121+
* Fri Jul 21 2023 Fedora Release Engineering <[email protected]> - 4.1.0-2
122+
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
123+
124+
* Fri Feb 17 2023 Mamoru TASAKA <[email protected]> - 4.1.0-1
125+
- 4.1.0
126+
127+
* Sun Feb 12 2023 Mamoru TASAKA <[email protected]> - 4.0.1-3
128+
- Execute spec test provided by the upstream
129+
- Backport upstream patch for ruby32 regex issue with hash character
130+
131+
* Fri Jan 20 2023 Fedora Release Engineering <[email protected]> - 4.0.1-2
132+
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
133+
134+
* Wed Dec 21 2022 Mamoru TASAKA <[email protected]> - 4.0.1-1
135+
- 4.0.1
136+
137+
* Sun Oct 9 2022 Mamoru TASAKA <[email protected]> - 4.0.0-2
138+
- 4.0.0
139+
140+
* Sat Jul 23 2022 Fedora Release Engineering <[email protected]> - 3.26.1-3
141+
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
142+
143+
* Fri Jan 21 2022 Fedora Release Engineering <[email protected]> - 3.26.1-2
144+
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
145+
146+
* Sun Sep 19 2021 Mamoru TASAKA <[email protected]> - 3.26.1-1
147+
- 3.26.1
148+
149+
* Fri Jul 23 2021 Fedora Release Engineering <[email protected]> - 3.26.0-3
150+
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
151+
152+
* Wed Jan 27 2021 Fedora Release Engineering <[email protected]> - 3.26.0-2
153+
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
75154

76155
* Fri Dec 11 2020 Fabio Valentini <[email protected]> - 3.26.0-1
77156
- Update to version 3.26.0.
@@ -88,6 +167,9 @@ help2man -N -s1 -o %{buildroot}%{_mandir}/man1/rougify.1 \
88167
* Wed Aug 12 2020 Fabio Valentini <[email protected]> - 3.22.0-1
89168
- Update to version 3.22.0.
90169

170+
* Wed Jul 29 2020 Fedora Release Engineering <[email protected]> - 3.21.0-2
171+
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
172+
91173
* Wed Jul 15 2020 Fabio Valentini <[email protected]> - 3.21.0-1
92174
- Update to version 3.21.0.
93175

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
module Minitest
2+
module Assertions
3+
4+
alias_method :assert_orig, :assert
5+
alias_method :refute_orig, :refute
6+
7+
def assert(test = nil, msg = nil, &block)
8+
if block_given?
9+
assert_orig yield
10+
else
11+
assert_orig test, msg
12+
end
13+
end
14+
15+
def refute(test = nil, msg = nil, &block)
16+
if block_given?
17+
refute_orig yield
18+
else
19+
refute_orig test, msg
20+
end
21+
end
22+
23+
end
24+
end

cgmanifest.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27184,8 +27184,8 @@
2718427184
"type": "other",
2718527185
"other": {
2718627186
"name": "rubygem-rouge",
27187-
"version": "3.26.0",
27188-
"downloadUrl": "https://github.com/rouge-ruby/rouge/archive/refs/tags/v3.26.0.tar.gz"
27187+
"version": "4.4.0",
27188+
"downloadUrl": "https://github.com/rouge-ruby/rouge/archive/refs/tags/v4.4.0.tar.gz"
2718927189
}
2719027190
}
2719127191
},

0 commit comments

Comments
 (0)