grumlin 0.6.1 → 0.6.2

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f6fc993f0e67d4bb4d7a97b3e2d64d692b334f862cb16c73349d222fdb21b95f
4
- data.tar.gz: fb14fae220786a9f8b5654b271d344a24e09dcbaf565e998716e6465f6cc62f9
3
+ metadata.gz: 6633f34f12f74200b56d3447e7b1cd5c2c4185cd4013a27157d809b2f97f01b2
4
+ data.tar.gz: a5b0c1b0f4a8ef813a48144b79b17a71c6385802ff77b46ef0fa703643790ac1
5
5
  SHA512:
6
- metadata.gz: 14d22f47279dce78ccc70442ecaee502c8cf26547fa4a4ea679fb212699877e3bdda45af3fd957261bd4b77a2a410c5be20be9b80a6f239a3acb90d57e1daf40
7
- data.tar.gz: 9b5fd78c4c8826e2459ed652b11bf611df64604086488a543687e8a8edb34913958df74dccd2bc0d08dc1eb2f1d0c608e0639c54aac956f5a164a66f8d1f2adb
6
+ metadata.gz: 6824448759e26af95f8753a1461fac6b0b66677e1cab723b8e79c76333c4e791b5364da81f87844b624796238a3e02b13065a7afb64d7a5ef7ca83a6e9c3e8be
7
+ data.tar.gz: d7ce1a01b2b50f90a317d270ad005561220fcb0f69da5036b97d20c88b2458e5dd7ea285c384cef5d5e9521ff077f2d43650985c1e928942e463cfc29bbdd247
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- grumlin (0.6.1)
4
+ grumlin (0.6.2)
5
5
  async-pool (~> 0.3)
6
6
  async-websocket (~> 0.19)
7
7
 
@@ -6,8 +6,8 @@ module Grumlin
6
6
 
7
7
  # TODO: add other steps
8
8
  SUPPORTED_STEPS = %w[E V addE addV as by coalesce count dedup drop elementMap emit fold from group groupCount has
9
- hasLabel hasNot in inV label limit not order out outE path project property repeat select to
10
- unfold valueMap values where].freeze
9
+ hasId hasLabel hasNot in inV label limit not order out outE path project property repeat select
10
+ to unfold valueMap values where].freeze
11
11
 
12
12
  def initialize(name, *args, previous_steps: [])
13
13
  @name = name
@@ -26,6 +26,14 @@ module Grumlin
26
26
  def write(*args)
27
27
  @client.write(*args)
28
28
  end
29
+
30
+ def viable?
31
+ !closed?
32
+ end
33
+
34
+ def reusable?
35
+ !closed?
36
+ end
29
37
  end
30
38
 
31
39
  def initialize(url, parent: Async::Task.current, **client_options)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Grumlin
4
- VERSION = "0.6.1"
4
+ VERSION = "0.6.2"
5
5
  end
data/lib/grumlin.rb CHANGED
@@ -43,10 +43,9 @@ module Grumlin
43
43
  class Config
44
44
  attr_accessor :url, :pool_size, :client_concurrency, :client_factory
45
45
 
46
- # For some reason, client_concurrency must be greater than pool_size
47
46
  def initialize
48
47
  @pool_size = 10
49
- @client_concurrency = 20
48
+ @client_concurrency = 2
50
49
  @client_factory = ->(url, parent) { Grumlin::Client.new(url, parent: parent) }
51
50
  end
52
51
 
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.6.1
4
+ version: 0.6.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gleb Sinyavskiy
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-09-01 00:00:00.000000000 Z
11
+ date: 2021-09-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: async-pool