ruby_snowflake_client 1.3.1 → 1.3.3.pre.debug

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: db6505fc5cbcf97b32db3c7ea520a5db4e295b1a9f9d6d7ac3c3572e411e7f71
4
- data.tar.gz: 6927a7b29289eef573b75b69af01f809fe46a7414f0e4986e23104ac25fd7564
3
+ metadata.gz: ed451160b70115d42339088f433539eb78533261a28a3253959c36bec3de4146
4
+ data.tar.gz: 13a570363140f1f7e5fb6afd3d42e09648a4b24198be74fb8d73ee3753747f27
5
5
  SHA512:
6
- metadata.gz: bc38dd65473bbd9aefa5cec69ff4c4741743aedcf12b46e4b9dd06f021d0f37a77d19a1e5a101e29fb22148770d419879de19ee0322758241c524ec5b8adadba
7
- data.tar.gz: 012a908d370bcf51e2297e974ff5923e525e4f3ed5967f69bb7c2650cf97991cb81c3dc4e1636c697a3b21e2ed5368f8fe2544f0560831847a755980fd643141
6
+ metadata.gz: ca68138928a8ca789ed7e4d61a73b6679b22ed2a427cf38ac2fed4e8ba256949849354fcb34d14cdb66aa7ab246dacbf0d7468b1d786e399083f1f0f8cf2f91a
7
+ data.tar.gz: a1df5c79270fca41aa7c1a737db77f08d1632bca3d80c9dba8c19ff2564f7710f9c02e49162a60261bd6b4888eaa6eaef974fd48ef687e0a0b31d91c57cbc576
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- ruby_snowflake_client (1.3.1)
4
+ ruby_snowflake_client (1.3.3.pre.debug)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -43,28 +43,45 @@ func Inspect(self C.VALUE) C.VALUE {
43
43
 
44
44
  //export Init_ruby_snowflake_client_ext
45
45
  func Init_ruby_snowflake_client_ext() {
46
+ fmt.Println("[ruby-snowflake] Initializing module")
46
47
  rbSnowflakeModule = C.rb_define_module(C.CString("Snowflake"))
48
+ fmt.Println("[ruby-snowflake] Initializing client class")
47
49
  rbSnowflakeClientClass = C.rb_define_class_under(rbSnowflakeModule, C.CString("Client"), C.rb_cObject)
50
+ fmt.Println("[ruby-snowflake] Initializing result class")
48
51
  rbSnowflakeResultClass = C.rb_define_class_under(rbSnowflakeModule, C.CString("Result"), C.rb_cObject)
49
52
 
53
+ fmt.Println("[ruby-snowflake] Setting up objects 1")
50
54
  objects[rbSnowflakeResultClass] = true
55
+ fmt.Println("[ruby-snowflake] Setting up objects 2")
51
56
  objects[rbSnowflakeClientClass] = true
57
+ fmt.Println("[ruby-snowflake] Setting up objects 3")
52
58
  objects[rbSnowflakeModule] = true
59
+ fmt.Println("[ruby-snowflake] Setting up objects 4")
53
60
  objects[RESULT_DURATION] = true
61
+ fmt.Println("[ruby-snowflake] Setting up objects 5")
54
62
  objects[ERROR_IDENT] = true
63
+ fmt.Println("[ruby-snowflake] GCGUARD call 1")
55
64
  C.RbGcGuard(RESULT_DURATION)
56
65
  //C.RbGcGuard(RESULT_IDENTIFIER)
66
+ fmt.Println("[ruby-snowflake] GCGUARD call 2")
57
67
  C.RbGcGuard(ERROR_IDENT)
58
68
 
69
+ fmt.Println("[ruby-snowflake] Define method 1")
59
70
  C.rb_define_method(rbSnowflakeResultClass, C.CString("next_row"), (*[0]byte)(C.ObjNextRow), 0)
60
71
  // `get_rows` is private as this can lead to SEGFAULT errors if not invoked
61
72
  // with GC.disable due to undetermined issues caused by the Ruby GC.
73
+ fmt.Println("[ruby-snowflake] Define method 2")
62
74
  C.rb_define_private_method(rbSnowflakeResultClass, C.CString("_get_rows"), (*[0]byte)(C.GetRows), 0)
75
+ fmt.Println("[ruby-snowflake] Define method 3")
63
76
  C.rb_define_method(rbSnowflakeResultClass, C.CString("get_rows_no_enum"), (*[0]byte)(C.GetRowsNoEnum), 0)
64
77
 
78
+ fmt.Println("[ruby-snowflake] Define method 4")
65
79
  C.rb_define_private_method(rbSnowflakeClientClass, C.CString("_connect"), (*[0]byte)(C.Connect), 7)
80
+ fmt.Println("[ruby-snowflake] Define method 5")
66
81
  C.rb_define_method(rbSnowflakeClientClass, C.CString("inspect"), (*[0]byte)(C.Inspect), 0)
82
+ fmt.Println("[ruby-snowflake] Define method 6")
67
83
  C.rb_define_method(rbSnowflakeClientClass, C.CString("to_s"), (*[0]byte)(C.Inspect), 0)
84
+ fmt.Println("[ruby-snowflake] Define method 7")
68
85
  C.rb_define_method(rbSnowflakeClientClass, C.CString("_fetch"), (*[0]byte)(C.ObjFetch), 1)
69
86
 
70
87
  if LOG_LEVEL > 0 {
@@ -1,3 +1,3 @@
1
1
  module RubySnowflakeClient
2
- VERSION = '1.3.1'
2
+ VERSION = '1.3.3-debug'
3
3
  end
@@ -1,7 +1,10 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Snowflake
4
- require "ruby_snowflake_client_ext" # build bundle of the go files
4
+ puts "Entered Snowflake module"
5
+ require "ruby_snowflake_client_ext" # build bundle of the go file
6
+ puts "Loaded Snowflake Go bundle"
7
+
5
8
  LOG_LEVEL = 0
6
9
 
7
10
  class Error < StandardError
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ruby_snowflake_client
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.1
4
+ version: 1.3.3.pre.debug
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rinsed
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-07-20 00:00:00.000000000 Z
11
+ date: 2023-07-27 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: |
14
14
  Using the `Go` library for Snowflake to query and creating native Ruby objects,
@@ -2130,9 +2130,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
2130
2130
  version: '0'
2131
2131
  required_rubygems_version: !ruby/object:Gem::Requirement
2132
2132
  requirements:
2133
- - - ">="
2133
+ - - ">"
2134
2134
  - !ruby/object:Gem::Version
2135
- version: '0'
2135
+ version: 1.3.1
2136
2136
  requirements: []
2137
2137
  rubygems_version: 3.2.33
2138
2138
  signing_key: