rb_snowflake_client 1.0.0 → 1.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/README.md +2 -2
- data/lib/ruby_snowflake/client/key_pair_jwt_auth_manager.rb +1 -1
- data/lib/ruby_snowflake/client.rb +7 -0
- data/lib/ruby_snowflake/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 33639407ebfa98e2387ad9924304147b18124ac9ff79bb4d7f5c47a1892f6753
|
4
|
+
data.tar.gz: 5bca13a6847a4203342f0cc021c61cf4628efff0047887d70bb5c1b093ab78f5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0cc917ffaccb66e29484b6c310fb2f799c7d680e67492ba294f045c8d8f9be438486cce544e1d35329249b555cdde6ef74abbb2d27846e8888b451bc1325773c
|
7
|
+
data.tar.gz: 416aaaf3c12c2fd444dd42b4de01c120469ac9a2dac5da32fe98bc0d892c03c2c0fd1fc4a445a8df19a13140b245fcd69adc5558f33b79aa74c24210e8b1a7ef
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -15,9 +15,9 @@ This library is implemented in ruby and while it leverages some libraries that h
|
|
15
15
|
|
16
16
|
## Create a client
|
17
17
|
|
18
|
-
Add to your Gemfile or use `gem install
|
18
|
+
Add to your Gemfile or use `gem install rb_snowflake_client`
|
19
19
|
```ruby
|
20
|
-
gem "
|
20
|
+
gem "rb_snowflake_client"
|
21
21
|
```
|
22
22
|
|
23
23
|
Then require, create a client
|
@@ -46,7 +46,7 @@ module RubySnowflake
|
|
46
46
|
end
|
47
47
|
|
48
48
|
def public_key_fingerprint
|
49
|
-
|
49
|
+
return @public_key_fingerprint unless @public_key_fingerprint.nil?
|
50
50
|
|
51
51
|
public_key_der = OpenSSL::PKey::RSA.new(@private_key_pem).public_key.to_der
|
52
52
|
digest = OpenSSL::Digest::SHA256.new.digest(public_key_der)
|
@@ -156,6 +156,13 @@ module RubySnowflake
|
|
156
156
|
value = ENV[env_var_name]
|
157
157
|
value.nil? || value.empty? ? default_value : ENV[env_var_name].to_i
|
158
158
|
end
|
159
|
+
|
160
|
+
# This method can be used to populate the JWT token used for authentication
|
161
|
+
# in tests that require time travel.
|
162
|
+
def create_jwt_token
|
163
|
+
@key_pair_jwt_auth_manager.jwt_token
|
164
|
+
end
|
165
|
+
|
159
166
|
private_class_method :env_option
|
160
167
|
|
161
168
|
private
|
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.0.
|
4
|
+
version: 1.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Rinsed
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2024-01-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: concurrent-ruby
|