-
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
13 changed files
with
203 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,3 +9,4 @@ erl_crash.dump | |
|
||
#### custom #### | ||
/doc | ||
*.tar |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# Changelog | ||
|
||
## Version 0.1.1 | ||
|
||
### Bugfixes | ||
|
||
- Fixes bug when `Detector` was showing wrong values for complex names with `-` inside | ||
|
||
### Documentation | ||
|
||
- Adds more `@doc` and `@module` to the code | ||
- Adds little fixes to the existing docs | ||
- Adds `CHANGELOG.md` | ||
- Adds `CONTRIBUTING.md` | ||
|
||
## Version 0.1.0 | ||
|
||
- Initial release |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# Contributing to Petrovich | ||
|
||
## Pull Requests Welcome | ||
|
||
1. Fork `petrovich_elixir` | ||
2. Create a topic branch | ||
3. Make logically-grouped commits with clear commit messages | ||
4. Push commits to your fork | ||
5. Open a pull request against `petrovich_elixir/master` | ||
|
||
## Development | ||
|
||
Please, make sure that all these commands succeed before pushing anything: | ||
|
||
1. `mix test` | ||
2. `mix credo --strict` | ||
3. `mix dialyzer` (it may take long on the first run) | ||
|
||
## Issues | ||
|
||
If you believe there to be a bug, please provide the maintainers with enough | ||
detail to reproduce or a link to an app exhibiting unexpected behavior. For | ||
help, please start with Stack Overflow. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,15 @@ | ||
defmodule Petrovich.Exceptions.ParseException do | ||
@moduledoc """ | ||
This exception is used when it is impossible for some reason | ||
to parse and inflect a person's name. | ||
""" | ||
defexception message: "Name is not parsed" | ||
end | ||
|
||
defmodule Petrovich.Exceptions.RulesFileException do | ||
@moduledoc """ | ||
This exception is raised when wrong setting | ||
with wrong path for a `Store` is supplied. | ||
""" | ||
defexception message: "Rules file is missing" | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
defmodule Petrovich.Utils.ResultJoiner do | ||
@moduledoc false | ||
|
||
def join_result(results, callback) do | ||
success = Enum.any?(results, &compare_status/1) | ||
|
||
if success do | ||
{:ok, callback.(results)} | ||
else | ||
:error | ||
end | ||
end | ||
|
||
defp compare_status({:ok, _}), do: true | ||
defp compare_status(_), do: false | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters