Skip to content

Commit 19b037e

Browse files
committed
bump patch version, minor updates to CI and docs
1 parent 9fed71e commit 19b037e

File tree

4 files changed

+27
-40
lines changed

4 files changed

+27
-40
lines changed

.travis.yml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,7 @@ dist: xenial
99

1010
julia:
1111
- 1.0
12-
- 1.1
13-
- 1.2
14-
- 1.3
15-
- 1.4
16-
- 1.5
12+
- 1
1713
- nightly
1814

1915
addons:

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ uuid = "79c8b4cd-a41a-55fa-907c-fab5288e1383"
33
keywords = ["amqpclient", "rabbitmq", "amqp", "amqp-client", "message-queue"]
44
license = "MIT"
55
desc = "A Julia AMQP (Advanced Message Queuing Protocol) / RabbitMQ Client."
6-
version = "0.4.0"
6+
version = "0.4.1"
77

88
[deps]
99
Logging = "56ddb016-857b-54e1-b83d-db4d58db5568"

QUEUES.md

Lines changed: 24 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -2,66 +2,56 @@
22

33
Constants representing the standard exchange types are available as: `EXCHANGE_TYPE_DIRECT`, `EXCHANGE_TYPE_FANOUT`, `EXCHANGE_TYPE_TOPIC`, and `EXCHANGE_TYPE_HEADERS`.
44

5-
Exchanges can be delcared and deleted using the `exchange_declare` and `exchange_delete` APIs. They return a boolean to indicate success (true) or failure (false).
5+
Exchanges can be delcared and deleted using the `exchange_declare` and `exchange_delete` APIs. They return a boolean to indicate success (`true`) or failure (`false`).
66
Declaring an already existing exchange simply attaches to it, a new exchange is created otherwise.
77

8-
````julia
9-
# declare (create if they do not exist) new exchange
10-
EXCG_DIRECT = "MyDirectExcg"
11-
EXCG_FANOUT = "MyFanoutExcg"
12-
success = exchange_declare(chan1, EXCG_DIRECT, EXCHANGE_TYPE_DIRECT)
13-
success || println("error!")
14-
success = exchange_declare(chan1, EXCG_FANOUT, EXCHANGE_TYPE_FANOUT)
15-
success || println("error!")
8+
```julia
9+
# declare (create if they do not exist) new exchange
10+
EXCG_DIRECT = "MyDirectExcg"
11+
EXCG_FANOUT = "MyFanoutExcg"
12+
@assert exchange_declare(chan1, EXCG_DIRECT, EXCHANGE_TYPE_DIRECT)
13+
@assert exchange_declare(chan1, EXCG_FANOUT, EXCHANGE_TYPE_FANOUT)
1614

17-
# operate with the exchanges...
15+
# operate with the exchanges...
1816

19-
# delete exchanges
20-
success = exchange_delete(chan1, EXCG_DIRECT)
21-
success || println("error!")
22-
success = exchange_delete(chan1, EXCG_FANOUT)
23-
success || println("error!")
24-
````
17+
# delete exchanges
18+
@assert exchange_delete(chan1, EXCG_DIRECT)
19+
@assert exchange_delete(chan1, EXCG_FANOUT)
20+
```
2521

2622
Queues can similarly be declared and deleted.
2723
Attaching to an existing queue also returns the number of pending messages and the number of consumers attached to the queue.
2824

29-
````julia
25+
```julia
3026
QUEUE1 = "MyQueue"
3127
success, queue_name, message_count, consumer_count = queue_declare(chan1, QUEUE1)
32-
success || println("error!")
28+
@assert success
3329

3430
# operate with the queue
3531

3632
# delete the queue
3733
success, message_count = queue_delete(chan1, QUEUE1)
38-
success || println("error!")
39-
````
34+
@assert success
35+
```
4036

4137
Messages are routed by binding queues and exchanges to other exchanges. The type of exchange and the routing key configured determine the path.
4238

43-
````julia
39+
```julia
4440
ROUTE1 = "routingkey1"
4541
# bind QUEUE1 to EXCG_DIRECT,
4642
# specifying that only messages with routing key ROUTE1 should be delivered to QUEUE1
47-
success = queue_bind(chan1, QUEUE1, EXCG_DIRECT, ROUTE1)
48-
success || println("error!")
43+
@assert queue_bind(chan1, QUEUE1, EXCG_DIRECT, ROUTE1)
4944

5045
# operate with the queue
5146

5247
# remove the binding
53-
success = queue_unbind(chan1, QUEUE1, EXCG_DIRECT, ROUTE1)
54-
success || println("error!")
55-
````
48+
@assert queue_unbind(chan1, QUEUE1, EXCG_DIRECT, ROUTE1)
49+
```
5650

5751
Messages on a queue can be purged:
5852

59-
````julia
53+
```julia
6054
success, message_count = queue_purge(chan1, QUEUE1)
61-
if success
62-
println("$message_count messages were purged")
63-
else
64-
println("error!")
65-
end
66-
````
67-
55+
@assert success
56+
@info("messages purged", message_count)
57+
```

appveyor.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
environment:
22
matrix:
3+
- julia_version: 1.0
34
- julia_version: 1
45
- julia_version: nightly
56

0 commit comments

Comments
 (0)