Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
dustinmoris committed Aug 20, 2018
2 parents 6211728 + 7626657 commit b4202bf
Show file tree
Hide file tree
Showing 25 changed files with 36 additions and 39 deletions.
4 changes: 2 additions & 2 deletions DOCUMENTATION.md
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ let personHandler =
The `task {}` CE is an independent project maintained by [Robert Peele](https://github.com/rspeele) and can be used from any other F# application as well. All you have to do is add a reference to the `TaskBuilder.fs` NuGet library and open the module:

```fsharp
open FSharp.Control.Tasks
open FSharp.Control.Tasks.V2
let readFileAndDoSomething (filePath : string) =
task {
Expand All @@ -190,7 +190,7 @@ For more information please visit the official [TaskBuilder.fs](https://github.c
If you have `do!` bindings in your Giraffe web application then you must open the `FSharp.Control.Tasks.ContextInsensitive` namespace to resolve any type inference issues:

```fsharp
open FSharp.Control.Tasks.ContextInsensitive
open FSharp.Control.Tasks.V2.ContextInsensitive
```

## Basics
Expand Down
4 changes: 4 additions & 0 deletions RELEASE_NOTES.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
Release Notes
=============

## 2.0.1

Changed the `task {}` CE to load from `FSharp.Control.Tasks.V2.ContextInsensitive` instead of `FSharp.Control.Tasks.ContextInsensitive`

## 2.0.0

#### Breaking changes
Expand Down
2 changes: 1 addition & 1 deletion build.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ function Get-TargetFrameworks ($projFile)
{
[xml]$proj = Get-Content $projFile

if ($proj.Project.PropertyGroup.TargetFrameworks -ne $null) {
if ($null -ne $proj.Project.PropertyGroup.TargetFrameworks) {
($proj.Project.PropertyGroup.TargetFrameworks).Split(";")
}
else {
Expand Down
3 changes: 0 additions & 3 deletions samples/GoogleAuthApp/GoogleAuthApp/GoogleAuthApp.fsproj
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,6 @@
<PropertyGroup>
<TargetFramework>netcoreapp2.1</TargetFramework>
<DebugType>portable</DebugType>
<AssemblyName>GoogleAuthApp</AssemblyName>
<OutputType>Exe</OutputType>
<PackageId>GoogleAuthApp</PackageId>
<EnableDefaultContentItems>false</EnableDefaultContentItems>
<RunWorkingDirectory>$(MSBuildThisFileDirectory)</RunWorkingDirectory>
</PropertyGroup>
Expand Down
2 changes: 1 addition & 1 deletion samples/GoogleAuthApp/GoogleAuthApp/Program.fs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ open Microsoft.AspNetCore.Hosting
open Microsoft.AspNetCore.Authentication
open Microsoft.Extensions.Logging
open Microsoft.Extensions.DependencyInjection
open FSharp.Control.Tasks.ContextInsensitive
open FSharp.Control.Tasks.V2.ContextInsensitive
open Giraffe
open Giraffe.GiraffeViewEngine
open GoogleAuthApp.HttpsConfig
Expand Down
3 changes: 0 additions & 3 deletions samples/IdentityApp/IdentityApp/IdentityApp.fsproj
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,6 @@
<PropertyGroup>
<TargetFramework>netcoreapp2.1</TargetFramework>
<DebugType>portable</DebugType>
<AssemblyName>IdentityApp</AssemblyName>
<OutputType>Exe</OutputType>
<PackageId>IdentityApp</PackageId>
<EnableDefaultContentItems>false</EnableDefaultContentItems>
<RunWorkingDirectory>$(MSBuildThisFileDirectory)</RunWorkingDirectory>
</PropertyGroup>
Expand Down
2 changes: 1 addition & 1 deletion samples/IdentityApp/IdentityApp/Program.fs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ open Microsoft.Extensions.DependencyInjection
open Microsoft.AspNetCore.Identity
open Microsoft.AspNetCore.Identity.EntityFrameworkCore
open Microsoft.EntityFrameworkCore
open FSharp.Control.Tasks.ContextInsensitive
open FSharp.Control.Tasks.V2.ContextInsensitive
open Giraffe
open Giraffe.GiraffeViewEngine

Expand Down
3 changes: 0 additions & 3 deletions samples/JwtApp/JwtApp/JwtApp.fsproj
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,6 @@
<PropertyGroup>
<TargetFramework>netcoreapp2.1</TargetFramework>
<DebugType>portable</DebugType>
<AssemblyName>JwtApp</AssemblyName>
<OutputType>Exe</OutputType>
<PackageId>JwtApp</PackageId>
<EnableDefaultContentItems>false</EnableDefaultContentItems>
<RunWorkingDirectory>$(MSBuildThisFileDirectory)</RunWorkingDirectory>
</PropertyGroup>
Expand Down
2 changes: 1 addition & 1 deletion samples/SampleApp/SampleApp/Program.fs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ open Microsoft.AspNetCore.Authentication.Cookies
open Microsoft.Extensions.Configuration
open Microsoft.Extensions.Logging
open Microsoft.Extensions.DependencyInjection
open FSharp.Control.Tasks.ContextInsensitive
open FSharp.Control.Tasks.V2.ContextInsensitive
open Giraffe
open SampleApp.Models
open SampleApp.HtmlViews
Expand Down
3 changes: 0 additions & 3 deletions samples/SampleApp/SampleApp/SampleApp.fsproj
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,6 @@
<PropertyGroup>
<TargetFramework>netcoreapp2.1</TargetFramework>
<DebugType>portable</DebugType>
<AssemblyName>SampleApp</AssemblyName>
<OutputType>Exe</OutputType>
<PackageId>SampleApp</PackageId>
<EnableDefaultContentItems>false</EnableDefaultContentItems>
<RunWorkingDirectory>$(MSBuildThisFileDirectory)</RunWorkingDirectory>
</PropertyGroup>
Expand Down
2 changes: 1 addition & 1 deletion src/Giraffe/Auth.fs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ open System.Security.Claims
open Microsoft.AspNetCore.Http
open Microsoft.AspNetCore.Authentication
open Microsoft.AspNetCore.Authorization
open FSharp.Control.Tasks.ContextInsensitive
open FSharp.Control.Tasks.V2.ContextInsensitive

/// **Description**
///
Expand Down
2 changes: 1 addition & 1 deletion src/Giraffe/Common.fs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ open System.IO
///
/// All tasks are configured with `ConfigurAwait(false)`.
///
let task = FSharp.Control.Tasks.ContextInsensitive.task
let task = FSharp.Control.Tasks.V2.ContextInsensitive.task

// ---------------------------
// Useful extension methods
Expand Down
2 changes: 1 addition & 1 deletion src/Giraffe/Core.fs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ open Microsoft.AspNetCore.Hosting
open Microsoft.Extensions.Primitives
open Microsoft.Extensions.Logging
open Microsoft.Net.Http.Headers
open FSharp.Control.Tasks.ContextInsensitive
open FSharp.Control.Tasks.V2.ContextInsensitive
open Giraffe.Serialization

// ---------------------------
Expand Down
19 changes: 12 additions & 7 deletions src/Giraffe/Giraffe.fsproj
Original file line number Diff line number Diff line change
@@ -1,17 +1,25 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<!-- General -->
<AssemblyName>Giraffe</AssemblyName>
<Version>2.0.0</Version>
<Version>2.0.1</Version>
<Description>A native functional ASP.NET Core web framework for F# developers.</Description>
<Copyright>Copyright 2018 Dustin Moris Gorski</Copyright>
<NeutralLanguage>en-GB</NeutralLanguage>
<Authors>Dustin Moris Gorski and contributors</Authors>
<NeutralLanguage>en-GB</NeutralLanguage>

<!-- Build settings -->
<TargetFrameworks>net461;netstandard2.0</TargetFrameworks>
<DebugType>portable</DebugType>
<WarningsAsErrors>1</WarningsAsErrors>
<Optimize>True</Optimize>
<OutputType>Library</OutputType>
<Optimize>true</Optimize>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
<EnableDefaultCompileItems>false</EnableDefaultCompileItems>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
<IsWindows Condition="'$(OS)' == 'Windows_NT'">true</IsWindows>

<!-- NuGet settings -->
<PackageId>Giraffe</PackageId>
<PackageTags>Giraffe;ASP.NET Core;Lambda;FSharp;Functional;Http;Web;Framework;Micro;Service</PackageTags>
<PackageReleaseNotes>https://raw.githubusercontent.com/giraffe-fsharp/giraffe/master/RELEASE_NOTES.md</PackageReleaseNotes>
Expand All @@ -21,9 +29,6 @@
<PackageRequireLicenseAcceptance>true</PackageRequireLicenseAcceptance>
<RepositoryType>git</RepositoryType>
<RepositoryUrl>https://github.com/dustinmoris/giraffe</RepositoryUrl>
<EnableDefaultCompileItems>false</EnableDefaultCompileItems>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
<IsWindows Condition="'$(OS)' == 'Windows_NT'">true</IsWindows>
</PropertyGroup>

<ItemGroup>
Expand Down
2 changes: 1 addition & 1 deletion src/Giraffe/Middleware.fs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ open Microsoft.AspNetCore.Http
open Microsoft.Extensions.Logging
open Microsoft.Extensions.DependencyInjection
open Microsoft.Extensions.DependencyInjection.Extensions
open FSharp.Control.Tasks.ContextInsensitive
open FSharp.Control.Tasks.V2.ContextInsensitive
open Giraffe.Serialization

// ---------------------------
Expand Down
2 changes: 1 addition & 1 deletion src/Giraffe/ModelBinding.fs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ open Microsoft.AspNetCore.Http
open Microsoft.Extensions.Primitives
open Microsoft.Net.Http.Headers
open Microsoft.FSharp.Reflection
open FSharp.Control.Tasks.ContextInsensitive
open FSharp.Control.Tasks.V2.ContextInsensitive

// ---------------------------
// Model parsing functions
Expand Down
2 changes: 1 addition & 1 deletion src/Giraffe/ResponseWriters.fs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ open System.IO
open System.Text
open Microsoft.AspNetCore.Http
open Microsoft.Net.Http.Headers
open FSharp.Control.Tasks.ContextInsensitive
open FSharp.Control.Tasks.V2.ContextInsensitive
open Giraffe.GiraffeViewEngine

// ---------------------------
Expand Down
2 changes: 1 addition & 1 deletion src/Giraffe/Routing.fs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ open System.Collections.Generic
open System.Text.RegularExpressions
open Microsoft.AspNetCore.Http
open Microsoft.Extensions.Primitives
open FSharp.Control.Tasks.ContextInsensitive
open FSharp.Control.Tasks.V2.ContextInsensitive
open Giraffe.FormatExpressions

// ---------------------------
Expand Down
2 changes: 1 addition & 1 deletion src/Giraffe/Serialization.fs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ module Json =
open System.Threading.Tasks
open Newtonsoft.Json
open Newtonsoft.Json.Serialization
open FSharp.Control.Tasks.ContextInsensitive
open FSharp.Control.Tasks.V2.ContextInsensitive

/// **Description**
///
Expand Down
2 changes: 1 addition & 1 deletion src/Giraffe/Streaming.fs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ open Microsoft.AspNetCore.Http
open Microsoft.AspNetCore.Http.Extensions
open Microsoft.Extensions.Primitives
open Microsoft.Net.Http.Headers
open FSharp.Control.Tasks.ContextInsensitive
open FSharp.Control.Tasks.V2.ContextInsensitive

// ---------------------------
// HTTP Range parsing
Expand Down
2 changes: 1 addition & 1 deletion tests/Giraffe.Tests/AuthTests.fs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ open Xunit
open NSubstitute
open FsCheck
open FsCheck.Xunit
open FSharp.Control.Tasks.ContextInsensitive
open FSharp.Control.Tasks.V2.ContextInsensitive
open Giraffe

[<AutoOpen>]
Expand Down
2 changes: 1 addition & 1 deletion tests/Giraffe.Tests/HttpContextExtensionsTests.fs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ open Microsoft.AspNetCore.Http.Internal
open Microsoft.Extensions.Primitives
open Microsoft.AspNetCore.Builder
open Microsoft.AspNetCore.TestHost
open FSharp.Control.Tasks.ContextInsensitive
open FSharp.Control.Tasks.V2.ContextInsensitive
open Xunit
open NSubstitute
open Giraffe
Expand Down
2 changes: 1 addition & 1 deletion tests/Giraffe.Tests/HttpHandlerTests.fs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ open System.IO
open System.Collections.Generic
open Microsoft.AspNetCore.Http
open Microsoft.Extensions.Primitives
open FSharp.Control.Tasks.ContextInsensitive
open FSharp.Control.Tasks.V2.ContextInsensitive
open Xunit
open NSubstitute
open Giraffe
Expand Down
2 changes: 1 addition & 1 deletion tests/Giraffe.Tests/ModelBindingTests.fs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ open System.Threading.Tasks
open Microsoft.AspNetCore.Http
open Microsoft.AspNetCore.Http.Internal
open Microsoft.Extensions.Primitives
open FSharp.Control.Tasks.ContextInsensitive
open FSharp.Control.Tasks.V2.ContextInsensitive
open Xunit
open NSubstitute
open Newtonsoft.Json
Expand Down
2 changes: 1 addition & 1 deletion tests/Giraffe.Tests/RoutingTests.fs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ open System
open System.IO
open System.Collections.Generic
open Microsoft.AspNetCore.Http
open FSharp.Control.Tasks.ContextInsensitive
open FSharp.Control.Tasks.V2.ContextInsensitive
open Xunit
open NSubstitute
open Giraffe
Expand Down

0 comments on commit b4202bf

Please sign in to comment.