Skip to content

Commit de8a5b3

Browse files
committed
Support to build Ruby 3.4
1 parent d2aacf2 commit de8a5b3

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

snap/local/snapcraft.yaml.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ apps:
4545
parts:
4646
ruby:
4747
plugin: make
48-
<% if Gem::Version.new(abi_v) < Gem::Version.new("3.4.0") %>
48+
<% if Gem::Version.new(abi_v) < Gem::Version.new("3.5.0") %>
4949
source: https://cache.ruby-lang.org/pub/ruby/<%= series_v %>/ruby-$SNAPCRAFT_PROJECT_VERSION.tar.gz
5050
<% else %>
5151
source: https://cache.ruby-lang.org/pub/ruby/snapshot.tar.gz

snap/snapcraft.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: ruby
2-
version: '3.3.4'
2+
version: '3.4.0'
33
base: core20
44
summary: Interpreter for the Ruby programming language
55
description: |
@@ -13,8 +13,8 @@ license: Ruby
1313

1414
environment:
1515
GEM_HOME: $HOME/.gem
16-
GEM_PATH: $HOME/.gem:$SNAP/lib/ruby/gems/3.3.0
17-
RUBYLIB: $SNAP/lib/ruby/3.3.0:$SNAP/lib/ruby/3.3.0/$SNAP_ARCH:$RUBYLIB
16+
GEM_PATH: $HOME/.gem:$SNAP/lib/ruby/gems/3.4.0
17+
RUBYLIB: $SNAP/lib/ruby/3.4.0:$SNAP/lib/ruby/3.4.0/$SNAP_ARCH:$RUBYLIB
1818

1919
apps:
2020
env:
@@ -46,7 +46,7 @@ parts:
4646
ruby:
4747
plugin: make
4848

49-
source: https://cache.ruby-lang.org/pub/ruby/3.3/ruby-$SNAPCRAFT_PROJECT_VERSION.tar.gz
49+
source: https://cache.ruby-lang.org/pub/ruby/snapshot.tar.gz
5050

5151
build-packages: [ruby, gcc, curl, autoconf, bison, libssl-dev, libyaml-dev, libreadline6-dev, zlib1g-dev, libncurses5-dev, libffi-dev, libdb-dev, libgdbm-dev]
5252
stage-packages: [libgdbm6]
@@ -80,7 +80,7 @@ parts:
8080
exit 1
8181
;;
8282
esac
83-
root="$SNAPCRAFT_PART_INSTALL/lib/ruby/3.3.0"
83+
root="$SNAPCRAFT_PART_INSTALL/lib/ruby/3.4.0"
8484
ln -s "$target" "$root/$arch"
8585
override-prime: |
8686
snapcraftctl prime

0 commit comments

Comments
 (0)