strum-pipeline 0.2.0 → 0.2.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +8 -0
- data/Gemfile.lock +33 -28
- data/lib/strum/pipeline/version.rb +1 -1
- data/lib/strum/pipeline.rb +10 -3
- data/strum-pipeline.gemspec +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6baedd0bf4dd58d4b40ed9e8a0f5549bea66b67eed85dba35bb28572489da72d
|
4
|
+
data.tar.gz: e7ccc89bf36eda404d95f5a2f155a1fbb589848035b20c0e710038a4684523ce
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f6ce24968a4e232d2093114154a53d956f3af7a332e8bade0aef180f8c5cb19c44d83128c2a9b2553dcb620d9a37f621de89deefc63a90a820c802f3ec0c95f2
|
7
|
+
data.tar.gz: 5ed805498082ae9c3799beb7132b05dea20909aa5b46473a62143059c0dbcac8aa4caac3d133822efa9034c942600b7ca4d0a4b0c4175c27bde2b6fd5e546ac6
|
data/CHANGELOG.md
CHANGED
@@ -2,6 +2,14 @@
|
|
2
2
|
# Changelog
|
3
3
|
All notable changes to this project will be documented in this file.
|
4
4
|
|
5
|
+
## [0.2.2] - 2023-04-25
|
6
|
+
### Added
|
7
|
+
- `bind_to_pipeline` setting to be able to define if strum-pipeline binds init/steps to pipeline or not by [@valeriia.kolisnyk].
|
8
|
+
|
9
|
+
## [0.2.1] - 2023-04-20
|
10
|
+
### Changed
|
11
|
+
- `strum-esb` dependency version to `~> 0.4` by [@valeriia.kolisnyk].
|
12
|
+
|
5
13
|
## [0.2.0] - 2022-03-27
|
6
14
|
### Changed
|
7
15
|
- init step always start new pipeline
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
strum-pipeline (0.2.
|
4
|
+
strum-pipeline (0.2.2)
|
5
5
|
bunny (~> 2.15)
|
6
6
|
connection_pool (~> 2.2)
|
7
7
|
dry-configurable (~> 0.11)
|
@@ -10,53 +10,57 @@ PATH
|
|
10
10
|
redis-objects (~> 1.5)
|
11
11
|
singleton (~> 0.1)
|
12
12
|
sneakers (~> 2.12)
|
13
|
-
strum-esb (~> 0.
|
13
|
+
strum-esb (~> 0.4)
|
14
14
|
|
15
15
|
GEM
|
16
16
|
remote: https://rubygems.org/
|
17
17
|
specs:
|
18
18
|
amq-protocol (2.3.2)
|
19
19
|
ast (2.4.2)
|
20
|
-
bunny (2.
|
20
|
+
bunny (2.20.3)
|
21
21
|
amq-protocol (~> 2.3, >= 2.3.1)
|
22
22
|
sorted_set (~> 1, >= 1.0.2)
|
23
|
-
concurrent-ruby (1.
|
23
|
+
concurrent-ruby (1.2.2)
|
24
24
|
connection_pool (2.2.5)
|
25
25
|
debase (0.2.5.beta2)
|
26
26
|
debase-ruby_core_source (>= 0.10.12)
|
27
|
-
debase-ruby_core_source (
|
27
|
+
debase-ruby_core_source (3.2.0)
|
28
28
|
diff-lcs (1.5.0)
|
29
29
|
dry-configurable (0.12.1)
|
30
30
|
concurrent-ruby (~> 1.0)
|
31
31
|
dry-core (~> 0.5, >= 0.5.0)
|
32
|
-
dry-core (0.
|
32
|
+
dry-core (0.9.1)
|
33
33
|
concurrent-ruby (~> 1.0)
|
34
|
+
zeitwerk (~> 2.6)
|
34
35
|
dry-inflector (0.2.1)
|
35
|
-
json (2.6.
|
36
|
-
parallel (1.
|
37
|
-
parser (3.
|
36
|
+
json (2.6.3)
|
37
|
+
parallel (1.23.0)
|
38
|
+
parser (3.2.2.0)
|
38
39
|
ast (~> 2.4.1)
|
39
40
|
rainbow (3.1.1)
|
40
41
|
rake (12.3.3)
|
41
|
-
rbtree (0.4.
|
42
|
-
redis (
|
43
|
-
|
44
|
-
|
45
|
-
|
42
|
+
rbtree (0.4.6)
|
43
|
+
redis (5.0.6)
|
44
|
+
redis-client (>= 0.9.0)
|
45
|
+
redis-client (0.14.1)
|
46
|
+
connection_pool
|
47
|
+
redis-objects (1.7.0)
|
48
|
+
redis
|
49
|
+
regexp_parser (2.8.0)
|
46
50
|
rexml (3.2.5)
|
47
|
-
rspec (3.
|
48
|
-
rspec-core (~> 3.
|
49
|
-
rspec-expectations (~> 3.
|
50
|
-
rspec-mocks (~> 3.
|
51
|
-
rspec-core (3.
|
52
|
-
rspec-support (~> 3.
|
53
|
-
rspec-expectations (3.
|
51
|
+
rspec (3.12.0)
|
52
|
+
rspec-core (~> 3.12.0)
|
53
|
+
rspec-expectations (~> 3.12.0)
|
54
|
+
rspec-mocks (~> 3.12.0)
|
55
|
+
rspec-core (3.12.2)
|
56
|
+
rspec-support (~> 3.12.0)
|
57
|
+
rspec-expectations (3.12.3)
|
54
58
|
diff-lcs (>= 1.2.0, < 2.0)
|
55
|
-
rspec-support (~> 3.
|
56
|
-
rspec-mocks (3.
|
59
|
+
rspec-support (~> 3.12.0)
|
60
|
+
rspec-mocks (3.12.5)
|
57
61
|
diff-lcs (>= 1.2.0, < 2.0)
|
58
|
-
rspec-support (~> 3.
|
59
|
-
rspec-support (3.
|
62
|
+
rspec-support (~> 3.12.0)
|
63
|
+
rspec-support (3.12.0)
|
60
64
|
rubocop (0.90.0)
|
61
65
|
parallel (~> 1.10)
|
62
66
|
parser (>= 2.7.1.1)
|
@@ -70,10 +74,10 @@ GEM
|
|
70
74
|
parser (>= 2.7.1.5)
|
71
75
|
ruby-debug-ide (0.7.3)
|
72
76
|
rake (>= 0.8.1)
|
73
|
-
ruby-progressbar (1.
|
77
|
+
ruby-progressbar (1.13.0)
|
74
78
|
serverengine (2.1.1)
|
75
79
|
sigdump (~> 0.2.2)
|
76
|
-
set (1.0.
|
80
|
+
set (1.0.3)
|
77
81
|
sigdump (0.2.4)
|
78
82
|
singleton (0.1.1)
|
79
83
|
sneakers (2.12.0)
|
@@ -85,7 +89,7 @@ GEM
|
|
85
89
|
sorted_set (1.0.3)
|
86
90
|
rbtree
|
87
91
|
set (~> 1.0)
|
88
|
-
strum-esb (0.
|
92
|
+
strum-esb (0.4.1)
|
89
93
|
bunny (~> 2.15)
|
90
94
|
connection_pool (~> 2.2.2)
|
91
95
|
dry-configurable (~> 0.12.1)
|
@@ -94,6 +98,7 @@ GEM
|
|
94
98
|
sneakers (~> 2.12)
|
95
99
|
thor (1.2.1)
|
96
100
|
unicode-display_width (1.8.0)
|
101
|
+
zeitwerk (2.6.7)
|
97
102
|
|
98
103
|
PLATFORMS
|
99
104
|
ruby
|
data/lib/strum/pipeline.rb
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
require "strum/pipeline/version"
|
4
4
|
require "redis/objects"
|
5
|
-
require
|
5
|
+
require "connection_pool"
|
6
6
|
require "strum/esb"
|
7
7
|
require "strum/pipeline/storage"
|
8
8
|
require "dry/configurable"
|
@@ -18,6 +18,7 @@ module Strum
|
|
18
18
|
port: ENV.fetch("PIPELINE_REDIS_PORT", "6379"),
|
19
19
|
db: ENV.fetch("PIPELINE_REDIS_DB", "0")
|
20
20
|
}
|
21
|
+
setting :bind_to_pipeline, true
|
21
22
|
# setting :redis_connection_pool
|
22
23
|
|
23
24
|
Strum::Esb.config.after_fork_hooks << proc do
|
@@ -68,16 +69,22 @@ module Strum
|
|
68
69
|
Strum::Pipeline.config.ttl = interval
|
69
70
|
end
|
70
71
|
|
72
|
+
def bind_to_pipeline(value)
|
73
|
+
Strum::Pipeline.config.bind_to_pipeline = value
|
74
|
+
end
|
75
|
+
|
71
76
|
def inits
|
72
77
|
@inits ||= []
|
73
78
|
end
|
74
|
-
|
79
|
+
|
75
80
|
def init(message_type, message_binding, handler = nil)
|
76
|
-
bind_to(pipeline_name, message_type, message_binding, handler)
|
81
|
+
bind_to(pipeline_name, message_type, message_binding, handler) if Strum::Pipeline.config.bind_to_pipeline
|
77
82
|
inits << handler_key(message_type, message_binding)
|
78
83
|
end
|
79
84
|
|
80
85
|
def step(message_type, message_binding, handler = nil)
|
86
|
+
return unless Strum::Pipeline.config.bind_to_pipeline
|
87
|
+
|
81
88
|
bind_to(pipeline_name, message_type, message_binding, handler) do |bindings|
|
82
89
|
bindings[:pipeline] ||= {}
|
83
90
|
bindings[:pipeline][:name] = pipeline_name
|
data/strum-pipeline.gemspec
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: strum-pipeline
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Serhiy Nazarov
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2023-04-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bunny
|
@@ -128,14 +128,14 @@ dependencies:
|
|
128
128
|
requirements:
|
129
129
|
- - "~>"
|
130
130
|
- !ruby/object:Gem::Version
|
131
|
-
version: 0.
|
131
|
+
version: '0.4'
|
132
132
|
type: :runtime
|
133
133
|
prerelease: false
|
134
134
|
version_requirements: !ruby/object:Gem::Requirement
|
135
135
|
requirements:
|
136
136
|
- - "~>"
|
137
137
|
- !ruby/object:Gem::Version
|
138
|
-
version: 0.
|
138
|
+
version: '0.4'
|
139
139
|
description:
|
140
140
|
email:
|
141
141
|
- sn@nazarov.com.ua
|