ruby-modules: Import gemset if it's a path OR a string. (#38959)

This fixes the bug introduced by 8686b98612dc which broke bundlerEnv
exprs when gemdir was a string (thus making gemset a string by
`gemset = gemdir + "/gemset.nix"`) which made it being treated as a
set.
This commit is contained in:
Raitis Veinbahs 2018-04-15 13:53:15 +03:00 committed by zimbatm
parent 92f0d31b94
commit a6a2e75804

@ -29,7 +29,7 @@ with import ./functions.nix { inherit lib gemConfig; };
let
gemFiles = bundlerFiles args;
importedGemset = if builtins.typeOf gemFiles.gemset == "path"
importedGemset = if builtins.typeOf gemFiles.gemset != "set"
then import gemFiles.gemset
else gemFiles.gemset;