Skip to content

Commit

Permalink
Fixed deletion changeset error, bumped elixir_google_spreadsheets to …
Browse files Browse the repository at this point in the history
…use batched reads
  • Loading branch information
Voronchuk committed Jul 7, 2018
1 parent 9d6b0b1 commit 30237a3
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 11 deletions.
6 changes: 3 additions & 3 deletions lib/ecto_gss/repo.ex
Original file line number Diff line number Diff line change
Expand Up @@ -195,11 +195,11 @@ defmodule EctoGSS.Repo do
{:ok, record}
else
:error ->
{:error, add_error(record, :id, "GSS connection error!")}
{:error, add_error(change(record, %{}), :id, "GSS connection error!")}
:invalid_record ->
{:error, add_error(record, :id, "Invalid input record!")}
{:error, add_error(change(record, %{}), :id, "Invalid input record!")}
_ ->
{:error, add_error(record, :id, "GSS delete error!")}
{:error, add_error(change(record, %{}), :id, "GSS delete error!")}
end
end

Expand Down
4 changes: 2 additions & 2 deletions mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ defmodule EctoGss.Mixfile do
def project do
[
app: :ecto_gss,
version: "0.1.5",
version: "0.1.6",
elixir: "~> 1.4",
description: "Use Google Spreadsheets as storage for Ecto objects.",
docs: [extras: ["README.md"]],
Expand Down Expand Up @@ -36,7 +36,7 @@ defmodule EctoGss.Mixfile do

defp deps do
[
{:elixir_google_spreadsheets, "~> 0.1.8"},
{:elixir_google_spreadsheets, "~> 0.1.10"},
{:ecto, "~> 2.1"},
{:earmark, ">= 0.0.0", only: :dev},
{:ex_doc, ">= 0.0.0", only: :dev},
Expand Down
15 changes: 9 additions & 6 deletions mix.lock
Original file line number Diff line number Diff line change
@@ -1,18 +1,21 @@
%{"certifi": {:hex, :certifi, "2.0.0", "a0c0e475107135f76b8c1d5bc7efb33cd3815cb3cf3dea7aefdd174dabead064", [:rebar3], []},
%{
"certifi": {:hex, :certifi, "2.3.1", "d0f424232390bf47d82da8478022301c561cf6445b5b5fb6a84d49a9e76d2639", [:rebar3], [{:parse_trans, "3.2.0", [hex: :parse_trans, optional: false]}]},
"decimal": {:hex, :decimal, "1.4.0", "fac965ce71a46aab53d3a6ce45662806bdd708a4a95a65cde8a12eb0124a1333", [:mix], []},
"earmark": {:hex, :earmark, "1.2.2", "f718159d6b65068e8daeef709ccddae5f7fdc770707d82e7d126f584cd925b74", [:mix], []},
"ecto": {:hex, :ecto, "2.1.4", "d1ba932813ec0e0d9db481ef2c17777f1cefb11fc90fa7c142ff354972dfba7e", [:mix], [{:db_connection, "~> 1.1", [hex: :db_connection, optional: true]}, {:decimal, "~> 1.2", [hex: :decimal, optional: false]}, {:mariaex, "~> 0.8.0", [hex: :mariaex, optional: true]}, {:poison, "~> 2.2 or ~> 3.0", [hex: :poison, optional: true]}, {:poolboy, "~> 1.5", [hex: :poolboy, optional: false]}, {:postgrex, "~> 0.13.0", [hex: :postgrex, optional: true]}, {:sbroker, "~> 1.0", [hex: :sbroker, optional: true]}]},
"elixir_google_spreadsheets": {:hex, :elixir_google_spreadsheets, "0.1.8", "8836787f6bb7725379ab7e5ff6b566c843178f47b413e83a360aae337f8ab6c4", [:mix], [{:gen_stage, ">= 0.12.0", [hex: :gen_stage, optional: false]}, {:goth, "~> 0.5.0", [hex: :goth, optional: false]}, {:httpoison, "~> 0.12", [hex: :httpoison, optional: false]}, {:poison, "~> 3.1", [hex: :poison, optional: false]}]},
"elixir_google_spreadsheets": {:hex, :elixir_google_spreadsheets, "0.1.10", "60a6ef13598a092ed1e13e1aeb7a2cc444abaf13624115b5413f909d644f08e6", [:mix], [{:gen_stage, ">= 0.12.0", [hex: :gen_stage, optional: false]}, {:goth, "~> 0.5.0", [hex: :goth, optional: false]}, {:httpoison, "~> 0.12", [hex: :httpoison, optional: false]}, {:poison, "~> 3.1", [hex: :poison, optional: false]}]},
"ex_doc": {:hex, :ex_doc, "0.16.1", "b4b8a23602b4ce0e9a5a960a81260d1f7b29635b9652c67e95b0c2f7ccee5e81", [:mix], [{:earmark, "~> 1.1", [hex: :earmark, optional: false]}]},
"gen_stage": {:hex, :gen_stage, "0.12.2", "e0e347cbb1ceb5f4e68a526aec4d64b54ad721f0a8b30aa9d28e0ad749419cbb", [:mix], []},
"gen_stage": {:hex, :gen_stage, "0.14.0", "65ae78509f85b59d360690ce3378d5096c3130a0694bab95b0c4ae66f3008fad", [:mix], []},
"goth": {:hex, :goth, "0.5.1", "28452a4c7eecba346ec0e2bd16bd53ad2c754a413cb8ea3038610c3d8122930d", [:mix], [{:httpoison, "~> 0.11", [hex: :httpoison, optional: false]}, {:json_web_token, "~> 0.2.10", [hex: :json_web_token, optional: false]}, {:poison, "~> 2.1 or ~> 3.0", [hex: :poison, optional: false]}]},
"hackney": {:hex, :hackney, "1.9.0", "51c506afc0a365868469dcfc79a9d0b94d896ec741cfd5bd338f49a5ec515bfe", [:rebar3], [{:certifi, "2.0.0", [hex: :certifi, optional: false]}, {:idna, "5.1.0", [hex: :idna, optional: false]}, {:metrics, "1.0.1", [hex: :metrics, optional: false]}, {:mimerl, "1.0.2", [hex: :mimerl, optional: false]}, {:ssl_verify_fun, "1.1.1", [hex: :ssl_verify_fun, optional: false]}]},
"hackney": {:hex, :hackney, "1.13.0", "24edc8cd2b28e1c652593833862435c80661834f6c9344e84b6a2255e7aeef03", [:rebar3], [{:certifi, "2.3.1", [hex: :certifi, optional: false]}, {:idna, "5.1.2", [hex: :idna, optional: false]}, {:metrics, "1.0.1", [hex: :metrics, optional: false]}, {:mimerl, "1.0.2", [hex: :mimerl, optional: false]}, {:ssl_verify_fun, "1.1.1", [hex: :ssl_verify_fun, optional: false]}]},
"httpoison": {:hex, :httpoison, "0.13.0", "bfaf44d9f133a6599886720f3937a7699466d23bb0cd7a88b6ba011f53c6f562", [:mix], [{:hackney, "~> 1.8", [hex: :hackney, optional: false]}]},
"idna": {:hex, :idna, "5.1.0", "d72b4effeb324ad5da3cab1767cb16b17939004e789d8c0ad5b70f3cea20c89a", [:rebar3], [{:unicode_util_compat, "0.3.1", [hex: :unicode_util_compat, optional: false]}]},
"idna": {:hex, :idna, "5.1.2", "e21cb58a09f0228a9e0b95eaa1217f1bcfc31a1aaa6e1fdf2f53a33f7dbd9494", [:rebar3], [{:unicode_util_compat, "0.3.1", [hex: :unicode_util_compat, optional: false]}]},
"json_web_token": {:hex, :json_web_token, "0.2.10", "61041d56369422c5e3a770cf7d7bf27224b3c4c12d3a7d79b43a002df766db22", [:mix], [{:poison, "~> 3.1", [hex: :poison, optional: false]}]},
"metrics": {:hex, :metrics, "1.0.1", "25f094dea2cda98213cecc3aeff09e940299d950904393b2a29d191c346a8486", [:rebar3], []},
"mimerl": {:hex, :mimerl, "1.0.2", "993f9b0e084083405ed8252b99460c4f0563e41729ab42d9074fd5e52439be88", [:rebar3], []},
"parse_trans": {:hex, :parse_trans, "3.2.0", "2adfa4daf80c14dc36f522cf190eb5c4ee3e28008fc6394397c16f62a26258c2", [:rebar3], []},
"poison": {:hex, :poison, "3.1.0", "d9eb636610e096f86f25d9a46f35a9facac35609a7591b3be3326e99a0484665", [:mix], []},
"poolboy": {:hex, :poolboy, "1.5.1", "6b46163901cfd0a1b43d692657ed9d7e599853b3b21b95ae5ae0a777cf9b6ca8", [:rebar], []},
"ssl_verify_fun": {:hex, :ssl_verify_fun, "1.1.1", "28a4d65b7f59893bc2c7de786dec1e1555bd742d336043fe644ae956c3497fbe", [:make, :rebar], []},
"unicode_util_compat": {:hex, :unicode_util_compat, "0.3.1", "a1f612a7b512638634a603c8f401892afbf99b8ce93a45041f8aaca99cadb85e", [:rebar3], []}}
"unicode_util_compat": {:hex, :unicode_util_compat, "0.3.1", "a1f612a7b512638634a603c8f401892afbf99b8ce93a45041f8aaca99cadb85e", [:rebar3], []},
}

0 comments on commit 30237a3

Please sign in to comment.