Skip to content

Commit

Permalink
Define fake ExamplesGenerator
Browse files Browse the repository at this point in the history
  • Loading branch information
fuelen committed Aug 30, 2021
1 parent 60ee38f commit 2ee7656
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ The package can be installed by adding `ecto_erd` to your list of dependencies i
```elixir
def deps do
[
{:ecto_erd, "~> 0.1.0"}
{:ecto_erd, "~> 0.1"}
]
end
```
Expand Down
12 changes: 10 additions & 2 deletions mix.exs
Original file line number Diff line number Diff line change
@@ -1,9 +1,17 @@
Code.compile_file("examples_generator.exs")
if File.exists?("examples_generator.exs") do
# This module is needed only for docs and is not shipped in package
Code.compile_file("examples_generator.exs")
else
defmodule ExamplesGenerator do
def projects, do: []
def run(_), do: :noop
end
end

defmodule Ecto.ERD.MixProject do
use Mix.Project
@source_url "https://github.com/fuelen/ecto_erd/"
@version "0.1.0"
@version "0.1.1"

def project do
[
Expand Down

0 comments on commit 2ee7656

Please sign in to comment.