Skip to content
This repository has been archived by the owner on May 16, 2023. It is now read-only.

Commit

Permalink
2.0.0
Browse files Browse the repository at this point in the history
2.0.0
  • Loading branch information
cosmincatalin committed Sep 27, 2022
1 parent 8990ced commit b1ed845
Show file tree
Hide file tree
Showing 34 changed files with 889 additions and 462 deletions.
12 changes: 12 additions & 0 deletions .config/dotnet-tools.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"version": 1,
"isRoot": true,
"tools": {
"csharpier": {
"version": "0.19.1",
"commands": [
"dotnet-csharpier"
]
}
}
}
13 changes: 13 additions & 0 deletions .devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"name": "CosminSanda.Finance",
"extensions": [
"formulahendry.dotnet-test-explorer",
"formulahendry.dotnet",
"fudge.auto-using",
"ms-dotnettools.csharp",
"k--kato.docomment",
"edwinsulaiman.jetbrains-rider-dark-theme",
"obrejla.netbeans-light-theme",
"editorconfig.editorconfig"
]
}
12 changes: 12 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# EditorConfig is awesome: https://EditorConfig.org

# top-most EditorConfig file
root = true

[*]
indent_style = space
indent_size = 4
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = false
29 changes: 26 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Build package
name: Release

on:
push:
Expand All @@ -10,10 +10,10 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup .NET Core
- name: Setup .NET
uses: actions/setup-dotnet@v2
with:
dotnet-version: 3.1.x
dotnet-version: 6.x.x
- name: Build
run: dotnet build --configuration Release
- name: Pack
Expand All @@ -26,3 +26,26 @@ jobs:
shell: pwsh
- name: Push
run: dotnet nuget push CosminSanda.Finance.$BUILD_VERSION.nupkg -k ${{ secrets.NUGET_API_KEY }} -s https://api.nuget.org/v3/index.json

documentation:
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
- name: Setup .NET
uses: actions/setup-dotnet@v2
with:
dotnet-version: 6.x.x
- name: Setup DocFX
uses: crazy-max/ghaction-chocolatey@v1
with:
args: install docfx
- name: DocFX Build
working-directory: docfx_project
run: docfx .\docfx.json
continue-on-error: false
- name: Publish
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: docfx_project/_site
force_orphan: true
10 changes: 7 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,15 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup .NET Core
- name: Setup .NET
uses: actions/setup-dotnet@v2
with:
dotnet-version: 3.1.x
dotnet-version: 6.x.x
- name: Restore dependencies
run: dotnet restore
- name: Build
run: dotnet build --no-restore
- name: Test
run: dotnet test
run: dotnet test --no-build --verbosity normal --collect:"XPlat Code Coverage"
- name: Code coverage
uses: codecov/codecov-action@v3.1.0
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,6 @@ obj/
riderModule.iml
/_ReSharper.Caches/
.idea/
finance.sln.DotSettings.user
finance.sln.DotSettings.user
.vs
.vscode
28 changes: 12 additions & 16 deletions Finance/.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -2,36 +2,32 @@
<package xmlns="http://schemas.microsoft.com/packaging/2013/05/nuspec.xsd">
<metadata>
<id>CosminSanda.Finance</id>
<version>0.0.9</version>
<version>1.0.0</version>
<title>Yahoo Earnings Calendar</title>
<authors>Cosmin Catalin Sanda</authors>
<owners>cosmincatalin</owners>
<projectUrl>https://github.com/cosmincatalin/finance-library</projectUrl>
<icon>images\icon.png</icon>
<requireLicenseAcceptance>false</requireLicenseAcceptance>
<description>Fetches the historical and future earnings dates for stock tickers from Yahoo Finance</description>
<releaseNotes>0.0.9 - Experimental for GitHub actions
0.0.8 - Added earnings by day request (Thanks to @mccabe93)
0.0.7 - Add a method to get the next earnings date for a ticker.
- Add a property for an earning date that helps with displaying when exactly it happened in between trading days.
0.0.6 - Add an EarningsMarker read-only property to help when plotting the earnings date.
0.0.5 - Put Ticker back in Candle class and Candle class.
- Add method to get only previous earnings dates.
0.0.4 - Remove Ticker from Candle class.
0.0.3 - First Blood.
0.0.2 - Unusable version.
0.0.1 - Unusable version.
</releaseNotes>
<copyright>Copyright © 2020 Cosmin Catalin Sanda</copyright>
<readme>docs\README.md</readme>
<copyright>Copyright © 2022 Cosmin Catalin Sanda</copyright>
<tags>finance scraper</tags>
<dependencies>
<dependency id="Newtonsoft.Json" version="13.0.1" />
<dependency id="ServiceStack.Text" version="6.2.0" />
<group>
<dependency id="Newtonsoft.Json" version="13.0.1" />
<dependency id="ServiceStack.Text" version="6.2.0" />
</group>
<group targetFramework="net6.0" />
</dependencies>
<releaseNotes>- Refactor and braking changes.
- Remove cache capability
</releaseNotes>
</metadata>
<files>
<file src="../icon.png" target="images\" />
<file src="bin\Release\**\*.dll" target="lib" />
<file src="bin\Release\**\*.pdb" target="lib" />
<file src="..\README.md" target="docs\" />
</files>
</package>
42 changes: 0 additions & 42 deletions Finance/Candle.cs

This file was deleted.

Loading

0 comments on commit b1ed845

Please sign in to comment.