grumlin 0.19.1 → 0.19.4

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: 0aea0105e4e4a5a87a4d7cfc025c05218ba5cdec2e9fef267a39f013e30d47fd
4
- data.tar.gz: e115950e317f51ff52cfea2b17df2c390566c04212fd7df0a0b083ac5c286765
3
+ metadata.gz: b15930a9bee5daea1b1c30e3967aa80e7894ff864594dd2c773e6f505211ff6f
4
+ data.tar.gz: 9a9f11ebb808adc6443e3bc9be2c57b04027890a364bcdbb74e1e84e877f29f5
5
5
  SHA512:
6
- metadata.gz: ef169bdc88d8be5c589f15ddf4223eb32adfd0a8e34f3ef67671a21c5fb7fecd44f43dfbe57d215047488e0c8e498a3d9f76e8a1c3517b9d055854e76ee42ccd
7
- data.tar.gz: 1b1fdf883a92daef8b0e40b4576c3d7f4f4b6bb3fa95c774002f57b7d5d0ff4b0010a3a91c8a500ea9c629ea368649d7e45cc97f3d074f64a02b5d906a136d98
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.1)
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.1)
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.9)
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.0)
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.11)
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
@@ -77,6 +77,9 @@ steps:
77
77
  - withSack
78
78
  - withSideEffect
79
79
  expressions:
80
+ column:
81
+ - keys
82
+ - values
80
83
  operator:
81
84
  - addAll
82
85
  - and
@@ -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].include?(VERTEX_ALREADY_EXISTS)
111
- return EdgeAlreadyExistsError if status[:message].include?(EDGE_ALREADY_EXISTS)
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].include?(CONCURRENT_VERTEX_INSERT_FAILED)
116
- return ConcurrentEdgeInsertFailedError if status[:message].include?(CONCURRENT_EDGE_INSERT_FAILED)
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
@@ -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)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Grumlin
4
- VERSION = "0.19.1"
4
+ VERSION = "0.19.4"
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.19.1
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-03 00:00:00.000000000 Z
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