rb_snowflake_client 1.1.2 → 1.1.3

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: 7e69454c7c4d16eb6f69c9ccaa67d45cbd525b61a9ade0f246fb8599c99cde89
4
- data.tar.gz: a00b73447d1557a170f089a3e2662b8eedfa008763cb9487c4db1803581aad2c
3
+ metadata.gz: cc9cf812a682100ea6d9ac3a84156aa202342fa66e335e2c972ef50adc4234b8
4
+ data.tar.gz: 549c76f63232f130dcc0f810335023612e7c198d51b6cae2911e3582027157b5
5
5
  SHA512:
6
- metadata.gz: d3aa6b159b79936bf28c85de07f2f13b189fc7de37c0746d151c43592a82a59d123e2023c2c776ad0d48823bf88bf96b24c3ee2d094b0c1ce64c0bd5c68ddf87
7
- data.tar.gz: facc10e91b7bbd71df02a1f7f6158de87871f7d6e12e38e8d5e5cda8f3fce41c9487d85bb892bc7a97a63119dfe4b5595db2f3b198d73c215bcdfcf978c705a7
6
+ metadata.gz: 70a7c21d0ddcc12c64281363177c7f31e1f9b88a089fb04ae36700d2140828c0bfee4d0acb557ce823a867875b34d89d426e63ad4e6ad9d3a7646111d030f3e1
7
+ data.tar.gz: a4652f0539d923f71bffcffab0bcf212742cc8d174756d41b231869c8def8330449f5eba6dbae9aa99293208efbde57e894c76e34bbac9404b27b152492137ec
@@ -34,7 +34,6 @@ jobs:
34
34
  SNOWFLAKE_ORGANIZATION: ${{ secrets.SNOWFLAKE_ORGANIZATION }}
35
35
  SNOWFLAKE_ACCOUNT: ${{ secrets.SNOWFLAKE_ACCOUNT }}
36
36
  SNOWFLAKE_DEFAULT_WAREHOUSE: $${{ secrets.SNOWFLAKE_DEFAULT_WAREHOUSE }}
37
- SNOWFLAKE_DEFAULT_DATABASE: ${{ secrets.SNOWFLAKE_DEFAULT_DATABASE }}
38
37
  SNOWFLAKE_USER: ${{ secrets.SNOWFLAKE_USER }}
39
38
  SNOWFLAKE_PASSWORD: ${{ secrets.SNOWFLAKE_PASSWORD }}
40
39
  SNOWFLAKE_PRIVATE_KEY: ${{ secrets.SNOWFLAKE_CLIENT_TEST_PRIVATE_KEY }}
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- rb_snowflake_client (1.1.2)
4
+ rb_snowflake_client (1.1.3)
5
5
  concurrent-ruby (>= 1.2)
6
6
  connection_pool (>= 2.4)
7
7
  dotenv (>= 2.8)
@@ -146,7 +146,7 @@ module RubySnowflake
146
146
  request_body = {
147
147
  "warehouse" => warehouse&.upcase,
148
148
  "schema" => schema&.upcase,
149
- "database" => database&.upcase,
149
+ "database" => database&.upcase,
150
150
  "statement" => query,
151
151
  "bindings" => bindings
152
152
  }
@@ -230,8 +230,10 @@ module RubySnowflake
230
230
  # https://github.com/snowflakedb/snowflake-connector-python/blob/eceed981f93e29d2f4663241253b48340389f4ef/src/snowflake/connector/network.py#L191
231
231
  def retryable_http_response_code?(code)
232
232
  # retry (in order): bad request, forbidden (token expired in flight), method not allowed,
233
- # request timeout, too many requests, anything in the 500 range (504 is fairly common)
234
- [400, 403, 405, 408, 429].include?(code.to_i) || (500..599).include?(code.to_i)
233
+ # request timeout, too many requests, anything in the 500 range (504 is fairly common),
234
+ # anything in the 3xx range as those are mostly "redirect" responses
235
+ [400, 403, 405, 408, 429].include?(code.to_i) || (500..599).include?(code.to_i) ||
236
+ (300..399).include?(code.to_i)
235
237
  end
236
238
 
237
239
  def retryable_log_method
@@ -1,3 +1,3 @@
1
1
  module RubySnowflake
2
- VERSION = "1.1.2"
2
+ VERSION = "1.1.3"
3
3
  end
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: 1.1.2
4
+ version: 1.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rinsed
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-08-06 00:00:00.000000000 Z
11
+ date: 2024-08-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: concurrent-ruby