Skip to content

Commit

Permalink
Fix gem update by using lowercased name
Browse files Browse the repository at this point in the history
  • Loading branch information
PyvesB committed Jul 16, 2024
1 parent db3d39d commit 74b7c79
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,8 @@ public void done(IJobChangeEvent event) {

public static void scheduleUpdate(String gem, long delay, StringPreferences pathPreference) {
String path = pathPreference.getValue();
String command = String.format("gem update -V -n \"%s\" %s", path.substring(0, path.lastIndexOf(File.separator)), gem);
String lowerCaseGem = gem.toLowerCase();
String command = String.format("gem update -V -n \"%s\" %s", path.substring(0, path.lastIndexOf(File.separator)), lowerCaseGem);
String[] plarformCommand = CommandHelper.getPlatformCommand(command);
new CommandJob(gem, plarformCommand, "Update in progress").schedule(delay);
}
Expand Down

0 comments on commit 74b7c79

Please sign in to comment.