From b3d95c549522a294214dd143fb7dfe1cfca4f60e Mon Sep 17 00:00:00 2001 From: Devashish Date: Tue, 19 Aug 2014 13:26:49 +0530 Subject: [PATCH 1/7] Update shippable.yml --- shippable.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/shippable.yml b/shippable.yml index e77b63a..c418f98 100755 --- a/shippable.yml +++ b/shippable.yml @@ -7,6 +7,7 @@ addons: postgresql: "9.3" before_script: + - ps -eaf - psql -c 'DROP DATABASE IF EXISTS test' -U postgres - psql -c 'CREATE DATABASE test;' -U postgres From 7ee400e00f80f9619ab8d4d06cb949f1a0383bb0 Mon Sep 17 00:00:00 2001 From: Devashish Date: Thu, 28 Aug 2014 11:09:49 +0530 Subject: [PATCH 2/7] Update Hello.scala --- src/main/scala/com/shippable/Hello.scala | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/scala/com/shippable/Hello.scala b/src/main/scala/com/shippable/Hello.scala index 5efe3c6..3f6c2eb 100755 --- a/src/main/scala/com/shippable/Hello.scala +++ b/src/main/scala/com/shippable/Hello.scala @@ -10,7 +10,7 @@ import scala.concurrent.{Await, Future} class HelloWorld { def returnValue(): String= { - val configuration = URLParser.parse("jdbc:postgresql://localhost:5233/test?user=postgres") + val configuration = URLParser.parse("jdbc:postgresql://localhost:5432/test?user=postgres") val connection: Connection = new PostgreSQLConnection(configuration) var finalResult = "" @@ -30,4 +30,4 @@ class HelloWorld { connection.disconnect return finalResult } -} \ No newline at end of file +} From f51dc4b198d9f0c15196f107efeb90f84f98b566 Mon Sep 17 00:00:00 2001 From: Devashish Date: Thu, 28 Aug 2014 12:42:22 +0530 Subject: [PATCH 3/7] Create pg.sql --- pg.sql | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 pg.sql diff --git a/pg.sql b/pg.sql new file mode 100644 index 0000000..f5c0142 --- /dev/null +++ b/pg.sql @@ -0,0 +1,9 @@ +DROP DATABASE IF EXISTS test; +CREATE DATABASE test; +\connect test; +CREATE TABLE users +( + username character varying(255) NOT NULL, + email character varying(255) NOT NULL +); +INSERT INTO users (username, email) values ('lindsaybluth', 'lindsay@bluth.com'); From a02fda450e072cead7b2815f6604c7da39a68fab Mon Sep 17 00:00:00 2001 From: Devashish Date: Thu, 28 Aug 2014 12:43:06 +0530 Subject: [PATCH 4/7] Update shippable.yml --- shippable.yml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/shippable.yml b/shippable.yml index c418f98..b2e7769 100755 --- a/shippable.yml +++ b/shippable.yml @@ -7,9 +7,7 @@ addons: postgresql: "9.3" before_script: - - ps -eaf - - psql -c 'DROP DATABASE IF EXISTS test' -U postgres - - psql -c 'CREATE DATABASE test;' -U postgres + - psql -U postgres -f pg.sql script: - export SBT_OPTS="-XX:+CMSClassUnloadingEnabled -XX:PermSize=256M -XX:MaxPermSize=512M" From 170040f08c47f2b7dec616a17ba7fb9a93692c8a Mon Sep 17 00:00:00 2001 From: Devashish Date: Thu, 28 Aug 2014 12:47:28 +0530 Subject: [PATCH 5/7] Update Hello.scala --- src/main/scala/com/shippable/Hello.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/scala/com/shippable/Hello.scala b/src/main/scala/com/shippable/Hello.scala index 3f6c2eb..7d04a96 100755 --- a/src/main/scala/com/shippable/Hello.scala +++ b/src/main/scala/com/shippable/Hello.scala @@ -21,7 +21,7 @@ class HelloWorld { val mapResult: Future[Any] = future.map(queryResult => queryResult.rows match { case Some(resultSet) => { val row : RowData = resultSet.head - finalResult = row(2).toString + finalResult = row(1).toString } case None => -1 } From 1e439aea7a1171d36b2883120254b66b9662f91c Mon Sep 17 00:00:00 2001 From: Devashish Date: Thu, 28 Aug 2014 13:50:12 +0530 Subject: [PATCH 6/7] Update Hello.scala --- src/main/scala/com/shippable/Hello.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/scala/com/shippable/Hello.scala b/src/main/scala/com/shippable/Hello.scala index 7d04a96..24b69ed 100755 --- a/src/main/scala/com/shippable/Hello.scala +++ b/src/main/scala/com/shippable/Hello.scala @@ -10,7 +10,7 @@ import scala.concurrent.{Await, Future} class HelloWorld { def returnValue(): String= { - val configuration = URLParser.parse("jdbc:postgresql://localhost:5432/test?user=postgres") + val configuration = URLParser.parse("jdbc:postgresql://localhost:5432/test?user=postgres&password=") val connection: Connection = new PostgreSQLConnection(configuration) var finalResult = "" From babe262992669ab147d39c8c9b86292bc1b010e6 Mon Sep 17 00:00:00 2001 From: Devashish Date: Thu, 28 Aug 2014 14:27:00 +0530 Subject: [PATCH 7/7] Update build.sbt --- build.sbt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build.sbt b/build.sbt index 277d68f..738d755 100755 --- a/build.sbt +++ b/build.sbt @@ -21,7 +21,7 @@ testOptions in Test <+= (target in Test) map { instrumentSettings -ScoverageKeys.minimumCoverage := 70 +ScoverageKeys.minimumCoverage := 60 ScoverageKeys.failOnMinimumCoverage := false pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy