Skip to content

Commit 97625ee

Browse files
committed
newruby 3.3
1 parent 33946c1 commit 97625ee

File tree

6 files changed

+38
-31
lines changed

6 files changed

+38
-31
lines changed

debian/README.Debian

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ Skipping some Ruby version when building packages
3030
-------------------------------------------------
3131

3232
To skip building/testing against a specific Ruby version that is listed as
33-
suppotted, you can set e.g. RUBY_ALL_DEV_SKIP=ruby3.2 and get ruby3.2 ignored.
33+
suppotted, you can set e.g. RUBY_ALL_DEV_SKIP=ruby3.3 and get ruby3.3 ignored.
3434

3535
This is a developer feature, intended for very specific use cases, and MUST NOT
3636
be used in any Debian packages to skip tests and whatnot.

debian/changelog

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
ruby-defaults (1:3.3+0nkmi1~dist) unstable; urgency=medium
2+
3+
* Default to Ruby 3.2
4+
* Drop Ruby 2.7
5+
6+
-- Sorah Fukumori <[email protected]> Tue, 02 Jan 2024 00:51:14 +0900
7+
18
ruby-defaults (1:3.2+0nkmi1~dist) unstable; urgency=medium
29

310
* Default to Ruby 3.2

debian/control

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@ Testsuite: autopkgtest
1212
Package: ruby
1313
Architecture: any
1414
Multi-Arch: allowed
15-
Depends: ruby3.2, libruby (= ${binary:Version}), ${misc:Depends}
15+
Depends: ruby3.3, libruby (= ${binary:Version}), ${misc:Depends}
1616
Suggests: ri, ruby-dev
17-
Conflicts: ruby-activesupport-3.2, ruby-activesupport-2.3
17+
Conflicts: ruby-activesupport-3.3, ruby-activesupport-2.3
1818
Breaks:
1919
ruby-switch (<= 0.1.0),
2020
ruby-bootsnap (<< 1.4.6-1)
@@ -27,13 +27,13 @@ Description: Interpreter of object-oriented scripting language Ruby (default ver
2727
straight-forward, and extensible.
2828
.
2929
This package is a dependency package, which depends on Debian's default Ruby
30-
version (currently v3.2).
30+
version (currently v3.3).
3131

3232
Package: ruby-dev
3333
Section: devel
3434
Architecture: any
3535
Multi-Arch: same
36-
Depends: ruby3.2-dev, ${misc:Depends}
36+
Depends: ruby3.3-dev, ${misc:Depends}
3737
Description: Header files for compiling extension modules for Ruby (default version)
3838
Ruby is the interpreted scripting language for quick and easy
3939
object-oriented programming. It has many features to process text
@@ -45,7 +45,7 @@ Description: Header files for compiling extension modules for Ruby (default vers
4545
many gems.
4646
.
4747
This package is a dependency package, which depends on Debian's default Ruby
48-
version (currently v3.2).
48+
version (currently v3.3).
4949

5050
Package: ruby-all-dev
5151
Section: devel
@@ -74,7 +74,7 @@ Package: libruby
7474
Section: libs
7575
Architecture: any
7676
Multi-Arch: same
77-
Depends: libruby3.2, ${misc:Depends}
77+
Depends: libruby3.3, ${misc:Depends}
7878
Description: Libraries necessary to run Ruby
7979
Ruby is the interpreted scripting language for quick and easy
8080
object-oriented programming. It has many features to process text
@@ -84,11 +84,11 @@ Description: Libraries necessary to run Ruby
8484
This package includes the 'libruby' library, necessary to run Ruby.
8585
.
8686
This package is a dependency package, which depends on Debian's default Ruby
87-
version (currently v3.2).
87+
version (currently v3.3).
8888

8989
Package: ri
9090
Architecture: all
91-
Depends: ruby3.2, ruby3.2-doc, ${misc:Depends}
91+
Depends: ruby3.3, ruby3.3-doc, ${misc:Depends}
9292
Description: Ruby Interactive reference
9393
ri is a command line tool that displays descriptions of built-in Ruby
9494
methods, classes, and modules. For methods, it shows you the calling
@@ -101,7 +101,7 @@ Description: Ruby Interactive reference
101101
The ri executable itself is in the ruby package.
102102
.
103103
This package is a dependency package, which depends on Debian's default Ruby
104-
version (currently v3.2).
104+
version (currently v3.3).
105105

106106
Package: ruby-full
107107
Architecture: all
@@ -113,5 +113,5 @@ Description: Ruby full installation (default version)
113113
of the Tcl/Tk bindings for Ruby, which are only recommended.
114114
.
115115
This package is a dependency package, which depends on Debian's default Ruby
116-
version (currently v3.2).
116+
version (currently v3.3).
117117

debian/copyright

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ Files: *
55
Copyright: © Copyright 2012-2016 Antonio Terceiro <[email protected]>
66
2014-2016 Christian Hofstaedtler <[email protected]>
77
2007-2011 Lucas Nussbaum <[email protected]>
8-
2003-2004 Fumitoshi UKAI <[email protected]>
8+
2003.3004 Fumitoshi UKAI <[email protected]>
99
akira yamada <[email protected]>
1010
Akira TAGOH <[email protected]>
1111
License: RubyLicense

debian/rules

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ include /usr/share/dpkg/pkg-info.mk
77
#
88
# $ debian/rules debian/ruby.postinst
99
#
10-
export DEBIAN_DEFAULT_RUBY_VERSION=3.2
10+
export DEBIAN_DEFAULT_RUBY_VERSION=3.3
1111
export DEBIAN_RUBY_PROGRAMS = \
1212
erb \
1313
gem \

ruby_debian_dev.rb

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,17 @@ def self.has_support_for(ruby)
1111
RUBY_INTERPRETERS[ruby] = yield
1212
end
1313

14+
has_support_for 'ruby3.3' do
15+
{
16+
version: '3.3',
17+
binary: '/usr/bin/ruby3.3',
18+
api_version: '3.3.0',
19+
shared_library: 'libruby3.3',
20+
min_ruby_version: '1:3.3~0',
21+
ruby_upper_bound: '1:3.3~',
22+
}
23+
end
24+
1425
has_support_for 'ruby3.2' do
1526
{
1627
version: '3.2',
@@ -22,14 +33,14 @@ def self.has_support_for(ruby)
2233
}
2334
end
2435

25-
has_support_for 'ruby2.7' do
36+
has_support_for 'ruby3.1' do
2637
{
27-
version: '2.7',
28-
binary: '/usr/bin/ruby2.7',
29-
api_version: '2.7.0',
30-
shared_library: 'libruby2.7',
31-
min_ruby_version: '1:2.7~0',
32-
ruby_upper_bound: '1:2.8~',
38+
version: '3.1',
39+
binary: '/usr/bin/ruby3.1',
40+
api_version: '3.1.0',
41+
shared_library: 'libruby3.1',
42+
min_ruby_version: '1:3.1~0',
43+
ruby_upper_bound: '1:3.1~',
3344
}
3445
end
3546

@@ -44,17 +55,6 @@ def self.has_support_for(ruby)
4455
}
4556
end
4657

47-
has_support_for 'ruby3.1' do
48-
{
49-
version: '3.1',
50-
binary: '/usr/bin/ruby3.1',
51-
api_version: '3.1.0',
52-
shared_library: 'libruby3.1',
53-
min_ruby_version: '1:3.1~0',
54-
ruby_upper_bound: '1:3.1~',
55-
}
56-
end
57-
5858
def self.min_ruby_dependency_for(shared_library)
5959
RUBY_INTERPRETERS.each do |int,data|
6060
if data[:shared_library] == shared_library

0 commit comments

Comments
 (0)