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

Build: Update dependencies #4

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
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
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Leaf
[![Build Status](https://travis-ci.org/sparsetech/leaf.svg)](https://travis-ci.org/sparsetech/leaf)
[![Build Status](https://travis-ci.org/sparsetech/leaf.svg?branch=master)](https://travis-ci.org/sparsetech/leaf)
[![Join the chat at https://gitter.im/sparsetech/leaf](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/sparsetech/leaf?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
[![Maven Central](https://img.shields.io/maven-central/v/tech.sparse/leaf-core_2.12.svg)](http://search.maven.org/#search%7Cga%7C1%7Cg%3A%22tech.sparse%22%20AND%20a%3A%22leaf-core_2.12%22)

Expand Down
10 changes: 5 additions & 5 deletions build.sbt
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
val Pine = "0.1.5"
val Circe = "0.11.1"
val FlexMark = "0.50.32"
val Pine = "0.1.7"
val Circe = "0.13.0"
val FlexMark = "0.62.2"
val FastParse = "1.0.1"
val ScalaTest = "3.0.8"
val SourceCode = "0.1.7"
val ScalaTest = "3.2.2"
val SourceCode = "0.2.1"

name := "leaf"

Expand Down
18 changes: 9 additions & 9 deletions build212.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,35 +9,35 @@ root = "."
targets = ["jvm"]
sources = ["shared/src/"]
scalaDeps = [
["io.circe", "circe-core" , "0.11.1"],
["io.circe", "circe-generic", "0.11.1"],
["io.circe", "circe-parser" , "0.11.1"]
["io.circe", "circe-core" , "0.13.0"],
["io.circe", "circe-generic", "0.13.0"],
["io.circe", "circe-parser" , "0.13.0"]
]

[module.leaf-core.jvm]
moduleDeps = ["leaf", "leaf-notebook"]
root = "core"
sources = ["core/src/main/scala"]
scalaDeps = [
["tech.sparse" , "pine" , "0.1.5"],
["tech.sparse" , "pine" , "0.1.7"],
["org.scalameta", "fastparse", "1.0.1"]
]
javaDeps = [
["com.vladsch.flexmark", "flexmark" , "0.50.32"],
["com.vladsch.flexmark", "flexmark-ext-tables" , "0.50.32"],
["com.vladsch.flexmark", "flexmark-ext-footnotes", "0.50.32"]
["com.vladsch.flexmark", "flexmark" , "0.62.2"],
["com.vladsch.flexmark", "flexmark-ext-tables" , "0.62.2"],
["com.vladsch.flexmark", "flexmark-ext-footnotes", "0.62.2"]
]

[module.leaf-core.test.jvm]
sources = ["core/src/test/scala"]
scalaDeps = [
["org.scalatest" , "scalatest" , "3.0.8"]
["org.scalatest", "scalatest", "3.2.2"]
]

[module.leaf-notebook.jvm]
moduleDeps = ["leaf"]
root = "notebook"
sources = ["notebook/src/main/scala"]
scalaDeps = [
["com.lihaoyi", "sourcecode", "0.1.7"]
["com.lihaoyi", "sourcecode", "0.2.1"]
]
7 changes: 5 additions & 2 deletions core/src/main/scala/leaf/markdown/Reader.scala
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import com.vladsch.flexmark.ext.footnotes.{
import com.vladsch.flexmark.ext.tables._
import com.vladsch.flexmark.parser.Parser
import com.vladsch.flexmark.util.data.MutableDataSet
import com.vladsch.flexmark.util.misc.Extension
import com.vladsch.flexmark.util.sequence.BasedSequence
import leaf._
import leaf.notebook.TextHelpers
Expand Down Expand Up @@ -254,8 +255,10 @@ class Reader(treeBase: NodeType.TreeBase) {
val options = new MutableDataSet()
.set(
Parser.EXTENSIONS,
java.util.Arrays
.asList(TablesExtension.create, FootnoteExtension.create)
java.util.Arrays.asList(
TablesExtension.create(),
FootnoteExtension.create()
): java.util.Collection[Extension]
)
val parser = Parser.builder(options).build
val document = parser.parse(input)
Expand Down
4 changes: 2 additions & 2 deletions core/src/test/scala/leaf/StructureSpec.scala
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package leaf

import org.scalatest.FunSuite
import org.scalatest.funsuite.AnyFunSuite

class StructureSpec extends FunSuite {
class StructureSpec extends AnyFunSuite {
test("tree() (1)") {
val structure = Structure.tree(
NodeType.Chapter,
Expand Down
4 changes: 2 additions & 2 deletions core/src/test/scala/leaf/TagSetSpec.scala
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package leaf

import org.scalatest.FunSuite
import org.scalatest.funsuite.AnyFunSuite

class TagSetSpec extends FunSuite {
class TagSetSpec extends AnyFunSuite {
test("Code") {
assert(
TagSet
Expand Down
9 changes: 4 additions & 5 deletions core/src/test/scala/leaf/WriterSpec.scala
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package leaf

import org.scalatest.FunSuite
import org.scalatest.funsuite.AnyFunSuite

class WriterSpec extends FunSuite {
class WriterSpec extends AnyFunSuite {
test("Generate link") {
val url = Node(
NodeType.Url("http://google.com/"),
Expand All @@ -27,7 +27,7 @@ class WriterSpec extends FunSuite {
assert(
html.Writer.node(list) == List(
pine.tag.Ol
.start("1")
.start(1)
.set(List(pine.tag.Li.set("Item 1"), pine.tag.Li.set("Item 2")))
)
)
Expand Down Expand Up @@ -134,9 +134,8 @@ class WriterSpec extends FunSuite {
pine.tag.Div
.id("test")
.set(
// TODO Ol.start should be integer
pine.tag.Ol
.start("1")
.start(1)
.set(List(pine.tag.Li.set("Item 1"), pine.tag.Li.set("Item 2")))
)
)
Expand Down
4 changes: 2 additions & 2 deletions core/src/test/scala/leaf/markdown/ReaderSpec.scala
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package leaf.markdown

import leaf.{Node, NodeType}
import org.scalatest.FunSuite
import org.scalatest.funsuite.AnyFunSuite

class ReaderSpec extends FunSuite {
class ReaderSpec extends AnyFunSuite {
test("Bold") {
assert(
Reader.parse("**Hello**") == List(
Expand Down
4 changes: 2 additions & 2 deletions core/src/test/scala/leaf/markdown/TagParserSpec.scala
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ import scala.meta.internal.fastparse.core.Parsed
import leaf.NodeType

import scala.util.{Failure, Success, Try}
import org.scalatest.FunSuite
import org.scalatest.funsuite.AnyFunSuite

class TagParserSpec extends FunSuite {
class TagParserSpec extends AnyFunSuite {
def parse(input: String): Try[List[NodeType.Tag]] =
TagParser.tags.parse(input) match {
case Parsed.Success(value, _) => Success(value)
Expand Down
4 changes: 2 additions & 2 deletions core/src/test/scala/leaf/pipeline/ListingsSpec.scala
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ package leaf.pipeline

import leaf.notebook.ListingResult
import leaf.{Node, NodeType}
import org.scalatest.FunSuite
import org.scalatest.funsuite.AnyFunSuite

class ListingsSpec extends FunSuite {
class ListingsSpec extends AnyFunSuite {
test("embed()") {
val result = Listings.embed(
Node(NodeType.Listing(id = Some("print"))),
Expand Down
4 changes: 2 additions & 2 deletions core/src/test/scala/leaf/pipeline/SetIdsSpec.scala
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
package leaf.pipeline

import org.scalatest.FunSuite
import org.scalatest.funsuite.AnyFunSuite

import leaf._

class SetIdsSpec extends FunSuite {
class SetIdsSpec extends AnyFunSuite {
test("Set IDs") {
val nodes = List(
Node(NodeType.Section, List(Node(NodeType.Text("Section 1")))),
Expand Down