Skip to content

Commit

Permalink
feat: json_library set to Jason by default (#182)
Browse files Browse the repository at this point in the history
Also:
- Added initial Contributing section to readme
- Version set to 2.0.0-dev
  • Loading branch information
hpopp authored Jan 9, 2021
1 parent 7e10c33 commit d08ab72
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 4 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Changelog

## v2.0.0 (dev)

**Changed**

- Default JSON library set to Jason.

## v1.6.0

**Added**
Expand Down
15 changes: 15 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -275,3 +275,18 @@ more complex.
end
end
```

## Contributing

### Testing

Unit tests can be run with `mix test` or `mix coveralls.html`.

### Formatting

This project uses Elixir's `mix format` for formatting. Add a hook in your editor of choice to
run it after a save. Be sure it respects this project's `.formatter.exs`.

### Commits

Git commit subjects use the [Karma style](http://karma-runner.github.io/5.0/dev/git-commit-msg.html).
2 changes: 1 addition & 1 deletion lib/pigeon.ex
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ defmodule Pigeon do
"""
@spec json_library :: module
def json_library do
Application.get_env(:pigeon, :json_library, Poison)
Application.get_env(:pigeon, :json_library, Jason)
end

@doc false
Expand Down
6 changes: 3 additions & 3 deletions mix.exs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
defmodule Pigeon.Mixfile do
use Mix.Project

@version "1.6.0"
@version "2.0.0-dev"

def project do
[
Expand Down Expand Up @@ -57,9 +57,9 @@ defmodule Pigeon.Mixfile do
{:ex_doc, "~> 0.18", only: :dev},
{:gen_stage, "~> 0.12 or ~> 1.0"},
{:httpoison, "~> 0.7 or ~> 1.0"},
{:jason, "~> 1.0", optional: true},
{:joken, "~> 2.1"},
{:kadabra, "~> 0.4.3", optional: true},
{:poison, "~> 2.0 or ~> 3.0 or ~> 4.0"}
{:kadabra, "~> 0.4.3", optional: true}
]
end

Expand Down

0 comments on commit d08ab72

Please sign in to comment.