Skip to content

Commit

Permalink
Minor fixes for version 1.0.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
madelson committed Aug 30, 2014
1 parent 52c57b3 commit 64c3875
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion MedallionShell/Command.cs
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ public void Wait()
/// <summary>
/// A convenience method for calling <see cref="Shell.Run(String, IEnumerable{Object}, Action{Shell.Options})"/> on <see cref="Shell.Default"/>
/// </summary>
public static Command Run(string executable, IEnumerable<object> arguments, Action<Shell.Options> options = null)
public static Command Run(string executable, IEnumerable<object> arguments = null, Action<Shell.Options> options = null)
{
return Shell.Default.Run(executable, arguments, options);
}
Expand Down
2 changes: 1 addition & 1 deletion MedallionShell/MedallionShell.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
A lightweight library that simplifies working with processes in .NET
</description>
<releaseNotes>
Initial release
Allowed for argument ommission in Command.Run(), other minor fixes
</releaseNotes>
<copyright>Copyright 2014</copyright>
<tags>process async</tags>
Expand Down
4 changes: 3 additions & 1 deletion MedallionShell/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,9 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.0.0.0")]

// 1.0.1.0: allowed for argument ommission in Command.Run(), other minor fixes
[assembly: AssemblyVersion("1.0.1.0")]
[assembly: AssemblyFileVersion("1.0.0.0")]

[assembly: InternalsVisibleTo("MedallionShell.Tests")]
3 changes: 2 additions & 1 deletion MedallionShell/Shell.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Globalization;
using System.Linq;
using System.Text;
using System.Threading;
Expand Down Expand Up @@ -42,7 +43,7 @@ public Command Run(string executable, IEnumerable<object> arguments = null, Acti
var processStartInfo = new ProcessStartInfo
{
Arguments = arguments != null
? finalOptions.CommandLineSyntax.CreateArgumentString(arguments.Select(Convert.ToString))
? finalOptions.CommandLineSyntax.CreateArgumentString(arguments.Select(arg => Convert.ToString(arg, CultureInfo.InvariantCulture)))
: string.Empty,
CreateNoWindow = true,
FileName = executable,
Expand Down

0 comments on commit 64c3875

Please sign in to comment.