grumlin 1.0.0.rc2 → 1.0.0.rc4
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 +4 -4
- data/Gemfile.lock +1 -1
- data/lib/grumlin/dummy_transaction.rb +3 -2
- data/lib/grumlin/steppable.rb +0 -1
- data/lib/grumlin/transaction.rb +1 -1
- data/lib/grumlin/traversal_start.rb +5 -1
- data/lib/grumlin/typing.rb +1 -1
- data/lib/grumlin/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: eec359b83d21de51c464a0cce4f4cf9eea1812da59eb329622954e8a89ad1432
|
4
|
+
data.tar.gz: 0df3dd7c3bb9768746a54dc2fdf8302eea323de89598828ff7be54e15387a596
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2d80eb7df5ace498bc56c82f3e2f2fd9fd76cb7604a7bea250594349de0160cbed633f6df1706a842f2e5d52e6255be460172dd5924fb122fe416b18b86dec94
|
7
|
+
data.tar.gz: bc1b3621420e05c761edacbede51016ccada3e086f7f46b6985158c6e40a117e46f29dd6ba3ddf56952768d6b12a892dcfe69339f8fbeb24c2b122ccc105f3cf
|
data/Gemfile.lock
CHANGED
@@ -5,8 +5,9 @@ class Grumlin::DummyTransaction < Grumlin::Transaction
|
|
5
5
|
|
6
6
|
include Console
|
7
7
|
|
8
|
-
def initialize(traversal_start_class, middlewares:, pool:
|
9
|
-
|
8
|
+
def initialize(traversal_start_class, middlewares:, pool:)
|
9
|
+
super
|
10
|
+
@session_id = nil
|
10
11
|
|
11
12
|
logger.info(self) do
|
12
13
|
"#{Grumlin.config.provider} does not support transactions. commit and rollback are ignored, data will be saved"
|
data/lib/grumlin/steppable.rb
CHANGED
data/lib/grumlin/transaction.rb
CHANGED
@@ -12,15 +12,19 @@ class Grumlin::TraversalStart < Grumlin::Steppable
|
|
12
12
|
transaction = tx_class.new(self.class, pool: @pool, middlewares: @middlewares)
|
13
13
|
return transaction unless block_given?
|
14
14
|
|
15
|
+
result = nil
|
16
|
+
|
15
17
|
begin
|
16
|
-
yield transaction.begin
|
18
|
+
result = yield transaction.begin
|
17
19
|
rescue Grumlin::Rollback
|
18
20
|
transaction.rollback
|
21
|
+
result
|
19
22
|
rescue StandardError
|
20
23
|
transaction.rollback
|
21
24
|
raise
|
22
25
|
else
|
23
26
|
transaction.commit
|
27
|
+
result
|
24
28
|
end
|
25
29
|
end
|
26
30
|
|
data/lib/grumlin/typing.rb
CHANGED
@@ -13,7 +13,7 @@ module Grumlin::Typing
|
|
13
13
|
"g:Int64" => ->(value) { cast_int(value) },
|
14
14
|
"g:Int32" => ->(value) { cast_int(value) },
|
15
15
|
"g:Double" => ->(value) { cast_double(value) },
|
16
|
-
"g:Direction" => ->(value) { value },
|
16
|
+
"g:Direction" => ->(value) { value.to_sym },
|
17
17
|
"g:VertexProperty" => ->(value) { cast_entity(Grumlin::VertexProperty, value) },
|
18
18
|
"g:TraversalMetrics" => ->(value) { cast_map(value[:@value]) },
|
19
19
|
"g:Metrics" => ->(value) { cast_map(value[:@value]) },
|
data/lib/grumlin/version.rb
CHANGED