diff options
author | Mario Rodas <marsam@users.noreply.github.com> | 2023-01-22 09:25:52 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-01-22 09:25:52 -0500 |
commit | 473a4f5b2ee2b2c3777666467bf9f5718a391df6 (patch) | |
tree | 3e2a4cc92e4679865d0fc4cae0a037d83386ef33 /pkgs/development/ruby-modules | |
parent | bca37701c5c3b274b6f8483bbaeaa00770484ba6 (diff) | |
parent | e1729f54e3ea25163f4ea26dc3e4ca448188ec46 (diff) | |
download | nixpkgs-473a4f5b2ee2b2c3777666467bf9f5718a391df6.tar nixpkgs-473a4f5b2ee2b2c3777666467bf9f5718a391df6.tar.gz nixpkgs-473a4f5b2ee2b2c3777666467bf9f5718a391df6.tar.bz2 nixpkgs-473a4f5b2ee2b2c3777666467bf9f5718a391df6.tar.lz nixpkgs-473a4f5b2ee2b2c3777666467bf9f5718a391df6.tar.xz nixpkgs-473a4f5b2ee2b2c3777666467bf9f5718a391df6.tar.zst nixpkgs-473a4f5b2ee2b2c3777666467bf9f5718a391df6.zip |
Merge pull request #211820 from anthonyroussel/bundler_2_4_4
bundler: 2.4.3 -> 2.4.4
Diffstat (limited to 'pkgs/development/ruby-modules')
-rw-r--r-- | pkgs/development/ruby-modules/bundler/default.nix | 36 |
1 files changed, 22 insertions, 14 deletions
diff --git a/pkgs/development/ruby-modules/bundler/default.nix b/pkgs/development/ruby-modules/bundler/default.nix index 4645a3530c5..032b61958fa 100644 --- a/pkgs/development/ruby-modules/bundler/default.nix +++ b/pkgs/development/ruby-modules/bundler/default.nix @@ -1,32 +1,40 @@ -{ lib, buildRubyGem, ruby, writeScript }: +{ lib, buildRubyGem, ruby, writeScript, testers, bundler }: buildRubyGem rec { inherit ruby; name = "${gemName}-${version}"; gemName = "bundler"; - version = "2.4.3"; - source.sha256 = "sha256-AfX4PydFNdghhYk3cApKLxtTw8L8sLEvU3Y49nKHxwA="; + version = "2.4.4"; + source.sha256 = "sha256-gwAxWVkd9nptMRtaZc++8PmJZdIDVr66wUv1xi1NPJ0="; dontPatchShebangs = true; - passthru.updateScript = writeScript "gem-update-script" '' - #!/usr/bin/env nix-shell - #!nix-shell -i bash -p curl common-updater-scripts jq - - set -eu -o pipefail - - latest_version=$(curl -s https://rubygems.org/api/v1/gems/${gemName}.json | jq --raw-output .version) - update-source-version ${gemName} "$latest_version" - ''; - postFixup = '' sed -i -e "s/activate_bin_path/bin_path/g" $out/bin/bundle ''; + passthru = { + updateScript = writeScript "gem-update-script" '' + #!/usr/bin/env nix-shell + #!nix-shell -i bash -p curl common-updater-scripts jq + + set -eu -o pipefail + + latest_version=$(curl -s https://rubygems.org/api/v1/gems/${gemName}.json | jq --raw-output .version) + update-source-version ${gemName} "$latest_version" + ''; + tests.version = testers.testVersion { + package = bundler; + command = "bundler -v"; + version = version; + }; + }; + meta = with lib; { description = "Manage your Ruby application's gem dependencies"; homepage = "https://bundler.io"; changelog = "https://github.com/rubygems/rubygems/blob/bundler-v${version}/bundler/CHANGELOG.md"; license = licenses.mit; - maintainers = with maintainers; [anthonyroussel]; + maintainers = with maintainers; [ anthonyroussel ]; + mainProgram = "bundler"; }; } |