ruby_snowflake_client 1.3.4 → 1.3.6

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: e4332363a5a6faf4c8c55d9a0b755528bb782417db9f4a245c5f30e2d32b22f2
4
- data.tar.gz: 8401ada0af95ba96e76205b5ead456bcd94ba68016bdd791e5616b6f49b6a93c
3
+ metadata.gz: d424828e5da30febbe6e518501af6cdae91a417dec574c59a2a2e4be172f8b68
4
+ data.tar.gz: 717c268b4483959117db0684f0d47d2042d239db21eeb3b4f16689fd7db883fc
5
5
  SHA512:
6
- metadata.gz: c58f65f041f72b673810f05254c912af797af74b02000af425a07b32967a70a3110e59a002d5b5b28a1d8e04a35cdbad30160fc9092a024c4f7ba65015ce4255
7
- data.tar.gz: d3c25297153031f0468dad4c88191f0cfac12c2e2c57a68f177d0ef78980c7bb3abe6388338bc3db0a9c5f1b6598e5521c8d5f8896f725831ffed251fb111639
6
+ metadata.gz: 533a61a3cb3642fecbf974fe80d7544eb3c9b46b2a2887ccec7a12881dc5c2266ac5bb6586e673f5182ef9e1ccd7ac388c4a6b9a81a6e2469a345f320c09e0e2
7
+ data.tar.gz: efe66f3f5585040f64c0574a2618fa74c4cad3322585724cbc3b999f84ed9bd9aaa949304801efc481ae3636a418d42384a59ada209bba832da580c402b1e968
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- ruby_snowflake_client (1.3.4)
4
+ ruby_snowflake_client (1.3.6)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -42,48 +42,84 @@ func Inspect(self C.VALUE) C.VALUE {
42
42
 
43
43
  //export Init_ruby_snowflake_client_ext
44
44
  func Init_ruby_snowflake_client_ext() {
45
- fmt.Println("Initializing consts")
45
+ if LOG_LEVEL > 0 {
46
+ fmt.Println("Initializing consts")
47
+ }
46
48
  RESULT_DURATION = C.rb_intern(C.CString("@query_duration"))
47
49
  ERROR_IDENT = C.rb_intern(C.CString("@error"))
48
- fmt.Println("[ruby-snowflake] Initializing module")
50
+ if LOG_LEVEL > 0 {
51
+ fmt.Println("[ruby-snowflake] Initializing module")
52
+ }
49
53
  rbSnowflakeModule = C.rb_define_module(C.CString("Snowflake"))
50
- fmt.Println("[ruby-snowflake] Initializing client class")
54
+ if LOG_LEVEL > 0 {
55
+ fmt.Println("[ruby-snowflake] Initializing client class")
56
+ }
51
57
  rbSnowflakeClientClass = C.rb_define_class_under(rbSnowflakeModule, C.CString("Client"), C.rb_cObject)
52
- fmt.Println("[ruby-snowflake] Initializing result class")
58
+ if LOG_LEVEL > 0 {
59
+ fmt.Println("[ruby-snowflake] Initializing result class")
60
+ }
53
61
  rbSnowflakeResultClass = C.rb_define_class_under(rbSnowflakeModule, C.CString("Result"), C.rb_cObject)
54
62
 
55
- fmt.Println("[ruby-snowflake] Setting up objects 1")
63
+ if LOG_LEVEL > 0 {
64
+ fmt.Println("[ruby-snowflake] Setting up objects 1")
65
+ }
56
66
  objects[rbSnowflakeResultClass] = true
57
- fmt.Println("[ruby-snowflake] Setting up objects 2")
67
+ if LOG_LEVEL > 0 {
68
+ fmt.Println("[ruby-snowflake] Setting up objects 2")
69
+ }
58
70
  objects[rbSnowflakeClientClass] = true
59
- fmt.Println("[ruby-snowflake] Setting up objects 3")
71
+ if LOG_LEVEL > 0 {
72
+ fmt.Println("[ruby-snowflake] Setting up objects 3")
73
+ }
60
74
  objects[rbSnowflakeModule] = true
61
- fmt.Println("[ruby-snowflake] Setting up objects 4")
75
+ if LOG_LEVEL > 0 {
76
+ fmt.Println("[ruby-snowflake] Setting up objects 4")
77
+ }
62
78
  objects[RESULT_DURATION] = true
63
- fmt.Println("[ruby-snowflake] Setting up objects 5")
79
+ if LOG_LEVEL > 0 {
80
+ fmt.Println("[ruby-snowflake] Setting up objects 5")
81
+ }
64
82
  objects[ERROR_IDENT] = true
65
- fmt.Println("[ruby-snowflake] GCGUARD call 1")
83
+ if LOG_LEVEL > 0 {
84
+ fmt.Println("[ruby-snowflake] GCGUARD call 1")
85
+ }
66
86
  C.RbGcGuard(RESULT_DURATION)
67
87
  //C.RbGcGuard(RESULT_IDENTIFIER)
68
- fmt.Println("[ruby-snowflake] GCGUARD call 2")
88
+ if LOG_LEVEL > 0 {
89
+ fmt.Println("[ruby-snowflake] GCGUARD call 2")
90
+ }
69
91
  C.RbGcGuard(ERROR_IDENT)
70
92
 
71
- fmt.Println("[ruby-snowflake] Define method 1")
93
+ if LOG_LEVEL > 0 {
94
+ fmt.Println("[ruby-snowflake] Define method 1")
95
+ }
72
96
  C.rb_define_method(rbSnowflakeResultClass, C.CString("next_row"), (*[0]byte)(C.ObjNextRow), 0)
73
97
  // `get_rows` is private as this can lead to SEGFAULT errors if not invoked
74
98
  // with GC.disable due to undetermined issues caused by the Ruby GC.
75
- fmt.Println("[ruby-snowflake] Define method 2")
99
+ if LOG_LEVEL > 0 {
100
+ fmt.Println("[ruby-snowflake] Define method 2")
101
+ }
76
102
  C.rb_define_private_method(rbSnowflakeResultClass, C.CString("_get_rows"), (*[0]byte)(C.GetRows), 0)
77
- fmt.Println("[ruby-snowflake] Define method 3")
103
+ if LOG_LEVEL > 0 {
104
+ fmt.Println("[ruby-snowflake] Define method 3")
105
+ }
78
106
  C.rb_define_method(rbSnowflakeResultClass, C.CString("get_rows_no_enum"), (*[0]byte)(C.GetRowsNoEnum), 0)
79
107
 
80
- fmt.Println("[ruby-snowflake] Define method 4")
108
+ if LOG_LEVEL > 0 {
109
+ fmt.Println("[ruby-snowflake] Define method 4")
110
+ }
81
111
  C.rb_define_private_method(rbSnowflakeClientClass, C.CString("_connect"), (*[0]byte)(C.Connect), 7)
82
- fmt.Println("[ruby-snowflake] Define method 5")
112
+ if LOG_LEVEL > 0 {
113
+ fmt.Println("[ruby-snowflake] Define method 5")
114
+ }
83
115
  C.rb_define_method(rbSnowflakeClientClass, C.CString("inspect"), (*[0]byte)(C.Inspect), 0)
84
- fmt.Println("[ruby-snowflake] Define method 6")
116
+ if LOG_LEVEL > 0 {
117
+ fmt.Println("[ruby-snowflake] Define method 6")
118
+ }
85
119
  C.rb_define_method(rbSnowflakeClientClass, C.CString("to_s"), (*[0]byte)(C.Inspect), 0)
86
- fmt.Println("[ruby-snowflake] Define method 7")
120
+ if LOG_LEVEL > 0 {
121
+ fmt.Println("[ruby-snowflake] Define method 7")
122
+ }
87
123
  C.rb_define_method(rbSnowflakeClientClass, C.CString("_fetch"), (*[0]byte)(C.ObjFetch), 1)
88
124
 
89
125
  if LOG_LEVEL > 0 {
@@ -1,3 +1,3 @@
1
1
  module RubySnowflakeClient
2
- VERSION = '1.3.4'
2
+ VERSION = '1.3.6'
3
3
  end
@@ -1,9 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Snowflake
4
- puts "Entered Snowflake module"
5
4
  require "ruby_snowflake_client_ext" # build bundle of the go file
6
- puts "Loaded Snowflake Go bundle"
7
5
 
8
6
  LOG_LEVEL = 0
9
7
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ruby_snowflake_client
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.4
4
+ version: 1.3.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rinsed