grumlin 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/grumlin/typing.rb +3 -2
- 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: 82f89299a6e3bff5ab8d9bfd52e3241b846fb760e93ce1ba115e2686ae6bed41
|
4
|
+
data.tar.gz: 52015bcb65ce1c1918be85b171ebe947fe23cc19da10c5cba2f3497096036088
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fa42bd12699272aa6214a1c0a4fa0c11608576f934e29e4ed79fb174b47c81d103b54ec7f3249de24135e13282185787679c2f9d73ffe4f25ad67f07e7045b61
|
7
|
+
data.tar.gz: 3d284037cc8d76f5ab20e7c7e17039e8845d8969ff0793cff57b8c114740d3ee08a8e58d0c2bf4daa1d821227419f48408490a52649d11165a89356c7548b2ed
|
data/Gemfile.lock
CHANGED
data/lib/grumlin/typing.rb
CHANGED
@@ -17,7 +17,8 @@ module Grumlin::Typing
|
|
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]) },
|
20
|
-
"g:T" => ->(value) { Grumlin::Expressions::T.public_send(value) }
|
20
|
+
"g:T" => ->(value) { Grumlin::Expressions::T.public_send(value) },
|
21
|
+
"g:UUID" => ->(value) { value }
|
21
22
|
}.freeze
|
22
23
|
|
23
24
|
CASTABLE_TYPES = [Hash, String, Integer, TrueClass, FalseClass, NilClass, Array].freeze
|
@@ -45,7 +46,7 @@ module Grumlin::Typing
|
|
45
46
|
|
46
47
|
def verify_castable_hash!(value, type)
|
47
48
|
raise TypeError, "#{value} cannot be casted, @type is missing" if value[:@type].nil?
|
48
|
-
raise(UnknownTypeError, value[:@type]) if type.nil?
|
49
|
+
raise(Grumlin::UnknownTypeError, value[:@type]) if type.nil?
|
49
50
|
raise TypeError, "#{value} cannot be casted, @value is missing" if value[:@value].nil?
|
50
51
|
end
|
51
52
|
|
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: 1.0.
|
4
|
+
version: 1.0.1
|
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-11-
|
11
|
+
date: 2022-11-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: async-pool
|