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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c874db92236d04e2054f62fce2bb48061ec9ad7db7d8b3eab08835cd8e779db7
4
- data.tar.gz: 8abcd2ac74928945993bcc32827a5f0626d12ed55a055b9467e915ff2217d265
3
+ metadata.gz: d19150b41214f8f64eead96cac977500a2fec2b2af851569bae8878b6e313a57
4
+ data.tar.gz: bdccce83b4bb326a6c362e8640b70465c2cd5e28185757a47d200c6cefe943b1
5
5
  SHA512:
6
- metadata.gz: e14ea4fb5e46fc3c761d8c7cd8d9e98dc696ef666d7067b9bb48f6bfa156813e7cf996b8f5f47b697e4cb05bf8b540a214036feeccf6c00e73fe9e4008d6fa21
7
- data.tar.gz: 45ee0bedda2dfc04e36e809324235f9de5515fabb8b4e83e994afa3aec0e7e4502bbf00b2eae538894604ba2dc3c78ab34d6feb73fbf3badd094113ca6ed306b
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
@@ -17,7 +17,7 @@ To use this gem, install via Bundler by adding the following to your application
17
17
  <!-- x-release-please-start-version -->
18
18
 
19
19
  ```ruby
20
- gem "vitable-connect", "~> 0.2.2"
20
+ gem "vitable-connect", "~> 0.3.0"
21
21
  ```
22
22
 
23
23
  <!-- x-release-please-end -->
@@ -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] - `monthly` - Monthly
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module VitableConnect
4
- VERSION = "0.2.2"
4
+ VERSION = "0.3.0"
5
5
  end
@@ -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.2.2
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-03 00:00:00.000000000 Z
11
+ date: 2026-04-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: cgi