Skip to content

Commit

Permalink
Merge branch 'release/1.0.0'
Browse files Browse the repository at this point in the history
  • Loading branch information
hd1fernando committed Aug 13, 2022
2 parents b8a9277 + 5e2f73d commit 8a25582
Show file tree
Hide file tree
Showing 10 changed files with 36 additions and 250 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/dotnet.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: .NET
name: .NET - Develop

on:
push:
Expand All @@ -18,7 +18,7 @@ jobs:
- name: Setup .NET
uses: actions/setup-dotnet@v1
with:
dotnet-version: '5.0.x'
dotnet-version: '6.0.x'
- name: Restore dependencies
run: dotnet restore src/Jabuticaba/
- name: Build
Expand Down
10 changes: 0 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ Console.WriteLine(cnpj.EValido);
## Tipos já implementados
* CPF
* CNPJ
* CEP
* Telefone

## Benchmark
Expand Down Expand Up @@ -66,15 +65,6 @@ AMD Ryzen 5 3400G with Radeon Vega Graphics, 1 CPU, 8 logical and 4 physical cor
| CnpjMenorDoQue14Digitos | 265.31 ns | 5.343 ns | 7.132 ns | 5 | 0.0763 | - | - | 160 B |
| CnpjValorNaoNumerico | 436.29 ns | 6.250 ns | 5.846 ns | 6 | 0.1526 | - | - | 320 B |

| Method | Mean | Error | StdDev | Rank | Gen 0 | Gen 1 | Gen 2 | Allocated |
|------------------------- |----------:|----------:|----------:|-----:|------:|------:|------:|----------:|
| CepMaior | 2.489 ns | 0.0308 ns | 0.0257 ns | 1 | - | - | - | - |
| CepSemIfenNaSextaPosicao | 3.030 ns | 0.0297 ns | 0.0278 ns | 2 | - | - | - | - |
| CepSemNumeros | 7.735 ns | 0.1570 ns | 0.1542 ns | 3 | - | - | - | - |
| CepMenor | 9.955 ns | 0.1558 ns | 0.1457 ns | 4 | - | - | - | - |
| OberCep | 10.835 ns | 0.1485 ns | 0.1389 ns | 5 | - | - | - | - |
| OberCepSemPontuacao | 11.632 ns | 0.1208 ns | 0.1130 ns | 6 | - | - | - | - |

| Method | Mean | Error | StdDev | Rank | Gen 0 | Gen 1 | Gen 2 | Allocated |
|------------------------------------ |----------:|---------:|----------:|-----:|------:|------:|------:|----------:|
| NaoEhUmTelefoneValido | 20.48 ns | 0.413 ns | 0.386 ns | 1 | - | - | - | - |
Expand Down
33 changes: 0 additions & 33 deletions benchmark/Jabuticaba.Benchmark/CepBenchmark.cs

This file was deleted.

47 changes: 0 additions & 47 deletions benchmark/Jabuticaba.Benchmark/CepBenchmarkDiagnoser.cs

This file was deleted.

4 changes: 2 additions & 2 deletions benchmark/Jabuticaba.Benchmark/Jabuticaba.Benchmark.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="BenchmarkDotNet" Version="0.12.1" />
<PackageReference Include="BenchmarkDotNet" Version="0.13.1" />
</ItemGroup>

<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net5.0</TargetFramework>
<TargetFramework>net6.0</TargetFramework>
</PropertyGroup>

</Project>
2 changes: 1 addition & 1 deletion executar-benchmark.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
cd benchmark/Jabuticaba.Benchmark && \
dotnet build -c Release \
&& cd bin/Release/net5.0 \
&& cd bin/Release/net6.0 \
&& dotnet Jabuticaba.Benchmark.dll
69 changes: 0 additions & 69 deletions src/Jabuticaba/Cep.cs

This file was deleted.

39 changes: 21 additions & 18 deletions src/Jabuticaba/Jabuticaba.csproj
Original file line number Diff line number Diff line change
@@ -1,23 +1,26 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>net5.0</TargetFramework>
<PackageId>jabuticaba</PackageId>
<Version>0.3.0</Version>
<Authors>hd1Fernando</Authors>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
<Description>Jabuticaba é uma biblioteca que fornece, em formato de tipos, valores utilizados no Brasil. Como CPF, RG, CEP dentre outros.
<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
<PackageId>jabuticaba</PackageId>
<Version>1.0.0</Version>
<Authors>hd1Fernando</Authors>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
<Description>
Jabuticaba é uma biblioteca que fornece, em formato de tipos, valores utilizados no Brasil. Como CPF, CNPJ e etc.

Seu principal objetivo que que o desenvolvedor não tenha necessidade de ficar recriando tipos quando for preciso lidar com um novo tipo em sua aplicação além de buscar por alta performance.</Description>
<PackageProjectUrl></PackageProjectUrl>
<PackageLicenseExpression>MIT</PackageLicenseExpression>
<Copyright>2020</Copyright>
<RepositoryUrl>https://github.com/hd1fernando/Jabuticaba</RepositoryUrl>
<PackageTags>cep cnpj-validador cnpj cpf cpf-validador brazilian-helpers telefone brazilian-validators validator</PackageTags>
<PackageReleaseNotes>Ajuste nos tipos Cpf e Cnpj:
Remoção do lançamento de exceção.
Adição dos tipos:
Cep e Telefone</PackageReleaseNotes>
</PropertyGroup>
Seu principal objetivo que que o desenvolvedor não tenha necessidade de ficar recriando tipos quando for preciso lidar com um novo tipo em sua aplicação além de buscar por alta performance.
</Description>
<PackageProjectUrl></PackageProjectUrl>
<PackageLicenseExpression>MIT</PackageLicenseExpression>
<Copyright>2022</Copyright>
<RepositoryUrl>https://github.com/hd1fernando/Jabuticaba</RepositoryUrl>
<PackageTags>cnpj-validador cnpj cpf cpf-validador brazilian-helpers telefone brazilian-validators validator</PackageTags>
<PackageReleaseNotes>
- Remoção do tipo:
Cep
- Upgrade de versão do .net para .net 6
</PackageReleaseNotes>
</PropertyGroup>

</Project>
58 changes: 0 additions & 58 deletions test/JabuticabaTests/CepTest.cs

This file was deleted.

20 changes: 10 additions & 10 deletions test/JabuticabaTests/JabuticabaTests.csproj
Original file line number Diff line number Diff line change
@@ -1,28 +1,28 @@
<Project Sdk="Microsoft.NET.Sdk">
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>net5.0</TargetFramework>
<TargetFramework>net6.0</TargetFramework>

<IsPackable>false</IsPackable>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Bogus" Version="32.0.2" />
<PackageReference Include="FluentAssertions" Version="5.10.3" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.7.1" />
<PackageReference Include="xunit" Version="2.4.1" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.3">
<PackageReference Include="Bogus" Version="34.0.2" />
<PackageReference Include="FluentAssertions" Version="6.7.0" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.3.0" />
<PackageReference Include="xunit" Version="2.4.2" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.5">
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
<PrivateAssets>all</PrivateAssets>
</PackageReference>
<PackageReference Include="coverlet.collector" Version="1.3.0">
<PackageReference Include="coverlet.collector" Version="3.1.2">
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
<PrivateAssets>all</PrivateAssets>
</PackageReference>
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\..\src\Jabuticaba\Jabuticaba.csproj" />
<ItemGroup>
<ProjectReference Include="..\..\src\Jabuticaba\Jabuticaba.csproj" />
</ItemGroup>

</Project>

0 comments on commit 8a25582

Please sign in to comment.