Skip to content

Commit

Permalink
Merge pull request #231 from kevin-lee/task/230/replace-DecVer-with-D…
Browse files Browse the repository at this point in the history
…ecVerExt

Close #230 - Replace `DecVer` with `DecVerExt`, and rename `DecVerExt` to `DecVer`
  • Loading branch information
kevin-lee authored Aug 25, 2024
2 parents 6407806 + b29d2f6 commit b62c657
Show file tree
Hide file tree
Showing 30 changed files with 2,805 additions and 3,204 deletions.

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package just.semver

import just.Common._
import just.decver.DecVer
//import just.decver.DecVer
import just.semver.AdditionalInfo.{BuildMetaInfo, PreRelease}
import just.semver.SemVer.{Major, Minor, Patch}
import just.semver.matcher.SemVerMatchers
Expand Down Expand Up @@ -93,7 +93,7 @@ object SemVer {
.unsafeParse(semVerMatchers)
.matches(semVer)

def toDecVer: DecVer = DecVer.fromSemVer(semVer)
// def toDecVer: DecVer = DecVer.fromSemVer(semVer)
}

def majorMinorPatch(semVer: SemVer): (SemVer.Major, SemVer.Minor, SemVer.Patch) =
Expand Down Expand Up @@ -177,7 +177,7 @@ object SemVer {
def increasePatch(semVer: SemVer): SemVer =
semVer.copy(patch = Patch(semVer.patch.value + 1))

def fromDecVer(decVer: DecVer): SemVer =
SemVer.semVer(SemVer.Major(decVer.major.value), SemVer.Minor(decVer.minor.value), patch0)
// def fromDecVer(decVer: DecVer): SemVer =
// SemVer.semVer(SemVer.Major(decVer.major.value), SemVer.Minor(decVer.minor.value), patch0)

}

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package just.semver

import just.Common.*
import just.decver.DecVer
//import just.decver.DecVer
import just.semver.AdditionalInfo.{BuildMetaInfo, PreRelease}
import just.semver.SemVer.{Major, Minor, Patch}
import just.semver.matcher.SemVerMatchers
Expand Down Expand Up @@ -130,7 +130,7 @@ object SemVer {
.unsafeParse(semVerMatchers)
.matches(semVer)

def toDecVer: DecVer = DecVer.fromSemVer(semVer)
// def toDecVer: DecVer = DecVer.fromSemVer(semVer)

}

Expand Down Expand Up @@ -197,7 +197,7 @@ object SemVer {
def increasePatch(semVer: SemVer): SemVer =
semVer.copy(patch = Patch(semVer.patch.value + 1))

def fromDecVer(decVer: DecVer): SemVer =
SemVer.semVer(SemVer.Major(decVer.major.value), SemVer.Minor(decVer.minor.value), patch0)
// def fromDecVer(decVer: DecVer): SemVer =
// SemVer.semVer(SemVer.Major(decVer.major.value), SemVer.Minor(decVer.minor.value), patch0)

}
Loading

0 comments on commit b62c657

Please sign in to comment.