Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

release v0.10.8 -- update version references #4

Merged
merged 8 commits into from
Feb 23, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions .github/workflows/dependency-graph.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# .github/workflows/dependency-graph.yml
name: Update Dependency Graph
on:
workflow_dispatch:
push:
branches:
- main # default branch of the project
jobs:
dependency-graph:
name: Update Dependency Graph
permissions:
actions: read
contents: write # this permission is needed to submit the dependency graph
security-events: write
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: scalacenter/sbt-dependency-submission@v2
with:
working-directory: .
configs-ignore: scala-doc-tool
8 changes: 3 additions & 5 deletions .github/workflows/scala.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,9 @@ name: Scala CI
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]

permissions:
contents: read
contents: write

jobs:
build:
Expand All @@ -30,5 +28,5 @@ jobs:
- name: Run tests
run: sbt test
# Optional: This step uploads information to the GitHub dependency graph and unblocking Dependabot alerts for the repository
# - name: Upload dependency graph
# uses: scalacenter/sbt-dependency-submission@ab086b50c947c9774b70f39fc7f6e20ca2706c91
# - name: Sbt Dependency Submission
# uses: scalacenter/sbt-dependency-submission@v2.3.0
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ Provides support for expressive idioms typical of scripting languages, for writi

To use `pallet` in an `SBT` project, add this dependency to `build.sbt`
```sbt
"org.vastblue" % "pallet_3" % "0.10.6"
"org.vastblue" % "pallet_3" % "0.10.8"
```
For `scala` or `scala-cli` scripts, see examples below.

Expand All @@ -35,7 +35,7 @@ Simplicity and Universal Portability:
```scala
#!/usr/bin/env -S scala-cli shebang

//> using lib "org.vastblue::pallet::0.10.6"
//> using lib "org.vastblue::pallet::0.10.8"
import vastblue.pallet.*

printf("uname / osType / osName:\n%s\n", s"platform info: ${unameLong} / ${osType} / ${osName}")
Expand Down Expand Up @@ -226,7 +226,7 @@ Some differences to be aware of between `scala-cli` scripts and conventional `sc
For a per-user classpath `atFile`, define your classpath in a file named, e.g., `/Users/username/.scala3cp`.
To include the `scala3` version of this library, for example, the `@file` might contain:
```
-classpath /Users/username/.ivy2/local/org.vastblue/pallet_3/0.10.6/jars/pallet_3.jar
-classpath /Users/username/.ivy2/local/org.vastblue/pallet_3/0.10.8/jars/pallet_3.jar
```
With this configuration, your scala 3 `shebang` line will look like this:
```scala
Expand Down Expand Up @@ -265,7 +265,7 @@ object Fstab {
#!/ usr / bin / env -S scala -cli shebang

//> using scala "3.3.1"
//> using lib "org.vastblue::pallet::0.10.6"
//> using lib "org.vastblue::pallet::0.10.8"

import vastblue.pallet.*
import vastblue.Platform.*
Expand Down Expand Up @@ -297,7 +297,7 @@ Note that on Darwin, there is no `/etc/fstab` file, so the `Path#lines` extensio
#!/usr/bin/env -S scala-cli shebang

//> using scala "3.3.1"
//> using lib "org.vastblue::pallet::0.10.6"
//> using lib "org.vastblue::pallet::0.10.8"

import vastblue.pallet.*

Expand Down
9 changes: 4 additions & 5 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ javacOptions ++= Seq("-source", "11", "-target", "11")

//ThisBuild / envFileName := "dev.env" // sbt-dotenv plugin gets build environment here
ThisBuild / scalaVersion := scalaVer
ThisBuild / version := "0.10.6"
ThisBuild / version := "0.10.8"
ThisBuild / versionScheme := Some("semver-spec")

ThisBuild / organization := "org.vastblue"
Expand Down Expand Up @@ -68,13 +68,12 @@ lazy val root = (project in file(".")).
)

libraryDependencies ++= Seq(
"org.simpleflatmapper" % "sfm-csv-jre6" % "8.2.3",
"org.simpleflatmapper" % "sfm-csv" % "8.2.3",
"com.github.sbt" % "junit-interface" % "0.13.3" % Test,
"org.scalatest" %% "scalatest" % "3.2.17" % Test,
"org.scalacheck" %% "scalacheck" % "1.17.0" % Test,
"io.github.chronoscala" %% "chronoscala" % "2.0.10",
"org.vastblue" % "unifile_3" % "0.3.0",
"com.github.sisyphsu" % "dateparser" % "1.0.11",
"org.vastblue" % "unifile_3" % "0.3.1",
//"com.github.sisyphsu" % "dateparser" % "1.0.11",
)

/*
Expand Down
2 changes: 1 addition & 1 deletion jsrc/bashPath.sc
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
//package vastblue.demo

//> using scala "3.3.1"
//> using lib "org.vastblue::pallet::0.10.7"
//> using lib "org.vastblue::pallet::0.10.8"

import vastblue.pallet.*

Expand Down
2 changes: 1 addition & 1 deletion jsrc/bashPathCli.sc
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/env -S scala-cli shebang

//> using scala "3.3.1"
//> using lib "org.vastblue::pallet::0.10.7"
//> using lib "org.vastblue::pallet::0.10.8"

import vastblue.pallet.*

Expand Down
2 changes: 1 addition & 1 deletion jsrc/fstabCli.sc
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

//> using scala "3.3.1"
//> using lib "org.vastblue::unifile::0.3.1"
//> using lib "org.vastblue::pallet::0.10.7"
//> using lib "org.vastblue::pallet::0.10.8"

//import vastblue.pallet.*
import vastblue.unifile.*
Expand Down
2 changes: 1 addition & 1 deletion jsrc/palletRef.sc
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/env -S scala-cli shebang

//> using scala "3.3.1"
//> using lib "org.vastblue::pallet::0.10.7"
//> using lib "org.vastblue::pallet::0.10.8"

import vastblue.pallet._

Expand Down
2 changes: 1 addition & 1 deletion jsrc/palletRefCli.sc
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/env -S scala-cli shebang

//> using scala "3.3.1"
//> using lib "org.vastblue::pallet::0.10.7"
//> using lib "org.vastblue::pallet::0.10.8"

import vastblue.pallet.*

Expand Down
6 changes: 3 additions & 3 deletions jsrc/sbt2cs.sc
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import vastblue.unifile.*
*
* from:
* org.vastblue %% unifile % 0.3.1
* org.vastblue %% pallet % 0.10.7
* org.vastblue %% pallet % 0.10.8
* org.scalanlp %% breeze-viz % 2.1.0
* org.scalanlp %% breeze % 2.1.0
* org.scala-lang.modules %% scala-xml % 2.2.0
Expand All @@ -23,7 +23,7 @@ import vastblue.unifile.*
* com.github.darrenjw %% scala-glm % 0.8
*
* to:
* //> using dep "org.vastblue::pallet::0.10.7"
* //> using dep "org.vastblue::pallet::0.10.8"
* //> using dep "org.vastblue::unifile::0.3.1"
* //> using dep "org.scalanlp::breeze-viz::2.1.0"
* //> using dep "org.scalanlp::breeze::2.1.0"
Expand Down Expand Up @@ -86,7 +86,7 @@ com.github.darrenjw %% scala-glm % 0.8
org.scala-lang.modules %% scala-swing % 3.0.0
net.ruippeixotog %% scala-scraper % 3.1.1
org.vastblue %% unifile % 0.3.1
org.vastblue %% pallet % 0.10.7
org.vastblue %% pallet % 0.10.8
""".trim.split("[\r\n]+").toList.filter { _.nonEmpty }

def parseArgs(args: Seq[String]): Unit = {
Expand Down
2 changes: 1 addition & 1 deletion jsrc/unameGreeting.sc
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/env -S scala

//> using scala "3.3.1"
//> using lib "org.vastblue::pallet::0.10.7"
//> using lib "org.vastblue::pallet::0.10.8"

import vastblue.pallet.*

Expand Down
2 changes: 2 additions & 0 deletions project/plugins.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ addSbtPlugin("com.github.sbt" % "sbt-dynver" % "5.0.1")
addSbtPlugin("com.eed3si9n" % "sbt-buildinfo" % "0.11.0")
addSbtPlugin("com.github.sbt" % "sbt-pgp" % "2.2.1")

addDependencyTreePlugin

libraryDependencies += "org.scala-sbt" %% "scripted-plugin" % sbtVersion.value

//resolvers += Resolver.sonatypeRepo("snapshots")
Expand Down
Loading