Skip to content

Commit

Permalink
Merge branch 'feat/system-value-tuple' into 'develop'
Browse files Browse the repository at this point in the history
Replace Rayark.Mast.Tuple with ValueTuple

See merge request engine/mast!7
  • Loading branch information
alvinsay committed Jun 9, 2020
2 parents 45927cd + 64cb1f9 commit 1277242
Show file tree
Hide file tree
Showing 15 changed files with 44 additions and 1,567 deletions.
10 changes: 6 additions & 4 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
.DS_Store
*.sublime-project
*.sublime-workspace
*.sln
*.csproj
*.zip
/*.sln
/*.csproj
/*.zip
.vs/
Temp/
Library/
Expand All @@ -14,4 +15,5 @@ obj/
Assets/Plugins/Editor.meta
Assets/Plugins/Editor
*.DotSettings.user

/build/bin
/build/obj
10 changes: 5 additions & 5 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ stages:

build_lib_test:
stage: build
image: mono:5.8
image: mcr.microsoft.com/dotnet/core/sdk:3.1-buster
script:
- ./build.sh
tags:
Expand All @@ -22,13 +22,13 @@ build_lib_release:
script:
- export BUILD_VERSION=$(echo $CI_COMMIT_REF_NAME | sed 's/\([0-9]\+\.[0-9]\+\.[0-9]\+\)\-release$/\1/g')
- echo $BUILD_VERSION
- sed -i -e "s/0.5.1.0/$BUILD_VERSION.0/g" Assets/Plugins/Rayark/Mast/Properties/AssemblyInfo.cs
- sed -i -e "s/0.5.1.0/$BUILD_VERSION.0/g" build/Rayark.Mast.csproj
- ./build.sh
artifacts:
expire_in: 5 yrs
name: mast-unity-project
paths:
- build
- pack
tags:
- docker
only:
Expand All @@ -38,7 +38,7 @@ mast-release:
stage: release
image: bash
script:
- cp build/Assets/Plugins/Rayark/Mast/Rayark.Mast.dll .
- cp pack/Assets/Plugins/Rayark/Mast/Rayark.Mast.dll .
artifacts:
expire_in: 5 yrs
paths:
Expand Down Expand Up @@ -78,4 +78,4 @@ pages:
tags:
- docker
only:
- master
- master
248 changes: 0 additions & 248 deletions Assets/Plugins/Rayark/Mast/AggregateException.cs

This file was deleted.

12 changes: 0 additions & 12 deletions Assets/Plugins/Rayark/Mast/AggregateException.cs.meta

This file was deleted.

4 changes: 2 additions & 2 deletions Assets/Plugins/Rayark/Mast/Editor/Tests/TestMonad.cs
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ public void ConcurrentMonad2ErrorTest()
var mc = new ConcurrentMonad<int, string>(m1, m2);
_Wait(mc);

Assert.IsNull(mc.Result);
Assert.AreEqual(default((int,string)), mc.Result);
Assert.AreEqual(mc.Error.Message, "error 2");
}

Expand Down Expand Up @@ -276,7 +276,7 @@ public void ConcurrentMonad3ErrorTest()
var mc = new ConcurrentMonad<int, string, bool>(m1, m2, m4);
_Wait(mc);

Assert.IsNull(mc.Result);
Assert.AreEqual(default((int,string,bool)), mc.Result);
Assert.AreEqual(mc.Error.Message, "error 2");
}

Expand Down
2 changes: 1 addition & 1 deletion Assets/Plugins/Rayark/Mast/FuncMonad.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ namespace Rayark.Mast
/// makes it possible to add some extra operation right before a complex monad.</remarks>
public class FuncMonad<T> : IMonad<T>, IEnumerator
{
public readonly Func<T> _func;
private readonly Func<T> _func;

public FuncMonad(Func<T> func)
{
Expand Down
Loading

0 comments on commit 1277242

Please sign in to comment.