chalk_ruby 0.2.2 → 0.2.3

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 341f9bbb82ba439be2de0671adc74c8e901a96c3f63d3fb5a7c2e1880a983342
4
- data.tar.gz: 3743783f522eb70c6cefba1158682aaae89f45049a61078eb7b72f19ebf0cc8d
3
+ metadata.gz: de352344a0d00f988be587d33f4e1d181256c0a075832fa4daa804639af83f9d
4
+ data.tar.gz: d4bde660475858f5eeb7b6bdfb08bdabacacbc36c92962007e3f1acf8f929dff
5
5
  SHA512:
6
- metadata.gz: 76715dafed5ffcd9564c7e5fcce4a568bd77603236fffca6a4f3002d2ea1c3d0f9840840b126503341ac8d7ea19cd6152a68182574fd7cf4425869019b5ec950
7
- data.tar.gz: dd0cf075a2985efa6550a948d0240dfe039920b6fe5e76d054e3f3756a339fc55e24acbbcea5f1a27ff59df4b602609411af4491fee784c1001377f710815080
6
+ metadata.gz: a811e70301fadceb6fd1e0822e51dd60f3a297f1ef1afe1e20919824b877a6bcd479dc3233b9a326f08b1b5028569cd42e42b9778ac29fde073349cb7f3d4e7a
7
+ data.tar.gz: f45d5ba28647765f57a527c1602053f7daa7aad04b72f17f594f68bf1ef0f901453a35d9a87525a66b99d1b10aace71cd14936b8699a4efe7943db4911045d58
@@ -1,5 +1,13 @@
1
1
  require 'chalk_ruby/config'
2
2
  require 'grpc'
3
+ require 'google/protobuf/struct_pb'
4
+ require 'chalk_ruby/protos/chalk/server/v1/auth_pb'
5
+ require 'chalk_ruby/protos/chalk/server/v1/auth_services_pb'
6
+ require 'chalk_ruby/protos/chalk/engine/v1/query_server_services_pb'
7
+ require 'date'
8
+ require 'chalk_ruby/grpc/auth_interceptor'
9
+ require 'chalk_ruby/error'
10
+
3
11
 
4
12
  module ChalkRuby
5
13
 
@@ -317,21 +325,21 @@ module ChalkRuby
317
325
  def convert_to_protobuf_value(value)
318
326
  case value
319
327
  when NilClass
320
- Google::Protobuf::Value.new(null_value: :NULL_VALUE)
328
+ ::Google::Protobuf::Value.new(null_value: :NULL_VALUE)
321
329
  when Float
322
- Google::Protobuf::Value.new(number_value: value)
330
+ ::Google::Protobuf::Value.new(number_value: value)
323
331
  when Integer
324
- Google::Protobuf::Value.new(number_value: value)
332
+ ::Google::Protobuf::Value.new(number_value: value)
325
333
  when String
326
- Google::Protobuf::Value.new(string_value: value)
334
+ ::Google::Protobuf::Value.new(string_value: value)
327
335
  when TrueClass, FalseClass
328
- Google::Protobuf::Value.new(bool_value: value)
336
+ ::Google::Protobuf::Value.new(bool_value: value)
329
337
  when Hash
330
338
  struct_value = Google::Protobuf::Struct.new(fields: value.transform_values { |v| convert_to_protobuf_value(v) })
331
- Google::Protobuf::Value.new(struct_value: struct_value)
339
+ ::Google::Protobuf::Value.new(struct_value: struct_value)
332
340
  when Array
333
341
  list_value = Google::Protobuf::ListValue.new(values: value.map { |v| convert_to_protobuf_value(v) })
334
- Google::Protobuf::Value.new(list_value: list_value)
342
+ ::Google::Protobuf::Value.new(list_value: list_value)
335
343
  else
336
344
  raise "Unsupported type: #{value.class}"
337
345
  end
@@ -2,6 +2,7 @@ require 'faraday'
2
2
  # Default adapter needs to be required to be registered
3
3
  require 'faraday/net_http_persistent' unless Faraday::VERSION < '1'
4
4
  require 'chalk_ruby/error'
5
+ require 'chalk_ruby/helpers'
5
6
 
6
7
  module ChalkRuby
7
8
  module Http
@@ -1,3 +1,3 @@
1
1
  module ChalkRuby
2
- VERSION = '0.2.2'.freeze
2
+ VERSION = '0.2.3'.freeze
3
3
  end
@@ -3,6 +3,7 @@ require 'rspec/autorun'
3
3
  require 'chalk_ruby/client'
4
4
  require 'chalk_ruby/error'
5
5
 
6
+
6
7
  CLIENT_ID = ''
7
8
  CLIENT_SECRET = ''
8
9
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: chalk_ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.2
4
+ version: 0.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chalk AI, Inc.
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2025-02-21 00:00:00.000000000 Z
11
+ date: 2025-02-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler