Current section

128 Versions

Jump to

Compare versions

3 files changed
+6 additions
-3 deletions
  @@ -312,4 +312,4 @@
312 312 {<<"optional">>,false},
313 313 {<<"repository">>,<<"hexpm">>},
314 314 {<<"requirement">>,<<"0.13.6">>}]]}.
315 - {<<"version">>,<<"1.7.2-rc1">>}.
315 + {<<"version">>,<<"1.7.2-rc2">>}.
  @@ -115,7 +115,7 @@ defmodule StepFlow.WebController.Workflow do
115 115 filenames_list =
116 116 workflow_params.parameters
117 117 |> Enum.filter(fn x ->
118 - Map.get(x, "type") == "string" and Map.get(x, "value") |> String.contains?(" ")
118 + Map.get(x, "type") == "string" and has_space(Map.get(x, "value"))
119 119 end)
120 120
121 121 if filenames_list != [] do
  @@ -445,4 +445,7 @@ defmodule StepFlow.WebController.Workflow do
445 445 errors: %{reason: "Forbidden to delete workflow with this identifier"}
446 446 )
447 447 end
448 +
449 + defp has_space(string) when is_nil(string), do: false
450 + defp has_space(string), do: String.contains?(string, " ")
448 451 end
  @@ -6,7 +6,7 @@ defmodule StepFlow.MixProject do
6 6 def project do
7 7 [
8 8 app: :step_flow,
9 - version: "1.7.2-rc1",
9 + version: "1.7.2-rc2",
10 10 elixir: "~> 1.9",
11 11 start_permanent: Mix.env() == :prod,
12 12 deps: deps(),