Skip to content

Commit

Permalink
Merge pull request #383 from tminglei/pg10
Browse files Browse the repository at this point in the history
Pg10
  • Loading branch information
tminglei authored Jan 5, 2018
2 parents 4310b35 + 24dcfce commit e014bc0
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 28 deletions.
13 changes: 7 additions & 6 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ dist: trusty
sudo: required
language: scala
scala:
- 2.11.11
- 2.11.12
- 2.12.4
jdk:
- oraclejdk8
Expand All @@ -13,14 +13,15 @@ before_install:
- sudo apt-get -y remove --purge postgresql-9.3
- sudo apt-get -y remove --purge postgresql-9.4
- sudo apt-get -y remove --purge postgresql-9.5
- sudo apt-get -y remove --purge postgresql-9.6
- sudo apt-get -y autoremove
- sudo apt-key adv --keyserver keys.gnupg.net --recv-keys 7FCC7D46ACCC4CF8
- sudo sh -c 'echo "deb http://apt.postgresql.org/pub/repos/apt/ precise-pgdg main 9.6" >> /etc/apt/sources.list.d/postgresql.list'
- sudo sh -c 'echo "deb http://apt.postgresql.org/pub/repos/apt/ trusty-pgdg main 10" >> /etc/apt/sources.list.d/postgresql.list'
- sudo apt-get update
- sudo apt-get -y install postgresql-9.6 postgresql-contrib-9.6 postgresql-9.6-postgis-2.3
- sudo sh -c 'echo "local all postgres trust" > /etc/postgresql/9.6/main/pg_hba.conf'
- sudo sh -c 'echo -n "host all all 127.0.0.1/32 trust" >> /etc/postgresql/9.6/main/pg_hba.conf'
- sudo service postgresql restart 9.6
- sudo apt-get -y install postgresql-10 postgresql-contrib-10 postgresql-10-postgis-2.4
- sudo sh -c 'echo "local all postgres trust" > /etc/postgresql/10/main/pg_hba.conf'
- sudo sh -c 'echo -n "host all all 127.0.0.1/32 trust" >> /etc/postgresql/10/main/pg_hba.conf'
- sudo service postgresql restart 10
before_script:
- psql -c 'create database test;' -U postgres
- psql test -c 'CREATE EXTENSION IF NOT EXISTS hstore;' -U postgres
Expand Down
16 changes: 8 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ Slick-pg
- Pg_trgm


** _Tested on `PostgreSQL` `v9.6` with `Slick` `v3.2.1`._
** _Tested on `PostgreSQL` `v10` with `Slick` `v3.2.1`._
** _`Java 8` is required._


Expand Down Expand Up @@ -152,22 +152,22 @@ Here's the related technical details:
| List[T] | ARRAY | no 3rd party dependencies |
| `java.sql` Date <br> Time<br> Timestamp<br> slickpg Interval<br> Calendar | date<br> time<br> timestamp<br> interval<br> timestamptz | no 3rd party dependencies |
| `java.time` LocalDate<br> LocalTime<br> LocalDateTime<br> Duration<br> ZonedDateTime <br> OffsetDateTime | date<br> time<br> timestamp<br> interval<br> timestamptz <br> timestamptz | (built-in) no 3rd party dependencies |
| `joda` LocalDate<br> LocalTime<br> LocalDateTime<br> Period<br> DateTime | date<br> time<br> timestamp<br> interval<br> timestamptz | `joda-time` v2.9.7 / `joda-convert` v1.8.1 |
| `joda` LocalDate<br> LocalTime<br> LocalDateTime<br> Period<br> DateTime | date<br> time<br> timestamp<br> interval<br> timestamptz | `joda-time` v2.9.9 / `joda-convert` v1.9.2 |
| `scala` Enumeration | enum | no 3rd party dependencies |
| `slickpg` Range[T] | range | no 3rd party dependencies |
| `slickpg` LTree | ltree | no 3rd party dependencies |
| Map[String,String] | hstore | no 3rd party dependencies |
| `slickpg` InetString | inet | no 3rd party dependencies |
| `slickpg` MacAddrString | macaddr | no 3rd party dependencies |
| `slickpg` JsonString | json | no 3rd party dependencies |
| `json4s` JValue | json | `json4s` v3.5.0 |
| `play-json` JsValue | json | `play-json` v2.6.0 |
| `spray-json` JsValue | json | `spray-json` v1.3.3 |
| `argonaut json` Json | json | `argonaut` v6.2 |
| `json4s` JValue | json | `json4s` v3.5.3 |
| `play-json` JsValue | json | `play-json` v2.6.8 |
| `spray-json` JsValue | json | `spray-json` v1.3.4 |
| `argonaut json` Json | json | `argonaut` v6.2.1 |
| `circe json` Json | json | `circe` v0.9.0 |
| `jawn json` Json | json | `jawn` v0.10.4 |
| `jawn json` Json | json | `jawn` v0.11.0 |
| (TsQuery+TsVector) | `text` search | no 3rd party dependencies |
| `jts` Geometry | `postgis` geometry | `jts` v1.13 |
| `jts` Geometry | `postgis` geometry | `jts` v1.14.0 |

_**Warning:** When your work with time data that contain Timezone, be wary of your postgres configuration. By default `ZonedDateTime` in Java 8 contains more information than `timestamptz` in Postgres. As a consequence, when you store a `ZonedDateTime` you are not guaranteed to get the same timezone as the original class instance. Prefer `OffsetDateTime` instead. cf [Issue #248](https://github.com/tminglei/slick-pg/issues/248)_

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -540,7 +540,7 @@ class PgPostGISSupportSuite extends FunSuite {
val polygon = wktReader.read("POLYGON((175 150, 20 40, 50 60, 125 100, 175 150))")
val centroid = wktReader.read("POINT(113.07692307692308 101.28205128205128)")
val closetPoint = wktReader.read("POINT(84.89619377162629 86.0553633217993)")
val projectedPoint = wktReader.read("POINT(25.008969098766023 45.006362421852465)")
val projectedPoint = wktReader.read("POINT(25.008969098766034 45.006362421852465)")
val longestLine = wktReader.read("LINESTRING(175 150, 75 100)")
val shortestLine = wktReader.read("LINESTRING(84.89619377162629 86.0553633217993, 75 100)")

Expand Down Expand Up @@ -655,7 +655,7 @@ class PgPostGISSupportSuite extends FunSuite {
),
// transform
GeomTests.filter(_.id === pointbean.id.bind).map(_.geom.transform(26986.bind).asEWKT).result.head.map(
r => assert("SRID=26986;POINT(-3428094.64636768 2715245.01412978)" === r)
r => assert("SRID=26986;POINT(-3428094.64636769 2715245.01412979)" === r)
),
// simplify
GeomTests.filter(_.id === linebean.id.bind).map(_.geom.simplify(0.5f.bind).asText).result.head.map(
Expand Down
24 changes: 12 additions & 12 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ lazy val commonSettings = Seq(
organizationName := "slick-pg",
organization := "com.github.tminglei",
name := "slick-pg",
version := "0.15.4",
version := "0.15.5",

scalaVersion := "2.12.4",
crossScalaVersions := Seq("2.12.4", "2.11.11"),
crossScalaVersions := Seq("2.12.4", "2.11.12"),
scalacOptions ++= Seq("-deprecation", "-feature",
"-language:implicitConversions",
"-language:reflectiveCalls",
Expand Down Expand Up @@ -91,8 +91,8 @@ lazy val slickPgJoda = Project(id = "slick-pg_joda-time", base = file("./addons/
name := "slick-pg_joda-time",
description := "Slick extensions for PostgreSQL - joda time module",
libraryDependencies := mainDependencies(scalaVersion.value) ++ Seq(
"joda-time" % "joda-time" % "2.9.7",
"org.joda" % "joda-convert" % "1.8.1"
"joda-time" % "joda-time" % "2.9.9",
"org.joda" % "joda-convert" % "1.9.2"
)
)
) dependsOn (slickPgCore)
Expand All @@ -102,9 +102,9 @@ lazy val slickPgJson4s = Project(id = "slick-pg_json4s", base = file("./addons/j
name := "slick-pg_json4s",
description := "Slick extensions for PostgreSQL - json4s module",
libraryDependencies := mainDependencies(scalaVersion.value) ++ Seq(
"org.json4s" %% "json4s-ast" % "3.5.0",
"org.json4s" %% "json4s-core" % "3.5.0",
"org.json4s" %% "json4s-native" % "3.5.0" % "test"
"org.json4s" %% "json4s-ast" % "3.5.3",
"org.json4s" %% "json4s-core" % "3.5.3",
"org.json4s" %% "json4s-native" % "3.5.3" % "test"
)
)
) dependsOn (slickPgCore)
Expand All @@ -114,7 +114,7 @@ lazy val slickPgJts = Project(id = "slick-pg_jts", base = file("./addons/jts"),
name := "slick-pg_jts",
description := "Slick extensions for PostgreSQL - jts module",
libraryDependencies := mainDependencies(scalaVersion.value) ++ Seq(
"com.vividsolutions" % "jts" % "1.13"
"com.vividsolutions" % "jts-core" % "1.14.0"
)
)
) dependsOn (slickPgCore)
Expand All @@ -124,7 +124,7 @@ lazy val slickPgPlayJson = Project(id = "slick-pg_play-json", base = file("./add
name := "slick-pg_play-json",
description := "Slick extensions for PostgreSQL - play-json module",
libraryDependencies := mainDependencies(scalaVersion.value) ++ Seq(
"com.typesafe.play" %% "play-json" % "2.6.0"
"com.typesafe.play" %% "play-json" % "2.6.8"
)
)
) dependsOn (slickPgCore)
Expand All @@ -134,7 +134,7 @@ lazy val slickPgSprayJson = Project(id = "slick-pg_spray-json", base = file("./a
name := "slick-pg_spray-json",
description := "Slick extensions for PostgreSQL - spray-json module",
libraryDependencies := mainDependencies(scalaVersion.value) ++ Seq(
"io.spray" %% "spray-json" % "1.3.3"
"io.spray" %% "spray-json" % "1.3.4"
)
)
) dependsOn (slickPgCore)
Expand All @@ -156,7 +156,7 @@ lazy val slickPgArgonaut = Project(id = "slick-pg_argonaut", base = file("./addo
name := "slick-pg_argonaut",
description := "Slick extensions for PostgreSQL - argonaut module",
libraryDependencies := mainDependencies(scalaVersion.value) ++ Seq(
"io.argonaut" %% "argonaut" % "6.2"
"io.argonaut" %% "argonaut" % "6.2.1"
)
)
) dependsOn (slickPgCore)
Expand All @@ -166,7 +166,7 @@ lazy val slickPgJawn = Project(id = "slick-pg_jawn", base = file("./addons/jawn"
name := "slick-pg_jawn",
description := "Slick extensions for PostgreSQL - jawn module",
libraryDependencies := mainDependencies(scalaVersion.value) ++ Seq(
"org.spire-math" %% "jawn-ast" % "0.10.4"
"org.spire-math" %% "jawn-ast" % "0.11.0"
)
)
) dependsOn (slickPgCore)
Expand Down

0 comments on commit e014bc0

Please sign in to comment.