grumlin 0.19.1 → 0.19.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +5 -5
- data/lib/definitions.yml +3 -0
- data/lib/grumlin/expressions/column.rb +15 -0
- data/lib/grumlin/request_dispatcher.rb +4 -4
- data/lib/grumlin/typing.rb +1 -1
- data/lib/grumlin/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b15930a9bee5daea1b1c30e3967aa80e7894ff864594dd2c773e6f505211ff6f
|
4
|
+
data.tar.gz: 9a9f11ebb808adc6443e3bc9be2c57b04027890a364bcdbb74e1e84e877f29f5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 174b21af80bf277e521fe255fc72fc4c2b238caffc2677abb0dc5f3fb2c848e6905dee572d3a4f986813e68a894ca0820a4570a8e642aefb96dd6bf02235e851
|
7
|
+
data.tar.gz: 810a0e36f59f762c92a0a55239654580d307056c077f42171541988aa37a90bb6728342598c7df2b97fcc024192b1ac7c7940dd1ebccec683e7470866e185c1a
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
grumlin (0.19.
|
4
|
+
grumlin (0.19.4)
|
5
5
|
async-pool (~> 0.3)
|
6
6
|
async-websocket (~> 0.19)
|
7
7
|
oj (~> 3.12)
|
@@ -18,7 +18,7 @@ GEM
|
|
18
18
|
tzinfo (~> 2.0)
|
19
19
|
zeitwerk (~> 2.3)
|
20
20
|
ast (2.4.2)
|
21
|
-
async (1.30.
|
21
|
+
async (1.30.2)
|
22
22
|
console (~> 1.10)
|
23
23
|
nio4r (~> 2.3)
|
24
24
|
timers (~> 4.1)
|
@@ -32,7 +32,7 @@ GEM
|
|
32
32
|
traces (~> 0.4.0)
|
33
33
|
async-io (1.33.0)
|
34
34
|
async
|
35
|
-
async-pool (0.3.
|
35
|
+
async-pool (0.3.10)
|
36
36
|
async (>= 1.25)
|
37
37
|
async-rspec (1.16.0)
|
38
38
|
rspec (~> 3.0)
|
@@ -47,7 +47,7 @@ GEM
|
|
47
47
|
benchmark-ips (2.10.0)
|
48
48
|
childprocess (4.0.0)
|
49
49
|
concurrent-ruby (1.1.8)
|
50
|
-
console (1.15.
|
50
|
+
console (1.15.3)
|
51
51
|
fiber-local
|
52
52
|
diff-lcs (1.4.4)
|
53
53
|
docile (1.4.0)
|
@@ -72,7 +72,7 @@ GEM
|
|
72
72
|
racc (~> 1.4)
|
73
73
|
nokogiri (1.13.1-x86_64-linux)
|
74
74
|
racc (~> 1.4)
|
75
|
-
oj (3.13.
|
75
|
+
oj (3.13.13)
|
76
76
|
overcommit (0.57.0)
|
77
77
|
childprocess (>= 0.6.3, < 5)
|
78
78
|
iniparse (~> 1.4)
|
data/lib/definitions.yml
CHANGED
@@ -0,0 +1,15 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module Grumlin
|
4
|
+
module Expressions
|
5
|
+
module Column
|
6
|
+
SUPPORTED_STEPS = Grumlin.definitions.dig(:expressions, :column).map(&:to_sym).freeze
|
7
|
+
|
8
|
+
class << self
|
9
|
+
extend Expression
|
10
|
+
|
11
|
+
define_steps(SUPPORTED_STEPS, "Column")
|
12
|
+
end
|
13
|
+
end
|
14
|
+
end
|
15
|
+
end
|
@@ -107,13 +107,13 @@ module Grumlin
|
|
107
107
|
end
|
108
108
|
|
109
109
|
def already_exists_error(status)
|
110
|
-
return VertexAlreadyExistsError if status[:message]
|
111
|
-
return EdgeAlreadyExistsError if status[:message]
|
110
|
+
return VertexAlreadyExistsError if status[:message]&.include?(VERTEX_ALREADY_EXISTS)
|
111
|
+
return EdgeAlreadyExistsError if status[:message]&.include?(EDGE_ALREADY_EXISTS)
|
112
112
|
end
|
113
113
|
|
114
114
|
def concurrent_insert_error(status)
|
115
|
-
return ConcurrentVertexInsertFailedError if status[:message]
|
116
|
-
return ConcurrentEdgeInsertFailedError if status[:message]
|
115
|
+
return ConcurrentVertexInsertFailedError if status[:message]&.include?(CONCURRENT_VERTEX_INSERT_FAILED)
|
116
|
+
return ConcurrentEdgeInsertFailedError if status[:message]&.include?(CONCURRENT_EDGE_INSERT_FAILED)
|
117
117
|
end
|
118
118
|
end
|
119
119
|
end
|
data/lib/grumlin/typing.rb
CHANGED
@@ -21,7 +21,7 @@ module Grumlin
|
|
21
21
|
"g:T" => ->(value) { Grumlin::Expressions::T.public_send(value) }
|
22
22
|
}.freeze
|
23
23
|
|
24
|
-
CASTABLE_TYPES = [Hash, String, Integer, TrueClass, FalseClass].freeze
|
24
|
+
CASTABLE_TYPES = [Hash, String, Integer, TrueClass, FalseClass, NilClass].freeze
|
25
25
|
|
26
26
|
class << self
|
27
27
|
def cast(value)
|
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.19.
|
4
|
+
version: 0.19.4
|
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-05-
|
11
|
+
date: 2022-05-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: async-pool
|
@@ -115,6 +115,7 @@ files:
|
|
115
115
|
- lib/grumlin/action.rb
|
116
116
|
- lib/grumlin/client.rb
|
117
117
|
- lib/grumlin/edge.rb
|
118
|
+
- lib/grumlin/expressions/column.rb
|
118
119
|
- lib/grumlin/expressions/expression.rb
|
119
120
|
- lib/grumlin/expressions/operator.rb
|
120
121
|
- lib/grumlin/expressions/order.rb
|