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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3d77c67f0dc99de145a48c9699f83c02c7f1689011c20a4fce35003ee0c3eb1a
4
- data.tar.gz: beb9f37e27a057dad388ec74b5c0280ba1f560ddbf6d23251e5c8de997050692
3
+ metadata.gz: 82f89299a6e3bff5ab8d9bfd52e3241b846fb760e93ce1ba115e2686ae6bed41
4
+ data.tar.gz: 52015bcb65ce1c1918be85b171ebe947fe23cc19da10c5cba2f3497096036088
5
5
  SHA512:
6
- metadata.gz: 3143048e1834d41ee788f5782aa17f5c7f577de15c71ee82889b02401066632145fa96789a36f1937dcb590a06cbbac6e009fc1034c2d03abf6e93fcb730c685
7
- data.tar.gz: 07add684f8f072c807c2b0db71ea9292655cabd40400fb4c2ee36089ea9626fcb7b041b2da44866e811e49b4b2495201c810dbaf067727687b0a5ea41e726171
6
+ metadata.gz: fa42bd12699272aa6214a1c0a4fa0c11608576f934e29e4ed79fb174b47c81d103b54ec7f3249de24135e13282185787679c2f9d73ffe4f25ad67f07e7045b61
7
+ data.tar.gz: 3d284037cc8d76f5ab20e7c7e17039e8845d8969ff0793cff57b8c114740d3ee08a8e58d0c2bf4daa1d821227419f48408490a52649d11165a89356c7548b2ed
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- grumlin (1.0.0)
4
+ grumlin (1.0.1)
5
5
  async-pool (~> 0.3.0)
6
6
  async-websocket (~> 0.22.0)
7
7
  ibsciss-middleware (~> 0.4.0)
@@ -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
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Grumlin
4
- VERSION = "1.0.0"
4
+ VERSION = "1.0.1"
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: 1.0.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-23 00:00:00.000000000 Z
11
+ date: 2022-11-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: async-pool