Skip to content

Commit

Permalink
Prep for release
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Neighman committed Nov 15, 2015
1 parent 843cfae commit d69cca9
Show file tree
Hide file tree
Showing 4 changed files with 56 additions and 33 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@
/deps
erl_crash.dump
*.ez
/doc
32 changes: 16 additions & 16 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,22 +3,6 @@
Implements a simple strategy for Ueberauth useful for username/password
strategies.

## Installation

If [available in Hex](https://hex.pm/docs/publish), the package can be installed as:

1. Add ueber_identity to your list of dependencies in `mix.exs`:

def deps do
[{:ueber_identity, "~> 0.0.1"}]
end

2. Ensure ueber_identity is started before your application:

def application do
[applications: [:ueber_identity]]
end

Add to the config

config :ueberauth, Ueberauth,
Expand Down Expand Up @@ -58,6 +42,22 @@ Then in your callback you will have access to the `Ueberauth.Auth` struct
# |> Guardian.Plug.sign_in(user, :browser)
end

## Installation

If [available in Hex](https://hex.pm/docs/publish), the package can be installed as:

1. Add ueber_identity to your list of dependencies in `mix.exs`:

def deps do
[{:ueber_identity, "~> 0.0.1"}]
end

2. Ensure ueber_identity is started before your application:

def application do
[applications: [:ueber_identity]]
end


## License

Expand Down
51 changes: 35 additions & 16 deletions mix.exs
Original file line number Diff line number Diff line change
@@ -1,35 +1,54 @@
defmodule UeberIdentity.Mixfile do
use Mix.Project

@version "0.1.0"

def project do
[app: :ueber_identity,
version: "0.0.1",
version: @version,
name: "Ueber Identity",
package: package,
elixir: "~> 1.1",
build_embedded: Mix.env == :prod,
start_permanent: Mix.env == :prod,
deps: deps]
source_url: "https://github.com/hassox/ueber_identity",
homepage_url: "https://github.com/hassox/ueber_identity",
description: description,
deps: deps,
docs: docs]
end

# Configuration for the OTP application
#
# Type "mix help compile.app" for more information
def application do
[applications: [:logger]]
end

# Dependencies can be Hex packages:
#
# {:mydep, "~> 0.3.0"}
#
# Or git/path repositories:
#
# {:mydep, git: "https://github.com/elixir-lang/mydep.git", tag: "0.1.0"}
#
# Type "mix help deps" for more examples and options
defp deps do
[
{:ueberauth, path: "/Users/dneighman/Code/ueberauth"},
{:plug, "~> 1.0"}
{:ueberauth, "~> 0.1"},
{:plug, "~> 1.0"},

# docs dependencies
{:earmark, "~> 0.1", only: :dev},
{:ex_doc, "~> 0.1", only: :dev}
]
end

defp docs do
[extras: docs_extras, main: "extra-readme"]
end

defp docs_extras do
["README.md"]
end

defp description do
"An Ueberauth strategy for basic username/password"
end

defp package do
[files: ["lib", "mix.ex", "README.md", "LICENSE"],
maintainers: ["Daniel Neighman"],
licenses: ["MIT"],
links: %{github: "https://github.com/hassox/ueber_identity"}]
end
end
5 changes: 4 additions & 1 deletion mix.lock
Original file line number Diff line number Diff line change
@@ -1 +1,4 @@
%{"plug": {:hex, :plug, "1.0.2"}}
%{"earmark": {:hex, :earmark, "0.1.19"},
"ex_doc": {:hex, :ex_doc, "0.10.0"},
"plug": {:hex, :plug, "1.0.2"},
"ueberauth": {:hex, :ueberauth, "0.1.0"}}

0 comments on commit d69cca9

Please sign in to comment.