Skip to content

Commit 254b2e2

Browse files
authored
Merge pull request #162 from joriscode/backport
chore!: Update versions
2 parents f04b523 + 64d7f0a commit 254b2e2

File tree

80 files changed

+411
-235
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

80 files changed

+411
-235
lines changed

.github/workflows/cli.yml

Lines changed: 21 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,44 @@
11
name: CI
22
on:
3+
workflow_dispatch:
34
push:
4-
branches: [master]
55
pull_request:
6-
branches: [master]
76

87
jobs:
8+
pre_job:
9+
name: Skip Duplicate Actions
10+
runs-on: ubuntu-latest
11+
outputs:
12+
should_skip: ${{ steps.skip_check.outputs.should_skip }}
13+
steps:
14+
- id: skip_check
15+
uses: fkirc/skip-duplicate-actions@v5
16+
with:
17+
skip_after_successful_duplicate: 'true'
18+
919
test:
20+
needs: pre_job
21+
if: needs.pre_job.outputs.should_skip != 'true'
1022
strategy:
1123
fail-fast: false
1224
matrix:
1325
os : [ubuntu-latest]
14-
scala: [2.12.15, 2.13.6]
26+
scala: [2.12.20, 2.13.16]
1527
platform: [jvm, js]
16-
java : [8, 11]
28+
java : [8, 21]
1729
runs-on: ${{ matrix.os }}
1830
steps:
1931
- name: Checkout
20-
uses: actions/checkout@v2
32+
uses: actions/checkout@v4
2133

2234
- name: Setup
23-
uses: olafurpg/setup-scala@v13
35+
uses: coursier/setup-action@v1
2436
with:
25-
java-version: "adopt@1.${{ matrix.java }}"
37+
jvm: "temurin:${{ matrix.java }}"
38+
apps: sbt
2639

2740
- name: Cache
28-
uses: coursier/cache-action@v5
41+
uses: coursier/cache-action@v6
2942

3043
- name: Test JVM
3144
if: matrix.platform == 'jvm'

.gitignore

Lines changed: 10 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,15 @@
1-
*.class
2-
*.log
3-
4-
# sbt specific
5-
.cache/
6-
.history/
7-
.lib/
8-
dist/*
9-
target/
10-
lib_managed/
11-
src_managed/
12-
project/boot/
13-
project/plugins/project/
14-
.bsp
15-
16-
# Scala-IDE specific
17-
.scala_dependencies
18-
.worksheet
1+
# IDE and other personal preferences go to a global gitignore or .git/info/exclude
192

20-
# Misc. analysis tools
21-
.ensime
22-
.ensime_cache
3+
# Scala ecosystem
234
.bloop
5+
.bsp
246
.metals
7+
project/boot/
8+
project/plugins/project/
9+
target/
2510

26-
# Intellij
27-
.idea/
28-
*.iml
29-
*.iws
30-
31-
# Mac
32-
.DS_Store
33-
34-
# Auto-generated files
11+
# Project
12+
## generated files
13+
.scalafix.conf
3514
.scalafmt.conf
36-
scalastyle-config.xml
15+
*.log

.jvmopts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,6 @@
44
-Dfile.encoding=UTF8
55
-Xms1G
66
-Xmx13G
7-
-XX:MaxPermSize=512M
87
-XX:ReservedCodeCacheSize=250M
98
-XX:+TieredCompilation
109
-XX:-UseGCOverheadLimit
11-
# effectively adds GC to Perm space
12-
-XX:+CMSClassUnloadingEnabled
13-
# must be enabled for CMSClassUnloadingEnabled to work
14-
-XX:+UseConcMarkSweepGC

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
# kantan.regex
22

3-
[![Build Status](https://travis-ci.org/nrinaudo/kantan.regex.svg?branch=master)](https://travis-ci.org/nrinaudo/kantan.regex)
4-
[![Maven Central](https://maven-badges.herokuapp.com/maven-central/com.nrinaudo/kantan.regex_2.13/badge.svg)](https://maven-badges.herokuapp.com/maven-central/com.nrinaudo/kantan.regex_2.13)
3+
[![Build Status](https://github.com/nrinaudo/kantan.regex/actions/workflows/cli.yml/badge.svg?branch=master)](https://github.com/nrinaudo/kantan.regex/actions/workflows/cli.yml?branch=master)
4+
[![kantan.regex Scala version support](https://index.scala-lang.org/nrinaudo/kantan.regex/kantan.regex/latest-by-scala-version.svg?platform=jvm)](https://index.scala-lang.org/nrinaudo/kantan.regex/kantan.regex)
5+
[![kantan.regex Scala version support](https://index.scala-lang.org/nrinaudo/kantan.regex/kantan.regex/latest-by-scala-version.svg?platform=sjs1)](https://index.scala-lang.org/nrinaudo/kantan.regex/kantan.regex)
56
[![Join the chat at https://gitter.im/nrinaudo/kantan.regex](https://img.shields.io/badge/gitter-join%20chat-52c435.svg)](https://gitter.im/nrinaudo/kantan.regex)
67

78
There are two main use-cases for regular expressions:

cats/shared/src/main/scala/kantan/regex/cats/package.scala

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,15 +16,18 @@
1616

1717
package kantan.regex
1818

19-
import _root_.cats.{Eq, Functor}
20-
import kantan.codecs.cats.{CommonInstances, DecoderInstances}
19+
import _root_.cats.Eq
20+
import _root_.cats.Functor
21+
import kantan.codecs.cats.CommonInstances
22+
import kantan.codecs.cats.DecoderInstances
2123

2224
package object cats extends DecoderInstances with CommonInstances {
2325
// - Regex instances -------------------------------------------------------------------------------------------------
2426
// -------------------------------------------------------------------------------------------------------------------
2527

2628
implicit val regexFunctor: Functor[Regex] = new Functor[Regex] {
27-
override def map[A, B](fa: Regex[A])(f: A => B) = fa.map(f)
29+
override def map[A, B](fa: Regex[A])(f: A => B) =
30+
fa.map(f)
2831
}
2932

3033
// - Eq instances ----------------------------------------------------------------------------------------------------

cats/shared/src/test/scala/kantan/regex/cats/DecoderTests.scala

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,11 @@ package kantan.regex.cats
1919
import cats.Eq
2020
import cats.data.EitherT
2121
import cats.instances.all._
22-
import cats.laws.discipline.{MonadErrorTests, SemigroupKTests}
22+
import cats.laws.discipline.MonadErrorTests
23+
import cats.laws.discipline.SemigroupKTests
2324
import cats.laws.discipline.SemigroupalTests.Isomorphisms
24-
import kantan.regex.{DecodeError, GroupDecoder}
25+
import kantan.regex.DecodeError
26+
import kantan.regex.GroupDecoder
2527
import kantan.regex.cats.arbitrary._
2628
import kantan.regex.cats.equality._
2729
import kantan.regex.laws.discipline.DisciplineSuite

cats/shared/src/test/scala/kantan/regex/cats/ErrorTests.scala

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,9 @@ package kantan.regex.cats
1818

1919
import cats.Show
2020
import cats.kernel.laws.discipline.EqTests
21-
import kantan.regex.{CompileError, DecodeError, RegexError}
21+
import kantan.regex.CompileError
22+
import kantan.regex.DecodeError
23+
import kantan.regex.RegexError
2224
import kantan.regex.cats.arbitrary._
2325
import kantan.regex.laws.discipline.DisciplineSuite
2426

cats/shared/src/test/scala/kantan/regex/cats/equality.scala

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,9 @@ import kantan.regex.Regex
2222

2323
object equality extends kantan.codecs.cats.laws.discipline.EqInstances {
2424

25-
implicit def eqRegex[A: Eq]: Eq[Regex[A]] = Eq.by { regex => (str: String) =>
26-
regex.eval(str).toList
27-
}
25+
implicit def eqRegex[A: Eq]: Eq[Regex[A]] =
26+
Eq.by { regex => (str: String) =>
27+
regex.eval(str).toList
28+
}
2829

2930
}

core/jvm/src/main/scala/kantan/regex/PlatformSpecificInstances.scala

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,12 @@
1616

1717
package kantan.regex
1818

19+
import kantan.codecs.strings.StringDecoder
20+
1921
import java.text.DateFormat
2022
import java.util.Date
21-
import kantan.codecs.strings.StringDecoder
2223

2324
trait PlatformSpecificInstances {
24-
def dateDecoder(format: DateFormat): GroupDecoder[Date] = codecs.fromString(StringDecoder.dateDecoder(format))
25+
def dateDecoder(format: DateFormat): GroupDecoder[Date] =
26+
codecs.fromString(StringDecoder.dateDecoder(format))
2527
}

core/jvm/src/test/scala/kantan/regex/DateDecoderTests.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ package kantan.regex
1818

1919
import java.text.SimpleDateFormat
2020
import java.util.{Date, Locale}
21-
import kantan.codecs.strings.{StringCodec}
21+
import kantan.codecs.strings.StringCodec
2222
import kantan.regex.laws.discipline.{DisciplineSuite, GroupDecoderTests, MatchDecoderTests}
2323
import kantan.regex.laws.discipline.arbitrary._
2424

0 commit comments

Comments
 (0)