vitable-connect 0.2.2 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +22 -0
- data/README.md +1 -1
- data/lib/vitable_connect/internal/util.rb +3 -1
- data/lib/vitable_connect/models/employee.rb +10 -1
- data/lib/vitable_connect/version.rb +1 -1
- data/rbi/vitable_connect/models/employee.rbi +24 -0
- data/sig/vitable_connect/models/employee.rbs +4 -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: d19150b41214f8f64eead96cac977500a2fec2b2af851569bae8878b6e313a57
|
|
4
|
+
data.tar.gz: bdccce83b4bb326a6c362e8640b70465c2cd5e28185757a47d200c6cefe943b1
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: b546096529e4786fa985f0ce9843b8f7379f0d18968eb27b1f7b456719e216dff854037ae204f267515b305ebd89528f356f2cb2664377ea8140512cc3357d0a
|
|
7
|
+
data.tar.gz: b9fb5cabe64d38d8dc5fa19a93d3c5f2079b9dcbceff8aac61c0699ef6fce529cd1fcf373ce3bb58dc39bc1b724a8f1e31a4ab58bb42ec680d7b11847ff80275
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,27 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.3.0 (2026-04-17)
|
|
4
|
+
|
|
5
|
+
Full Changelog: [v0.2.2...v0.3.0](https://github.com/Vitable-Inc/vitable-connect-ruby/compare/v0.2.2...v0.3.0)
|
|
6
|
+
|
|
7
|
+
### Features
|
|
8
|
+
|
|
9
|
+
* **api:** api update ([f0f95aa](https://github.com/Vitable-Inc/vitable-connect-ruby/commit/f0f95aad70b337a6bf9b73b671ffbeb3f082f8d2))
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
### Bug Fixes
|
|
13
|
+
|
|
14
|
+
* multipart encoding for file arrays ([89441e1](https://github.com/Vitable-Inc/vitable-connect-ruby/commit/89441e17106f9dcdb74cfb1a0ec5e59a8d2030f5))
|
|
15
|
+
|
|
16
|
+
## 0.2.2 (2026-04-03)
|
|
17
|
+
|
|
18
|
+
Full Changelog: [v0.2.1...v0.2.2](https://github.com/Vitable-Inc/vitable-connect-ruby/compare/v0.2.1...v0.2.2)
|
|
19
|
+
|
|
20
|
+
### Bug Fixes
|
|
21
|
+
|
|
22
|
+
* align path encoding with RFC 3986 section 3.3 ([8dffaa7](https://github.com/Vitable-Inc/vitable-connect-ruby/commit/8dffaa70c9a25f8c03eab999b3bcfb3eb0b151b8))
|
|
23
|
+
* variable name typo ([0c72698](https://github.com/Vitable-Inc/vitable-connect-ruby/commit/0c7269861dfb77cc7b901b63229b420122751cbb))
|
|
24
|
+
|
|
3
25
|
## 0.2.2 (2026-04-01)
|
|
4
26
|
|
|
5
27
|
Full Changelog: [v0.2.1...v0.2.2](https://github.com/Vitable-Inc/vitable-connect-ruby/compare/v0.2.1...v0.2.2)
|
data/README.md
CHANGED
|
@@ -610,6 +610,7 @@ module VitableConnect
|
|
|
610
610
|
#
|
|
611
611
|
# @return [Array(String, Enumerable<String>)]
|
|
612
612
|
private def encode_multipart_streaming(body)
|
|
613
|
+
# rubocop:disable Style/CaseEquality
|
|
613
614
|
# RFC 1521 Section 7.2.1 says we should have 70 char maximum for boundary length
|
|
614
615
|
boundary = SecureRandom.urlsafe_base64(46)
|
|
615
616
|
|
|
@@ -619,7 +620,7 @@ module VitableConnect
|
|
|
619
620
|
in Hash
|
|
620
621
|
body.each do |key, val|
|
|
621
622
|
case val
|
|
622
|
-
in Array if val.all? { primitive?(_1) }
|
|
623
|
+
in Array if val.all? { primitive?(_1) || VitableConnect::Internal::Type::FileInput === _1 }
|
|
623
624
|
val.each do |v|
|
|
624
625
|
write_multipart_chunk(y, boundary: boundary, key: key, val: v, closing: closing)
|
|
625
626
|
end
|
|
@@ -635,6 +636,7 @@ module VitableConnect
|
|
|
635
636
|
|
|
636
637
|
fused_io = fused_enum(strio) { closing.each(&:call) }
|
|
637
638
|
[boundary, fused_io]
|
|
639
|
+
# rubocop:enable Style/CaseEquality
|
|
638
640
|
end
|
|
639
641
|
|
|
640
642
|
# @api private
|
|
@@ -188,6 +188,9 @@ module VitableConnect
|
|
|
188
188
|
required :deduction_category, String, nil?: true
|
|
189
189
|
|
|
190
190
|
# @!attribute frequency
|
|
191
|
+
# - `weekly` - Weekly
|
|
192
|
+
# - `bi_weekly` - Bi Weekly
|
|
193
|
+
# - `semi_monthly` - Semi Monthly
|
|
191
194
|
# - `monthly` - Monthly
|
|
192
195
|
#
|
|
193
196
|
# @return [Symbol, VitableConnect::Models::Employee::Deduction::Frequency]
|
|
@@ -223,7 +226,7 @@ module VitableConnect
|
|
|
223
226
|
#
|
|
224
227
|
# @param deduction_category [String, nil] Deduction category (reserved for future use)
|
|
225
228
|
#
|
|
226
|
-
# @param frequency [Symbol, VitableConnect::Models::Employee::Deduction::Frequency] - `
|
|
229
|
+
# @param frequency [Symbol, VitableConnect::Models::Employee::Deduction::Frequency] - `weekly` - Weekly
|
|
227
230
|
#
|
|
228
231
|
# @param period_end_date [Date] Period end date (YYYY-MM-DD)
|
|
229
232
|
#
|
|
@@ -231,12 +234,18 @@ module VitableConnect
|
|
|
231
234
|
#
|
|
232
235
|
# @param tax_classification [Symbol, VitableConnect::Models::Employee::Deduction::TaxClassification] - `Unknown` - Unknown
|
|
233
236
|
|
|
237
|
+
# - `weekly` - Weekly
|
|
238
|
+
# - `bi_weekly` - Bi Weekly
|
|
239
|
+
# - `semi_monthly` - Semi Monthly
|
|
234
240
|
# - `monthly` - Monthly
|
|
235
241
|
#
|
|
236
242
|
# @see VitableConnect::Models::Employee::Deduction#frequency
|
|
237
243
|
module Frequency
|
|
238
244
|
extend VitableConnect::Internal::Type::Enum
|
|
239
245
|
|
|
246
|
+
WEEKLY = :weekly
|
|
247
|
+
BI_WEEKLY = :bi_weekly
|
|
248
|
+
SEMI_MONTHLY = :semi_monthly
|
|
240
249
|
MONTHLY = :monthly
|
|
241
250
|
|
|
242
251
|
# @!method self.values
|
|
@@ -218,6 +218,9 @@ module VitableConnect
|
|
|
218
218
|
sig { returns(T.nilable(String)) }
|
|
219
219
|
attr_accessor :deduction_category
|
|
220
220
|
|
|
221
|
+
# - `weekly` - Weekly
|
|
222
|
+
# - `bi_weekly` - Bi Weekly
|
|
223
|
+
# - `semi_monthly` - Semi Monthly
|
|
221
224
|
# - `monthly` - Monthly
|
|
222
225
|
sig do
|
|
223
226
|
returns(VitableConnect::Employee::Deduction::Frequency::TaggedSymbol)
|
|
@@ -261,6 +264,9 @@ module VitableConnect
|
|
|
261
264
|
deduction_amount_in_cents:,
|
|
262
265
|
# Deduction category (reserved for future use)
|
|
263
266
|
deduction_category:,
|
|
267
|
+
# - `weekly` - Weekly
|
|
268
|
+
# - `bi_weekly` - Bi Weekly
|
|
269
|
+
# - `semi_monthly` - Semi Monthly
|
|
264
270
|
# - `monthly` - Monthly
|
|
265
271
|
frequency:,
|
|
266
272
|
# Period end date (YYYY-MM-DD)
|
|
@@ -292,6 +298,9 @@ module VitableConnect
|
|
|
292
298
|
def to_hash
|
|
293
299
|
end
|
|
294
300
|
|
|
301
|
+
# - `weekly` - Weekly
|
|
302
|
+
# - `bi_weekly` - Bi Weekly
|
|
303
|
+
# - `semi_monthly` - Semi Monthly
|
|
295
304
|
# - `monthly` - Monthly
|
|
296
305
|
module Frequency
|
|
297
306
|
extend VitableConnect::Internal::Type::Enum
|
|
@@ -302,6 +311,21 @@ module VitableConnect
|
|
|
302
311
|
end
|
|
303
312
|
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
304
313
|
|
|
314
|
+
WEEKLY =
|
|
315
|
+
T.let(
|
|
316
|
+
:weekly,
|
|
317
|
+
VitableConnect::Employee::Deduction::Frequency::TaggedSymbol
|
|
318
|
+
)
|
|
319
|
+
BI_WEEKLY =
|
|
320
|
+
T.let(
|
|
321
|
+
:bi_weekly,
|
|
322
|
+
VitableConnect::Employee::Deduction::Frequency::TaggedSymbol
|
|
323
|
+
)
|
|
324
|
+
SEMI_MONTHLY =
|
|
325
|
+
T.let(
|
|
326
|
+
:semi_monthly,
|
|
327
|
+
VitableConnect::Employee::Deduction::Frequency::TaggedSymbol
|
|
328
|
+
)
|
|
305
329
|
MONTHLY =
|
|
306
330
|
T.let(
|
|
307
331
|
:monthly,
|
|
@@ -152,11 +152,14 @@ module VitableConnect
|
|
|
152
152
|
tax_classification: VitableConnect::Models::Employee::Deduction::tax_classification
|
|
153
153
|
}
|
|
154
154
|
|
|
155
|
-
type frequency = :monthly
|
|
155
|
+
type frequency = :weekly | :bi_weekly | :semi_monthly | :monthly
|
|
156
156
|
|
|
157
157
|
module Frequency
|
|
158
158
|
extend VitableConnect::Internal::Type::Enum
|
|
159
159
|
|
|
160
|
+
WEEKLY: :weekly
|
|
161
|
+
BI_WEEKLY: :bi_weekly
|
|
162
|
+
SEMI_MONTHLY: :semi_monthly
|
|
160
163
|
MONTHLY: :monthly
|
|
161
164
|
|
|
162
165
|
def self?.values: -> ::Array[VitableConnect::Models::Employee::Deduction::frequency]
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: vitable-connect
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.3.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Vitable Connect
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2026-04-
|
|
11
|
+
date: 2026-04-21 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: cgi
|