whatsapp_sdk 0.6.0 → 0.6.1
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 +3 -0
- data/Gemfile.lock +6 -6
- data/lib/whatsapp_sdk/api/response.rb +4 -0
- data/lib/whatsapp_sdk/version.rb +1 -1
- data/whatsapp_sdk.gemspec +3 -3
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4d70f3c946148d4935fa447fae876defaea2a086f944ff94b3838c306c925752
|
4
|
+
data.tar.gz: afd71dd8d1fc23fd4000ed7263f868724db24a120c247c8e5a1ac1dc41a86d56
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: aed5dd70fb476006f5d0d68089549eb646fddb761b1521e16b65ded7b4d1150354618d0bb6fd63f45478236af5369bdb4c9fe9ac512ab6bd957c1dc6d667b7a4
|
7
|
+
data.tar.gz: de335d17ff40f47625a99636923b0053718ebca4d21c0dc24066a87570bb30385ec7f2dd3d8aa0c69c4c2afa0c6068bd7fb5b17f80a17df69de5ac77553ae906
|
data/CHANGELOG.md
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
whatsapp_sdk (0.6.
|
5
|
-
faraday (
|
4
|
+
whatsapp_sdk (0.6.1)
|
5
|
+
faraday (>= 2.3.0)
|
6
6
|
faraday-multipart (~> 1.0.4)
|
7
7
|
oj (~> 3.13.13)
|
8
8
|
sorbet
|
@@ -15,12 +15,12 @@ GEM
|
|
15
15
|
ast (2.4.2)
|
16
16
|
coderay (1.1.3)
|
17
17
|
diff-lcs (1.5.0)
|
18
|
-
faraday (2.
|
19
|
-
faraday-net_http (
|
18
|
+
faraday (2.5.2)
|
19
|
+
faraday-net_http (>= 2.0, < 3.1)
|
20
20
|
ruby2_keywords (>= 0.0.4)
|
21
21
|
faraday-multipart (1.0.4)
|
22
22
|
multipart-post (~> 2)
|
23
|
-
faraday-net_http (
|
23
|
+
faraday-net_http (3.0.0)
|
24
24
|
method_source (1.0.0)
|
25
25
|
minitest (5.16.1)
|
26
26
|
mocha (1.14.0)
|
@@ -120,4 +120,4 @@ DEPENDENCIES
|
|
120
120
|
zeitwerk (>= 2.6.0)
|
121
121
|
|
122
122
|
BUNDLED WITH
|
123
|
-
2.3.
|
123
|
+
2.3.22
|
@@ -18,6 +18,9 @@ module WhatsappSdk
|
|
18
18
|
sig { returns(T.nilable(WhatsappSdk::Api::Responses::DataResponse)) }
|
19
19
|
attr_accessor :data
|
20
20
|
|
21
|
+
sig { returns(T::Hash[T.untyped, T.untyped]) }
|
22
|
+
attr_accessor :raw_response
|
23
|
+
|
21
24
|
sig do
|
22
25
|
params(
|
23
26
|
response: T::Hash[T.untyped, T.untyped],
|
@@ -26,6 +29,7 @@ module WhatsappSdk
|
|
26
29
|
).void
|
27
30
|
end
|
28
31
|
def initialize(response:, data_class_type:, error_class_type: Responses::MessageErrorResponse)
|
32
|
+
@raw_response = response
|
29
33
|
@data = data_class_type.build_from_response(response: response)
|
30
34
|
@error = error_class_type.build_from_response(response: response)
|
31
35
|
end
|
data/lib/whatsapp_sdk/version.rb
CHANGED
data/whatsapp_sdk.gemspec
CHANGED
@@ -11,9 +11,9 @@ Gem::Specification.new do |spec|
|
|
11
11
|
spec.version = WhatsappSdk::VERSION
|
12
12
|
spec.authors = ["ignacio-chiazzo"]
|
13
13
|
spec.email = ["ignaciochiazzo@gmail.com"]
|
14
|
-
spec.summary = "Use the Ruby Whatsapp SDK to
|
14
|
+
spec.summary = "Use the Ruby Whatsapp SDK to communicate with Whatsapp API using the Cloud API"
|
15
15
|
spec.description = <<-DESCRIPTION
|
16
|
-
Use the Ruby Whatsapp SDK to
|
16
|
+
Use the Ruby Whatsapp SDK to communicate with Whatsapp API using the Cloud API.
|
17
17
|
Create bots to send and receive messages using the Whatsapp SDK in a few minutes.
|
18
18
|
DESCRIPTION
|
19
19
|
spec.homepage = "https://github.com/ignacio-chiazzo/ruby_whatsapp_sdk"
|
@@ -46,7 +46,7 @@ Gem::Specification.new do |spec|
|
|
46
46
|
spec.add_dependency('sorbet')
|
47
47
|
spec.add_dependency('sorbet-runtime')
|
48
48
|
|
49
|
-
spec.add_dependency("faraday", "
|
49
|
+
spec.add_dependency("faraday", ">= 2.3.0")
|
50
50
|
spec.add_dependency("faraday-multipart", "~> 1.0.4")
|
51
51
|
spec.add_dependency("oj", "~> 3.13.13")
|
52
52
|
spec.add_dependency("zeitwerk", "~> 2.6.0")
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: whatsapp_sdk
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.6.
|
4
|
+
version: 0.6.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- ignacio-chiazzo
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-
|
11
|
+
date: 2022-10-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -84,14 +84,14 @@ dependencies:
|
|
84
84
|
name: faraday
|
85
85
|
requirement: !ruby/object:Gem::Requirement
|
86
86
|
requirements:
|
87
|
-
- - "
|
87
|
+
- - ">="
|
88
88
|
- !ruby/object:Gem::Version
|
89
89
|
version: 2.3.0
|
90
90
|
type: :runtime
|
91
91
|
prerelease: false
|
92
92
|
version_requirements: !ruby/object:Gem::Requirement
|
93
93
|
requirements:
|
94
|
-
- - "
|
94
|
+
- - ">="
|
95
95
|
- !ruby/object:Gem::Version
|
96
96
|
version: 2.3.0
|
97
97
|
- !ruby/object:Gem::Dependency
|
@@ -137,7 +137,7 @@ dependencies:
|
|
137
137
|
- !ruby/object:Gem::Version
|
138
138
|
version: 2.6.0
|
139
139
|
description: |2
|
140
|
-
Use the Ruby Whatsapp SDK to
|
140
|
+
Use the Ruby Whatsapp SDK to communicate with Whatsapp API using the Cloud API.
|
141
141
|
Create bots to send and receive messages using the Whatsapp SDK in a few minutes.
|
142
142
|
email:
|
143
143
|
- ignaciochiazzo@gmail.com
|
@@ -246,6 +246,6 @@ requirements: []
|
|
246
246
|
rubygems_version: 3.3.3
|
247
247
|
signing_key:
|
248
248
|
specification_version: 4
|
249
|
-
summary: Use the Ruby Whatsapp SDK to
|
249
|
+
summary: Use the Ruby Whatsapp SDK to communicate with Whatsapp API using the Cloud
|
250
250
|
API
|
251
251
|
test_files: []
|