Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/master' into promise_base
Browse files Browse the repository at this point in the history
  • Loading branch information
ericnewton76 committed Oct 18, 2018
2 parents 6ae9256 + baa92ba commit 5bf27de
Show file tree
Hide file tree
Showing 44 changed files with 3,035 additions and 1,251 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
## Ignore Visual Studio temporary files, build results, and
## files generated by popular Visual Studio add-ons.
.vs

# User-specific files
*.suo
Expand Down
4 changes: 2 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@ install:
- nuget install xunit.runners -Version 1.9.2 -OutputDirectory testrunner

script:
- xbuild /p:Configuration=Debug C-Sharp-Promise.sln
- mono ./testrunner/xunit.runners.1.9.2/tools/xunit.console.exe ./bin/Debug/RSG.Promise.Tests.dll
- msbuild /p:Configuration=Debug C-Sharp-Promise.sln
- mono ./testrunner/xunit.runners.1.9.2/tools/xunit.console.exe ./bin/Debug/RSG.Promise.Tests.dll
67 changes: 0 additions & 67 deletions C-Sharp-Promise.csproj

This file was deleted.

18 changes: 0 additions & 18 deletions C-Sharp-Promise.nuspec

This file was deleted.

9 changes: 6 additions & 3 deletions C-Sharp-Promise.sln
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 2013
VisualStudioVersion = 12.0.31101.0
# Visual Studio 15
VisualStudioVersion = 15.0.27703.2042
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "C-Sharp-Promise", "C-Sharp-Promise.csproj", "{7E1C6A8A-84E7-43C3-AE73-C6E8A9F11AF3}"
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "RSG.Promise", "src\RSG.Promise.csproj", "{7E1C6A8A-84E7-43C3-AE73-C6E8A9F11AF3}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Promise.Tests", "Tests\Promise.Tests.csproj", "{4B4EE1A6-25A3-43D0-BAE9-5E45E31F2816}"
EndProject
Expand Down Expand Up @@ -64,4 +64,7 @@ Global
{BDB0135C-B075-47BE-A971-1927BEA6F622} = {79A9B3AC-1942-4441-872C-41CF7BB240A4}
{1060401E-1C17-4741-BF1E-9F05B5427775} = {79A9B3AC-1942-4441-872C-41CF7BB240A4}
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {7D2FBA48-64F2-4236-BA93-0AF605D743D8}
EndGlobalSection
EndGlobal
50 changes: 50 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
# How to contribute to C-Sharp-Promise

👍🎉 First off, thanks for taking the time to contribute! 🎉👍


## Reporting bugs

Any bug reports are useful, although there are a few things you can do that will
make it easier for maintainers and other users to understand your report,
reproduce the behaviour, and find related reports.

- **Use a clear and descriptive title** for the issue to identify the problem.
- **Describe the exact steps which reproduce the problem** in as many details
as possible. Code examples or links to repos to reproduce the issue are
always helpful.
- **Describe the behaviour you observed after following the steps** and point
out what exactly the problem is with that behaviour.
- **Explain which behaviour you expected to see instead and why.** Since
C-Sharp-Promise is designed to replicate [JavaScript promises](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Using_promises),
code that works with JavaScript promises but gives a different result or
breaks with C-Sharp-Promise would be a a good example.
- **Check the existing open issues on GitHub** to see if someone else has had
the same problem as you.

Make sure to file bugs as [GitHub issues](https://github.com/Real-Serious-Games/C-Sharp-Promise/issues),
since that way everyone working on the library can see it and potentially help.


## Pull requests

Before we merge pull requests there are a few things we look for to make sure
the code is maintainable and up the same standard as the rest of the library.

- Make sure you've written comprehensive unit tests for the feature, or
modify existing tests if the feature changes functionality.
- Check that your code conforms to the same style as existing code. Ensure that
your editor is set up to read the [.editorconfig](http://editorconfig.org/)
file for consistent spacing and line endings. We also try to keep our code
style consistent with the [Microsoft C# Coding Conventions](https://docs.microsoft.com/en-us/dotnet/csharp/programming-guide/inside-a-program/coding-conventions)
and [Framework Design Guidelines](https://docs.microsoft.com/en-us/dotnet/standard/design-guidelines/index).
- Make sure that the [Travis CI build](https://travis-ci.org/Real-Serious-Games/C-Sharp-Promise)
succeeds. This should run automatically when you create a pull request, but
should have the same result as building the solution and running all the
tests locally. We will not accept any pull requests that fail to build or
contain failing tests.
- If you have added a new feature, add a section to README.md describing the
feature and how to use it.

In addition, if your pull request breaks any existing functionality it's
unlikely we will merge it unless there is a very good reason.
8 changes: 2 additions & 6 deletions Examples/Example1/Example1.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,6 @@
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<ItemGroup>
<Reference Include="RSG.Toolkit">
<HintPath>..\..\packages\RSG.Toolkit.1.0.0.0\lib\net35\RSG.Toolkit.dll</HintPath>
</Reference>
<Reference Include="System" />
<Reference Include="System.Core" />
<Reference Include="System.Xml.Linq" />
Expand All @@ -51,12 +48,11 @@
</ItemGroup>
<ItemGroup>
<None Include="App.config" />
<None Include="packages.config" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\..\C-Sharp-Promise.csproj">
<ProjectReference Include="..\..\src\RSG.Promise.csproj">
<Project>{7e1c6a8a-84e7-43c3-ae73-c6e8a9f11af3}</Project>
<Name>C-Sharp-Promise</Name>
<Name>RSG.Promise</Name>
</ProjectReference>
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
Expand Down
4 changes: 0 additions & 4 deletions Examples/Example1/packages.config

This file was deleted.

8 changes: 2 additions & 6 deletions Examples/Example2/Example2.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,6 @@
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<ItemGroup>
<Reference Include="RSG.Toolkit">
<HintPath>..\..\packages\RSG.Toolkit.1.0.0.0\lib\net35\RSG.Toolkit.dll</HintPath>
</Reference>
<Reference Include="System" />
<Reference Include="System.Core" />
<Reference Include="System.Xml.Linq" />
Expand All @@ -51,12 +48,11 @@
</ItemGroup>
<ItemGroup>
<None Include="App.config" />
<None Include="packages.config" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\..\C-Sharp-Promise.csproj">
<ProjectReference Include="..\..\src\RSG.Promise.csproj">
<Project>{7e1c6a8a-84e7-43c3-ae73-c6e8a9f11af3}</Project>
<Name>C-Sharp-Promise</Name>
<Name>RSG.Promise</Name>
</ProjectReference>
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
Expand Down
4 changes: 0 additions & 4 deletions Examples/Example2/packages.config

This file was deleted.

8 changes: 2 additions & 6 deletions Examples/Example3/Example3.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,6 @@
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<ItemGroup>
<Reference Include="RSG.Toolkit">
<HintPath>..\..\packages\RSG.Toolkit.1.0.0.0\lib\net35\RSG.Toolkit.dll</HintPath>
</Reference>
<Reference Include="System" />
<Reference Include="System.Core" />
<Reference Include="System.Xml.Linq" />
Expand All @@ -51,12 +48,11 @@
</ItemGroup>
<ItemGroup>
<None Include="App.config" />
<None Include="packages.config" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\..\C-Sharp-Promise.csproj">
<ProjectReference Include="..\..\src\RSG.Promise.csproj">
<Project>{7e1c6a8a-84e7-43c3-ae73-c6e8a9f11af3}</Project>
<Name>C-Sharp-Promise</Name>
<Name>RSG.Promise</Name>
</ProjectReference>
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
Expand Down
12 changes: 6 additions & 6 deletions Examples/Example3/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,6 @@ static void Main(string[] args)
.Find(html)
.Select(link => link.Href)
.ToArray();
})
.Catch(exception => // Catch any errors that happen during download or transform.
{
Console.WriteLine("Async operation errorred.");
Console.WriteLine(exception);
running = false;
})
.Then(links => // Display the links that were extracted.
{
Expand All @@ -46,6 +40,12 @@ static void Main(string[] args)
Console.WriteLine(link);
}
running = false;
})
.Catch(exception => // Catch any errors that happen during download or transform.
{
Console.WriteLine("Async operation errorred.");
Console.WriteLine(exception);
running = false;
})
.Done();

Expand Down
4 changes: 0 additions & 4 deletions Examples/Example3/packages.config

This file was deleted.

8 changes: 2 additions & 6 deletions Examples/Example4/Example4.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,6 @@
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<ItemGroup>
<Reference Include="RSG.Toolkit">
<HintPath>..\..\packages\RSG.Toolkit.1.0.0.0\lib\net35\RSG.Toolkit.dll</HintPath>
</Reference>
<Reference Include="System" />
<Reference Include="System.Core" />
<Reference Include="System.Xml.Linq" />
Expand All @@ -51,12 +48,11 @@
</ItemGroup>
<ItemGroup>
<None Include="App.config" />
<None Include="packages.config" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\..\C-Sharp-Promise.csproj">
<ProjectReference Include="..\..\src\RSG.Promise.csproj">
<Project>{7e1c6a8a-84e7-43c3-ae73-c6e8a9f11af3}</Project>
<Name>C-Sharp-Promise</Name>
<Name>RSG.Promise</Name>
</ProjectReference>
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
Expand Down
12 changes: 6 additions & 6 deletions Examples/Example4/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -34,18 +34,18 @@ static void Main(string[] args)
.First(); // Grab the 6th link.
})
.Then(firstLink => Download(firstLink)) // Follow the first link and download it.
.Catch(exception => // Catch any errors that happen during download or transform.
{
Console.WriteLine("Async operation errorred.");
Console.WriteLine(exception);
running = false;
})
.Then(html => // Display html from the link that was followed.
{
Console.WriteLine("Async operation completed.");
Console.WriteLine(html.Substring(0, 250) + "...");
running = false;
})
.Catch(exception => // Catch any errors that happen during download or transform.
{
Console.WriteLine("Async operation errorred.");
Console.WriteLine(exception);
running = false;
})
.Done();

Console.WriteLine("Waiting");
Expand Down
4 changes: 0 additions & 4 deletions Examples/Example4/packages.config

This file was deleted.

8 changes: 2 additions & 6 deletions Examples/Example5/Example5.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,6 @@
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<ItemGroup>
<Reference Include="RSG.Toolkit">
<HintPath>..\..\packages\RSG.Toolkit.1.0.0.0\lib\net35\RSG.Toolkit.dll</HintPath>
</Reference>
<Reference Include="System" />
<Reference Include="System.Core" />
<Reference Include="System.Xml.Linq" />
Expand All @@ -51,12 +48,11 @@
</ItemGroup>
<ItemGroup>
<None Include="App.config" />
<None Include="packages.config" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\..\C-Sharp-Promise.csproj">
<ProjectReference Include="..\..\src\RSG.Promise.csproj">
<Project>{7e1c6a8a-84e7-43c3-ae73-c6e8a9f11af3}</Project>
<Name>C-Sharp-Promise</Name>
<Name>RSG.Promise</Name>
</ProjectReference>
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
Expand Down
Loading

0 comments on commit 5bf27de

Please sign in to comment.