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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7c32ce1f9c66abdbd0041387f44c9f03d4ec45e78a1a036d7f7d4fc67e3364d1
4
- data.tar.gz: 2a79b18d714a9d4560cb51aa45b107dc7e8d1322ee44689a4c666603d480dfcb
3
+ metadata.gz: b0c8075f042ed9a22dab184ab4d24523d990c669a9ccac1b85bcc2920b62bb98
4
+ data.tar.gz: cb54e89fc26f3c6d1ef655110a806a0c4572dced3fb407f43b4921cc5fcd482d
5
5
  SHA512:
6
- metadata.gz: ce5dbb10ddf98d348b817bf5c7c7c2bbf92b8b46885e2c0426c28b9ba5bee5a80494127fad277aec4c5241abe74fe7570ba7beea70971decf999c0eaafd1f1f1
7
- data.tar.gz: 43271b7d29dcadda0fb7662360a610a6c4c68e98b6c31fee6506e950f4a1c819b1432ef12b57d7e9a431095504e369cf2a50005471314a0e4eda0b147d31a05a
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.11"
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"
@@ -0,0 +1,7 @@
1
+ # typed: true
2
+ # frozen_string_literal: true
3
+
4
+ # This file is automatically loaded by Bundler when the gem is added to a Gemfile
5
+ # It provides the same functionality as requiring 'cloud_waba' manually
6
+
7
+ require_relative "cloud_waba"
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
- require_relative "cloud_waba/client"
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.11
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