publisher_renote_dac 0.0.10 → 0.0.11
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d13a444d25edf6a05946a320616fa6e90de823f436db7d057633193a30328f36
|
4
|
+
data.tar.gz: 4ad889d99c36286fcb45fcc3aa9fff34ee1410f09829948fa55ffa3b7d8539f2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: eb10fa27f69ea1db18e032f16dc457d4bb13338f9fb41d7d79a348648e8ab8a47e04225a07484fe5da7080f20caf3283e50e75c71d6af632cd9bb58c51ef3375
|
7
|
+
data.tar.gz: '08474c86e82f7b0436cd13e17699153cc7ac80e700bec7b0fa0676bbf1840a091f6826fd14e0b485b0846ef19c8a4e96b0f44a54a59b651ad9b61e87e53b08ca'
|
data/README.md
CHANGED
@@ -29,6 +29,37 @@ To generate an initializer run...
|
|
29
29
|
rails g publisher_renote_dac:install
|
30
30
|
```
|
31
31
|
|
32
|
+
## Configuration
|
33
|
+
|
34
|
+
Configure your publisher_renote_dac.rb initializer file by overriding the necessary defaults such as username and pass, and exhange and queue names. Some configuration options are simple not needed at this time but will be used in future releases.
|
35
|
+
|
36
|
+
```bash
|
37
|
+
PublisherRenoteDac.configure do |c|
|
38
|
+
# by default bunny rabbitmq server credentials are 'guest' for both username and password by default.
|
39
|
+
c.username = 'guest'
|
40
|
+
c.password = 'guest'
|
41
|
+
c.heartbeat = 2
|
42
|
+
c.exchange = 'publisher_renote_dac.email'
|
43
|
+
c.exchange_type = :direct
|
44
|
+
c.vhost = '/'
|
45
|
+
c.rabbitmq_queue = 'consumer_renote_dac.email'
|
46
|
+
# c.prod_base_url = ENV['PROD_BASE_URL']
|
47
|
+
# c.dev_base_url = 'http://localhost:3000'
|
48
|
+
|
49
|
+
# sets PublisherRenoteDac to inherit directly from parent app ApplicationController. use '::' to get to the root controller
|
50
|
+
# defaults to '::ApplicationController'
|
51
|
+
c.base_controller = '::ApplicationController'
|
52
|
+
end
|
53
|
+
```
|
54
|
+
|
55
|
+
## Running
|
56
|
+
|
57
|
+
To setup exchange and bind to quees run...
|
58
|
+
|
59
|
+
```bash
|
60
|
+
rake publisher_renote_dac:rabbitmq:setup
|
61
|
+
```
|
62
|
+
|
32
63
|
## Contributing
|
33
64
|
Contribution directions go here.
|
34
65
|
|
@@ -6,9 +6,8 @@ PublisherRenoteDac.configure do |c|
|
|
6
6
|
c.exchange_type = :direct
|
7
7
|
c.vhost = '/'
|
8
8
|
c.rabbitmq_queue = 'consumer_renote_dac.email'
|
9
|
-
c.prod_base_url = '
|
10
|
-
c.dev_base_url = 'http://localhost:3000'
|
11
|
-
c.from_address = 'Your App Name <app@name.com>'
|
9
|
+
# c.prod_base_url = ENV['PROD_BASE_URL']
|
10
|
+
# c.dev_base_url = 'http://localhost:3000'
|
12
11
|
|
13
12
|
# sets PublisherRenoteDac to inherit directly from parent app ApplicationController. use '::' to get to the root controller
|
14
13
|
# defaults to '::ApplicationController'
|
@@ -12,7 +12,7 @@ namespace :publisher_renote_dac do
|
|
12
12
|
# get or create exchange
|
13
13
|
x = ch.fanout('publisher_renote_dac.email')
|
14
14
|
# get or create queue (note the durable setting)
|
15
|
-
queue = ch.queue('consumer_renote_dac.email')
|
15
|
+
queue = ch.queue('consumer_renote_dac.email', durable: true)
|
16
16
|
# bind queue to exchange
|
17
17
|
queue.bind('publisher_renote_dac.email')
|
18
18
|
|