Skip to content

Commit

Permalink
Version bump and method reorder.
Browse files Browse the repository at this point in the history
  • Loading branch information
mykewould committed Jul 6, 2015
1 parent e8517a5 commit 92e7657
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
12 changes: 6 additions & 6 deletions lib/crutches/string.ex
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,11 @@ defmodule Crutches.String do
|> String.downcase
end

# Switch parameter order so we can use the pipe operator.
defp regex_replace(string, regex, replace) do
Regex.replace(regex, string, replace)
end

@doc ~S"""
Converts strings to UpperCamelCase.
Expand All @@ -46,13 +51,8 @@ defmodule Crutches.String do
|> Enum.reduce(&(&2 <> &1))
end

#Switch parameter order so we can use the pipe operator.
defp regex_replace(string, regex, replace) do
Regex.replace(regex, string, replace)
end

# Access

@doc ~S"""
Returns a substring from the given position to the end of the string.
If the position is negative, it is counted from the end of the string.
Expand Down
2 changes: 1 addition & 1 deletion mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ defmodule Crutches.Mixfile do

def project do
[app: :crutches,
version: "0.0.1",
version: "0.0.2",
elixir: "~> 1.0",
build_embedded: Mix.env == :prod,
start_permanent: Mix.env == :prod,
Expand Down

0 comments on commit 92e7657

Please sign in to comment.