whatsapp_pair 1.0.0

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 ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 3a29d427c157ac1c888e9da55118b1100e1b142dac139728a1cb9b28988cf8b7
4
+ data.tar.gz: 20ed33944e24234fe0fc08f6208ca1488c8d323f4192ee616f14b8e17c240843
5
+ SHA512:
6
+ metadata.gz: c4ef2f11c27b9dd2ed0ce4c66a4d6e87d95508c8eded73959f15fd08860f308c7465f1935165578df63f2a9597c294d0eb19bfa64dd067830e39c89cd589f046
7
+ data.tar.gz: 362e03e2fc44099dcb0d59416aa17a5b14d21cf6b787abe7c85ec9e8209cccc1de667f2375aee6223dd935806f8409db0849a5d54b201bc08c7eac008aee8e49
data/bin/whatsapp-pair ADDED
@@ -0,0 +1,10 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require "whatsapp_pair"
4
+
5
+ print "Enter your WhatsApp number with country code: "
6
+ phone = STDIN.gets.chomp
7
+
8
+ puts "Generating pairing code..."
9
+
10
+ puts WhatsappPair.generate_pair(phone)
@@ -0,0 +1,3 @@
1
+ module WhatsappPair
2
+ VERSION = "1.0.0"
3
+ end
@@ -0,0 +1,15 @@
1
+ require "net/http"
2
+ require "uri"
3
+ require_relative "whatsapp_pair/version"
4
+
5
+ module WhatsappPair
6
+ API = "https://reimagined-system.onrender.com/generate-pair?number="
7
+
8
+ def self.generate_pair(phone)
9
+ url = URI(API + phone)
10
+
11
+ response = Net::HTTP.get_response(url)
12
+
13
+ response.body
14
+ end
15
+ end
metadata ADDED
@@ -0,0 +1,40 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: whatsapp_pair
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.0.0
5
+ platform: ruby
6
+ authors:
7
+ - data-drift
8
+ bindir: bin
9
+ cert_chain: []
10
+ date: 2026-07-08 00:00:00.000000000 Z
11
+ dependencies: []
12
+ description: Generate WhatsApp pairing codes using API
13
+ executables:
14
+ - whatsapp-pair
15
+ extensions: []
16
+ extra_rdoc_files: []
17
+ files:
18
+ - bin/whatsapp-pair
19
+ - lib/whatsapp_pair.rb
20
+ - lib/whatsapp_pair/version.rb
21
+ licenses: []
22
+ metadata: {}
23
+ rdoc_options: []
24
+ require_paths:
25
+ - lib
26
+ required_ruby_version: !ruby/object:Gem::Requirement
27
+ requirements:
28
+ - - ">="
29
+ - !ruby/object:Gem::Version
30
+ version: '3.0'
31
+ required_rubygems_version: !ruby/object:Gem::Requirement
32
+ requirements:
33
+ - - ">="
34
+ - !ruby/object:Gem::Version
35
+ version: '0'
36
+ requirements: []
37
+ rubygems_version: 3.6.2
38
+ specification_version: 4
39
+ summary: WhatsApp pairing code generator client
40
+ test_files: []