stackone_client 0.2.0 → 0.2.1

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: 54c38885ef15cb60f127f7069b8cc4244c04942d265e0bf75322f06069eb5208
4
- data.tar.gz: 37e7950c9c468fc6eebdd3596e7434bcfbbe31b90d48c2dca9319b1310f054c5
3
+ metadata.gz: 89d25140db83b103a565e5b8bb45d73907ff8a8e78c025407929b78ef633c58d
4
+ data.tar.gz: 210249c857ee9b5e99501fd236e6a6089688f52ab7bf48306d0e3471051bd671
5
5
  SHA512:
6
- metadata.gz: 7e5c439c622d324c62818ad44ca34b4967e15c37977b1ba3faa749f0d3a1b61d49b56fc1689474c29a0d8871a9352dcb5c298af8293dac2ca0d88b5974d3bc65
7
- data.tar.gz: 3b9a817c15deb5972031e6ce781c00b917560284393b23bfbc880eaa48bb38709830b866ec26e74981e3c0505cdd477b35d622604621a3793dcc038514e7d412
6
+ metadata.gz: 562b96d818276c26fe1f1ed7485f1de00bc1eb349fbce25d7baf310a54a4a241884b1bc4ac9a98be4cc925c61a94233b1946aff840989dac3ac1376918adc520
7
+ data.tar.gz: c4b2f52b6f160f795f0a0ce12d3625507ead869a4580ca4938df6681f64286418fc8d6c0f3fc8cffa20469095d5c69ea26618d81634490d9be72aba4c1e8847a
@@ -17,6 +17,7 @@ module StackOne
17
17
  VISA = new('visa')
18
18
  PASSPORT = new('passport')
19
19
  DRIVER_LICENSE = new('driver_license')
20
+ PAYSLIP = new('payslip')
20
21
  PAYROLL = new('payroll')
21
22
  APPRAISAL = new('appraisal')
22
23
  RESUME = new('resume')
@@ -36,9 +36,9 @@ module StackOne
36
36
  @server_idx = server_idx.nil? ? 0 : server_idx
37
37
  @language = 'ruby'
38
38
  @openapi_doc_version = '1.0.0'
39
- @sdk_version = '0.2.0'
40
- @gen_version = '2.250.16'
41
- @user_agent = 'speakeasy-sdk/ruby 0.2.0 2.250.16 1.0.0 stackone_client'
39
+ @sdk_version = '0.2.1'
40
+ @gen_version = '2.250.22'
41
+ @user_agent = 'speakeasy-sdk/ruby 0.2.1 2.250.22 1.0.0 stackone_client'
42
42
  end
43
43
 
44
44
  sig { returns([String, T::Hash[Symbol, String]]) }
@@ -479,7 +479,9 @@ module StackOne
479
479
  end
480
480
 
481
481
  data = "#{username}:#{password}".encode
482
- req.headers['Authorization'] = "Basic #{Base64.encode64(data)}"
482
+ # Use strict_encode, because encode adds newlines after 60 chars
483
+ # https://docs.ruby-lang.org/en/3.0/Base64.html#method-i-encode64
484
+ req.headers['Authorization'] = "Basic #{Base64.strict_encode64(data)}"
483
485
  end
484
486
 
485
487
  sig { params(optional: T::Boolean).returns(T.proc.params(s: String).returns(DateTime)) }
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: stackone_client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - StackOne
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-02-08 00:00:00.000000000 Z
11
+ date: 2024-02-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday