Skip to content

Commit

Permalink
Merge 767a2ac into 5001830
Browse files Browse the repository at this point in the history
  • Loading branch information
PavelVesnin committed Feb 14, 2017
2 parents 5001830 + 767a2ac commit fd81d06
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ services:
addons:
postgresql: "9.5"
elixir:
- 1.3.4
- 1.4
otp_release:
- 19.0
env:
Expand Down
1 change: 1 addition & 0 deletions config/.credo.exs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
},
checks: [
{Credo.Check.Design.TagTODO, exit_status: 0},
{Credo.Check.Readability.Specs, exit_status: 0},
{Credo.Check.Readability.MaxLineLength, priority: :low, max_length: 120}
]
}
Expand Down
2 changes: 1 addition & 1 deletion config/dogma.exs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ alias Dogma.Rule
config :dogma,
rule_set: Dogma.RuleSet.All,
exclude: [
~r(\Alib/api/repo/tasks.ex), # TODO: https://github.com/lpil/dogma/issues/221
~r(\Alib/repo/tasks.ex), # TODO: https://github.com/lpil/dogma/issues/221
~r(\Arel/),
~r(\Adeps/),
],
Expand Down
5 changes: 3 additions & 2 deletions lib/processing/adapters/pay2you/transfer.ex
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,11 @@ defmodule Processing.Adapters.Pay2You.Transfer do
@moduledoc """
This module implements card2card and card2phone tranfsers interfaces.
"""
require Logger
alias Processing.Adapters.Pay2You.Error
alias Processing.Adapters.Pay2You.Request
alias Repo.Schemas.{Card, CardNumber}
alias Repo.Schemas.Card
alias Repo.Schemas.CardNumber
require Logger

@config Confex.get(:gateway_api, :pay2you)
@card2card_upstream_uri "/Card2Card/CreateCard2CardOperation"
Expand Down
2 changes: 1 addition & 1 deletion lib/repo/schemas/transfer.ex
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ defmodule Repo.Schemas.Transfer do
greater_than_or_equal_to: limits[:amount][:min],
less_than_or_equal_to: limits[:amount][:max])
|> validate_number(:fee, greater_than: 0)
|> validate_length(:description, max: 250)
|> validate_length(:description, min: 5, max: 1024)
|> validate_fee(:amount, :fee, fees)
|> validate_metadata(:metadata)
|> validate_inclusion(:status, ["authentication", "completed", "processing", "declined", "error"])
Expand Down
2 changes: 1 addition & 1 deletion mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ defmodule Gateway.Mixfile do
def project do
[app: :gateway_api,
version: @version,
elixir: "~> 1.3",
elixir: "~> 1.4",
elixirc_paths: elixirc_paths(Mix.env),
compilers: [:phoenix] ++ Mix.compilers,
build_embedded: Mix.env == :prod,
Expand Down

0 comments on commit fd81d06

Please sign in to comment.