Packages

A PagarMe Library for Elixir.

Current section

2 Versions

Jump to

Compare versions

5 files changed
+14 additions
-10 deletions
  @@ -32,7 +32,7 @@ end
32 32 ```ex
33 33 use Mix.Config
34 34
35 - config :pagamex, api_key: System.get_env("PAGARME_API_KEY")
35 + config :pagarmex, api_key: System.get_env("PAGARME_API_KEY")
36 36 # optional
37 37 # endpoint: 'https://api.pagar.me/1'
38 38 ```
  @@ -62,3 +62,8 @@ make test
62 62 3. Commit your changes (git commit -am 'Add some feature')
63 63 4. Push to the branch (git push origin feature/new_feature_name)
64 64 5. Create a new Pull Request
65 +
66 + # TODO
67 +
68 + - [ ] Adding more docs
69 + - [ ] Adding more resources
  @@ -22,4 +22,4 @@
22 22 {<<"name">>,<<"poison">>},
23 23 {<<"optional">>,false},
24 24 {<<"requirement">>,<<"~> 2.1">>}]]}.
25 - {<<"version">>,<<"0.1.0">>}.
25 + {<<"version">>,<<"0.1.1">>}.
  @@ -5,13 +5,14 @@ defmodule Pagarmex do
5 5 ### Configuration
6 6 use Mix.Config
7 7
8 - config :pagamex, api_key: System.get_env("PAGARME_API_KEY")
8 + config :pagarmex, api_key: System.get_env("PAGARME_API_KEY")
9 9 # optional
10 10 # endpoint: "https://api.pagar.me/1"
11 11 """
12 12
13 13 def version do
14 - Pagarmex.Mixfile.version
14 + Mix.Project.config
15 + |> Dict.get(:version)
15 16 end
16 17
17 18 def api_key do
  @@ -1,7 +1,7 @@
1 1 defmodule Pagarmex.MissingApiKeyError do
2 2 defexception message: """
3 3 Te `api_key` is required. Please adding `api_key` in your `config.exs`.
4 - config :pagamex, api_key: System.get_env("PAGARME_API_KEY")
4 + config :pagarmex, api_key: System.get_env("PAGARME_API_KEY")
5 5
6 6 More info in: https://github.com/gullitmiranda/pagarmex#installation .
7 7 """
  @@ -1,12 +1,10 @@
1 1 defmodule Pagarmex.Mixfile do
2 2 use Mix.Project
3 3
4 - def version, do: "0.1.0"
5 -
6 4 def project do
7 5 [
8 6 app: :pagarmex,
9 - version: version,
7 + version: "0.1.1",
10 8 description: description,
11 9 package: package,
12 10 elixir: "~> 1.2",
  @@ -30,8 +28,8 @@ defmodule Pagarmex.Mixfile do
30 28 [
31 29 {:httpoison, "~> 0.8.3"},
32 30 {:poison, "~> 2.1"},
33 - {:ex_doc, "~> 0.11.5", only: :dev},
34 - {:earmark, "~> 0.2.1", only: :dev},
31 + {:ex_doc, "~> 0.11.5", only: [:dev, :test]},
32 + {:earmark, "~> 0.2.1", only: [:dev, :test]},
35 33 {:exvcr, "~> 0.7.4", only: :test},
36 34 {:mock, "~> 0.1.3", only: :test},
37 35 ]