rb_snowflake_client 0.2.0 → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CODE_OF_CONDUCT.md +134 -0
- data/Gemfile.lock +1 -1
- data/README.md +14 -3
- data/lib/ruby_snowflake/client.rb +65 -16
- data/lib/ruby_snowflake/version.rb +1 -1
- data/rb_snowflake_client.gemspec +2 -1
- metadata +4 -4
- data/private_key_pkcs8.pem +0 -28
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0c357bf24ecfbfa4755532fe5f141f8e2967790b2b42b265a3d1537452878b7d
|
4
|
+
data.tar.gz: d36d356acd7d790e8e253866de289dd0a49d03141d1bbf47c2791bd9021ce70a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 98142da3217a8b70133496f31e3ef57f916049114e1f1f3975a0292e6c02ab3dcb3eb4528d51b0725dcc256330de6a55c7e8f2bcf7ac7e6fafc57d37a9266aaa
|
7
|
+
data.tar.gz: 1fea1f1577bc40fd74483c9c967b6bcc152d92b009a97354f207267ed18e6b61cf203d1b1dd3d92920e473e0387ddedca74859f8f9d1cc3bf3d2999f85b9651b
|
data/CODE_OF_CONDUCT.md
ADDED
@@ -0,0 +1,134 @@
|
|
1
|
+
|
2
|
+
# Contributor Covenant Code of Conduct
|
3
|
+
|
4
|
+
## Our Pledge
|
5
|
+
|
6
|
+
We as members, contributors, and leaders pledge to make participation in our
|
7
|
+
community a harassment-free experience for everyone, regardless of age, body
|
8
|
+
size, visible or invisible disability, ethnicity, sex characteristics, gender
|
9
|
+
identity and expression, level of experience, education, socio-economic status,
|
10
|
+
nationality, personal appearance, race, caste, color, religion, or sexual
|
11
|
+
identity and orientation.
|
12
|
+
|
13
|
+
We pledge to act and interact in ways that contribute to an open, welcoming,
|
14
|
+
diverse, inclusive, and healthy community.
|
15
|
+
|
16
|
+
## Our Standards
|
17
|
+
|
18
|
+
Examples of behavior that contributes to a positive environment for our
|
19
|
+
community include:
|
20
|
+
|
21
|
+
* Demonstrating empathy and kindness toward other people
|
22
|
+
* Being respectful of differing opinions, viewpoints, and experiences
|
23
|
+
* Giving and gracefully accepting constructive feedback
|
24
|
+
* Accepting responsibility and apologizing to those affected by our mistakes,
|
25
|
+
and learning from the experience
|
26
|
+
* Focusing on what is best not just for us as individuals, but for the overall
|
27
|
+
community
|
28
|
+
|
29
|
+
Examples of unacceptable behavior include:
|
30
|
+
|
31
|
+
* The use of sexualized language or imagery, and sexual attention or advances of
|
32
|
+
any kind
|
33
|
+
* Trolling, insulting or derogatory comments, and personal or political attacks
|
34
|
+
* Public or private harassment
|
35
|
+
* Publishing others' private information, such as a physical or email address,
|
36
|
+
without their explicit permission
|
37
|
+
* Other conduct which could reasonably be considered inappropriate in a
|
38
|
+
professional setting
|
39
|
+
|
40
|
+
## Enforcement Responsibilities
|
41
|
+
|
42
|
+
Community leaders are responsible for clarifying and enforcing our standards of
|
43
|
+
acceptable behavior and will take appropriate and fair corrective action in
|
44
|
+
response to any behavior that they deem inappropriate, threatening, offensive,
|
45
|
+
or harmful.
|
46
|
+
|
47
|
+
Community leaders have the right and responsibility to remove, edit, or reject
|
48
|
+
comments, commits, code, wiki edits, issues, and other contributions that are
|
49
|
+
not aligned to this Code of Conduct, and will communicate reasons for moderation
|
50
|
+
decisions when appropriate.
|
51
|
+
|
52
|
+
## Scope
|
53
|
+
|
54
|
+
This Code of Conduct applies within all community spaces, and also applies when
|
55
|
+
an individual is officially representing the community in public spaces.
|
56
|
+
Examples of representing our community include using an official email address,
|
57
|
+
posting via an official social media account, or acting as an appointed
|
58
|
+
representative at an online or offline event.
|
59
|
+
|
60
|
+
## Enforcement
|
61
|
+
|
62
|
+
Instances of abusive, harassing, or otherwise unacceptable behavior may be
|
63
|
+
reported to the community leaders responsible for enforcement at
|
64
|
+
[INSERT CONTACT METHOD].
|
65
|
+
All complaints will be reviewed and investigated promptly and fairly.
|
66
|
+
|
67
|
+
All community leaders are obligated to respect the privacy and security of the
|
68
|
+
reporter of any incident.
|
69
|
+
|
70
|
+
## Enforcement Guidelines
|
71
|
+
|
72
|
+
Community leaders will follow these Community Impact Guidelines in determining
|
73
|
+
the consequences for any action they deem in violation of this Code of Conduct:
|
74
|
+
|
75
|
+
### 1. Correction
|
76
|
+
|
77
|
+
**Community Impact**: Use of inappropriate language or other behavior deemed
|
78
|
+
unprofessional or unwelcome in the community.
|
79
|
+
|
80
|
+
**Consequence**: A private, written warning from community leaders, providing
|
81
|
+
clarity around the nature of the violation and an explanation of why the
|
82
|
+
behavior was inappropriate. A public apology may be requested.
|
83
|
+
|
84
|
+
### 2. Warning
|
85
|
+
|
86
|
+
**Community Impact**: A violation through a single incident or series of
|
87
|
+
actions.
|
88
|
+
|
89
|
+
**Consequence**: A warning with consequences for continued behavior. No
|
90
|
+
interaction with the people involved, including unsolicited interaction with
|
91
|
+
those enforcing the Code of Conduct, for a specified period of time. This
|
92
|
+
includes avoiding interactions in community spaces as well as external channels
|
93
|
+
like social media. Violating these terms may lead to a temporary or permanent
|
94
|
+
ban.
|
95
|
+
|
96
|
+
### 3. Temporary Ban
|
97
|
+
|
98
|
+
**Community Impact**: A serious violation of community standards, including
|
99
|
+
sustained inappropriate behavior.
|
100
|
+
|
101
|
+
**Consequence**: A temporary ban from any sort of interaction or public
|
102
|
+
communication with the community for a specified period of time. No public or
|
103
|
+
private interaction with the people involved, including unsolicited interaction
|
104
|
+
with those enforcing the Code of Conduct, is allowed during this period.
|
105
|
+
Violating these terms may lead to a permanent ban.
|
106
|
+
|
107
|
+
### 4. Permanent Ban
|
108
|
+
|
109
|
+
**Community Impact**: Demonstrating a pattern of violation of community
|
110
|
+
standards, including sustained inappropriate behavior, harassment of an
|
111
|
+
individual, or aggression toward or disparagement of classes of individuals.
|
112
|
+
|
113
|
+
**Consequence**: A permanent ban from any sort of public interaction within the
|
114
|
+
community.
|
115
|
+
|
116
|
+
## Attribution
|
117
|
+
|
118
|
+
This Code of Conduct is adapted from the [Contributor Covenant][homepage],
|
119
|
+
version 2.1, available at
|
120
|
+
[https://www.contributor-covenant.org/version/2/1/code_of_conduct.html][v2.1].
|
121
|
+
|
122
|
+
Community Impact Guidelines were inspired by
|
123
|
+
[Mozilla's code of conduct enforcement ladder][Mozilla CoC].
|
124
|
+
|
125
|
+
For answers to common questions about this code of conduct, see the FAQ at
|
126
|
+
[https://www.contributor-covenant.org/faq][FAQ]. Translations are available at
|
127
|
+
[https://www.contributor-covenant.org/translations][translations].
|
128
|
+
|
129
|
+
[homepage]: https://www.contributor-covenant.org
|
130
|
+
[v2.1]: https://www.contributor-covenant.org/version/2/1/code_of_conduct.html
|
131
|
+
[Mozilla CoC]: https://github.com/mozilla/diversity
|
132
|
+
[FAQ]: https://www.contributor-covenant.org/faq
|
133
|
+
[translations]: https://www.contributor-covenant.org/translations
|
134
|
+
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -9,7 +9,7 @@ The available options for connecting from Ruby to Snowflake include:
|
|
9
9
|
This library is implemented in ruby and while it leverages some libraries that have native extensions, doesn't currently include anything itself. Depending on network latency and the shape of the data this library can be faster or slower than the go wrapper. The big advantages are:
|
10
10
|
* It uses about half the memory when you pull a full result set into memory
|
11
11
|
* It does not hold onto the [ruby GVL][https://www.speedshop.co/2020/05/11/the-ruby-gvl-and-scaling.html] and so does not block other threads while waiting on IO like the go wrapper client.
|
12
|
-
* It will
|
12
|
+
* It will consume more resources for the same data, because it's using the HTTP v2 API and getting JSON back, there is just more work to as compared to the go or python clients that use Apache Arrow under the covers.
|
13
13
|
|
14
14
|
# Usage
|
15
15
|
|
@@ -37,6 +37,7 @@ client = RubySnowflake::Client.new(
|
|
37
37
|
"some_database", # The name of the database in the context of which the queries will run
|
38
38
|
max_connections: 12, # Config options can be passed in
|
39
39
|
connection_timeout: 45, # See below for the full set of options
|
40
|
+
query_timeout: 1200, # how long to wait for queries, in seconds
|
40
41
|
)
|
41
42
|
|
42
43
|
# alternatively you can use the `from_env` method, which will pull these values from the following environment variables. You can either provide the path to the PEM file, or it's contents in an ENV variable.
|
@@ -57,6 +58,7 @@ Available ENV variables (see below in the config section for details)
|
|
57
58
|
- `SNOWFLAKE_MAX_THREADS_PER_QUERY`
|
58
59
|
- `SNOWFLAKE_THREAD_SCALE_FACTOR`
|
59
60
|
- `SNOWFLAKE_HTTP_RETRIES`
|
61
|
+
- `SNOWFLAKE_QUERY_TIMEOUT`
|
60
62
|
|
61
63
|
## Make queries
|
62
64
|
|
@@ -105,16 +107,17 @@ client.query("SELECT * FROM BIGTABLE", warehouse: "FAST_WH")
|
|
105
107
|
|
106
108
|
# Configuration Options
|
107
109
|
|
108
|
-
The client supports the following configuration options, each with their own getter/setter except connection pool options which must be set at construction. Additionally, all except logger can be configured with environment variables (see above, but the pattern is like: "SNOWFLAKE_HTTP_RETRIES". Configuration options can only be set on
|
110
|
+
The client supports the following configuration options, each with their own getter/setter except connection pool options which must be set at construction. Additionally, all except logger can be configured with environment variables (see above, but the pattern is like: "SNOWFLAKE_HTTP_RETRIES". Configuration options can only be set on initialization through `new` or `from_env`.
|
109
111
|
|
110
112
|
- `logger` - takes any ruby logger (by default it's a std lib Logger.new(STDOUT), set at DEBUG level. Not available as an ENV variable config option
|
111
113
|
- `log_level` - takes a log level, type is dependent on logger, for the default ruby Logger, use a level like `Logger::WARN`. Not available as an ENV variable config option.
|
112
114
|
- `jwt_token_ttl` - The time to live set on JWT token in seconds, defaults to 3540 (59 minutes, the longest Snowflake supports is 60).
|
113
115
|
- `connection_timeout` - The amount of time in seconds that the client's connection pool will wait before erroring in handing out a valid connection, defaults to 60 seconds
|
114
116
|
- `max_connections` - The maximum number of http connections to hold open in the connection pool. If you use the client in a threaded context, you may need to increase this to be threads * client.max_threads_per_query, defaults to 16.
|
115
|
-
- `max_threads_per_query` - The maximum number of threads the client should use to
|
117
|
+
- `max_threads_per_query` - The maximum number of threads the client should use to retrieve data, per query, defaults to 8. If you want the client to act in a single threaded way, set this to 1
|
116
118
|
- `thread_scale_factor` - When downloading a result set into memory, thread count is calculated by dividing a query's partition count by this number. For details on implementation see the code in `client.rb`.
|
117
119
|
- `http_retries` - By default the client will retry common typically transient errors (http responses) twice, you can change the number of retries with this.
|
120
|
+
- `query_timeout` - By default the client will wait 10 minutes (600s) for a query to finish, you can change this default, will also set this limit in the query for snowflake to obey. Set in seconds.
|
118
121
|
|
119
122
|
Example configuration:
|
120
123
|
```ruby
|
@@ -185,6 +188,14 @@ client = RubySnowflake::Client.new(
|
|
185
188
|
)
|
186
189
|
```
|
187
190
|
|
191
|
+
# Code of conduct
|
192
|
+
|
193
|
+
See [Code of Coduct](CODE_OF_CONDUCT.md)
|
194
|
+
|
195
|
+
# Contributing
|
196
|
+
|
197
|
+
Please fork and create a pull request. Getting tests to run will be the most labor intensive part. You'll want to have an active snowflake account, and then configure your `.env` for the tests to be able to connect to your instance. Inside of `client_spec.rb` there are SQL statements to create the required tables. A pull request to make this less manual is also welcome :-). We'll do our best to help you along. Also, feel free to use Issues to report issues. [We](https://rinsed.co) use this client in production today, so we're happy to look at issues, especially where performance or correctness is involved.
|
198
|
+
|
188
199
|
# Links:
|
189
200
|
- snowflake API reference https://docs.snowflake.com/en/developer-guide/sql-api/reference
|
190
201
|
- snowflake authentication docs: https://docs.snowflake.com/en/developer-guide/sql-api/authenticating
|
@@ -12,7 +12,6 @@ require "retryable"
|
|
12
12
|
require "securerandom"
|
13
13
|
require "uri"
|
14
14
|
|
15
|
-
|
16
15
|
require_relative "client/http_connection_wrapper"
|
17
16
|
require_relative "client/key_pair_jwt_auth_manager"
|
18
17
|
require_relative "client/single_thread_in_memory_strategy"
|
@@ -36,6 +35,7 @@ module RubySnowflake
|
|
36
35
|
class ConnectionStarvedError < Error ; end
|
37
36
|
class RetryableBadResponseError < Error ; end
|
38
37
|
class RequestError < Error ; end
|
38
|
+
class QueryTimeoutError < Error ; end
|
39
39
|
|
40
40
|
class Client
|
41
41
|
DEFAULT_LOGGER = Logger.new(STDOUT)
|
@@ -53,11 +53,16 @@ module RubySnowflake
|
|
53
53
|
DEFAULT_THREAD_SCALE_FACTOR = 4
|
54
54
|
# how many times to retry common retryable HTTP responses (i.e. 429, 504)
|
55
55
|
DEFAULT_HTTP_RETRIES = 2
|
56
|
+
# how long to wait to allow a query to complete, in seconds
|
57
|
+
DEFAULT_QUERY_TIMEOUT = 600 # 10 minutes
|
56
58
|
|
57
59
|
OJ_OPTIONS = { :bigdecimal_load => :bigdecimal }.freeze
|
60
|
+
VALID_RESPONSE_CODES = %w(200 202).freeze
|
61
|
+
POLLING_RESPONSE_CODE = "202"
|
62
|
+
POLLING_INTERVAL = 2 # seconds
|
58
63
|
|
59
64
|
# can't be set after initialization
|
60
|
-
attr_reader :connection_timeout, :max_connections, :logger, :max_threads_per_query, :thread_scale_factor, :http_retries
|
65
|
+
attr_reader :connection_timeout, :max_connections, :logger, :max_threads_per_query, :thread_scale_factor, :http_retries, :query_timeout
|
61
66
|
|
62
67
|
def self.from_env(logger: DEFAULT_LOGGER,
|
63
68
|
log_level: DEFAULT_LOG_LEVEL,
|
@@ -66,7 +71,8 @@ module RubySnowflake
|
|
66
71
|
max_connections: env_option("SNOWFLAKE_MAX_CONNECTIONS", DEFAULT_MAX_CONNECTIONS ),
|
67
72
|
max_threads_per_query: env_option("SNOWFLAKE_MAX_THREADS_PER_QUERY", DEFAULT_MAX_THREADS_PER_QUERY),
|
68
73
|
thread_scale_factor: env_option("SNOWFLAKE_THREAD_SCALE_FACTOR", DEFAULT_THREAD_SCALE_FACTOR),
|
69
|
-
http_retries: env_option("SNOWFLAKE_HTTP_RETRIES", DEFAULT_HTTP_RETRIES)
|
74
|
+
http_retries: env_option("SNOWFLAKE_HTTP_RETRIES", DEFAULT_HTTP_RETRIES),
|
75
|
+
query_timeout: env_option("SNOWFLAKE_QUERY_TIMEOUT", DEFAULT_QUERY_TIMEOUT))
|
70
76
|
private_key = ENV["SNOWFLAKE_PRIVATE_KEY"] || File.read(ENV["SNOWFLAKE_PRIVATE_KEY_PATH"])
|
71
77
|
|
72
78
|
new(
|
@@ -85,6 +91,7 @@ module RubySnowflake
|
|
85
91
|
max_threads_per_query: max_threads_per_query,
|
86
92
|
thread_scale_factor: thread_scale_factor,
|
87
93
|
http_retries: http_retries,
|
94
|
+
query_timeout: query_timeout,
|
88
95
|
)
|
89
96
|
end
|
90
97
|
|
@@ -97,7 +104,8 @@ module RubySnowflake
|
|
97
104
|
max_connections: DEFAULT_MAX_CONNECTIONS,
|
98
105
|
max_threads_per_query: DEFAULT_MAX_THREADS_PER_QUERY,
|
99
106
|
thread_scale_factor: DEFAULT_THREAD_SCALE_FACTOR,
|
100
|
-
http_retries: DEFAULT_HTTP_RETRIES
|
107
|
+
http_retries: DEFAULT_HTTP_RETRIES,
|
108
|
+
query_timeout: DEFAULT_QUERY_TIMEOUT
|
101
109
|
)
|
102
110
|
@base_uri = uri
|
103
111
|
@key_pair_jwt_auth_manager =
|
@@ -113,26 +121,33 @@ module RubySnowflake
|
|
113
121
|
@max_threads_per_query = max_threads_per_query
|
114
122
|
@thread_scale_factor = thread_scale_factor
|
115
123
|
@http_retries = http_retries
|
124
|
+
@query_timeout = query_timeout
|
125
|
+
|
126
|
+
# Do NOT use normally, this exists for tests so we can reliably trigger the polling
|
127
|
+
# response workflow from snowflake in tests
|
128
|
+
@_enable_polling_queries = false
|
116
129
|
end
|
117
130
|
|
118
131
|
def query(query, warehouse: nil, streaming: false, database: nil)
|
119
132
|
warehouse ||= @default_warehouse
|
120
133
|
database ||= @default_database
|
121
134
|
|
135
|
+
query_start_time = Time.now.to_i
|
122
136
|
response = nil
|
123
137
|
connection_pool.with do |connection|
|
124
138
|
request_body = {
|
125
|
-
"statement" => query, "warehouse" => warehouse,
|
139
|
+
"statement" => query, "warehouse" => warehouse,
|
140
|
+
"database" => database, "timeout" => @query_timeout
|
126
141
|
}
|
127
142
|
|
128
143
|
response = request_with_auth_and_headers(
|
129
144
|
connection,
|
130
145
|
Net::HTTP::Post,
|
131
|
-
"/api/v2/statements?requestId=#{SecureRandom.uuid}",
|
146
|
+
"/api/v2/statements?requestId=#{SecureRandom.uuid}&async=#{@_enable_polling_queries}",
|
132
147
|
Oj.dump(request_body)
|
133
148
|
)
|
134
149
|
end
|
135
|
-
retreive_result_set(response, streaming)
|
150
|
+
retreive_result_set(query_start_time, query, response, streaming)
|
136
151
|
end
|
137
152
|
|
138
153
|
alias fetch query
|
@@ -158,13 +173,6 @@ module RubySnowflake
|
|
158
173
|
@port ||= URI.parse(@base_uri).port
|
159
174
|
end
|
160
175
|
|
161
|
-
def handle_errors(response)
|
162
|
-
if response.code != "200"
|
163
|
-
raise BadResponseError.new({}),
|
164
|
-
"Bad response! Got code: #{response.code}, w/ message #{response.body}"
|
165
|
-
end
|
166
|
-
end
|
167
|
-
|
168
176
|
def request_with_auth_and_headers(connection, request_class, path, body=nil)
|
169
177
|
uri = URI.parse("#{@base_uri}#{path}")
|
170
178
|
request = request_class.new(uri)
|
@@ -186,7 +194,7 @@ module RubySnowflake
|
|
186
194
|
end
|
187
195
|
|
188
196
|
def raise_on_bad_response(response)
|
189
|
-
return if response.code
|
197
|
+
return if VALID_RESPONSE_CODES.include? response.code
|
190
198
|
|
191
199
|
# there are a class of errors we want to retry rather than just giving up
|
192
200
|
if retryable_http_response_code?(response.code)
|
@@ -213,9 +221,50 @@ module RubySnowflake
|
|
213
221
|
end
|
214
222
|
end
|
215
223
|
|
216
|
-
def
|
224
|
+
def poll_for_completion_or_timeout(query_start_time, query, statement_handle)
|
225
|
+
first_data_json_body = nil
|
226
|
+
|
227
|
+
connection_pool.with do |connection|
|
228
|
+
loop do
|
229
|
+
sleep POLLING_INTERVAL
|
230
|
+
|
231
|
+
if Time.now.to_i - query_start_time > @query_timeout
|
232
|
+
cancelled = attempt_to_cancel_and_silence_errors(connection, statement_handle)
|
233
|
+
raise QueryTimeoutError.new("Query timed out. Query cancelled? #{cancelled} Query: #{query}")
|
234
|
+
end
|
235
|
+
|
236
|
+
poll_response = request_with_auth_and_headers(connection, Net::HTTP::Get,
|
237
|
+
"/api/v2/statements/#{statement_handle}")
|
238
|
+
if poll_response.code == POLLING_RESPONSE_CODE
|
239
|
+
next
|
240
|
+
else
|
241
|
+
return poll_response
|
242
|
+
end
|
243
|
+
end
|
244
|
+
end
|
245
|
+
end
|
246
|
+
|
247
|
+
def attempt_to_cancel_and_silence_errors(connection, statement_handle)
|
248
|
+
cancel_response = request_with_auth_and_headers(connection, Net::HTTP::Post,
|
249
|
+
"/api/v2/#{statement_handle}/cancel")
|
250
|
+
true
|
251
|
+
rescue Error => error
|
252
|
+
if error.is_a?(BadResponseError) && error.message.include?("404")
|
253
|
+
return true # snowflake cancelled it before we did
|
254
|
+
end
|
255
|
+
@logger.error("Error on attempting to cancel query #{statement_handle}, will raise a QueryTimeoutError")
|
256
|
+
false
|
257
|
+
end
|
258
|
+
|
259
|
+
def retreive_result_set(query_start_time, query, response, streaming)
|
217
260
|
json_body = Oj.load(response.body, OJ_OPTIONS)
|
218
261
|
statement_handle = json_body["statementHandle"]
|
262
|
+
|
263
|
+
if response.code == POLLING_RESPONSE_CODE
|
264
|
+
result_response = poll_for_completion_or_timeout(query_start_time, query, statement_handle)
|
265
|
+
json_body = Oj.load(result_response.body, OJ_OPTIONS)
|
266
|
+
end
|
267
|
+
|
219
268
|
num_threads = number_of_threads_to_use(json_body["resultSetMetaData"]["partitionInfo"].size)
|
220
269
|
retreive_proc = ->(index) { retreive_partition_data(statement_handle, index) }
|
221
270
|
|
data/rb_snowflake_client.gemspec
CHANGED
@@ -11,7 +11,8 @@ Gem::Specification.new do |s|
|
|
11
11
|
s.description = <<~DESC
|
12
12
|
Using the HTTP V2 Api for Snowflake runs queries & creates native Ruby objects.
|
13
13
|
DESC
|
14
|
-
s.
|
14
|
+
s.homepage = "https://github.com/rinsed-org/rb-snowflake-client"
|
15
|
+
s.license = "MIT"
|
15
16
|
|
16
17
|
s.files = Dir.chdir(File.expand_path(__dir__)) do
|
17
18
|
`git ls-files -z`.split("\x0").reject { |f| f.match(%r{\A(?:test|spec|features|vendor)/}) }
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rb_snowflake_client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 1.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Rinsed
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-12-
|
11
|
+
date: 2023-12-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: concurrent-ruby
|
@@ -109,6 +109,7 @@ files:
|
|
109
109
|
- ".github/workflows/release-gh-packages.yml"
|
110
110
|
- ".github/workflows/release-rubygems.yml"
|
111
111
|
- ".gitignore"
|
112
|
+
- CODE_OF_CONDUCT.md
|
112
113
|
- Gemfile
|
113
114
|
- Gemfile.lock
|
114
115
|
- LICENSE.txt
|
@@ -125,9 +126,8 @@ files:
|
|
125
126
|
- lib/ruby_snowflake/row.rb
|
126
127
|
- lib/ruby_snowflake/streaming_result.rb
|
127
128
|
- lib/ruby_snowflake/version.rb
|
128
|
-
- private_key_pkcs8.pem
|
129
129
|
- rb_snowflake_client.gemspec
|
130
|
-
homepage:
|
130
|
+
homepage: https://github.com/rinsed-org/rb-snowflake-client
|
131
131
|
licenses:
|
132
132
|
- MIT
|
133
133
|
metadata: {}
|
data/private_key_pkcs8.pem
DELETED
@@ -1,28 +0,0 @@
|
|
1
|
-
-----BEGIN PRIVATE KEY-----
|
2
|
-
MIIEvQIBADANBgkqhkiG9w0BAQEFAASCBKcwggSjAgEAAoIBAQDHwVo+6zP1f0wK
|
3
|
-
+/SHc3e/VBqu7JTWK8ezyMuOjqJ3MtIck8aTufctJd6sjDn8uSF8DbuJsmP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