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: c0f905ac859bfe3a8e91a0bf76618e57b186b5b5b09732138140dbd46a8b70f7
4
- data.tar.gz: a96d4d24a8802ee4a9c2e0af5a4c1b10f3445dc9cbe45ba18c5f0659980efdf5
3
+ metadata.gz: d13a444d25edf6a05946a320616fa6e90de823f436db7d057633193a30328f36
4
+ data.tar.gz: 4ad889d99c36286fcb45fcc3aa9fff34ee1410f09829948fa55ffa3b7d8539f2
5
5
  SHA512:
6
- metadata.gz: 67efe5e794bf686022b701faca4c68b1e4d1319e61b4e66a948a66ccb543b08de182672717c8ce1884d2ee33b0e2d714bbd1fe0b6c09cfb6191b53b2eafda458
7
- data.tar.gz: 6b3d4423231813e02503cdb3f6d1dea001408b3a4cb91e641a3d592a8edef924df2d4be0f1724b1129147f166e2559e7d8f094ec2443f43b614a1c486df333ca
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 = 'http://localhost:3000'
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'
@@ -1,3 +1,3 @@
1
1
  module PublisherRenoteDac
2
- VERSION = '0.0.10'
2
+ VERSION = '0.0.11'
3
3
  end
@@ -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
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: publisher_renote_dac
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.10
4
+ version: 0.0.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sidney Leatherwood