eventhub-processor2 1.19.0 → 1.20.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 +4 -4
- data/.github/dependabot.yml +2 -2
- data/.github/workflows/cd.yml +2 -2
- data/.github/workflows/ci.yml +3 -3
- data/.tool-versions +1 -1
- data/CHANGELOG.md +6 -0
- data/README.md +2 -1
- data/eventhub-processor2.gemspec +1 -0
- data/lib/eventhub/configuration.rb +6 -0
- data/lib/eventhub/logger.rb +7 -4
- data/lib/eventhub/message.rb +1 -1
- data/lib/eventhub/version.rb +1 -1
- metadata +17 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 81ac3772f42a5064c4adec4b688a3c67be1c77cdc687dad104fcd818da41fd22
|
4
|
+
data.tar.gz: 197ccdbe4e559c6f5111b4c085159a48af4bc741f4f3e0003d28e3b78bd30f61
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 230c1ae1e50dcead275b6394b0cd3817ad412dead817d0efd3337199444cdb8ed8f5648035f30b29cbd3c575f5aaa2281fbe3d2c8b050d6dded187713b8987d5
|
7
|
+
data.tar.gz: 7993add1980e3b8dc57be6eb9b86b0048fe43dd64abca332fbe048d7fe065bf07974ea8284cf9b04ac05db5932a9aea19da2bb72a04536cfc131b89f33242883
|
data/.github/dependabot.yml
CHANGED
@@ -5,7 +5,7 @@ updates:
|
|
5
5
|
schedule:
|
6
6
|
interval: "weekly"
|
7
7
|
day: "saturday"
|
8
|
-
time: "04:
|
8
|
+
time: "04:05"
|
9
9
|
timezone: "Europe/Zurich"
|
10
10
|
|
11
11
|
- package-ecosystem: "github-actions"
|
@@ -13,5 +13,5 @@ updates:
|
|
13
13
|
schedule:
|
14
14
|
interval: "weekly"
|
15
15
|
day: "saturday"
|
16
|
-
time: "04:
|
16
|
+
time: "04:05"
|
17
17
|
timezone: "Europe/Zurich"
|
data/.github/workflows/cd.yml
CHANGED
@@ -10,12 +10,12 @@ jobs:
|
|
10
10
|
|
11
11
|
steps:
|
12
12
|
- name: Checkout current code
|
13
|
-
uses: actions/checkout@
|
13
|
+
uses: actions/checkout@v4
|
14
14
|
|
15
15
|
- name: Set up Ruby
|
16
16
|
uses: ruby/setup-ruby@v1
|
17
17
|
with:
|
18
|
-
ruby-version: '3.
|
18
|
+
ruby-version: '3.3'
|
19
19
|
bundler-cache: true
|
20
20
|
cache-version: 1
|
21
21
|
|
data/.github/workflows/ci.yml
CHANGED
@@ -10,7 +10,7 @@ on:
|
|
10
10
|
- "*"
|
11
11
|
|
12
12
|
schedule:
|
13
|
-
- cron: 0 2 * *
|
13
|
+
- cron: 0 2 * * 3,6
|
14
14
|
|
15
15
|
# Allows you to run this workflow manually from the Actions tab
|
16
16
|
workflow_dispatch:
|
@@ -23,11 +23,11 @@ jobs:
|
|
23
23
|
strategy:
|
24
24
|
fail-fast: false
|
25
25
|
matrix:
|
26
|
-
ruby: [ '3.2', '3.1', '3.0', '2.7', '2.6']
|
26
|
+
ruby: [ '3.3', '3.2', '3.1', '3.0', '2.7', '2.6']
|
27
27
|
|
28
28
|
name: Ruby ${{ matrix.ruby }}
|
29
29
|
steps:
|
30
|
-
- uses: actions/checkout@
|
30
|
+
- uses: actions/checkout@v4
|
31
31
|
|
32
32
|
- name: Set up Ruby
|
33
33
|
uses: ruby/setup-ruby@v1
|
data/.tool-versions
CHANGED
@@ -1 +1 @@
|
|
1
|
-
ruby 3.
|
1
|
+
ruby 3.3.0
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
@@ -19,6 +19,7 @@ Processor2 is using Bunny http://rubybunny.info a feature complete RabbitMQ Clie
|
|
19
19
|
|
20
20
|
Currently supported and tested ruby versions are:
|
21
21
|
|
22
|
+
- 3.3
|
22
23
|
- 3.2
|
23
24
|
- 3.1
|
24
25
|
- 3.0
|
@@ -101,7 +102,7 @@ Usage: example [options]
|
|
101
102
|
-e, --environment ENVIRONMENT Define environment (default development)
|
102
103
|
-d, --detached Run processor detached as a daemon
|
103
104
|
-c, --config CONFIG Define configuration file
|
104
|
-
|
105
|
+
--console-log-only Logs to console only (E.g. containers)
|
105
106
|
|
106
107
|
bundle exec ruby example.rb
|
107
108
|
I, [2018-02-09T15:22:35.649646 #37966] INFO -- : example (1.1.0): has been started
|
data/eventhub-processor2.gemspec
CHANGED
@@ -26,6 +26,7 @@ Gem::Specification.new do |spec|
|
|
26
26
|
spec.add_dependency "bunny", "~> 2.20"
|
27
27
|
spec.add_dependency "eventhub-components", "~> 0.2"
|
28
28
|
spec.add_dependency "uuidtools", "~> 2.1"
|
29
|
+
spec.add_dependency "base64", "~> 0.2.0"
|
29
30
|
|
30
31
|
spec.add_development_dependency "bundler", "~> 2.3"
|
31
32
|
spec.add_development_dependency "rake", "~> 13.0"
|
@@ -10,6 +10,7 @@ module EventHub
|
|
10
10
|
attr_reader :environment # environment the processor is running
|
11
11
|
attr_reader :detached # run processor run as a daemon
|
12
12
|
attr_reader :config_file # name of configuration file
|
13
|
+
attr_reader :console_log_only # only log to console
|
13
14
|
attr_reader :config_data # data from configuration file
|
14
15
|
|
15
16
|
@name = "undefined"
|
@@ -29,6 +30,7 @@ module EventHub
|
|
29
30
|
@detached = false
|
30
31
|
@config_file = File.join(Dir.getwd, "config", "#{@name}.json")
|
31
32
|
@config_data = {}
|
33
|
+
@console_log_only = false
|
32
34
|
end
|
33
35
|
|
34
36
|
# parse options from argument list
|
@@ -45,6 +47,10 @@ module EventHub
|
|
45
47
|
@detached = true
|
46
48
|
end
|
47
49
|
|
50
|
+
opts.on(nil, "--console-log-only", "Only log to console (containers)") do
|
51
|
+
@console_log_only = true
|
52
|
+
end
|
53
|
+
|
48
54
|
note = "Define configuration file"
|
49
55
|
opts.on("-c", "--config CONFIG", note) do |config|
|
50
56
|
@config_file = config
|
data/lib/eventhub/logger.rb
CHANGED
@@ -4,10 +4,13 @@ module EventHub
|
|
4
4
|
unless defined?(@logger)
|
5
5
|
@logger = ::EventHub::Components::MultiLogger.new
|
6
6
|
@logger.add_device(Logger.new($stdout))
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
7
|
+
|
8
|
+
unless Configuration.console_log_only
|
9
|
+
@logger.add_device(
|
10
|
+
EventHub::Components::Logger.logstash(Configuration.name,
|
11
|
+
Configuration.environment)
|
12
|
+
)
|
13
|
+
end
|
11
14
|
end
|
12
15
|
@logger
|
13
16
|
end
|
data/lib/eventhub/message.rb
CHANGED
data/lib/eventhub/version.rb
CHANGED
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.
|
4
|
+
version: 1.20.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: 2023-
|
11
|
+
date: 2023-12-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: celluloid
|
@@ -66,6 +66,20 @@ dependencies:
|
|
66
66
|
- - "~>"
|
67
67
|
- !ruby/object:Gem::Version
|
68
68
|
version: '2.1'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: base64
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - "~>"
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: 0.2.0
|
76
|
+
type: :runtime
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - "~>"
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: 0.2.0
|
69
83
|
- !ruby/object:Gem::Dependency
|
70
84
|
name: bundler
|
71
85
|
requirement: !ruby/object:Gem::Requirement
|
@@ -206,7 +220,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
206
220
|
- !ruby/object:Gem::Version
|
207
221
|
version: '0'
|
208
222
|
requirements: []
|
209
|
-
rubygems_version: 3.3
|
223
|
+
rubygems_version: 3.5.3
|
210
224
|
signing_key:
|
211
225
|
specification_version: 4
|
212
226
|
summary: Next generation gem to build ruby based eventhub processor
|