The ruby dotenv has support for command substitution and basic variable substitution (but not yet expansion) At the very least, variable substitution would be a nice to have in godotenv