Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v3.0.2.3 #25

Merged
merged 35 commits into from
Dec 30, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
35 commits
Select commit Hold shift + click to select a range
465105c
Merge branch 'main' into dev
ByronAP Dec 11, 2022
8092c84
Merge branch 'main' into dev
ByronAP Dec 12, 2022
fffbaf6
Create FUNDING.yml
ByronAP Dec 12, 2022
df7cede
Update README.md
ByronAP Dec 12, 2022
7be07db
8 feat response caching (#12)
ByronAP Dec 12, 2022
4ff3520
6 naming violation (#13)
ByronAP Dec 12, 2022
0a21940
7 feat optional automatic rate limiting (#14)
ByronAP Dec 13, 2022
484b510
update readme
ByronAP Dec 13, 2022
3a8b5ed
bump version 3.0.1.1
ByronAP Dec 13, 2022
baf2366
Update README.md
ByronAP Dec 13, 2022
00b379c
Update README.md
ByronAP Dec 14, 2022
4738d30
Update publish_dotnet.yml
ByronAP Dec 15, 2022
91229e5
Merge branch 'main' into dev
ByronAP Dec 15, 2022
c0ec51f
update
ByronAP Dec 15, 2022
73c2418
WTF (#16) (#17)
ByronAP Dec 15, 2022
6844b80
default Enabled to true
ByronAP Dec 15, 2022
809aabd
bump version 3.0.1.2
ByronAP Dec 15, 2022
671c6be
Merge branch 'main' into dev
ByronAP Dec 15, 2022
a3c55e7
Update CoinGeckoAPI.csproj
ByronAP Dec 15, 2022
d722057
Update README.md
ByronAP Dec 16, 2022
bcf8f60
11 feat add pro api support and minor fixes (#19)
ByronAP Dec 23, 2022
3ea1821
Merge branch 'main' into dev
ByronAP Dec 23, 2022
d66d4bc
Update README.md
ByronAP Dec 28, 2022
c496f4f
Update README.md
ByronAP Dec 28, 2022
ffe17eb
21 add service collection extension (#22)
ByronAP Dec 30, 2022
c9862ec
add fossa to sln files
ByronAP Dec 30, 2022
1234e8d
trying to find exact dir path
ByronAP Dec 30, 2022
a6fb88c
try again
ByronAP Dec 30, 2022
1ab2993
force an update (#23)
ByronAP Dec 30, 2022
aa9623f
bump version 3.0.2.2
ByronAP Dec 30, 2022
05b0cec
Merge branch 'main' into dev
ByronAP Dec 30, 2022
6644a0b
disable ping tests
ByronAP Dec 30, 2022
9b1b12a
fix extension methods naming
ByronAP Dec 30, 2022
d85f541
bump version 3.0.2.3
ByronAP Dec 30, 2022
ae98385
Merge branch 'main' into dev
ByronAP Dec 30, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions CoinGeckoAPI/CoinGeckoAPI.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@
<TargetFramework>netstandard2.0</TargetFramework>
<GenerateDocumentationFile>False</GenerateDocumentationFile>
<GeneratePackageOnBuild>True</GeneratePackageOnBuild>
<Version>3.0.2.2</Version>
<Version>3.0.2.3</Version>
<Authors>ByronAP</Authors>
<AssemblyVersion>3.0.2.2</AssemblyVersion>
<FileVersion>3.0.2.2</FileVersion>
<AssemblyVersion>3.0.2.3</AssemblyVersion>
<FileVersion>3.0.2.3</FileVersion>
<PackageLicenseExpression>MIT</PackageLicenseExpression>
<EnableNETAnalyzers>True</EnableNETAnalyzers>
<AnalysisLevel>latest-recommended</AnalysisLevel>
Expand Down
6 changes: 3 additions & 3 deletions CoinGeckoAPI/CoinGeckoServiceCollectionExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@ public static IServiceCollection AddCoinGeckoApi(this IServiceCollection service

public static IServiceCollection AddCoinGeckoApi(this IServiceCollection services, string apiKey)
=> services.AddSingleton<CoinGeckoClient>(new CoinGeckoClient(apiKey: apiKey));

public static IServiceCollection AddCoinpaprikaApi(this IServiceCollection services, ILogger<CoinGeckoClient> logger)
public static IServiceCollection AddCoinGeckoApi(this IServiceCollection services, ILogger<CoinGeckoClient> logger)
=> services.AddSingleton<CoinGeckoClient>(new CoinGeckoClient(logger: logger));

public static IServiceCollection AddCoinpaprikaApi(this IServiceCollection services, string apiKey, ILogger<CoinGeckoClient> logger)
public static IServiceCollection AddCoinGeckoApi(this IServiceCollection services, string apiKey, ILogger<CoinGeckoClient> logger)
=> services.AddSingleton<CoinGeckoClient>(new CoinGeckoClient(apiKey: apiKey, logger: logger));
}
}
33 changes: 17 additions & 16 deletions Tests/MiscTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ public async Task InstantiateAndDisposeTest()
{
var apiClient = new CoinGeckoClient();

var pingResult = await apiClient.PingAsync();
//var pingResult = await apiClient.PingAsync();

Assert.That(pingResult, Is.True);
//Assert.That(pingResult, Is.True);

apiClient.Dispose();

Expand Down Expand Up @@ -233,20 +233,21 @@ public async Task CacheEnableDisableTest()
}
}

[Test]
public async Task PingTest()
{
try
{
var pingResult = await Helpers.GetApiClient().PingAsync();

Assert.That(pingResult, Is.True);
}
catch (HttpRequestException ex) when (ex.StatusCode == System.Net.HttpStatusCode.TooManyRequests)
{
Assert.Warn(ex.Message);
}
}
//// Ping testing has been temp disabled due to failing endpoint from github servers
//[Test]
//public async Task PingTest()
//{
//try
//{
//var pingResult = await Helpers.GetApiClient().PingAsync();

//Assert.That(pingResult, Is.True);
//}
//catch (HttpRequestException ex) when (ex.StatusCode == System.Net.HttpStatusCode.TooManyRequests)
//{
//Assert.Warn(ex.Message);
//}
//}

[Test]
public async Task GetExchangeRatesTest()
Expand Down