File tree Expand file tree Collapse file tree 3 files changed +11
-10
lines changed Expand file tree Collapse file tree 3 files changed +11
-10
lines changed Original file line number Diff line number Diff line change 44
44
- version : 14
45
45
46
46
pair :
47
- - elixir : 1.12
48
- otp : 24 .3
47
+ - elixir : 1.13
48
+ otp : 25 .3
49
49
include :
50
50
- pg :
51
51
version : 14
Original file line number Diff line number Diff line change @@ -93,13 +93,14 @@ defmodule Postgrex.Protocol do
93
93
{ nil , opts }
94
94
95
95
{ true , opts } ->
96
- Logger . warning (
97
- "setting ssl: true on your database connection offers only limited protection, " <>
98
- "as the server's certificate is not verified. Set \" ssl: [cacertfile: path/to/file]\" instead"
99
- )
96
+ case Keyword . pop ( opts , :ssl_opts ) do
97
+ { nil , _opts } ->
98
+ [ cacerts: :public_key . cacerts_get ( ) ] ++ default_ssl_opts ( )
100
99
101
- # Read ssl_opts for backwards compatibility
102
- Keyword . pop ( opts , :ssl_opts , [ ] )
100
+ { ssl_opts , opts } ->
101
+ Logger . warning ( ":ssl_opts is deprecated, pass opts to :ssl instead" )
102
+ { ssl_opts , opts }
103
+ end
103
104
104
105
{ ssl_opts , opts } when is_list ( ssl_opts ) ->
105
106
{ Keyword . merge ( default_ssl_opts ( ) , ssl_opts ) , opts }
Original file line number Diff line number Diff line change @@ -2,13 +2,13 @@ defmodule Postgrex.Mixfile do
2
2
use Mix.Project
3
3
4
4
@ source_url "https://github.com/elixir-ecto/postgrex"
5
- @ version "0.20.0 "
5
+ @ version "0.21.0-dev "
6
6
7
7
def project do
8
8
[
9
9
app: :postgrex ,
10
10
version: @ version ,
11
- elixir: "~> 1.11 " ,
11
+ elixir: "~> 1.13 " ,
12
12
deps: deps ( ) ,
13
13
name: "Postgrex" ,
14
14
description: "PostgreSQL driver for Elixir" ,
You can’t perform that action at this time.
0 commit comments