Skip to content

Commit 70759fa

Browse files
authored
Merge pull request #164 from acrogenesis/main
Widen HTTPoison version constraint
2 parents fdc217f + d163ddd commit 70759fa

4 files changed

Lines changed: 18 additions & 13 deletions

File tree

config/test.exs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import Mix.Config
1+
import Config
22

33
config :elixir_auth_google,
44
client_id: "631770888008-6n0oruvsm16kbkqg6u76p5cv5kfkcekt.apps.googleusercontent.com",

lib/elixir_auth_google.ex

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -80,11 +80,11 @@ defmodule ElixirAuthGoogle do
8080
"""
8181
@spec generate_oauth_url(String.t()) :: String.t()
8282
def generate_oauth_url(url) when is_binary(url) do
83-
query = %{
83+
query = [
8484
client_id: google_client_id(),
85-
scope: google_scope(),
86-
redirect_uri: generate_redirect_uri(url)
87-
}
85+
redirect_uri: generate_redirect_uri(url),
86+
scope: google_scope()
87+
]
8888

8989
params = URI.encode_query(query, :rfc3986)
9090

@@ -93,11 +93,11 @@ defmodule ElixirAuthGoogle do
9393

9494
@spec generate_oauth_url(conn) :: String.t()
9595
def generate_oauth_url(conn) when is_map(conn) do
96-
query = %{
96+
query = [
9797
client_id: google_client_id(),
98-
scope: google_scope(),
99-
redirect_uri: generate_redirect_uri(conn)
100-
}
98+
redirect_uri: generate_redirect_uri(conn),
99+
scope: google_scope()
100+
]
101101

102102
params = URI.encode_query(query, :rfc3986)
103103

mix.exs

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,13 @@ defmodule ElixirAuthGoogle.MixProject do
1515
package: package(),
1616
aliases: aliases(),
1717
# coverage
18-
test_coverage: [tool: ExCoveralls],
19-
preferred_cli_env: [
18+
test_coverage: [tool: ExCoveralls]
19+
]
20+
end
21+
22+
def cli do
23+
[
24+
preferred_envs: [
2025
c: :test,
2126
coveralls: :test,
2227
"coveralls.json": :test,
@@ -37,7 +42,7 @@ defmodule ElixirAuthGoogle.MixProject do
3742
defp deps do
3843
[
3944
{:credo, "~> 1.5", only: [:dev, :test], runtime: false},
40-
{:httpoison, "~> 2.3.0"},
45+
{:httpoison, "~> 2.3"},
4146
{:jason, "~> 1.2"},
4247

4348
# Track test coverage: github.com/parroty/excoveralls

mix.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
%{
22
"bunt": {:hex, :bunt, "1.0.0", "081c2c665f086849e6d57900292b3a161727ab40431219529f13c4ddcf3e7a44", [:mix], [], "hexpm", "dc5f86aa08a5f6fa6b8096f0735c4e76d54ae5c9fa2c143e5a1fc7c1cd9bb6b5"},
33
"certifi": {:hex, :certifi, "2.15.0", "0e6e882fcdaaa0a5a9f2b3db55b1394dba07e8d6d9bcad08318fb604c6839712", [:rebar3], [], "hexpm", "b147ed22ce71d72eafdad94f055165c1c182f61a2ff49df28bcc71d1d5b94a60"},
4-
"credo": {:hex, :credo, "1.7.16", "a9f1389d13d19c631cb123c77a813dbf16449a2aebf602f590defa08953309d4", [:mix], [{:bunt, "~> 0.2.1 or ~> 1.0", [hex: :bunt, repo: "hexpm", optional: false]}, {:file_system, "~> 0.2 or ~> 1.0", [hex: :file_system, repo: "hexpm", optional: false]}, {:jason, "~> 1.0", [hex: :jason, repo: "hexpm", optional: false]}], "hexpm", "d0562af33756b21f248f066a9119e3890722031b6d199f22e3cf95550e4f1579"},
4+
"credo": {:hex, :credo, "1.7.17", "f92b6aa5b26301eaa5a35e4d48ebf5aa1e7094ac00ae38f87086c562caf8a22f", [:mix], [{:bunt, "~> 0.2.1 or ~> 1.0", [hex: :bunt, repo: "hexpm", optional: false]}, {:file_system, "~> 0.2 or ~> 1.0", [hex: :file_system, repo: "hexpm", optional: false]}, {:jason, "~> 1.0", [hex: :jason, repo: "hexpm", optional: false]}], "hexpm", "1eb5645c835f0b6c9b5410f94b5a185057bcf6d62a9c2b476da971cde8749645"},
55
"earmark": {:hex, :earmark, "1.4.9", "837e4c1c5302b3135e9955f2bbf52c6c52e950c383983942b68b03909356c0d9", [:mix], [{:earmark_parser, ">= 1.4.9", [hex: :earmark_parser, repo: "hexpm", optional: false]}], "hexpm", "0d72df7d13a3dc8422882bed5263fdec5a773f56f7baeb02379361cb9e5b0d8e"},
66
"earmark_parser": {:hex, :earmark_parser, "1.4.44", "f20830dd6b5c77afe2b063777ddbbff09f9759396500cdbe7523efd58d7a339c", [:mix], [], "hexpm", "4778ac752b4701a5599215f7030989c989ffdc4f6df457c5f36938cc2d2a2750"},
77
"ex_doc": {:hex, :ex_doc, "0.40.1", "67542e4b6dde74811cfd580e2c0149b78010fd13001fda7cfeb2b2c2ffb1344d", [:mix], [{:earmark_parser, "~> 1.4.44", [hex: :earmark_parser, repo: "hexpm", optional: false]}, {:makeup_c, ">= 0.1.0", [hex: :makeup_c, repo: "hexpm", optional: true]}, {:makeup_elixir, "~> 0.14 or ~> 1.0", [hex: :makeup_elixir, repo: "hexpm", optional: false]}, {:makeup_erlang, "~> 0.1 or ~> 1.0", [hex: :makeup_erlang, repo: "hexpm", optional: false]}, {:makeup_html, ">= 0.1.0", [hex: :makeup_html, repo: "hexpm", optional: true]}], "hexpm", "bcef0e2d360d93ac19f01a85d58f91752d930c0a30e2681145feea6bd3516e00"},

0 commit comments

Comments
 (0)