Skip to content

Commit

Permalink
Bump iruby to v0.8.0, closes #68
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasjm committed Sep 27, 2024
1 parent 6e16d94 commit 38a3e52
Show file tree
Hide file tree
Showing 6 changed files with 119 additions and 31 deletions.
5 changes: 4 additions & 1 deletion modules/kernels/ruby/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,15 @@ let
++ lib.optionals settings.lsp.solargraph.enable [(callPackage ./solargraph.nix { rubyPackages = packageOptions; inherit kernelName; })]
;

iruby = (callPackage ./iruby { inherit ruby; }).iruby;

in

symlinkJoin {
name = "ruby";
paths = [
(callPackage ./kernel.nix {
iruby = (callPackage ./iruby { inherit ruby; }).iruby;
inherit iruby;
inherit attrs extensions version;
})
ruby
Expand All @@ -57,6 +59,7 @@ symlinkJoin {
versions = {
ruby = builtins.toString ruby.version;
solargraph = packageOptions.solargraph.version;
iruby = iruby.version;
};
inherit packageOptions packageSearch;
inherit settingsSchema settings;
Expand Down
2 changes: 1 addition & 1 deletion modules/kernels/ruby/iruby/Gemfile
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
source 'https://rubygems.org'
gem 'iruby', "0.7.3"
gem 'iruby', "0.8.0"
32 changes: 21 additions & 11 deletions modules/kernels/ruby/iruby/Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2,32 +2,42 @@ GEM
remote: https://rubygems.org/
specs:
data_uri (0.1.0)
ffi (1.15.5)
ffi (1.17.0)
ffi-rzmq (2.0.7)
ffi-rzmq-core (>= 1.0.7)
ffi-rzmq-core (1.0.7)
ffi
io-console (0.5.11)
irb (1.4.1)
reline (>= 0.3.0)
iruby (0.7.3)
io-console (0.7.2)
irb (1.14.1)
rdoc (>= 4.0.0)
reline (>= 0.4.2)
iruby (0.8.0)
data_uri (~> 0.1)
ffi-rzmq
irb
logger
mime-types (>= 3.3.1)
multi_json (~> 1.11)
mime-types (3.4.1)
native-package-installer
logger (1.6.1)
mime-types (3.5.2)
mime-types-data (~> 3.2015)
mime-types-data (3.2022.0105)
mime-types-data (3.2024.0903)
multi_json (1.15.0)
reline (0.3.1)
native-package-installer (1.1.9)
psych (5.1.2)
stringio
rdoc (6.7.0)
psych (>= 4.0.0)
reline (0.5.10)
io-console (~> 0.5)
stringio (3.1.1)

PLATFORMS
x86_64-linux
ruby

DEPENDENCIES
iruby (= 0.7.3)
iruby (= 0.8.0)

BUNDLED WITH
2.2.24
2.5.16
8 changes: 6 additions & 2 deletions modules/kernels/ruby/iruby/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ let
irubySrc = fetchFromGitHub {
owner = "SciRuby";
repo = "iruby";
rev = "146ada216685d3eb9b35fe9c5e2b6c3f2cf707f9";
sha256 = "0fc8slrfapvajnfnw76x31g5s5p9vxhbl85smfh8p39nqkh0cs6g";
rev = "fe16c1b6de2463d5c5552dd64b0645bf930b5834";
hash = "sha256-ukS1s419xggzu/wNJkk/0GOtTHLssizDZrgEMETpfeM=";
};

iruby = (bundlerApp.override { inherit ruby; }) {
Expand All @@ -29,6 +29,10 @@ let

# buildInputs = [ zeromq libtool ];

passthru = {
version = "v0.8.0";
};

meta = with lib; {
description = "Ruby kernel for Jupyter";
homepage = "https://github.com/SciRuby/iruby";
Expand Down
84 changes: 68 additions & 16 deletions modules/kernels/ruby/iruby/gemset.nix
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@
platforms = [];
source = {
remotes = ["https://rubygems.org"];
sha256 = "1862ydmclzy1a0cjbvm8dz7847d9rch495ib0zb64y84d3xd4bkg";
sha256 = "07139870npj59jnl8vmk39ja3gdk3fb5z9vc0lf32y2h891hwqsi";
type = "gem";
};
version = "1.15.5";
version = "1.17.0";
};
ffi-rzmq = {
dependencies = ["ffi-rzmq-core"];
Expand Down Expand Up @@ -46,53 +46,63 @@
platforms = [];
source = {
remotes = ["https://rubygems.org"];
sha256 = "0r9kxrf9jccrr329pa3s37rf16vy426cbqmfwxkav1fidwvih93y";
sha256 = "08d2lx42pa8jjav0lcjbzfzmw61b8imxr9041pva8xzqabrczp7h";
type = "gem";
};
version = "0.5.11";
version = "0.7.2";
};
irb = {
dependencies = ["reline"];
dependencies = ["rdoc" "reline"];
groups = ["default"];
platforms = [];
source = {
remotes = ["https://rubygems.org"];
sha256 = "1a7hkcvnyfcmzxz36qnfk84grl7m4xrv2vzg5pyhzqwxmgcrhrja";
sha256 = "1y40dv3caswr81dlsyln6vnmmpzf5jcal2rqjbsglvnkb0xh0xar";
type = "gem";
};
version = "1.4.1";
version = "1.14.1";
};
iruby = {
dependencies = ["data_uri" "ffi-rzmq" "irb" "mime-types" "multi_json"];
dependencies = ["data_uri" "ffi-rzmq" "irb" "logger" "mime-types" "multi_json" "native-package-installer"];
groups = ["default"];
platforms = [];
source = {
remotes = ["https://rubygems.org"];
sha256 = "1hwgdsnzmv5qhnrfxrd14di7arz5wgm5h94sn9xbcs210b39vm04";
sha256 = "1nvn52ailvk6cl100s9vryamhi7cj06bdfmadps4q57690bwp2rh";
type = "gem";
};
version = "0.7.3";
version = "0.8.0";
};
logger = {
groups = ["default"];
platforms = [];
source = {
remotes = ["https://rubygems.org"];
sha256 = "0lwncq2rf8gm79g2rcnnyzs26ma1f4wnfjm6gs4zf2wlsdz5in9s";
type = "gem";
};
version = "1.6.1";
};
mime-types = {
dependencies = ["mime-types-data"];
groups = ["default"];
platforms = [];
source = {
remotes = ["https://rubygems.org"];
sha256 = "0ipw892jbksbxxcrlx9g5ljq60qx47pm24ywgfbyjskbcl78pkvb";
sha256 = "1r64z0m5zrn4k37wabfnv43wa6yivgdfk6cf2rpmmirlz889yaf1";
type = "gem";
};
version = "3.4.1";
version = "3.5.2";
};
mime-types-data = {
groups = ["default"];
platforms = [];
source = {
remotes = ["https://rubygems.org"];
sha256 = "003gd7mcay800k2q4pb2zn8lwwgci4bhi42v2jvlidm8ksx03i6q";
sha256 = "0d5bmxcq87nj6h5rx6b1fkdzq8256yba97s2vlkszpwhc47m9rfs";
type = "gem";
};
version = "3.2022.0105";
version = "3.2024.0903";
};
multi_json = {
groups = ["default"];
Expand All @@ -104,15 +114,57 @@
};
version = "1.15.0";
};
native-package-installer = {
groups = ["default"];
platforms = [];
source = {
remotes = ["https://rubygems.org"];
sha256 = "0bvr9q7qwbmg9jfg85r1i5l7d0yxlgp0l2jg62j921vm49mipd7v";
type = "gem";
};
version = "1.1.9";
};
psych = {
dependencies = ["stringio"];
groups = ["default"];
platforms = [];
source = {
remotes = ["https://rubygems.org"];
sha256 = "0s5383m6004q76xm3lb732bp4sjzb6mxb6rbgn129gy2izsj4wrk";
type = "gem";
};
version = "5.1.2";
};
rdoc = {
dependencies = ["psych"];
groups = ["default"];
platforms = [];
source = {
remotes = ["https://rubygems.org"];
sha256 = "0ygk2zk0ky3d88v3ll7qh6xqvbvw5jin0hqdi1xkv1dhaw7myzdi";
type = "gem";
};
version = "6.7.0";
};
reline = {
dependencies = ["io-console"];
groups = ["default"];
platforms = [];
source = {
remotes = ["https://rubygems.org"];
sha256 = "1izlsziflj70kgwfy2d72jfr7bhrzamnhbq8gxjn8xdz0wvdj0di";
sha256 = "0rl1jmxs7pay58l7lkxkrn6nkdpk52k8rvnfwqsd1swjlxlwjq0n";
type = "gem";
};
version = "0.5.10";
};
stringio = {
groups = ["default"];
platforms = [];
source = {
remotes = ["https://rubygems.org"];
sha256 = "07mfqb40b2wh53k33h91zva78f9zwcdnl85jiq74wnaw2wa6wiak";
type = "gem";
};
version = "0.3.1";
version = "3.1.1";
};
}
19 changes: 19 additions & 0 deletions modules/kernels/ruby/iruby/update.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
#! /usr/bin/env nix-shell
#! nix-shell -i bash -p curl jq bundler bundix ruby

set -eu -o pipefail

cd "$(dirname "$0")"

# Update Gemfile with the latest iruby version
echo "source 'https://rubygems.org'" > Gemfile
echo -n "gem 'iruby', " >> Gemfile
curl https://rubygems.org/api/v1/gems/iruby.json | jq .version >> Gemfile

# Regenerate Gemfile.lock
export BUNDLE_FORCE_RUBY_PLATFORM=1
rm Gemfile.lock
bundle lock

# Regenerate gemset.nix
bundix -l

0 comments on commit 38a3e52

Please sign in to comment.