forked from MyMedsAndMe/spell
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Document using Spell and specifying dependencies
Remove optional dependencies from requirements, requiring the library user to specify them explicitly. Resolves MyMedsAndMe#16
- Loading branch information
Showing
2 changed files
with
42 additions
and
13 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 |
---|---|---|
|
@@ -30,6 +30,31 @@ Spell uses GitHub [issues](https://github.com/MyMedsAndMe/spell/issues) and | |
Spell has a mailing list at [email protected]; general questions or ideas are | ||
welcome there. See [librelist](http://librelist.com/) for how to sign up. | ||
|
||
## Using Spell with your Elixir Project | ||
|
||
To use Spell from within your Elixir library add, add it to your `mix.exs` deps, | ||
along with the required transport and serialization libraries: | ||
|
||
```elixir | ||
defp deps do | ||
... | ||
# Required: | ||
{:spell, "~> 0.1"}, | ||
# Required if using the websocket transport: | ||
{:websocket_client, github: "jeremyong/websocket_client", tag: "v0.7"}, | ||
# Required if using the JSON serializer: | ||
{:poison, "~> 1.4"}, | ||
# Required if using the msgpack serializer: | ||
{:msgpax, "~> 0.7"} | ||
end | ||
``` | ||
|
||
Fetch the dependencies by running: | ||
|
||
``` | ||
$ mix deps.get | ||
``` | ||
|
||
## How it Works | ||
|
||
You can run the examples you're about to run into, though first you'll need | ||
|
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