Skip to content

Commit eabb0e5

Browse files
committed
hex packaging
1 parent 4dbf095 commit eabb0e5

File tree

3 files changed

+30
-11
lines changed

3 files changed

+30
-11
lines changed

lib/exmld/kinesis_worker.ex

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,11 +44,11 @@ defmodule Exmld.KinesisWorker do
4444
non_neg_integer}]}}}
4545

4646
@moduledoc """
47-
An [ermld_flusher](https://github.com/AdRoll/erlmld/blob/master/src/erlmld_flusher.erl)
47+
An [erlmld_flusher](https://github.com/AdRoll/erlmld/blob/master/src/erlmld_flusher.erl)
4848
which can interface with a `Exmld.KinesisStage` data source.
4949
50-
This implements an `erlmd_flusher` which can be used by `erlmld_batch_processor`.
51-
Unlike a typical `erlmd_flusher`, it has a different notion of fullness: if more than
50+
This implements an `erlmld_flusher` which can be used by `erlmld_batch_processor`.
51+
Unlike a typical `erlmld_flusher`, it has a different notion of fullness: if more than
5252
`:max_pending` items are in flight, the worker waits for all pending items before
5353
emitting any more for downstream processing. A periodic flush interval should be
5454
configured in the batch processor options. Similarly, the downstream stage processing
@@ -81,7 +81,7 @@ defmodule Exmld.KinesisWorker do
8181
sub-record checkpointing should be turned off).
8282
8383
Periodically (which should be at some multiple of the periodic flush interval),
84-
`erlmd_batch_processor` will checkpoint based on the records which have so far been
84+
`erlmld_batch_processor` will checkpoint based on the records which have so far been
8585
successfully processed (those whose tokens have been returned from `flush/2`).
8686
"""
8787

mix.exs

Lines changed: 22 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,23 @@
11
defmodule Exmld.Mixfile do
22
use Mix.Project
33

4+
@version "0.1.0"
5+
@name "exmld"
6+
@repo "https://github.com/AdRoll/#{@name}"
7+
48
def project do
59
[
610
app: :exmld,
7-
version: "0.1.0",
11+
version: @version,
812
elixir: "~> 1.5",
913
start_permanent: Mix.env == :prod,
10-
deps: deps()
14+
deps: deps(),
15+
package: package(),
16+
docs: [source_ref: "v#{@version}",
17+
source_url: @repo],
18+
description: "An Elixir library for processing multiple Kinesis and " <>
19+
"DynamoDB streams and shards in a single node using the Kinesis " <>
20+
"Client Library and MultiLangDaemon."
1121
]
1222
end
1323

@@ -21,8 +31,17 @@ defmodule Exmld.Mixfile do
2131
defp deps do
2232
[
2333
{:flow, "~> 0.12.0"},
24-
{:erlmld, git: "https://github.com/AdRoll/erlmld.git", tag: "v0.1.1"},
34+
{:erlmld, "~> 0.1.3"},
2535
{:ex_doc, "~> 0.16", only: :dev, runtime: false}
2636
]
2737
end
38+
39+
defp package do
40+
%{
41+
name: @name,
42+
licenses: ["BSD 3-Clause License"],
43+
maintainers: ["AdRoll RTB team <rtb-team+#{@name}@adroll.com>"],
44+
links: %{"GitHub" => @repo}
45+
}
46+
end
2847
end

mix.lock

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
%{"b64fast": {:git, "https://github.com/zuckschwerdt/b64fast", "10ec5d034bacca8e7ae57b52488c4c7935fc51a4", [tag: "0.2.1"]},
1+
%{"b64fast": {:hex, :b64fast, "0.2.1", "ef67efd73109bf52a83338a2ded30d0dc4ec1b11449b4c43db970d3fc96cc9cd", [:rebar], [], "hexpm"},
22
"earmark": {:hex, :earmark, "1.2.3", "206eb2e2ac1a794aa5256f3982de7a76bf4579ff91cb28d0e17ea2c9491e46a4", [], [], "hexpm"},
3-
"erlexec": {:git, "https://github.com/saleyn/erlexec.git", "e13dfe7f6bb0e5a37436da6ada4b1729593c196c", [tag: "1.6.4"]},
4-
"erlmld": {:git, "https://github.com/AdRoll/erlmld.git", "20ed6a48d3cf375edc5f8c188598ac424947c92b", [tag: "v0.1.1"]},
3+
"erlexec": {:hex, :erlexec, "1.7.1", "6ddbd40fa202084ed0bdaf95a50c334acaa5644ae213b903cd4094a78ae79734", [:rebar3], [], "hexpm"},
4+
"erlmld": {:hex, :erlmld, "0.1.3", "ff9db27b6e53041168bb200dc04812ea3b60f8ff659200b72110d3e84ab3bfe7", [:rebar3], [{:b64fast, "0.2.1", [hex: :b64fast, repo: "hexpm", optional: false]}, {:erlexec, "1.7.1", [hex: :erlexec, repo: "hexpm", optional: false]}, {:jiffy, "0.14.11", [hex: :jiffy, repo: "hexpm", optional: false]}], "hexpm"},
55
"ex_doc": {:hex, :ex_doc, "0.18.1", "37c69d2ef62f24928c1f4fdc7c724ea04aecfdf500c4329185f8e3649c915baf", [], [{:earmark, "~> 1.1", [hex: :earmark, repo: "hexpm", optional: false]}], "hexpm"},
66
"flow": {:hex, :flow, "0.12.0", "32c5a5f3ff6693e004b6c17a8c64dce2f8cdaf9564912d79427176013a586ab6", [], [{:gen_stage, "~> 0.12.0", [hex: :gen_stage, repo: "hexpm", optional: false]}], "hexpm"},
77
"gen_stage": {:hex, :gen_stage, "0.12.2", "e0e347cbb1ceb5f4e68a526aec4d64b54ad721f0a8b30aa9d28e0ad749419cbb", [], [], "hexpm"},
8-
"jiffy": {:git, "https://github.com/davisp/jiffy.git", "06aaf440e091c9fd5f8aea557ac760a33bd37130", [tag: "0.14.11"]}}
8+
"jiffy": {:hex, :jiffy, "0.14.11", "919a87d491c5a6b5e3bbc27fafedc3a0761ca0b4c405394f121f582fd4e3f0e5", [:rebar3], [], "hexpm"}}

0 commit comments

Comments
 (0)