Skip to content

Commit 4d1732c

Browse files
committed
Ruby 2.7
1 parent 3406bee commit 4d1732c

File tree

5 files changed

+30
-11
lines changed

5 files changed

+30
-11
lines changed

debian/changelog

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
ruby-defaults (1:2.7.0+0nkmi0~dist) unstable-proposed; urgency=medium
2+
3+
* Add Ruby 2.7
4+
5+
-- Sorah Fukumori <[email protected]> Thu, 30 May 2019 19:48:10 +0000
6+
17
ruby-defaults (1:2.6.0+0nkmi1~dist) unstable; urgency=medium
28

39
* Make Ruby 2.6 the default

debian/control

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ Testsuite: autopkgtest
1313
Package: ruby
1414
Architecture: any
1515
Multi-Arch: allowed
16-
Depends: ruby2.6, ${misc:Depends}
16+
Depends: ruby2.7, ${misc:Depends}
1717
Suggests: ri, ruby-dev
1818
Conflicts: ruby-activesupport-3.2, ruby-activesupport-2.3
1919
Breaks:
@@ -30,13 +30,13 @@ Description: Interpreter of object-oriented scripting language Ruby (default ver
3030
straight-forward, and extensible.
3131
.
3232
This package is a dependency package, which depends on Debian's default Ruby
33-
version (currently v2.6).
33+
version (currently v2.7).
3434

3535
Package: ruby-dev
3636
Section: devel
3737
Architecture: any
3838
Multi-Arch: same
39-
Depends: ruby2.6-dev, ${misc:Depends}
39+
Depends: ruby2.7-dev, ${misc:Depends}
4040
Description: Header files for compiling extension modules for Ruby (default version)
4141
Ruby is the interpreted scripting language for quick and easy
4242
object-oriented programming. It has many features to process text
@@ -48,7 +48,7 @@ Description: Header files for compiling extension modules for Ruby (default vers
4848
many gems.
4949
.
5050
This package is a dependency package, which depends on Debian's default Ruby
51-
version (currently v2.6).
51+
version (currently v2.7).
5252

5353
Package: ruby-all-dev
5454
Section: devel
@@ -76,7 +76,7 @@ Description: Ruby development environment (all versions supported in Debian)
7676
Package: libruby
7777
Section: libs
7878
Architecture: all
79-
Depends: libruby2.6, ${misc:Depends}
79+
Depends: libruby2.7, ${misc:Depends}
8080
Description: Libraries necessary to run Ruby
8181
Ruby is the interpreted scripting language for quick and easy
8282
object-oriented programming. It has many features to process text
@@ -86,11 +86,11 @@ Description: Libraries necessary to run Ruby
8686
This package includes the 'libruby' library, necessary to run Ruby.
8787
.
8888
This package is a dependency package, which depends on Debian's default Ruby
89-
version (currently v2.6).
89+
version (currently v2.7).
9090

9191
Package: ri
9292
Architecture: all
93-
Depends: ruby2.6, ruby2.6-doc, ${misc:Depends}
93+
Depends: ruby2.7, ruby2.7-doc, ${misc:Depends}
9494
Description: Ruby Interactive reference
9595
ri is a command line tool that displays descriptions of built-in Ruby
9696
methods, classes, and modules. For methods, it shows you the calling
@@ -103,7 +103,7 @@ Description: Ruby Interactive reference
103103
The ri executable itself is in the ruby package.
104104
.
105105
This package is a dependency package, which depends on Debian's default Ruby
106-
version (currently v2.6).
106+
version (currently v2.7).
107107

108108
Package: ruby-full
109109
Architecture: all
@@ -115,5 +115,5 @@ Description: Ruby full installation (default version)
115115
of the Tcl/Tk bindings for Ruby, which are only recommended.
116116
.
117117
This package is a dependency package, which depends on Debian's default Ruby
118-
version (currently v2.6).
118+
version (currently v2.7).
119119

debian/ruby.postinst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ set -e
55
update-alternatives --remove-all ruby 2>/dev/null || true
66
update-alternatives --remove-all gem 2>/dev/null || true
77

8-
version=2.6
8+
version=2.7
99

1010
# restore the default version overwriting any change made by
1111
# update-alternatives

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=2.6
10+
export DEBIAN_DEFAULT_RUBY_VERSION=2.7
1111
export DEBIAN_RUBY_PROGRAMS = \
1212
erb \
1313
gem \

ruby_debian_dev.rb

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,19 @@ def self.has_support_for(ruby)
1717
}
1818
end
1919

20+
has_support_for 'ruby2.7' do
21+
{
22+
version: '2.7',
23+
binary: '/usr/bin/ruby2.7',
24+
api_version: '2.7.0',
25+
shared_library: 'libruby2.7',
26+
min_ruby_version: '1:2.7~0',
27+
ruby_upper_bound: '1:2.8~',
28+
}
29+
end
30+
31+
32+
2033
def self.min_ruby_dependency_for(shared_library)
2134
RUBY_INTERPRETERS.each do |int,data|
2235
if data[:shared_library] == shared_library

0 commit comments

Comments
 (0)