cloud-waba-ruby-client 0.0.11 → 0.0.12
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/README.md +2 -1
- data/cloud-waba-ruby-client.gemspec +2 -1
- data/lib/cloud-waba-ruby-client.rb +7 -0
- data/lib/cloud_waba.rb +4 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b0c8075f042ed9a22dab184ab4d24523d990c669a9ccac1b85bcc2920b62bb98
|
4
|
+
data.tar.gz: cb54e89fc26f3c6d1ef655110a806a0c4572dced3fb407f43b4921cc5fcd482d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b89699168601430eb4772032711c79c93cf4147def5f967c1f727e7d27a47fcfb9ad74495b28d7eea37e669085c33ff27737b922ec24bd855359ea699ff169c9
|
7
|
+
data.tar.gz: 283c9530b7f59b1b39d1b6688c4014c5d79d0526b08e8b6b0b0def99a27c297e65271fa6c266c44a20ca420d6d8ea63b7010fe4d4b17daeccfded3823267e4e6
|
data/README.md
CHANGED
@@ -29,9 +29,10 @@ gem install cloud-waba-ruby-client
|
|
29
29
|
- A phone number added to your WhatsApp business account
|
30
30
|
- Meta developer app
|
31
31
|
### Initiating clients using parameters
|
32
|
+
|
33
|
+
**Option 1: Manual require (explicit)**
|
32
34
|
```ruby
|
33
35
|
require "cloud_waba" # Auto-loads the entire gem
|
34
|
-
|
35
36
|
client_1 = CloudWaba::Client.new(
|
36
37
|
app_id: param_app_id_1,
|
37
38
|
app_secret: param_app_secret_1,
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Gem::Specification.new do |s|
|
2
2
|
s.name = "cloud-waba-ruby-client"
|
3
|
-
s.version = "0.0.
|
3
|
+
s.version = "0.0.12"
|
4
4
|
s.summary = "Cloud Waba Client for Ruby."
|
5
5
|
s.description = "A simple API wrapper for Cloud Whatsapp Business API"
|
6
6
|
s.authors = ["Ahmed Bassell"]
|
@@ -8,6 +8,7 @@ Gem::Specification.new do |s|
|
|
8
8
|
# s.platform = Gem::Platform::RUBY
|
9
9
|
s.files = `git ls-files`.split("\n")
|
10
10
|
s.require_paths = ["lib"]
|
11
|
+
s.autorequire = "cloud-waba-ruby-client"
|
11
12
|
s.homepage =
|
12
13
|
"https://rubygems.org/gems/cloud_waba"
|
13
14
|
s.license = "MIT"
|
data/lib/cloud_waba.rb
CHANGED
@@ -6,4 +6,7 @@ require "sorbet-runtime"
|
|
6
6
|
# Main entry point for the CloudWaba gem
|
7
7
|
# This file should be required to load the entire gem
|
8
8
|
|
9
|
-
|
9
|
+
module CloudWaba
|
10
|
+
# Auto-load the main client class when first accessed
|
11
|
+
autoload :Client, "cloud_waba/client"
|
12
|
+
end
|
metadata
CHANGED
@@ -1,11 +1,11 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cloud-waba-ruby-client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.12
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ahmed Bassell
|
8
|
-
autorequire:
|
8
|
+
autorequire: cloud-waba-ruby-client
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
date: 2025-09-05 00:00:00.000000000 Z
|
@@ -111,6 +111,7 @@ files:
|
|
111
111
|
- cloud-waba-ruby-client.gemspec
|
112
112
|
- lib/api/messages/service.rb
|
113
113
|
- lib/api/templates/service.rb
|
114
|
+
- lib/cloud-waba-ruby-client.rb
|
114
115
|
- lib/cloud_waba.rb
|
115
116
|
- lib/cloud_waba/client.rb
|
116
117
|
- lib/cloud_waba/errors/bad_request.rb
|