Skip to content

Commit

Permalink
Swan v3.0 (#239)
Browse files Browse the repository at this point in the history
* Feature: new IPropertyProxy from Mario

* Remove IComponentCollection

* Remove Services and Properties

* Fix Unit tests

* Last review today

* Remove IDataDictionary

* Fix namespace

* Fix build

* Fix stream test

* Update README.md

* Remove useless directives

* Fix build for NET461

* Some null checks

* Working on CI

* Update Swan.Lite.csproj

* Update Swan.csproj
  • Loading branch information
geoperez authored Feb 12, 2020
1 parent a85838d commit 0e5dcdd
Show file tree
Hide file tree
Showing 63 changed files with 416 additions and 3,904 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: .NET Core CI
name: .NET Core CI

on: [push]

Expand All @@ -8,7 +8,7 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [windows-latest]
os: [windows-latest, ubuntu-latest]

steps:
- uses: actions/checkout@v1
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ Table of contents
* [Running Unit Tests](#running-unit-tests)

## 📚 Libraries
We offer the Swan library in two flavors since version 0.24. Swan Lite provides basic classes and extension methods and Swan Standard (we call it Fat Swan) provides everything in Swan Lite plus Network, WinServices, DI and more. See the following table to understand the components available to these flavors of Swan.
We offer the Swan library in two flavors since version 0.24. Swan Lite provides basic classes and extension methods and Swan Standard (we call it Fat Swan) provides everything in Swan Lite plus Network, DI and more. See the following table to understand the components available to these flavors of Swan.

| Component | Swan Lite | Swan Standard |
|---|---|---|
Expand Down
3 changes: 3 additions & 0 deletions StyleCop.Analyzers.ruleset
Original file line number Diff line number Diff line change
Expand Up @@ -74,9 +74,12 @@
<Rules AnalyzerId="Microsoft.CodeQuality.Analyzers" RuleNamespace="Microsoft.CodeQuality.Analyzers">
<Rule Id="CA1710" Action="None" />
<Rule Id="CA1720" Action="Hidden" />
<Rule Id="CA1819" Action="None" />
</Rules>
<Rules AnalyzerId="Microsoft.NetCore.Analyzers" RuleNamespace="Microsoft.NetCore.Analyzers">
<Rule Id="CA1308" Action="Hidden" />
<Rule Id="CA5350" Action="None" />
<Rule Id="CA5351" Action="None" />
</Rules>
<Rules AnalyzerId="StyleCop.Analyzers" RuleNamespace="StyleCop.Analyzers">
<Rule Id="SA1001" Action="None" />
Expand Down
1 change: 1 addition & 0 deletions Swan.sln
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution
ProjectSection(SolutionItems) = preProject
.editorconfig = .editorconfig
appveyor.yml = appveyor.yml
.github\workflows\build.yml = .github\workflows\build.yml
docfx.json = docfx.json
LICENSE = LICENSE
mail.js = mail.js
Expand Down
16 changes: 4 additions & 12 deletions appveyor.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
version: '1.00.{build}'
image:
- Visual Studio 2019
- Ubuntu
stack: node 10
image: Visual Studio 2019
notifications:
- provider: Slack
auth_token:
Expand All @@ -18,30 +15,25 @@ environment:
secure: HzWdswNyfQbQ0vLk9IQyO+Ei9mxoPYp9rvv6HPhtC9J/Fm7EHRzyV953pbPRXI9I
before_build:
- ps: |
if(-Not $env:APPVEYOR_PULL_REQUEST_TITLE -And $isWindows)
if(-Not $env:APPVEYOR_PULL_REQUEST_TITLE)
{
git checkout $env:APPVEYOR_REPO_BRANCH -q
cinst docfx -y --no-progress
}
- ps: |
if($isWindows)
{
Install-Product node 10
}
- ps: Install-Product node 10
- npm ci
- ps: $SMTP = Start-Process node mail.js -PassThru
- ps: $WEB = Start-Process node web.js -PassThru
- ps: $TCP = Start-Process node tcp.js -PassThru
- ps: $NTP = Start-Process node ntp.js -PassThru
- dotnet restore -v Minimal
- cmd: mkdir tools
build_script:
- msbuild /p:Configuration=Release /verbosity:quiet
test_script:
- dotnet test test/Swan.Test/Swan.Test.csproj -c Release
after_build:
- ps: |
if(-Not $env:APPVEYOR_PULL_REQUEST_TITLE -And $isWindows -And $env:APPVEYOR_REPO_BRANCH -eq "master")
if(-Not $env:APPVEYOR_PULL_REQUEST_TITLE -And $env:APPVEYOR_REPO_BRANCH -eq "master")
{
git config --global credential.helper store
Add-Content "$env:USERPROFILE\.git-credentials" "https://$($env:access_token):[email protected]`n"
Expand Down
1 change: 0 additions & 1 deletion src/Swan.Lite/Collections/CollectionCacheRepository.cs
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ public class CollectionCacheRepository<TValue>
/// or
/// factory.
/// </exception>
/// <exception cref="System.ArgumentNullException">type.</exception>
public IEnumerable<TValue> Retrieve(Type key, Func<Type, IEnumerable<TValue>> factory)
{
if (key == null)
Expand Down
77 changes: 0 additions & 77 deletions src/Swan.Lite/Collections/ComponentCollection`1.cs

This file was deleted.

Loading

0 comments on commit 0e5dcdd

Please sign in to comment.