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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 02a213b95f80992accf37eecb32684369e2e8a1582d10be4014e5c59b8381ec3
4
- data.tar.gz: ddf854b45f388d9a1c6e4a557e715c9d4363f2ae1c44503969e7d4c819537c1e
3
+ metadata.gz: f286174f46acd657ca106d29b2b5aa981c7b8b6f78d5e5e0ccffc8c844991510
4
+ data.tar.gz: f810075cd2f7ac036dd292f03b626b8033ff79070299a6c9356ac72a15604292
5
5
  SHA512:
6
- metadata.gz: 812636c84d1cffaf7bfb5b9c549b3d5c2fca7999b98c395e3cc9fa95701fe73ad0d91e159ba70c672e9bc5671119efd2f6ba65313e6c1e3c8d98e96e64cedc41
7
- data.tar.gz: 1863a834265130e9f14cc48d720f638825d86f1a12c70f3d77da4dd18fe835bf7ab0eedcc374ab51bdc0ec007b4c1af8e2f0798b03bd6d2c1fde71d5d544f9bb
6
+ metadata.gz: 80fdbe5667fe93115a8d5dc817bf6d3f4bf6869c5f739a0d2ea36d53c06cf10fcff74c6384a4b796272b265e3fa392000b41954ab89c5400c017d5f40aabff81
7
+ data.tar.gz: 2b4d6f0b34194c91d8bef2a64f7dd9f98d458a3156a4edeaf2e4e9a5044133af45ed2e946584c2fe8d433ed24c13d2e3619fefdfca926682a39619a30656f17e
@@ -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
@@ -1,3 +1,9 @@
1
+ ## [0.14.5] - 2021-12-27
2
+
3
+ - Fix params handling
4
+ - Add `aggregate` step
5
+ - Add `Order.shuffle`
6
+
1
7
  ## [0.14.4] - 2021-12-17
2
8
 
3
9
  - `Grumlin::Repository.shorcuts_from` do not raise `ArgumentError` when importing an already existing shortcut
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- grumlin (0.14.4)
4
+ grumlin (0.14.5)
5
5
  async-pool (~> 0.3)
6
6
  async-websocket (~> 0.19)
7
7
  oj (~> 3.12)
@@ -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 fold from
9
- group groupCount has hasId hasLabel hasNot id in inE inV is label limit not or order out outE
10
- path project property range repeat sack select sideEffect skip sum tail to unfold union until
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? ? arg.params : nil].compact
44
+ [*@args, @params.any? ? @params : nil].compact
45
45
  end
46
46
  end
47
47
  end
@@ -3,7 +3,7 @@
3
3
  module Grumlin
4
4
  module Expressions
5
5
  module Order
6
- SUPPORTED_STEPS = %i[asc desc].freeze
6
+ SUPPORTED_STEPS = %i[asc desc shuffle].freeze
7
7
 
8
8
  class << self
9
9
  extend Expression
@@ -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
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Grumlin
4
- VERSION = "0.14.4"
4
+ VERSION = "0.14.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.14.4
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-17 00:00:00.000000000 Z
11
+ date: 2021-12-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: async-pool