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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 512af99a3613024d7ea0a4837359fae0f54d0a8cbe1077b5084dc9f5b0136143
4
- data.tar.gz: ef0ba0abdcc269b1873e81b30fd08fce1647b31856f75d6652af67151fc402f4
3
+ metadata.gz: 88898067f66c807c685077f768ca71db95d7b246540764334b421f0c86fe92cc
4
+ data.tar.gz: 5801ac047063d58395e36e194f961ccb2abce3eb772a0b7648c3f35434700c53
5
5
  SHA512:
6
- metadata.gz: 881de04b1163b74f27a6b890d3a43e16deaa2ab05f553c5bb567af20c689dc78fc5fed4cd81a33803ab3ed37f19be721f71e49062bcb89fa318370c5926ed20f
7
- data.tar.gz: e26aad07bc0e3f8f59ca06ed2bb0875b3cc499db7e3982e1617a28da4995a60c8b68dceb6666379fa36289cbe4fa3c7a621c8a72509e7e8fbe7c7f504fcc7ebc
6
+ metadata.gz: b6377eb1c36a2caf2536f92574d17a57e7da76f8f8cb7995280aabcde1412fc84e214cdb8a296a3d61d6736efd073e09c415b7a34bdf686567b427eb434ca21e
7
+ data.tar.gz: 172be358c5882da351e2d12db7688a2521808becf0a027c870fa38b27836e76b82b7a995ddf880f4cc205639dba92dfdc771908450891ac6117f241617969c6a
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- grumlin (0.22.4)
4
+ grumlin (0.22.5)
5
5
  async-pool (~> 0.3)
6
6
  async-websocket (>= 0.19, < 0.20)
7
7
  oj (~> 3.13)
@@ -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: Grumlin.default_pool, session_id: nil)
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: Grumlin.default_pool) # rubocop:disable Lint/MissingSuper, Lint/UnusedMethodArgument
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
- @__ ||= traversal_start_class.new
55
+ traversal_start_class.new(pool: Grumlin.default_pool)
56
56
  end
57
57
 
58
58
  def traversal_start_class
@@ -12,7 +12,7 @@ module Grumlin
12
12
 
13
13
  ALL_STEPS = START_STEPS + CONFIGURATION_STEPS + REGULAR_STEPS
14
14
 
15
- def initialize(pool: Grumlin.default_pool, session_id: nil)
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, session_id: @session_id)
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, session_id: @session_id)
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, :__
@@ -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: Grumlin.default_pool)
12
+ def initialize(traversal_start_class, pool:)
13
13
  @traversal_start_class = traversal_start_class
14
14
  @pool = pool
15
15
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Grumlin
4
- VERSION = "0.22.4"
4
+ VERSION = "0.22.5"
5
5
  end
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
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-22 00:00:00.000000000 Z
11
+ date: 2022-08-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: async-pool