eventhub-processor2 1.19.0 → 1.20.0

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: '052794836cc75c8908c03f61cc5381717d5ed76985f7d3c949fa9dbe7d55b32f'
4
- data.tar.gz: b92271dc527b40b66b6005b7a0547c77b224b0e90be973ccadaa57705ab6789a
3
+ metadata.gz: 81ac3772f42a5064c4adec4b688a3c67be1c77cdc687dad104fcd818da41fd22
4
+ data.tar.gz: 197ccdbe4e559c6f5111b4c085159a48af4bc741f4f3e0003d28e3b78bd30f61
5
5
  SHA512:
6
- metadata.gz: 0d9aec7ca4a1f60f33ea8d07307d262e9999bedc5c285bb7369dc3667be2916e8e73b9597ab72a65837bf6a7a7de8c107e1a7f365cc17ae064f4f2e3453bf6f5
7
- data.tar.gz: ff0a4e5bb9a261838913fbd6265ac796901ed23285e9f0c3e167082a8eb1f16e457b79aaad697d97acf4293690ccad2e50d4da93ff411a13a25f730360c4cfbf
6
+ metadata.gz: 230c1ae1e50dcead275b6394b0cd3817ad412dead817d0efd3337199444cdb8ed8f5648035f30b29cbd3c575f5aaa2281fbe3d2c8b050d6dded187713b8987d5
7
+ data.tar.gz: 7993add1980e3b8dc57be6eb9b86b0048fe43dd64abca332fbe048d7fe065bf07974ea8284cf9b04ac05db5932a9aea19da2bb72a04536cfc131b89f33242883
@@ -5,7 +5,7 @@ updates:
5
5
  schedule:
6
6
  interval: "weekly"
7
7
  day: "saturday"
8
- time: "04:00"
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:00"
16
+ time: "04:05"
17
17
  timezone: "Europe/Zurich"
@@ -10,12 +10,12 @@ jobs:
10
10
 
11
11
  steps:
12
12
  - name: Checkout current code
13
- uses: actions/checkout@v3
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.1'
18
+ ruby-version: '3.3'
19
19
  bundler-cache: true
20
20
  cache-version: 1
21
21
 
@@ -10,7 +10,7 @@ on:
10
10
  - "*"
11
11
 
12
12
  schedule:
13
- - cron: 0 2 * * 1,3,5,6
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@v3
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.2.2
1
+ ruby 3.3.0
data/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # Changelog of EventHub::Processor2
2
2
 
3
+ ## 1.20.0 / 2023-12-28
4
+
5
+ * Update dependencies
6
+ * Support Ruby 3.3.0
7
+ * Have a console log only option
8
+
3
9
  ## 1.19.0 / 2023-04-23
4
10
 
5
11
  * Update dependencies
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
@@ -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
@@ -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
- @logger.add_device(
8
- EventHub::Components::Logger.logstash(Configuration.name,
9
- Configuration.environment)
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
@@ -32,7 +32,7 @@ module EventHub
32
32
  self.header.get(header)
33
33
  end
34
34
 
35
- define_method("#{name}=") do |value|
35
+ define_method(:"#{name}=") do |value|
36
36
  self.header.set(header, value)
37
37
  end
38
38
  end
@@ -1,3 +1,3 @@
1
1
  module EventHub
2
- VERSION = "1.19.0".freeze
2
+ VERSION = "1.20.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.19.0
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-04-23 00:00:00.000000000 Z
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.26
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