Skip to content

Commit

Permalink
5.0.0 rc.8 (#81)
Browse files Browse the repository at this point in the history
* Updates version number to 5.0.0-rc8

* Updates GlobalResponseHeader to GlobalResponseHeaders (plural)

* Removes unused nowarn in csproj

* Removes unused using statements
  • Loading branch information
scottoffen authored Oct 3, 2021
1 parent 7375805 commit 15ae508
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 12 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@ Grapevine is available on [NuGet.org](https://www.nuget.org/packages/Grapevine/)

Powershell:
```powershell
Install-Package Grapevine -Version 5.0.0-rc.5
Install-Package Grapevine -Version 5.0.0-rc.8
```

.NET CLI
```cmd
> dotnet add package Grapevine --version 5.0.0-rc.5
> dotnet add package Grapevine --version 5.0.0-rc.8
```

## Usage
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@

namespace Grapevine
{
public class GlobalResponseHeader
public class GlobalResponseHeaders
{
public string Name { get; set; }

public string Value { get; set; }

public bool Suppress { get; set; }

public GlobalResponseHeader(string name, string defaultValue, bool suppress = false)
public GlobalResponseHeaders(string name, string defaultValue, bool suppress = false)
{
Name = name;
Value = defaultValue;
Expand All @@ -20,9 +20,9 @@ public GlobalResponseHeader(string name, string defaultValue, bool suppress = fa

public static class GlobalResponseHeaderExtensions
{
public static void Add(this IList<GlobalResponseHeader> headers, string key, string value)
public static void Add(this IList<GlobalResponseHeaders> headers, string key, string value)
{
headers.Add(new GlobalResponseHeader(key, value));
headers.Add(new GlobalResponseHeaders(key, value));
}
}
}
2 changes: 1 addition & 1 deletion src/Grapeseed/Grapeseed.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
<PackageRequireLicenseAcceptance>false</PackageRequireLicenseAcceptance>
<AssemblyVersion>$(Version)</AssemblyVersion>
<FileVersion>$(Version)</FileVersion>
<Version>5.0.0-rc.7</Version>
<Version>5.0.0-rc.8</Version>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
<PackageLicenseFile>LICENSE</PackageLicenseFile>
<RepositoryUrl>/~https://github.com/scottoffen/grapevine</RepositoryUrl>
Expand Down
2 changes: 1 addition & 1 deletion src/Grapeseed/IRestServer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public interface IRestServer : IDisposable
/// Gets or sets a list of header keys and values that should be applied to all outbound responses.
/// </summary>
/// <value></value>
IList<GlobalResponseHeader> GlobalResponseHeaders { get; set; }
IList<GlobalResponseHeaders> GlobalResponseHeaders { get; set; }

/// <summary>
/// Gets a value that indicates whether the server is currently listening.
Expand Down
1 change: 0 additions & 1 deletion src/Grapevine/Client/HttpClientExtensions.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
using System;
using System.Net.Http;

namespace Grapevine.Client
Expand Down
3 changes: 1 addition & 2 deletions src/Grapevine/Grapevine.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<PackageTags>rest http api web router client server express json xml embedded</PackageTags>
<AssemblyVersion>$(Version)</AssemblyVersion>
<FileVersion>$(Version)</FileVersion>
<Version>5.0.0-rc.7</Version>
<Version>5.0.0-rc.8</Version>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
<PackageLicenseFile>LICENSE</PackageLicenseFile>
<RepositoryUrl>/~https://github.com/scottoffen/grapevine</RepositoryUrl>
Expand All @@ -23,7 +23,6 @@
<IncludeSymbols>true</IncludeSymbols>
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
<AllowedOutputExtensionsInPackageBuildOutputFolder>$(AllowedOutputExtensionsInPackageBuildOutputFolder);.pdb</AllowedOutputExtensionsInPackageBuildOutputFolder>
<NoWarn>CS0067</NoWarn>
</PropertyGroup>

<ItemGroup>
Expand Down
2 changes: 1 addition & 1 deletion src/Grapevine/RestServer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ public abstract class RestServerBase : IRestServer
{
public IList<IContentFolder> ContentFolders { get; } = new List<IContentFolder>();

public IList<GlobalResponseHeader> GlobalResponseHeaders { get; set; } = new List<GlobalResponseHeader>();
public IList<GlobalResponseHeaders> GlobalResponseHeaders { get; set; } = new List<GlobalResponseHeaders>();

public virtual bool IsListening { get; }

Expand Down

0 comments on commit 15ae508

Please sign in to comment.