Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
44 commits
Select commit Hold shift + click to select a range
d5e548f
Changes
asbjornvad Jun 23, 2024
d2fbe75
Changes
asbjornvad Jun 23, 2024
01c8f2e
More changes
asbjornvad Jun 23, 2024
22b5d7b
All sorts of changes. Comments or changes that actually does have an …
asbjornvad Jul 1, 2024
7418ac1
Unloaded ASP and old version of RiotSharp.
asbjornvad Jul 6, 2024
ee8a336
Removed internal constructors in all the "JSON" classes
asbjornvad Jul 6, 2024
d99aae2
Outcomment yml-files
asbjornvad Jul 6, 2024
0da6325
Deleted Build.Props as i dont think its needed
asbjornvad Jul 6, 2024
7304f90
Changes to some of the Misc files. Removed some warnings here and there.
asbjornvad Sep 1, 2024
632f7d9
Done work on the RequesterBase, ApplicationRateLimiter, RateLimitedRe…
asbjornvad Nov 24, 2024
51371ff
Started work on methodratelimiter but not yet done. Both Method and A…
asbjornvad Mar 12, 2025
3a8bb6a
Trying a new workflow
asbjornvad Mar 12, 2025
43a3805
Unloaded old testproject
asbjornvad Mar 12, 2025
ce1237c
Changes to solution. Hopefully the old projects are no longer build.
asbjornvad Mar 12, 2025
a0cd7a6
The Cache is now called InMemoryCache and uses IMemoryCache to cache.…
asbjornvad Mar 13, 2025
0b7e5af
Moved requesters and unloaded several of the old implementations. A l…
asbjornvad Mar 13, 2025
6d18fa1
Initial convertion of endpoints to use the new RateLimiting system. C…
asbjornvad May 30, 2025
2909ee8
Refactor and enhance RiotSharpNET8 for clarity and API updates
asbjornvad Jun 1, 2025
70a70b2
Refactor and enhance RiotSharpNET8 for clarity and API updates
asbjornvad Jun 1, 2025
d5daa23
Possibly fixed the pipeline.
asbjornvad Jun 1, 2025
d89b3de
Small changes. Removed unused files.
asbjornvad Jun 16, 2025
8b8d63f
Moved everything to src folder like it always should have been.
asbjornvad Jun 16, 2025
090e98d
Update dotnet.yml
asbjornvad Jun 16, 2025
9aea2d0
Added most of the files needed in Core.
asbjornvad Jun 16, 2025
6a9d60b
Merge branch 'refactor' of https://github.com/asbjornvad/RiotSharpFun…
asbjornvad Jun 16, 2025
86e82d1
Update .gitignore and remove hardcoded API key
asbjornvad Jun 21, 2025
1a21b16
Add Champion Mastery API and refactor namespaces
asbjornvad Jun 21, 2025
f774ce3
Trying local nuget stuff
asbjornvad Jun 21, 2025
31a0a69
Trying to fix broken pipeline
asbjornvad Jun 21, 2025
35cfdbe
Still trying to fix the pipeline
asbjornvad Jun 21, 2025
cbad274
Still trying to fix. Think this is it.
asbjornvad Jun 21, 2025
12c2cca
This is it
asbjornvad Jun 21, 2025
31ede66
Added new Account project and implemented endpoints. Needs testing to…
asbjornvad Jun 22, 2025
f508ebc
Account endpoints added and tested somewhat.
asbjornvad Jun 30, 2025
f9e174a
Account endpoints added and tested somewhat.
asbjornvad Jun 30, 2025
827c645
Implemented classes that hold the endpoints and are the way to access…
asbjornvad Jul 5, 2025
0edce3d
Refactored the testfixture and is now a shared collection for all tests.
asbjornvad Jul 8, 2025
2abc4dc
Implemented Clash endpoint and refactored some namespaces.
asbjornvad Jul 8, 2025
c522274
League endpoint implemented and initial testing written.
asbjornvad Jul 13, 2025
c11fa78
Access to all endpoints in LeagueEndpoint
asbjornvad Jul 20, 2025
586ee59
Namespace fix and outputpath for local nuget package.
asbjornvad Jan 9, 2026
3d9dc6a
Starting work on ChallengesEndpoint. Restructure other endpoints to h…
asbjornvad Jan 9, 2026
d46a82c
Challenges endpoint done. minor changes to the langauge enum. Minor c…
asbjornvad Jan 10, 2026
bc7fd81
Status endpoint implemented. Crude but i dont think it will be used e…
asbjornvad Jan 10, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
48 changes: 48 additions & 0 deletions .github/workflows/dotnet.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
# This workflow will build a .NET project
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-net
name: .NET

on:
push:
branches: ["refactor"]
pull_request:
branches: ["refactor"]

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.0.x

- name: Pack RiotSharp.Core
run: |
dotnet build src/RiotSharp.Core/RiotSharp.Core.csproj --configuration Release
dotnet pack src/RiotSharp.Core/RiotSharp.Core.csproj --configuration Release --output ./local-nuget

- name: Generate local NuGet config
run: |
cat <<EOF > nuget.config
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<packageSources>
<clear />
<add key="local" value="./local-nuget" />
<add key="nuget.org" value="https://api.nuget.org/v3/index.json" />
</packageSources>
</configuration>
EOF

- name: Restore dependencies
run: dotnet restore src/RiotSharp.sln --configfile nuget.config

- name: Build
run: dotnet build src/RiotSharp.sln --no-restore --configuration Release

- name: Test
run: dotnet test src/RiotSharp.sln --no-build --configuration Release --verbosity normal --filter "Category!=OnlyLocal"
64 changes: 32 additions & 32 deletions .github/workflows/nuget_action.yml
Original file line number Diff line number Diff line change
@@ -1,38 +1,38 @@
name: Nuget Release
# name: Nuget Release

on:
create:
tag:
- '*.*.*'
# on:
# create:
# tag:
# - '*.*.*'


jobs:
package:
# jobs:
# package:

runs-on: ubuntu-latest
# runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Get the version
id: get_version
run: echo ::set-output name=VERSION::$(echo $GITHUB_REF | cut -d / -f 3)
- name: Setup .NET
uses: actions/setup-dotnet@v1
with:
dotnet-version: 5.0.x
- name: Restore dependencies
working-directory: ./RiotSharp
run: dotnet restore
- name: Build
working-directory: ./RiotSharp
run: dotnet build --no-restore
- name: Build Nuget
working-directory: ./RiotSharp
run: dotnet pack -p:Configuration=Release -p:Version=${{ steps.get_version.outputs.VERSION }} --output ../npkgs
- name: Publish Nuget on nuget.org
working-directory: ./npkgs
run: dotnet nuget push RiotSharp.${{ steps.get_version.outputs.VERSION }}.nupkg -s https://nuget.org -k ${{secrets.NUGET_API_KEY}}
- name: Publish Nuget on github
working-directory: ./npkgs
run: dotnet nuget push RiotSharp.${{ steps.get_version.outputs.VERSION }}.nupkg -s https://nuget.pkg.github.com/BenFradet/index.json -k ${{secrets.GITHUB_TOKEN}}
# steps:
# - uses: actions/checkout@v2
# - name: Get the version
# id: get_version
# run: echo ::set-output name=VERSION::$(echo $GITHUB_REF | cut -d / -f 3)
# - name: Setup .NET
# uses: actions/setup-dotnet@v1
# with:
# dotnet-version: 5.0.x
# - name: Restore dependencies
# working-directory: ./RiotSharp
# run: dotnet restore
# - name: Build
# working-directory: ./RiotSharp
# run: dotnet build --no-restore
# - name: Build Nuget
# working-directory: ./RiotSharp
# run: dotnet pack -p:Configuration=Release -p:Version=${{ steps.get_version.outputs.VERSION }} --output ../npkgs
# - name: Publish Nuget on nuget.org
# working-directory: ./npkgs
# run: dotnet nuget push RiotSharp.${{ steps.get_version.outputs.VERSION }}.nupkg -s https://nuget.org -k ${{secrets.NUGET_API_KEY}}
# - name: Publish Nuget on github
# working-directory: ./npkgs
# run: dotnet nuget push RiotSharp.${{ steps.get_version.outputs.VERSION }}.nupkg -s https://nuget.pkg.github.com/BenFradet/index.json -k ${{secrets.GITHUB_TOKEN}}

7 changes: 6 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,9 @@ TestResults/
*.nupkg
.vs/
project.lock.json
.vscode/
.vscode/
*.user

/src/RiotSharp.LeagueOfLegends.Tests/appsettings.json
/src/RiotSharpNET8.Test/appsettings.json
/src/RiotSharp.Account.Tests/appsettings.json
6 changes: 0 additions & 6 deletions .nuget/NuGet.Config

This file was deleted.

Binary file removed .nuget/NuGet.exe
Binary file not shown.
144 changes: 0 additions & 144 deletions .nuget/NuGet.targets

This file was deleted.

10 changes: 0 additions & 10 deletions Directory.Build.props

This file was deleted.

14 changes: 11 additions & 3 deletions PIPELINES.md
Original file line number Diff line number Diff line change
@@ -1,16 +1,24 @@
# dotnet.yml

This is the pipeline that runs on push. It will try to build the solution and run the tests.

# Nuget Action

## Description

This action provides a pipeline to create and publish new nuget packages on new github releases / tag creations.
The created nuget package can be published on nuget.org and within the github repository.

## Repository Requirements

In order for the pipeline to run there need to be some secrets in place.
Secrets can be added in the repository -> Settings -> Secrets -> (top right) New repository secret
Secrets required for the pipeline:
Secrets required for the pipeline:

- NUGET_API_KEY being an api key for nuget.org [nuget api key](https://www.nuget.org/account/apikeys)
Also make sure the repositories workflow permissions (settings -> actions) is set to Read and write permission.
Also make sure the repositories workflow permissions (settings -> actions) is set to Read and write permission.

## Usage

Create a Github Release with a tag in the format of versioning (eg 5.0.0 or 5.0.0-alpha).
Checkout the Actions tab to figure out whether the pipe ran smoothly or errors occurred.
Checkout the Actions tab to figure out whether the pipe ran smoothly or errors occurred.
34 changes: 0 additions & 34 deletions RiotSharp.AspNetCore/CacheType.cs

This file was deleted.

Loading