Skip to content
This repository was archived by the owner on Nov 27, 2023. It is now read-only.

Commit fc1b6db

Browse files
authored
Release preparation (#117)
* Format code * Bump version to 2.2.0 * Update docs
1 parent 069a1cd commit fc1b6db

File tree

4 files changed

+19
-17
lines changed

4 files changed

+19
-17
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ The project currently provides the following functionality:
2525

2626
~~~elixir
2727
def deps do
28-
[{:gen_rmq, "~> 2.1.0"}]
28+
[{:gen_rmq, "~> 2.2.0"}]
2929
end
3030
~~~
3131

lib/publisher.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ defmodule GenRMQ.Publisher do
3030
3131
### Optional:
3232
33-
`app_id` - publishing application ID
33+
`app_id` - publishing application ID. By default it is `:gen_rmq`.
3434
3535
`enable_confirmations` - activates publishing confirmations on the channel. Confirmations are disabled by default.
3636

mix.exs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
defmodule GenRMQ.Mixfile do
22
use Mix.Project
33

4-
@version "2.1.0"
4+
@version "2.2.0"
55

66
def project do
77
[

test/gen_rmq_publisher_test.exs

Lines changed: 16 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -80,14 +80,15 @@ defmodule GenRMQ.PublisherTest do
8080
test "should override standard metadata fields from headers", %{publisher: publisher_pid} = context do
8181
message = %{"msg" => "msg"}
8282

83-
:ok = GenRMQ.Publisher.publish(
84-
publisher_pid,
85-
Jason.encode!(message),
86-
"some.routing.key",
87-
message_id: "message_id_1",
88-
correlation_id: "correlation_id_1",
89-
header1: "value"
90-
)
83+
:ok =
84+
GenRMQ.Publisher.publish(
85+
publisher_pid,
86+
Jason.encode!(message),
87+
"some.routing.key",
88+
message_id: "message_id_1",
89+
correlation_id: "correlation_id_1",
90+
header1: "value"
91+
)
9192

9293
Assert.repeatedly(fn -> assert out_queue_count(context) >= 1 end)
9394
{:ok, received_message, meta} = get_message_from_queue(context)
@@ -103,12 +104,13 @@ defmodule GenRMQ.PublisherTest do
103104
test "should publish a message with priority", %{publisher: publisher_pid} = context do
104105
message = %{"msg" => "with prio"}
105106

106-
:ok = GenRMQ.Publisher.publish(
107-
publisher_pid,
108-
Jason.encode!(message),
109-
"some.routing.key",
110-
priority: 100
111-
)
107+
:ok =
108+
GenRMQ.Publisher.publish(
109+
publisher_pid,
110+
Jason.encode!(message),
111+
"some.routing.key",
112+
priority: 100
113+
)
112114

113115
Assert.repeatedly(fn -> assert out_queue_count(context) >= 1 end)
114116
{:ok, received_message, meta} = get_message_from_queue(context)

0 commit comments

Comments
 (0)