grumlin 0.22.4 → 0.22.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/grumlin/action.rb +1 -1
- data/lib/grumlin/dummy_transaction.rb +1 -1
- data/lib/grumlin/shortcuts/storage.rb +2 -2
- data/lib/grumlin/steppable.rb +5 -3
- data/lib/grumlin/transaction.rb +1 -1
- data/lib/grumlin/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 88898067f66c807c685077f768ca71db95d7b246540764334b421f0c86fe92cc
|
4
|
+
data.tar.gz: 5801ac047063d58395e36e194f961ccb2abce3eb772a0b7648c3f35434700c53
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b6377eb1c36a2caf2536f92574d17a57e7da76f8f8cb7995280aabcde1412fc84e214cdb8a296a3d61d6736efd073e09c415b7a34bdf686567b427eb434ca21e
|
7
|
+
data.tar.gz: 172be358c5882da351e2d12db7688a2521808becf0a027c870fa38b27836e76b82b7a995ddf880f4cc205639dba92dfdc771908450891ac6117f241617969c6a
|
data/Gemfile.lock
CHANGED
data/lib/grumlin/action.rb
CHANGED
@@ -5,7 +5,7 @@ module Grumlin
|
|
5
5
|
attr_reader :name, :args, :params, :next_step, :configuration_steps, :previous_step, :shortcut
|
6
6
|
|
7
7
|
# client is only used when a traversal is a part of transaction
|
8
|
-
def initialize(name, args: [], params: {}, previous_step: nil, pool:
|
8
|
+
def initialize(name, args: [], params: {}, previous_step: nil, pool: nil, session_id: nil)
|
9
9
|
super(pool: pool, session_id: session_id)
|
10
10
|
|
11
11
|
@name = name.to_sym
|
@@ -6,7 +6,7 @@ module Grumlin
|
|
6
6
|
|
7
7
|
include Console
|
8
8
|
|
9
|
-
def initialize(traversal_start_class, pool:
|
9
|
+
def initialize(traversal_start_class, pool: nil) # rubocop:disable Lint/MissingSuper, Lint/UnusedMethodArgument
|
10
10
|
@traversal_start_class = traversal_start_class
|
11
11
|
|
12
12
|
logger.info(self) do
|
@@ -36,7 +36,7 @@ module Grumlin
|
|
36
36
|
ac = action_class
|
37
37
|
|
38
38
|
shortcut_methods_module.define_method(name) do |*args, **params|
|
39
|
-
next ac.new(name, args: args, params: params, previous_step: self)
|
39
|
+
next ac.new(name, args: args, params: params, previous_step: self, pool: Grumlin.default_pool)
|
40
40
|
end
|
41
41
|
extend_traversal_classes(shortcut) unless shortcut.lazy?
|
42
42
|
end
|
@@ -52,7 +52,7 @@ module Grumlin
|
|
52
52
|
end
|
53
53
|
|
54
54
|
def __
|
55
|
-
|
55
|
+
traversal_start_class.new(pool: Grumlin.default_pool)
|
56
56
|
end
|
57
57
|
|
58
58
|
def traversal_start_class
|
data/lib/grumlin/steppable.rb
CHANGED
@@ -12,7 +12,7 @@ module Grumlin
|
|
12
12
|
|
13
13
|
ALL_STEPS = START_STEPS + CONFIGURATION_STEPS + REGULAR_STEPS
|
14
14
|
|
15
|
-
def initialize(pool:
|
15
|
+
def initialize(pool: nil, session_id: nil)
|
16
16
|
@pool = pool
|
17
17
|
@session_id = session_id
|
18
18
|
|
@@ -23,12 +23,14 @@ module Grumlin
|
|
23
23
|
|
24
24
|
ALL_STEPS.each do |step|
|
25
25
|
define_method step do |*args, **params|
|
26
|
-
shortcuts.action_class.new(step, args: args, params: params, previous_step: self,
|
26
|
+
shortcuts.action_class.new(step, args: args, params: params, previous_step: self,
|
27
|
+
session_id: @session_id, pool: @pool)
|
27
28
|
end
|
28
29
|
end
|
29
30
|
|
30
31
|
def step(name, *args, **params)
|
31
|
-
shortcuts.action_class.new(name, args: args, params: params, previous_step: self,
|
32
|
+
shortcuts.action_class.new(name, args: args, params: params, previous_step: self,
|
33
|
+
session_id: @session_id, pool: @pool)
|
32
34
|
end
|
33
35
|
|
34
36
|
def_delegator :shortcuts, :__
|
data/lib/grumlin/transaction.rb
CHANGED
@@ -9,7 +9,7 @@ module Grumlin
|
|
9
9
|
COMMIT = Grumlin::Repository.new.g.step(:tx, :commit).bytecode
|
10
10
|
ROLLBACK = Grumlin::Repository.new.g.step(:tx, :rollback).bytecode
|
11
11
|
|
12
|
-
def initialize(traversal_start_class, pool:
|
12
|
+
def initialize(traversal_start_class, pool:)
|
13
13
|
@traversal_start_class = traversal_start_class
|
14
14
|
@pool = pool
|
15
15
|
|
data/lib/grumlin/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: grumlin
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.22.
|
4
|
+
version: 0.22.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Gleb Sinyavskiy
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-08-
|
11
|
+
date: 2022-08-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: async-pool
|