Skip to content

Commit

Permalink
first commit
Browse files Browse the repository at this point in the history
  • Loading branch information
edadma committed Apr 17, 2018
0 parents commit d6df8db
Show file tree
Hide file tree
Showing 11 changed files with 157 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .gitignore
@@ -0,0 +1,21 @@
*.class
*.log

# sbt specific
.cache/
.history/
.lib/
dist/*
target/
lib_managed/
src_managed/
project/boot/
project/plugins/project/

# Scala-IDE specific
.scala_dependencies
.worksheet

*~
.directory
.idea/
13 changes: 13 additions & 0 deletions .travis.yml
@@ -0,0 +1,13 @@
before_install:
- cat /etc/hosts # optionally check the content *before*
- sudo hostname "$(hostname | cut -c1-63)"
- sed -e "s/^\\(127\\.0\\.0\\.1.*\\)/\\1 $(hostname | cut -c1-63)/" /etc/hosts | sudo tee /etc/hosts
- cat /etc/hosts # optionally check the content *after*

language: scala

scala:
- 2.12.5

jdk:
- oraclejdk8
7 changes: 7 additions & 0 deletions LICENSE
@@ -0,0 +1,7 @@
ISC License (ISC)

Copyright 2018 Edward A. Maxedon, Sr.

Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies.

THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
Empty file added README.md
Empty file.
85 changes: 85 additions & 0 deletions build.sbt
@@ -0,0 +1,85 @@
name := "strftime"

version := "0.1"

scalaVersion := "2.12.5"

//crossScalaVersions := Seq( "2.11.11" )

scalacOptions ++= Seq( "-deprecation", "-feature", "-unchecked", "-language:postfixOps", "-language:implicitConversions", "-language:existentials" )

organization := "xyz.hyperreal"

//resolvers += Resolver.sonatypeRepo( "snapshots" )

resolvers += "Typesafe Repository" at "http://repo.typesafe.com/typesafe/releases/"

resolvers += "Hyperreal Repository" at "https://dl.bintray.com/edadma/maven"

libraryDependencies ++= Seq(
"org.scalatest" %% "scalatest" % "3.0.0" % "test",
"org.scalacheck" %% "scalacheck" % "1.13.4" % "test"
)

libraryDependencies ++= Seq(
// "org.scala-lang.modules" %% "scala-parser-combinators" % "1.0.6",
// "org.scala-lang.modules" %% "scala-xml" % "1.0.6"
// "org.scala-lang.modules" %% "scala-swing" % "2.0.0"
)

//libraryDependencies ++= Seq(
// "com.typesafe" % "config" % "1.3.1"
//)

libraryDependencies ++= {
val akkaV = "2.5.11"
Seq(
// "com.typesafe.akka" %% "akka-actor" % akkaV
// "com.typesafe.akka" %% "akka-remote" % akkaV,
// "com.typesafe.akka" %% "akka-testkit" % akkaV % "test",
// "org.specs2" %% "specs2-core" % "2.3.11" % "test"
)
}

//libraryDependencies ++= {
// val akka_http = "10.0.11"
// Seq(
// "com.typesafe.akka" %% "akka-http-core" % akka_http,
// "com.typesafe.akka" %% "akka-http" % akka_http,
// "com.typesafe.akka" %% "akka-http-testkit" % akka_http,
// "com.typesafe.akka" %% "akka-http-spray-json" % akka_http,
// "com.typesafe.akka" %% "akka-http-jackson" % akka_http
// )
//}

libraryDependencies ++= Seq(
)

mainClass in (Compile, run) := Some( "xyz.hyperreal." + name.value.replace('-', '_') + ".Main" )

mainClass in assembly := Some( "xyz.hyperreal." + name.value.replace('-', '_') + ".Main" )

assemblyJarName in assembly := name.value + "-" + version.value + ".jar"

publishMavenStyle := true

publishArtifact in Test := false

pomIncludeRepository := { _ => false }

licenses := Seq("ISC" -> url("https://opensource.org/licenses/ISC"))

homepage := Some(url("https://github.com/edadma/" + name.value))

pomExtra :=
<scm>
<url>git@github.com:edadma/{name.value}.git</url>
<connection>scm:git:git@github.com:edadma/{name.value}.git</connection>
</scm>
<developers>
<developer>
<id>edadma</id>
<name>Edward A. Maxedon, Sr.</name>
<url>https://github.com/edadma</url>
</developer>
</developers>
1 change: 1 addition & 0 deletions project/assembly.sbt
@@ -0,0 +1 @@
addSbtPlugin("com.eed3si9n" % "sbt-assembly" % "0.14.6")
1 change: 1 addition & 0 deletions project/build.properties
@@ -0,0 +1 @@
sbt.version=1.1.4
3 changes: 3 additions & 0 deletions project/plugins.sbt
@@ -0,0 +1,3 @@
addSbtPlugin("io.spray" % "sbt-revolver" % "0.9.1")

addSbtPlugin("org.foundweekends" % "sbt-bintray" % "0.5.3")
6 changes: 6 additions & 0 deletions src/main/scala/Main.scala
@@ -0,0 +1,6 @@
package xyz.hyperreal.strftime


object Main extends App {

}
6 changes: 6 additions & 0 deletions src/test/scala/Main.scala
@@ -0,0 +1,6 @@
package xyz.hyperreal.strftime


object Main extends App {

}
14 changes: 14 additions & 0 deletions src/test/scala/Tests.scala
@@ -0,0 +1,14 @@
package xyz.hyperreal.strftime

import org.scalatest._
import prop.PropertyChecks


class Tests extends FreeSpec with PropertyChecks with Matchers {

"tests" in {
// a [RuntimeException] should be thrownBy {interpret( """ (= 1 1] """ )}
// interpret( """ (cdr '(a)) """ ) shouldBe SNil
}

}

0 comments on commit d6df8db

Please sign in to comment.