From e86dcfa431e33c2862c7bb2d038fb1c4ebae7193 Mon Sep 17 00:00:00 2001 From: jvican Date: Tue, 5 Jan 2016 20:03:36 +0100 Subject: [PATCH] pkg: change domain for importing (toml -> stoml) --- build.sbt | 2 +- src/main/scala/{toml => stoml}/TomlParser.scala | 4 ++-- src/test/scala/api/TomlParserApiSpec.scala | 2 +- src/test/scala/{toml => stoml}/ArrayTomlSpec.scala | 2 +- src/test/scala/{toml => stoml}/BooleanTomlSpec.scala | 2 +- src/test/scala/{toml => stoml}/CommentTomlGen.scala | 2 +- src/test/scala/{toml => stoml}/DateTomlSpec.scala | 2 +- src/test/scala/{toml => stoml}/NumbersTomlSpec.scala | 2 +- src/test/scala/{toml => stoml}/StringTomlSpec.scala | 2 +- src/test/scala/{toml => stoml}/TableTomlSpec.scala | 2 +- src/test/scala/{toml => stoml}/TestParserUtil.scala | 2 +- 11 files changed, 12 insertions(+), 12 deletions(-) rename src/main/scala/{toml => stoml}/TomlParser.scala (99%) rename src/test/scala/{toml => stoml}/ArrayTomlSpec.scala (98%) rename src/test/scala/{toml => stoml}/BooleanTomlSpec.scala (98%) rename src/test/scala/{toml => stoml}/CommentTomlGen.scala (95%) rename src/test/scala/{toml => stoml}/DateTomlSpec.scala (98%) rename src/test/scala/{toml => stoml}/NumbersTomlSpec.scala (98%) rename src/test/scala/{toml => stoml}/StringTomlSpec.scala (99%) rename src/test/scala/{toml => stoml}/TableTomlSpec.scala (99%) rename src/test/scala/{toml => stoml}/TestParserUtil.scala (96%) diff --git a/build.sbt b/build.sbt index 50bca2f..dd1b240 100644 --- a/build.sbt +++ b/build.sbt @@ -2,7 +2,7 @@ name := "stoml" organization := "com.github.jvican" -version := "1.1" +version := "0.1" scalaVersion := "2.11.7" diff --git a/src/main/scala/toml/TomlParser.scala b/src/main/scala/stoml/TomlParser.scala similarity index 99% rename from src/main/scala/toml/TomlParser.scala rename to src/main/scala/stoml/TomlParser.scala index 78ec18b..6ca572c 100644 --- a/src/main/scala/toml/TomlParser.scala +++ b/src/main/scala/stoml/TomlParser.scala @@ -1,4 +1,4 @@ -package toml +package stoml import scala.language.{implicitConversions, postfixOps} import java.util.{Date => JDate} @@ -147,7 +147,7 @@ trait TomlParser extends ParserUtil with TomlSymbol { } object TomlParserApi extends TomlParser { - import toml.Toml.{Node, Table, Pair} + import stoml.Toml.{Node, Table, Pair} type Key = Vector[String] diff --git a/src/test/scala/api/TomlParserApiSpec.scala b/src/test/scala/api/TomlParserApiSpec.scala index d2f5142..6db35b7 100644 --- a/src/test/scala/api/TomlParserApiSpec.scala +++ b/src/test/scala/api/TomlParserApiSpec.scala @@ -4,7 +4,7 @@ import fastparse.core.Parsed.{Failure, Success} import org.scalatest.{Matchers, FunSpec} class TomlParserApiSpec extends FunSpec with Matchers { - import toml.TomlParserApi._ + import stoml.TomlParserApi._ val smallFileTest = """best-author-ever = "Anonymous" diff --git a/src/test/scala/toml/ArrayTomlSpec.scala b/src/test/scala/stoml/ArrayTomlSpec.scala similarity index 98% rename from src/test/scala/toml/ArrayTomlSpec.scala rename to src/test/scala/stoml/ArrayTomlSpec.scala index 6589323..843e486 100644 --- a/src/test/scala/toml/ArrayTomlSpec.scala +++ b/src/test/scala/stoml/ArrayTomlSpec.scala @@ -1,4 +1,4 @@ -package toml +package stoml import org.scalacheck.Gen import org.scalatest.prop._ diff --git a/src/test/scala/toml/BooleanTomlSpec.scala b/src/test/scala/stoml/BooleanTomlSpec.scala similarity index 98% rename from src/test/scala/toml/BooleanTomlSpec.scala rename to src/test/scala/stoml/BooleanTomlSpec.scala index 238e2d2..cff68c9 100644 --- a/src/test/scala/toml/BooleanTomlSpec.scala +++ b/src/test/scala/stoml/BooleanTomlSpec.scala @@ -1,4 +1,4 @@ -package toml +package stoml import fastparse.core.Parsed.Success import org.scalacheck.Gen diff --git a/src/test/scala/toml/CommentTomlGen.scala b/src/test/scala/stoml/CommentTomlGen.scala similarity index 95% rename from src/test/scala/toml/CommentTomlGen.scala rename to src/test/scala/stoml/CommentTomlGen.scala index 0813647..29983d6 100644 --- a/src/test/scala/toml/CommentTomlGen.scala +++ b/src/test/scala/stoml/CommentTomlGen.scala @@ -1,4 +1,4 @@ -package toml +package stoml import org.scalacheck.Gen diff --git a/src/test/scala/toml/DateTomlSpec.scala b/src/test/scala/stoml/DateTomlSpec.scala similarity index 98% rename from src/test/scala/toml/DateTomlSpec.scala rename to src/test/scala/stoml/DateTomlSpec.scala index 2624501..6cca896 100644 --- a/src/test/scala/toml/DateTomlSpec.scala +++ b/src/test/scala/stoml/DateTomlSpec.scala @@ -1,4 +1,4 @@ -package toml +package stoml import org.scalacheck.Gen import org.scalatest.prop._ diff --git a/src/test/scala/toml/NumbersTomlSpec.scala b/src/test/scala/stoml/NumbersTomlSpec.scala similarity index 98% rename from src/test/scala/toml/NumbersTomlSpec.scala rename to src/test/scala/stoml/NumbersTomlSpec.scala index 61cbc08..5f654c7 100644 --- a/src/test/scala/toml/NumbersTomlSpec.scala +++ b/src/test/scala/stoml/NumbersTomlSpec.scala @@ -1,4 +1,4 @@ -package toml +package stoml import fastparse.core.Parsed.Success import org.scalacheck.Gen diff --git a/src/test/scala/toml/StringTomlSpec.scala b/src/test/scala/stoml/StringTomlSpec.scala similarity index 99% rename from src/test/scala/toml/StringTomlSpec.scala rename to src/test/scala/stoml/StringTomlSpec.scala index 92caf35..26a8521 100644 --- a/src/test/scala/toml/StringTomlSpec.scala +++ b/src/test/scala/stoml/StringTomlSpec.scala @@ -1,4 +1,4 @@ -package toml +package stoml import fastparse.core.Parsed.Success import org.scalacheck.Gen diff --git a/src/test/scala/toml/TableTomlSpec.scala b/src/test/scala/stoml/TableTomlSpec.scala similarity index 99% rename from src/test/scala/toml/TableTomlSpec.scala rename to src/test/scala/stoml/TableTomlSpec.scala index 80401e0..c905558 100644 --- a/src/test/scala/toml/TableTomlSpec.scala +++ b/src/test/scala/stoml/TableTomlSpec.scala @@ -1,4 +1,4 @@ -package toml +package stoml import org.scalacheck.Gen import org.scalatest.prop._ diff --git a/src/test/scala/toml/TestParserUtil.scala b/src/test/scala/stoml/TestParserUtil.scala similarity index 96% rename from src/test/scala/toml/TestParserUtil.scala rename to src/test/scala/stoml/TestParserUtil.scala index de4828d..6e476d9 100644 --- a/src/test/scala/toml/TestParserUtil.scala +++ b/src/test/scala/stoml/TestParserUtil.scala @@ -1,4 +1,4 @@ -package toml +package stoml import fastparse.core.Parsed import fastparse.core.Parsed.{Failure, Success}