grumlin 0.14.4 → 0.14.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/main.yml +3 -3
- data/CHANGELOG.md +6 -0
- data/Gemfile.lock +1 -1
- data/lib/grumlin/anonymous_step.rb +5 -5
- data/lib/grumlin/expressions/order.rb +1 -1
- data/lib/grumlin/typing.rb +1 -0
- 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: f286174f46acd657ca106d29b2b5aa981c7b8b6f78d5e5e0ccffc8c844991510
|
4
|
+
data.tar.gz: f810075cd2f7ac036dd292f03b626b8033ff79070299a6c9356ac72a15604292
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 80fdbe5667fe93115a8d5dc817bf6d3f4bf6869c5f739a0d2ea36d53c06cf10fcff74c6384a4b796272b265e3fa392000b41954ab89c5400c017d5f40aabff81
|
7
|
+
data.tar.gz: 2b4d6f0b34194c91d8bef2a64f7dd9f98d458a3156a4edeaf2e4e9a5044133af45ed2e946584c2fe8d433ed24c13d2e3619fefdfca926682a39619a30656f17e
|
data/.github/workflows/main.yml
CHANGED
@@ -10,7 +10,7 @@ jobs:
|
|
10
10
|
|
11
11
|
- uses: ruby/setup-ruby@v1
|
12
12
|
with:
|
13
|
-
ruby-version: 3.0
|
13
|
+
ruby-version: "3.0"
|
14
14
|
bundler-cache: true
|
15
15
|
|
16
16
|
- name: Run the default task
|
@@ -22,7 +22,7 @@ jobs:
|
|
22
22
|
runs-on: ubuntu-latest
|
23
23
|
strategy:
|
24
24
|
matrix:
|
25
|
-
ruby: [2.7, 3.0]
|
25
|
+
ruby: ["2.7", "3.0"]
|
26
26
|
steps:
|
27
27
|
- uses: actions/checkout@v2
|
28
28
|
|
@@ -54,7 +54,7 @@ jobs:
|
|
54
54
|
|
55
55
|
- uses: ruby/setup-ruby@v1
|
56
56
|
with:
|
57
|
-
ruby-version: 3.0
|
57
|
+
ruby-version: "3.0"
|
58
58
|
bundler-cache: true
|
59
59
|
|
60
60
|
- name: Build gem
|
data/CHANGELOG.md
CHANGED
data/Gemfile.lock
CHANGED
@@ -5,10 +5,10 @@ module Grumlin
|
|
5
5
|
attr_reader :name, :previous_step, :configuration_steps
|
6
6
|
|
7
7
|
# TODO: add other steps
|
8
|
-
SUPPORTED_STEPS = %i[E V addE addV and as both bothE by choose coalesce count dedup drop elementMap emit
|
9
|
-
group groupCount has hasId hasLabel hasNot id in inE inV is label limit not or order
|
10
|
-
path project property range repeat sack select sideEffect skip sum tail to unfold
|
11
|
-
valueMap values where with].freeze
|
8
|
+
SUPPORTED_STEPS = %i[E V addE addV aggregate and as both bothE by choose coalesce count dedup drop elementMap emit
|
9
|
+
fold from group groupCount has hasId hasLabel hasNot id in inE inV is label limit not or order
|
10
|
+
out outE path project property range repeat sack select sideEffect skip sum tail to unfold
|
11
|
+
union until valueMap values where with].freeze
|
12
12
|
|
13
13
|
def initialize(name, *args, configuration_steps: [], previous_step: nil, **params)
|
14
14
|
@name = name
|
@@ -41,7 +41,7 @@ module Grumlin
|
|
41
41
|
end
|
42
42
|
|
43
43
|
def args
|
44
|
-
[*@args, @params.any? ?
|
44
|
+
[*@args, @params.any? ? @params : nil].compact
|
45
45
|
end
|
46
46
|
end
|
47
47
|
end
|
data/lib/grumlin/typing.rb
CHANGED
@@ -14,6 +14,7 @@ module Grumlin
|
|
14
14
|
"g:Double" => ->(value) { cast_double(value) },
|
15
15
|
"g:Traverser" => ->(value) { cast(value[:value]) }, # TODO: wtf is bulk?
|
16
16
|
"g:Direction" => ->(value) { value },
|
17
|
+
# "g:VertexProperty"=> ->(value) { value }, # TODO: implement me
|
17
18
|
"g:T" => ->(value) { value.to_sym }
|
18
19
|
}.freeze
|
19
20
|
|
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.14.
|
4
|
+
version: 0.14.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: 2021-12-
|
11
|
+
date: 2021-12-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: async-pool
|