Skip to content

Commit

Permalink
refactor: rename Dedge to DEdge (#114)
Browse files Browse the repository at this point in the history
  • Loading branch information
aloisdg authored Feb 7, 2022
1 parent 59bd187 commit 6824450
Show file tree
Hide file tree
Showing 19 changed files with 31 additions and 32 deletions.
2 changes: 1 addition & 1 deletion .github/CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ In a library like Cardizer, one of the main way to contribute is by adding a new
- Clone the project and checkout the `develop` branch
- From `develop` create a new branch named `feature/addXxx`
- Write a card generator for Xxx
- Open `src/Dedge.Cardizer/Dedge.Cardizer.fs`
- Open `src/DEdge.Cardizer/DEdge.Cardizer.fs`
- Add a function for your card:

```fsharp
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ env:
# Disable sending usage data to Microsoft
DOTNET_CLI_TELEMETRY_OPTOUT: true
# Project name to pack and publish
PROJECT_NAME: Dedge.Cardizer
PROJECT_NAME: DEdge.Cardizer
# GitHub Packages Feed settings
GITHUB_FEED: https://nuget.pkg.github.com/d-edge/
GITHUB_USER: aloisdg
Expand Down Expand Up @@ -42,7 +42,7 @@ jobs:
uses: d-edge/[email protected]
with:
input-path: README.md
output-path: src/Dedge.Cardizer/README.md
output-path: src/DEdge.Cardizer/README.md
- name: Pack
if: matrix.os == 'ubuntu-latest'
run: |
Expand Down
6 changes: 3 additions & 3 deletions Dedge.Cardizer.sln → DEdge.Cardizer.sln
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,17 @@ VisualStudioVersion = 16.0.31424.327
MinimumVisualStudioVersion = 15.0.26124.0
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "src", "src", "{04449DE3-A1A2-445A-8FFB-7785A8C7EEF1}"
EndProject
Project("{6EC3EE1D-3C4E-46DD-8F32-0CC8E7565705}") = "Dedge.Cardizer", "src\Dedge.Cardizer\Dedge.Cardizer.fsproj", "{0FA2B54D-E635-4DE2-AA65-3575133E88F6}"
Project("{6EC3EE1D-3C4E-46DD-8F32-0CC8E7565705}") = "DEdge.Cardizer", "src\DEdge.Cardizer\DEdge.Cardizer.fsproj", "{0FA2B54D-E635-4DE2-AA65-3575133E88F6}"
EndProject
Project("{6EC3EE1D-3C4E-46DD-8F32-0CC8E7565705}") = "App", "src\App\App.fsproj", "{31D00B07-79CA-42C0-AD90-97DAB8FF4E86}"
EndProject
Project("{6EC3EE1D-3C4E-46DD-8F32-0CC8E7565705}") = "Tests", "src\Tests\Tests.fsproj", "{C14E04AA-3942-4255-B66E-C8334FFDDE6B}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "AppCs", "src\AppCs\AppCs.csproj", "{42D8A78C-5EAF-4B7D-9989-E13FE1CE34D8}"
EndProject
Project("{F2A71F9B-5D33-465A-A702-920D77279786}") = "Dedge.Cardizer.Diverse", "src\Dedge.Cardizer.Diverse\Dedge.Cardizer.Diverse.fsproj", "{C8593FE6-9B2C-46B9-BAA8-7F9BD717924A}"
Project("{F2A71F9B-5D33-465A-A702-920D77279786}") = "DEdge.Cardizer.Diverse", "src\DEdge.Cardizer.Diverse\DEdge.Cardizer.Diverse.fsproj", "{C8593FE6-9B2C-46B9-BAA8-7F9BD717924A}"
EndProject
Project("{F2A71F9B-5D33-465A-A702-920D77279786}") = "Dedge.Cardizer.Diverse.Tests", "src\Dedge.Cardizer.Diverse.Tests\Dedge.Cardizer.Diverse.Tests.fsproj", "{1A769807-52A9-4AEC-A621-EB087966CC6B}"
Project("{F2A71F9B-5D33-465A-A702-920D77279786}") = "DEdge.Cardizer.Diverse.Tests", "src\DEdge.Cardizer.Diverse.Tests\DEdge.Cardizer.Diverse.Tests.fsproj", "{1A769807-52A9-4AEC-A621-EB087966CC6B}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Expand Down
16 changes: 8 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@

<p align="center">
<a href="https://github.com/d-edge/Cardizer/actions" title="actions"><img src="https://github.com/d-edge/cardizer/actions/workflows/build.yml/badge.svg?branch=main" alt="actions build" /></a>
<a href="https://www.nuget.org/packages/Dedge.Cardizer/" title="nuget"><img src="https://img.shields.io/nuget/vpre/Dedge.Cardizer" alt="version" /></a>
<a href="https://www.nuget.org/stats/packages/Dedge.Cardizer?groupby=Version" title="stats"><img src="https://img.shields.io/nuget/dt/Dedge.Cardizer" alt="download" /></a>
<a href="https://www.nuget.org/packages/DEdge.Cardizer/" title="nuget"><img src="https://img.shields.io/nuget/vpre/DEdge.Cardizer" alt="version" /></a>
<a href="https://www.nuget.org/stats/packages/DEdge.Cardizer?groupby=Version" title="stats"><img src="https://img.shields.io/nuget/dt/DEdge.Cardizer" alt="download" /></a>
<a href="https://raw.githubusercontent.com/d-edge/cardizer/main/LICENSE" title="license"><img src="https://img.shields.io/github/license/d-edge/Cardizer" alt="license" /></a>
</p>

Expand All @@ -31,22 +31,22 @@ Keep in mind that all credit card numbers generated with Cardizer are completely

## Getting Started

Install the [Dedge.Cardizer](https://www.nuget.org/packages/Dedge.Cardizer) NuGet package:
Install the [DEdge.Cardizer](https://www.nuget.org/packages/DEdge.Cardizer) NuGet package:

PM> Install-Package Dedge.Cardizer
PM> Install-Package DEdge.Cardizer

Alternatively you can also use the .NET CLI to add the packages:

dotnet add package Dedge.Cardizer
dotnet add package DEdge.Cardizer

Next create a .net application and use Dedge.Cardizer:
Next create a .net application and use DEdge.Cardizer:

```fsharp
open System
[<EntryPoint>]
let main _ =
Dedge.Cardizer.NextVisa () |> printfn "Visa: %s"
DEdge.Cardizer.NextVisa () |> printfn "Visa: %s"
0
```

Expand All @@ -55,7 +55,7 @@ or in C#:
```csharp
static void Main(string[] args)
{
var card = Dedge.Cardizer.NextVisa();
var card = DEdge.Cardizer.NextVisa();
Console.WriteLine(card);
}
```
Expand Down
2 changes: 1 addition & 1 deletion src/App/App.fsproj
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\Dedge.Cardizer\Dedge.Cardizer.fsproj" />
<ProjectReference Include="..\DEdge.Cardizer\DEdge.Cardizer.fsproj" />
</ItemGroup>

</Project>
2 changes: 1 addition & 1 deletion src/App/Program.fs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
open Dedge
open DEdge

[<EntryPoint>]
let main _ =
Expand Down
2 changes: 1 addition & 1 deletion src/AppCs/AppCs.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
</PropertyGroup>

<ItemGroup>
<ProjectReference Include="..\Dedge.Cardizer\Dedge.Cardizer.fsproj" />
<ProjectReference Include="..\DEdge.Cardizer\DEdge.Cardizer.fsproj" />
</ItemGroup>

</Project>
2 changes: 1 addition & 1 deletion src/AppCs/Program.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
using System;
using Dedge;
using DEdge;
namespace AppCs
{
class Program
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\Dedge.Cardizer.Diverse\Dedge.Cardizer.Diverse.fsproj" />
<ProjectReference Include="..\DEdge.Cardizer.Diverse\DEdge.Cardizer.Diverse.fsproj" />
</ItemGroup>

</Project>
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ module Tests

open System
open Diverse
open Dedge.Cardizer.Diverse
open DEdge.Cardizer.Diverse
open Xunit
open FsUnit.Xunit

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\Dedge.Cardizer\Dedge.Cardizer.fsproj" />
<ProjectReference Include="..\DEdge.Cardizer\DEdge.Cardizer.fsproj" />
</ItemGroup>

</Project>
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
namespace Dedge.Cardizer.Diverse
namespace DEdge.Cardizer.Diverse

open Diverse
open Dedge
open DEdge


[<System.Runtime.CompilerServices.Extension>]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace Dedge
namespace DEdge

open System
open System.Runtime.InteropServices
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<PropertyGroup>
<!-- General -->
<AssemblyName>Dedge.Cardizer</AssemblyName>
<AssemblyName>DEdge.Cardizer</AssemblyName>
<Description>A functional minimalist credit card randomizer to test application.</Description>
<Copyright>Copyright 2021 D-EDGE</Copyright>
<Authors>D-EDGE and contributors</Authors>
Expand All @@ -18,8 +18,8 @@
<IncludeSymbols>true</IncludeSymbols>

<!-- NuGet settings -->
<PackageId>Dedge.Cardizer</PackageId>
<PackageTags>Dedge;Cardizer;Credit;Payment;Card;Number;Visa;Generator;Randomizer;Random;Test</PackageTags>
<PackageId>DEdge.Cardizer</PackageId>
<PackageTags>DEdge;Cardizer;Credit;Payment;Card;Number;Visa;Generator;Randomizer;Random;Test</PackageTags>
<PackageReleaseNotes>https://github.com/d-edge/Cardizer/releases/</PackageReleaseNotes>
<PackageProjectUrl>https://github.com/d-edge/cardizer</PackageProjectUrl>
<PackageLicenseExpression>MIT</PackageLicenseExpression>
Expand Down Expand Up @@ -49,7 +49,7 @@
</ItemGroup>

<ItemGroup>
<Compile Include="Dedge.Cardizer.fs" />
<Compile Include="DEdge.Cardizer.fs" />
</ItemGroup>

</Project>
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace Dedge
namespace DEdge

open System
open System.Threading
Expand Down
3 changes: 1 addition & 2 deletions src/Tests/Tests.fs
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
module Tests

open Xunit
// note: we may want to move to expecto instead
open FsUnit.Xunit
open Dedge
open DEdge

let inline charToInt c = int c - 48

Expand Down
2 changes: 1 addition & 1 deletion src/Tests/Tests.fsproj
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\Dedge.Cardizer\Dedge.Cardizer.fsproj" />
<ProjectReference Include="..\DEdge.Cardizer\DEdge.Cardizer.fsproj" />
</ItemGroup>

</Project>

0 comments on commit 6824450

Please sign in to comment.