diff --git a/plugins/ldap/install.rb b/plugins/ldap/install.rb index ec00696..4adb9f8 100644 --- a/plugins/ldap/install.rb +++ b/plugins/ldap/install.rb @@ -1,4 +1,9 @@ -system "gem install --user-install net-ldap -v 0.3.1" +begin + gem "net-ldap", '=0.3.1' +rescue Gem::LoadError => exception + system "gem install --user-install net-ldap -v 0.3.1" +end + puts "\nWARNING: This plugin is not setting up a ldap test server automatically. Some tests may not be running. If you want to fully test this plugin, please setup the ldap test server and make the proper configurations on -- libgit2 0.21.2