Skip to content

Commit ebbbb18

Browse files
committed
Adjusting the structure of distributed files to best practices.
1 parent 37a93a5 commit ebbbb18

File tree

9 files changed

+183
-6
lines changed

9 files changed

+183
-6
lines changed

.dist/CHANGELOG.md

Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
# Release Notes
2+
3+
## [v2.0.0-alpha.1 (2019-12-04)](https://github.com/CatLib/Core/releases/tag/v2.0.0)
4+
5+
#### Added
6+
7+
- `Inject` allowed to be set to optional.(#253 )
8+
- `Arr.Test` can get matched value of the first match(#280 )
9+
10+
#### Changed
11+
12+
- Comments translated from Chinese into English(#133 )
13+
- Defined Container.Build as a virtual function(#210 )
14+
- Optimizes the constructor of `MethodContainer`(#218 )
15+
- The default project uses the .net standard 2.0(#225 )
16+
- Rename Util helper class to Helper class Change access level to internal.(#230 )
17+
- `Application.IsRegisted` changed(rename) to `IsRegistered`(#226 )
18+
- Use `VariantAttribute` to mark variable types instead of `IVariant`(#232 )
19+
- `Guard` Will be expandable with `Guard.That`(#233 )
20+
- Fixed the problem of container exception stack loss(#234 )
21+
- Adjusted the internal file structure to make it clearer(#236 ).
22+
- Add code analyzers (#206 )
23+
- Refactoring event system (#177 )
24+
- Refactoring `RingBuffer` make it inherit from `Stream`.(#238 )
25+
- Namespace structure adjustment(optimization).(#241 )
26+
- `App` can be extended by `That` (Handler rename to that) and removed `HasHandler` API (#242 )
27+
- Unnecessary inheritance: WrappedStream(#247 )
28+
- Clean up useless comment(#249 ).
29+
- `Guard.Require` can set error messages and internal exceptions(#250).
30+
- Exception class implementation support: SerializationInfo build(#252 ).
31+
- Refactoring unit test, import moq.(#255 )
32+
- `CodeStandardException` replaces to `LogicException`(#257 )
33+
- Exception move to namespace `CatLib.Exception`(#258 )
34+
- `Facade<>.Instance` changed to `Facade<>.That`(#259 )
35+
- `Application.StartProcess` migrate to `StartProcess`(#260 )
36+
- `Arr` optimization, lifting some unnecessary restrictions (#263)
37+
- `Str` optimization, lifting some unnecessary restrictions (#264)
38+
- Refactoring `SortSet`(#265 )
39+
- Removed global params in application constructor. use Application.New() instead.(#267 )
40+
- Containers are no longer thread-safe by default(#270 )
41+
42+
#### Fixed
43+
44+
- Fixed a bug that caused `Arr.Fill` to not work properly under special circumstances. (#255 )
45+
46+
#### Removed
47+
48+
- Removed `ExcludeFromCodeCoverageAttribute` (#229 )
49+
- Removed unnecessary interface design `ISortSet`(#211 ).
50+
- Removed `Version` classes and `Application.Compare` method.(#212).
51+
- Removed `Template` supported(#213 ).
52+
- Removed `FilterChain` supported(#214 ).
53+
- Removed `Enum` supported(#215 ).
54+
- Removed `IAwait` interface(#217 ).
55+
- Removed `Container.Flash` api(#219 ).
56+
- Removed `Arr.Flash` method(#220 ).
57+
- Removed `Dict` helper class(#221 ).
58+
- Removed `ThreadStatic` helper class(#223 ).
59+
- Removed `QuickList` supported(#224 ).
60+
- Removed `Storage` supported(#228 )
61+
- Removed `SystemTime` class(#235 ).
62+
- Removed `ICoroutineInit` feature from core library(#243 ).
63+
- Removed the priority attribute, depending on the loading order(#244 ).
64+
- Removed `Util.Encoding` (#245 ).
65+
- Removed `Str.Encoding`(#246 )
66+
- Removed `IServiceProviderType` feature in core library(#246 ).
67+
- Removed unnecessary extension functions(#247 ).
68+
- Removed `PipelineStream` stream.(#256 )
69+
- Removed all `Obsolete` method and clean code.(#261 )
70+
- Removed `App.Version`.(#266 )

.dist/LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2017 CatLib
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

.dist/README.md

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
<p align="center"><img width="173" height="57" src="https://catlib.io/imgs/logo-txt.png"></p>
2+
3+
<p align="center">
4+
<a href="https://github.com/Catlib/Core/blob/master/LICENSE"><img src="https://img.shields.io/badge/license-MIT-blue.svg" title="license-mit" /></a>
5+
<a href="https://www.nuget.org/packages/catlib.core/"><img src="https://badge.fury.io/nu/catlib.core.svg" title="Nuget Version" /></a>
6+
<a href="https://travis-ci.com/CatLib/Core"><img src="https://travis-ci.com/CatLib/Core.svg?branch=master" title="Build status"/></a>
7+
<a href="https://codecov.io/gh/CatLib/Core">
8+
<img src="https://codecov.io/gh/CatLib/Core/branch/master/graph/badge.svg" alt="Codecov" />
9+
</a>
10+
<a href="https://github.com/CatLib/Core/releases">
11+
<img src="https://img.shields.io/nuget/dt/CatLib.Core.svg" alt="Downloads" />
12+
</a>
13+
</p>
14+
15+
## About CatLib
16+
17+
`CatLib` is the lightweight dependency injection container and helper functions library.
18+
19+
- [Service Provider](https://catlib.io/lasted/architecture/service-provider.html)
20+
- [Application](https://catlib.io/lasted/architecture/application.html)
21+
- [IOC Container](https://catlib.io/lasted/architecture/container.html)
22+
- [Facades](https://catlib.io/lasted/architecture/facade.html)
23+
24+
## Install CatLib Core
25+
26+
**Installed with Nuget**
27+
28+
```PM
29+
$ Install-Package CatLib.Core -Version 2.0.0
30+
```
31+
32+
**Installed with [Bucket](https://github.com/getbucket/bucket)**
33+
34+
```shell
35+
$ bucket require catlib/core
36+
```
37+
38+
**Installed with Github Release**
39+
40+
[Download the latest version](https://github.com/CatLib/Core/releases)
41+
42+
## Learning CatLib
43+
44+
CatLib has the most extensive and thorough [documentation](https://catlib.io), making it a breeze to get started with the framework.
45+
46+
> 需要中文支持? 请访问[CatLib中文文档](https://zh.catlib.io)
47+
48+
## Contribution
49+
50+
CatLib is still a young framework, and her growth and your contribution are inseparable. If you want to contribute to the project, please refer to: [CatLib Contribution Guide](https://catlib.io/lasted/contribution.html) Your contribution will be included in the list of contributors,Welcome Pull Request!
51+
52+
## License
53+
54+
The open source license used by CatLib is [MIT license](http://opensource.org/licenses/MIT).
55+
56+
## Support
57+
58+
59+
* slack: [catlib.slack](https://catlib.slack.com/messages/internals/)

.dist/bucket.json

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
{
2+
"name": "catlib/core",
3+
"version": "2.0.0",
4+
"description": "catlib framework is the lightweight dependency injection container and helper functions library.",
5+
"keywords": ["framework", "catlib"],
6+
"license": "MIT",
7+
"homepage": "https://catlib.io",
8+
"support": {
9+
"issues": "https://github.com/CatLib/Core/issues",
10+
"source": "https://github.com/CatLib/Core"
11+
},
12+
"authors": [
13+
{
14+
"name": "Meng han Yu",
15+
"email": "[email protected]"
16+
}
17+
]
18+
}

dist/CatLib.Core.deps.json renamed to .dist/netstandard2.0/CatLib.Core.deps.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"targets": {
88
".NETStandard,Version=v2.0": {},
99
".NETStandard,Version=v2.0/": {
10-
"CatLib.Core/2.0.0-stable+d0525b6": {
10+
"CatLib.Core/0.2.0-alpha.1+37a93a5": {
1111
"dependencies": {
1212
"Microsoft.CodeAnalysis.CSharp": "3.3.1",
1313
"Microsoft.CodeAnalysis.FxCopAnalyzers": "2.9.6",
@@ -85,7 +85,7 @@
8585
}
8686
},
8787
"libraries": {
88-
"CatLib.Core/2.0.0-stable+d0525b6": {
88+
"CatLib.Core/0.2.0-alpha.1+37a93a5": {
8989
"type": "project",
9090
"serviceable": false,
9191
"sha512": ""
Binary file not shown.
File renamed without changes.

.gitattributes

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,9 @@ src/ export-ignore
33
.gitignore export-ignore
44
.gitattributes export-ignore
55
*.ps1 export-ignore
6-
.github/ export-ignore
7-
.travis.yml export-ignore
6+
.github/ export-ignore
7+
.travis.yml export-ignore
8+
/bucket.json export-ignore
9+
/README.md export-ignore
10+
/CHANGELOG.md export-ignore
11+
/LICENSE export-ignore

build.ps1

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ param(
22
[string]$version="master-dev"
33
)
44

5-
$dist = "dist"
5+
$dist = ".dist"
66
$root = (Get-Item -Path ".\").FullName
77
$publishDir = $root + "\src\CatLib.Core\bin\Release\netstandard2.0\publish"
88
$version = $version.Trim()
@@ -73,7 +73,12 @@ if(Test-Path -Path $dist)
7373
}
7474

7575
mkdir $dist
76-
cp $publishDir\* $dist -Recurse
76+
mkdir $dist\netstandard2.0
77+
cp $publishDir\* $dist\netstandard2.0 -Recurse
78+
cp LICENSE $dist
79+
cp CHANGELOG.md $dist
80+
cp README.md $dist
81+
cp bucket.json $dist
7782

7883
$env:CATLIB_PROJECT_VERSION=$versionNormalized.trim()
7984
$env:CATLIB_FILE_VERSION=$fileVersion.trim()

0 commit comments

Comments
 (0)