Skip to content

Commit e60ea46

Browse files
bundler: fix update (#390174)
2 parents eb77049 + 45a4603 commit e60ea46

File tree

1 file changed

+2
-14
lines changed

1 file changed

+2
-14
lines changed

pkgs/by-name/bu/bundler/package.nix

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
testers,
77
bundler,
88
versionCheckHook,
9+
nix-update-script,
910
}:
1011

1112
buildRubyGem rec {
@@ -28,20 +29,7 @@ buildRubyGem rec {
2829
doInstallCheck = true;
2930

3031
passthru = {
31-
updateScript = writeScript "gem-update-script" ''
32-
#!/usr/bin/env nix-shell
33-
#!nix-shell -i bash -p curl common-updater-scripts jq
34-
35-
set -eu -o pipefail
36-
37-
latest_version=$(curl -s https://rubygems.org/api/v1/gems/${gemName}.json | jq --raw-output .version)
38-
update-source-version ${gemName} "$latest_version"
39-
'';
40-
tests.version = testers.testVersion {
41-
package = bundler;
42-
command = "bundler -v";
43-
version = version;
44-
};
32+
updateScript = nix-update-script { };
4533
};
4634

4735
meta = {

0 commit comments

Comments
 (0)