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

Remove Kissaten dependency #234

Merged
merged 1 commit into from
Jan 22, 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
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
test/spec/fixtures/repos/*
logs
project/project
project/target
Expand Down
10 changes: 1 addition & 9 deletions hatchet.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,6 @@
"directory": "test/spec/fixtures"
},
"play": [
"heroku/scala-getting-started",
"kissaten/play-2.4.x-scala",
"kissaten/play-2.3.x-scala-sample",
"kissaten/play-2.2.x-scala-sample"
],
"sbt": [
"kissaten/sbt-minimal-scala-sample",
"kissaten/sbt-start-script-sample",
"kissaten/sbt-one-example"
"heroku/scala-getting-started"
]
}
14 changes: 1 addition & 13 deletions hatchet.lock
Original file line number Diff line number Diff line change
@@ -1,15 +1,3 @@
---
- - test/spec/fixtures/repos/play/play-2.2.x-scala-sample
- c78f3ad89aacb87b97ad7d41bdcdafffe35e6089
- - test/spec/fixtures/repos/play/play-2.3.x-scala-sample
- b6e861a555c880f3acf3995b6c12170634c365b2
- - test/spec/fixtures/repos/play/play-2.4.x-scala
- 032f37504617baea4a06c523f596f2defae50ff0
- - test/spec/fixtures/repos/play/scala-getting-started
- 9ccbc79d6e7c2f0abf152d5daf696daae87b3790
- - test/spec/fixtures/repos/sbt/sbt-minimal-scala-sample
- 92b704164a806e7a70a2237f07c5519664c7def3
- - test/spec/fixtures/repos/sbt/sbt-one-example
- 32291b4dc3219e72af320f0387706f223de864db
- - test/spec/fixtures/repos/sbt/sbt-start-script-sample
- 0e5668e7b096c62af1d54ddadc2aecaf30592840
- 7a570f070c49db6c95cb6a63f1e38aaf87a93516
15 changes: 15 additions & 0 deletions test/spec/fixtures/repos/play-2.2.x-scala-sample/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
logs
project/project
project/target
target
tmp
.history
dist
/.idea
/*.iml
/out
/.idea_modules
/.classpath
/.project
/RUNNING_PID
/.settings
4 changes: 4 additions & 0 deletions test/spec/fixtures/repos/play-2.2.x-scala-sample/README
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
This is your new Play application
=====================================

This file will be packaged with your application, when using `play dist`.
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
package controllers

import play.api._
import play.api.mvc._

object Application extends Controller {

def index = Action {
Ok(views.html.index("Your new application is ready."))
}

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
@(message: String)

@main("Welcome to Play") {

@play20.welcome(message)

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
@(title: String)(content: Html)

<!DOCTYPE html>

<html>
<head>
<title>@title</title>
<link rel="stylesheet" media="screen" href="@routes.Assets.at("stylesheets/main.css")">
<link rel="shortcut icon" type="image/png" href="@routes.Assets.at("images/favicon.png")">
<script src="@routes.Assets.at("javascripts/jquery-1.9.0.min.js")" type="text/javascript"></script>
</head>
<body>
@content
</body>
</html>
11 changes: 11 additions & 0 deletions test/spec/fixtures/repos/play-2.2.x-scala-sample/build.sbt
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
name := "sample-app"

version := "1.0-SNAPSHOT"

libraryDependencies ++= Seq(
jdbc,
anorm,
cache
)

play.Project.playScalaSettings
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
# This is the main configuration file for the application.
# ~~~~~

# Secret key
# ~~~~~
# The secret key is used to secure cryptographics functions.
# If you deploy your application to several instances be sure to use the same key!
application.secret="slC[HlwWKt/H?2_pcVqY<ls1uy66^25C7AH7IxuGq2TTA/qu?g4/E1bnZDd@0dYL"

# The application languages
# ~~~~~
application.langs="en"

# Global object class
# ~~~~~
# Define the Global object class for this application.
# Default to Global in the root package.
# application.global=Global

# Router
# ~~~~~
# Define the Router object to use for this application.
# This router will be looked up first when the application is starting up,
# so make sure this is the entry point.
# Furthermore, it's assumed your route file is named properly.
# So for an application router like `my.application.Router`,
# you may need to define a router file `conf/my.application.routes`.
# Default to Routes in the root package (and conf/routes)
# application.router=my.application.Routes

# Database configuration
# ~~~~~
# You can declare as many datasources as you want.
# By convention, the default datasource is named `default`
#
# db.default.driver=org.h2.Driver
# db.default.url="jdbc:h2:mem:play"
# db.default.user=sa
# db.default.password=""

# Evolutions
# ~~~~~
# You can disable evolutions if needed
# evolutionplugin=disabled

# Logger
# ~~~~~
# You can also configure logback (http://logback.qos.ch/),
# by providing an application-logger.xml file in the conf directory.

# Root logger:
logger.root=ERROR

# Logger used by the framework:
logger.play=INFO

# Logger provided to your application:
logger.application=DEBUG

Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Routes
# This file defines all application routes (Higher priority routes first)
# ~~~~

# Home page
GET / controllers.Application.index

# Map static resources from the /public folder to the /assets URL path
GET /assets/*file controllers.Assets.at(path="/public", file)
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
sbt.version=0.13.0
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
// Comment to get more information during initialization
logLevel := Level.Warn

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

// Use the Play sbt plugin for Play projects
addSbtPlugin("com.typesafe.play" % "sbt-plugin" % "2.2.4")
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
import org.specs2.mutable._
import org.specs2.runner._
import org.junit.runner._

import play.api.test._
import play.api.test.Helpers._

/**
* Add your spec here.
* You can mock out a whole application including requests, plugins etc.
* For more information, consult the wiki.
*/
@RunWith(classOf[JUnitRunner])
class ApplicationSpec extends Specification {

"Application" should {

"send 404 on a bad request" in new WithApplication{
route(FakeRequest(GET, "/boum")) must beNone
}

"render the index page" in new WithApplication{
val home = route(FakeRequest(GET, "/")).get

status(home) must equalTo(OK)
contentType(home) must beSome.which(_ == "text/html")
contentAsString(home) must contain ("Your new application is ready.")
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
import org.specs2.mutable._
import org.specs2.runner._
import org.junit.runner._

import play.api.test._
import play.api.test.Helpers._

/**
* add your integration spec here.
* An integration test will fire up a whole play application in a real (or headless) browser
*/
@RunWith(classOf[JUnitRunner])
class IntegrationSpec extends Specification {

"Application" should {

"work from within a browser" in new WithBrowser {

browser.goTo("http://localhost:" + port)

browser.pageSource must contain("Your new application is ready.")
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
https://codon-buildpacks.s3.amazonaws.com/buildpacks/jkutner/scala.tgz?foo=bar
16 changes: 16 additions & 0 deletions test/spec/fixtures/repos/play-2.3.x-scala-sample/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
logs
project/project
project/target
target
tmp
.history
dist
/.idea
/*.iml
/out
/.idea_modules
/.classpath
/.project
/RUNNING_PID
/.settings
hk-debug
8 changes: 8 additions & 0 deletions test/spec/fixtures/repos/play-2.3.x-scala-sample/LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
This software is licensed under the Apache 2 license, quoted below.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this project except in compliance with
the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific
language governing permissions and limitations under the License.
4 changes: 4 additions & 0 deletions test/spec/fixtures/repos/play-2.3.x-scala-sample/README
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
This is your new Play application
=================================

This file will be packaged with your application, when using `activator dist`.
Loading