apimatic_core 0.3.2 → 0.3.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: 5bb8b07b1daea4ded5f7f3cd7552c5e9b7f47b5d88466d46ca2c166606f9b73e
4
- data.tar.gz: 8eeb04841951ded1916d37588aca7a36254079653a1db626787e5ee958ccf338
3
+ metadata.gz: a61392d70a018d23e1947a9886c574b0cd341e04d99ee7e1ad18b1c10f3ef22e
4
+ data.tar.gz: 9b8f29acf6e4d9703912d9b9d1a5acf774625b26d6a36dc3c693518d2f02e274
5
5
  SHA512:
6
- metadata.gz: 8157cd92fc94067895362179be7d61a594e256a46bc53a6937eaa138d74d673ce2911a3411730b628e01484932363ec2750219556e12cc1f461a78e7e76dc624
7
- data.tar.gz: b81485a1ef18c8be37c339530ce0ab317212226c89841aa53c94d82256dbac4cf2cef401b3ee28c5be7b9062597776cb5782be8ec5f9fdd57f4bd69f8425ea96
6
+ metadata.gz: 00d16ad4522a07c009dbec86a53fb7310a2c2bc339a9403fd091da9f6ce7f43feace0dfb0e377ed9a9fc29ef144dc1b0e0a6df864fd431c2d82192c21bd8dec6
7
+ data.tar.gz: 6a2bee74082d6db01b028ee6a4265e7534c29b68848b847964a27277bfe3f7121f5478d694375a3ccfa47c7ad0e7c72dca317a23568df1606198aed68543733a
@@ -116,7 +116,7 @@ module CoreLibrary
116
116
  # @return [DateTime] A DateTime object.
117
117
  def self.from_rfc3339(date_time)
118
118
  # missing timezone information
119
- if date_time.end_with?('Z') || date_time.index('+')
119
+ if date_time.match?(/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|[-+]\d{2}:\d{2})\z$/)
120
120
  DateTime.rfc3339(date_time)
121
121
  else
122
122
  DateTime.rfc3339("#{date_time}Z")
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: apimatic_core
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.2
4
+ version: 0.3.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - APIMatic Ltd.
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-12-28 00:00:00.000000000 Z
11
+ date: 2024-01-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: apimatic_core_interfaces