trycourier 3.0.0.pre.beta1 → 3.1.3
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/lib/trycourier/send/types/message_recipient.rb +9 -8
- metadata +7 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 128ca7d45b600b18d3dc293308555dcdf10249359e3293074c7b7736802955ff
|
4
|
+
data.tar.gz: 020a68ccdfb28cff937384675372c978cc045f86dc419e6e38c7ae9f9c905952
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 968a16de6de84a11c075f789af9b1692ae53f089297a7117b427f61f4a2bc4d2f3a0048a1ba449466c1dd9f397f9e8271d02351d06461516e765da4525489fc4
|
7
|
+
data.tar.gz: 4d3b506c040b95828e18155b4a9e2091a1503f423b733b8f52349698f8ea567548e90242b6ad54a11ab7341b6a9b1859da1a888794947273c12a7a85ab60ea4a
|
@@ -20,18 +20,19 @@ module Courier
|
|
20
20
|
begin
|
21
21
|
struct.is_a?(Array) != false || raise("Passed value for field struct is not the expected type, validation failed.")
|
22
22
|
return unless json_object.nil?
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
end
|
27
|
-
else
|
28
|
-
|
29
|
-
end
|
23
|
+
json_object.map do |v|
|
24
|
+
v = v.to_json
|
25
|
+
Send::Recipient.from_json(json_object: v)
|
26
|
+
end
|
27
|
+
else
|
28
|
+
nil
|
29
|
+
end
|
30
30
|
rescue StandardError
|
31
31
|
# noop
|
32
32
|
end
|
33
|
-
|
33
|
+
return struct
|
34
34
|
end
|
35
|
+
|
35
36
|
# Leveraged for Union-type generation, validate_raw attempts to parse the given hash and check each fields type against the current object's property definitions.
|
36
37
|
#
|
37
38
|
# @param obj [Object]
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: trycourier
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.
|
4
|
+
version: 3.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Courier
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2025-02-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: async-http-faraday
|
@@ -396,7 +396,7 @@ metadata:
|
|
396
396
|
homepage_uri: https://github.com/trycourier/courier-ruby
|
397
397
|
source_code_uri: https://github.com/trycourier/courier-ruby
|
398
398
|
changelog_uri: https://github.com/trycourier/courier-ruby/blob/master/CHANGELOG.md
|
399
|
-
post_install_message:
|
399
|
+
post_install_message:
|
400
400
|
rdoc_options: []
|
401
401
|
require_paths:
|
402
402
|
- lib
|
@@ -407,12 +407,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
407
407
|
version: 2.7.0
|
408
408
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
409
409
|
requirements:
|
410
|
-
- - "
|
410
|
+
- - ">="
|
411
411
|
- !ruby/object:Gem::Version
|
412
|
-
version:
|
412
|
+
version: '0'
|
413
413
|
requirements: []
|
414
414
|
rubygems_version: 3.1.6
|
415
|
-
signing_key:
|
415
|
+
signing_key:
|
416
416
|
specification_version: 4
|
417
417
|
summary: Wraps calls to the Courier REST API
|
418
418
|
test_files: []
|