ruby_snowflake_client 1.3.5 → 1.3.7

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: 157139ac9165eec0dd7ca0a9342136e8fcc6e3cb2c9faaa926361f59d5a65dbd
4
- data.tar.gz: 6bc65aef22b220edaf65726c7344f8fbee1f37c0d78dac7e7918a617e507b4fe
3
+ metadata.gz: 4d424afdec78a4734f749062257df304ca748928305632bbb23f5e0961ff1a85
4
+ data.tar.gz: 9e23161e4674fcf5aa75f8ad415c79cc7ce8cbf9c2559755b97a6a7fb7d24838
5
5
  SHA512:
6
- metadata.gz: cfe3b7b6cca616febd5cbf186fc3f015684502ef08a33c0629a144faea6ea95cf847a2aee3a5402967ef251f784ef948f1e358967cc00e80197b649297bae8a3
7
- data.tar.gz: 4d597ad88d7631e8032cfc5498f7141fb49cf73fe7e770bacae3651377fdec6e70ae2ddf531fb650904396890261f76cf5e627cc0b0eba9114df507143d283e0
6
+ metadata.gz: 56c12618e6a30a9c799c794360a1f307c1622bae74295909386d4458cb186a4dfadee2f08f7c84feba63925eadd76702776f89a7b88cf15d0df8c5085440533a
7
+ data.tar.gz: 4781d9cb52fc809f84dc2a929bdd9767ea1d290f48fc393e80cec27a699285532a726f09ac3d315820e2eec8bf899b653d7207b498f03039a9fe2dff8559b317
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- ruby_snowflake_client (1.3.5)
4
+ ruby_snowflake_client (1.3.7)
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.5'
2
+ VERSION = '1.3.7'
3
3
  end
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.5
4
+ version: 1.3.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rinsed
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-08-25 00:00:00.000000000 Z
11
+ date: 2023-09-07 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,