eventhub-processor2 1.9.0 → 1.10.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c2802cc49773eefcd1c4ac043ad25c07a59576eae96f1a657556741e20da1815
4
- data.tar.gz: 84f36939159674c30169766b44e427fdee7a03cbdba0f3d4f356040bb5c2ed41
3
+ metadata.gz: bf33bf376e804fd54bc99b3a538c6ce148325d3954344d5ca6fa853b1621ffd7
4
+ data.tar.gz: 60083e2300ae7d0bf41ca09cb6efafe2665561d323089b58aa342c69412c0d49
5
5
  SHA512:
6
- metadata.gz: 71c2532c9d70ea9d913778f12435f36d8d4aa1185b7586e6ad41803aa2f5f4182c720edaa17e32e77889c9e46ab4b4147fbaae78ec7ecfab31729208e4f182ed
7
- data.tar.gz: 57e0722d7267a3dd6356422ac7f069390dcfce6fe06f7d40eac1debba3efb44418d1c3a5291806db7d4bf0272e98a54a5dc5a479ab1c621ee8afdf33e3f09241
6
+ metadata.gz: 66f88f2c77e2bbd6140ddc02d95c59af8045804ca10262b367cafd13de12045c28b341bc3655d31f6c9d78fbb990c4e63d7265db50def7075f15b90122d27d8c
7
+ data.tar.gz: 6133d08b08b596fc95e657fbb6e81ebdfa2c2ee52d2064f83a214a2e84b4acf428e20f7d99e7ec930a9e2e4fd72bbea0d8e6e5184202bd482c926be989162c72
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- eventhub-processor2 (1.9.0)
4
+ eventhub-processor2 (1.10.0)
5
5
  bunny (~> 2.15)
6
6
  celluloid (~> 0.18)
7
7
  eventhub-components (~> 0.2)
data/README.md CHANGED
@@ -173,7 +173,19 @@ Processor2 symbolizes keys and sub-keys from configuration files automatically.
173
173
 
174
174
  ## Development
175
175
 
176
- After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
176
+ ```
177
+ # Get the source code
178
+ git clone https://github.com/thomis/eventhub-processor2.git
179
+
180
+ # Install dependencies
181
+ bundle
182
+
183
+ # Setup rabbitmq docker container with initial definitions. This can be run multiple times to get your container back into an initial state
184
+ bundle exec rake init
185
+
186
+ # Run all rspec tests
187
+ bundle exec rake
188
+ ```
177
189
 
178
190
  To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
179
191
 
data/Rakefile CHANGED
@@ -6,4 +6,10 @@ RSpec::Core::RakeTask.new(:spec) do |t|
6
6
  t.verbose = false
7
7
  end
8
8
 
9
+ desc "Initialize or reset rabbitmq docker container (run before rspec)"
10
+ task :init do
11
+ sh "cd docker && ./reset"
12
+ puts "You may need to give rabbitmq container a bit time to startup properly..."
13
+ end
14
+
9
15
  task default: [:spec, :standard]
data/docker/Dockerfile CHANGED
@@ -1,4 +1,4 @@
1
- FROM rabbitmq:3.8.12-management
1
+ FROM rabbitmq:3.8.14-management
2
2
 
3
3
  LABEL maintainer="thomas.steiner@ikey.ch"
4
4
 
@@ -1,5 +1,7 @@
1
1
  {
2
- "rabbit_version": "3.6.14",
2
+ "rabbitmq_version": "3.8.14",
3
+ "product_name": "RabbitMQ",
4
+ "product_version": "3.8.14",
3
5
  "users": [
4
6
  {
5
7
  "name": "guest",
@@ -51,6 +53,13 @@
51
53
  "durable": true,
52
54
  "auto_delete": false,
53
55
  "arguments": {}
56
+ },
57
+ {
58
+ "name": "processor2",
59
+ "vhost": "event_hub",
60
+ "durable": true,
61
+ "auto_delete": false,
62
+ "arguments": {}
54
63
  }
55
64
  ],
56
65
  "exchanges": [
@@ -89,6 +98,15 @@
89
98
  "auto_delete": false,
90
99
  "internal": false,
91
100
  "arguments": {}
101
+ },
102
+ {
103
+ "name": "processor2",
104
+ "vhost": "event_hub",
105
+ "type": "direct",
106
+ "durable": true,
107
+ "auto_delete": false,
108
+ "internal": false,
109
+ "arguments": {}
92
110
  }
93
111
  ],
94
112
  "bindings": [
@@ -123,6 +141,14 @@
123
141
  "destination_type": "queue",
124
142
  "routing_key": "",
125
143
  "arguments": {}
144
+ },
145
+ {
146
+ "source": "processor2",
147
+ "vhost": "event_hub",
148
+ "destination": "processor2",
149
+ "destination_type": "queue",
150
+ "routing_key": "",
151
+ "arguments": {}
126
152
  }
127
153
  ]
128
154
  }
@@ -4,7 +4,7 @@ services:
4
4
  rabbitmq:
5
5
  build: .
6
6
  container_name: eventhub.rabbitmq
7
- image: eventhub.rabbitmq:3.8.12
7
+ image: eventhub.rabbitmq:3.8.14
8
8
  ports:
9
9
  - "5672:5672"
10
10
  - "15672:15672"
data/docker/reset ADDED
@@ -0,0 +1,5 @@
1
+ # stopping, deleting an rebuilding rabbitmq docker container
2
+ docker-compose stop
3
+ docker rm eventhub.rabbitmq
4
+ docker rmi $(docker images 'eventhub.rabbitmq' -q)
5
+ docker-compose up -d
@@ -21,7 +21,6 @@ module EventHub
21
21
  loop do
22
22
  sleep Configuration.processor[:heartbeat_cycle_in_s]
23
23
  publish(heartbeat)
24
- EventHub.logger.info("Heartbeat has sent a beat")
25
24
  end
26
25
  end
27
26
 
@@ -1,3 +1,3 @@
1
1
  module EventHub
2
- VERSION = "1.9.0".freeze
2
+ VERSION = "1.10.0".freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: eventhub-processor2
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.9.0
4
+ version: 1.10.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Steiner, Thomas
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-02-26 00:00:00.000000000 Z
11
+ date: 2021-03-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: celluloid
@@ -160,6 +160,7 @@ files:
160
160
  - docker/definitions.json
161
161
  - docker/docker-compose.yml
162
162
  - docker/rabbitmq.config
163
+ - docker/reset
163
164
  - eventhub-processor2.gemspec
164
165
  - example/README.md
165
166
  - example/config/receiver.json