warb 1.0.0 → 1.0.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/.rubocop.yml +12 -5
- data/README.md +32 -9
- data/Rakefile +3 -3
- data/docs/README.md +4 -1
- data/docs/components/README.md +4 -1
- data/docs/components/button.md +62 -0
- data/docs/components/copy_code_button.md +57 -0
- data/docs/components/flow_button.md +102 -0
- data/docs/components/url_button.md +57 -0
- data/docs/messages/README.md +2 -1
- data/docs/messages/flow.md +241 -5
- data/docs/messages/interactive_call_to_action_url.md +9 -9
- data/docs/messages/interactive_list.md +2 -2
- data/docs/messages/interactive_reply_button.md +9 -9
- data/docs/messages/template.md +373 -0
- data/docs/resources/README.md +14 -0
- data/docs/resources/currency.md +22 -0
- data/docs/resources/date_time.md +11 -0
- data/docs/resources/text.md +9 -0
- data/docs/setup.md +45 -1
- data/examples/audio.rb +10 -10
- data/examples/document.rb +34 -34
- data/examples/image.rb +22 -22
- data/examples/interactive_call_to_action_url.rb +46 -46
- data/examples/interactive_list.rb +61 -61
- data/examples/interactive_reply_button.rb +43 -43
- data/examples/location.rb +32 -32
- data/examples/location_request.rb +11 -11
- data/examples/message.rb +8 -8
- data/examples/sticker.rb +10 -10
- data/examples/video.rb +22 -22
- data/examples/webhook.rb +77 -43
- data/lib/warb/category.rb +8 -0
- data/lib/warb/client.rb +7 -5
- data/lib/warb/components/action.rb +12 -8
- data/lib/warb/components/button.rb +29 -0
- data/lib/warb/components/component.rb +19 -0
- data/lib/warb/components/copy_code_button.rb +30 -0
- data/lib/warb/components/flow_button.rb +32 -0
- data/lib/warb/components/quick_reply_button.rb +15 -0
- data/lib/warb/components/url_button.rb +30 -0
- data/lib/warb/components/voice_call_button.rb +15 -0
- data/lib/warb/configuration.rb +4 -1
- data/lib/warb/connection.rb +15 -9
- data/lib/warb/dispatcher.rb +4 -3
- data/lib/warb/dispatcher_concern.rb +6 -0
- data/lib/warb/errors.rb +27 -0
- data/lib/warb/indicator_dispatcher.rb +4 -4
- data/lib/warb/language.rb +8 -0
- data/lib/warb/media_dispatcher.rb +10 -10
- data/lib/warb/resources/audio.rb +1 -1
- data/lib/warb/resources/contact.rb +22 -20
- data/lib/warb/resources/currency.rb +47 -0
- data/lib/warb/resources/date_time.rb +34 -0
- data/lib/warb/resources/document.rb +1 -1
- data/lib/warb/resources/flow.rb +82 -20
- data/lib/warb/resources/helpers/header.rb +35 -0
- data/lib/warb/resources/image.rb +1 -1
- data/lib/warb/resources/interactive_call_to_action_url.rb +10 -8
- data/lib/warb/resources/interactive_list.rb +7 -5
- data/lib/warb/resources/interactive_reply_button.rb +10 -8
- data/lib/warb/resources/location.rb +11 -1
- data/lib/warb/resources/location_request.rb +5 -3
- data/lib/warb/resources/reaction.rb +1 -1
- data/lib/warb/resources/resource.rb +14 -4
- data/lib/warb/resources/sticker.rb +1 -1
- data/lib/warb/resources/template.rb +163 -0
- data/lib/warb/resources/text.rb +31 -3
- data/lib/warb/resources/validation.rb +30 -0
- data/lib/warb/resources/video.rb +1 -1
- data/lib/warb/response.rb +33 -0
- data/lib/warb/response_error_handler.rb +42 -0
- data/lib/warb/template_dispatcher.rb +21 -0
- data/lib/warb/utils.rb +3 -1
- data/lib/warb/version.rb +1 -1
- data/lib/warb.rb +67 -31
- metadata +34 -3
metadata
CHANGED
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: warb
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.0.
|
|
4
|
+
version: 1.0.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Rebase
|
|
8
|
+
autorequire:
|
|
8
9
|
bindir: exe
|
|
9
10
|
cert_chain: []
|
|
10
|
-
date:
|
|
11
|
+
date: 2025-11-05 00:00:00.000000000 Z
|
|
11
12
|
dependencies:
|
|
12
13
|
- !ruby/object:Gem::Dependency
|
|
13
14
|
name: faraday
|
|
@@ -52,8 +53,11 @@ files:
|
|
|
52
53
|
- docs/README.md
|
|
53
54
|
- docs/components/README.md
|
|
54
55
|
- docs/components/address.md
|
|
56
|
+
- docs/components/button.md
|
|
57
|
+
- docs/components/copy_code_button.md
|
|
55
58
|
- docs/components/cta_action.md
|
|
56
59
|
- docs/components/email.md
|
|
60
|
+
- docs/components/flow_button.md
|
|
57
61
|
- docs/components/list_action.md
|
|
58
62
|
- docs/components/name.md
|
|
59
63
|
- docs/components/org.md
|
|
@@ -62,6 +66,7 @@ files:
|
|
|
62
66
|
- docs/components/row.md
|
|
63
67
|
- docs/components/section.md
|
|
64
68
|
- docs/components/url.md
|
|
69
|
+
- docs/components/url_button.md
|
|
65
70
|
- docs/images/contact-with-wa_id.png
|
|
66
71
|
- docs/images/contact-without-wa_id.png
|
|
67
72
|
- docs/messages/README.md
|
|
@@ -78,8 +83,13 @@ files:
|
|
|
78
83
|
- docs/messages/location_request.md
|
|
79
84
|
- docs/messages/reaction.md
|
|
80
85
|
- docs/messages/sticker.md
|
|
86
|
+
- docs/messages/template.md
|
|
81
87
|
- docs/messages/text.md
|
|
82
88
|
- docs/messages/video.md
|
|
89
|
+
- docs/resources/README.md
|
|
90
|
+
- docs/resources/currency.md
|
|
91
|
+
- docs/resources/date_time.md
|
|
92
|
+
- docs/resources/text.md
|
|
83
93
|
- docs/setup.md
|
|
84
94
|
- docs/webhook.md
|
|
85
95
|
- examples/audio.rb
|
|
@@ -95,24 +105,37 @@ files:
|
|
|
95
105
|
- examples/video.rb
|
|
96
106
|
- examples/webhook.rb
|
|
97
107
|
- lib/warb.rb
|
|
108
|
+
- lib/warb/category.rb
|
|
98
109
|
- lib/warb/client.rb
|
|
99
110
|
- lib/warb/components/action.rb
|
|
100
111
|
- lib/warb/components/address.rb
|
|
112
|
+
- lib/warb/components/button.rb
|
|
113
|
+
- lib/warb/components/component.rb
|
|
114
|
+
- lib/warb/components/copy_code_button.rb
|
|
101
115
|
- lib/warb/components/email.rb
|
|
116
|
+
- lib/warb/components/flow_button.rb
|
|
102
117
|
- lib/warb/components/name.rb
|
|
103
118
|
- lib/warb/components/org.rb
|
|
104
119
|
- lib/warb/components/phone.rb
|
|
120
|
+
- lib/warb/components/quick_reply_button.rb
|
|
105
121
|
- lib/warb/components/url.rb
|
|
122
|
+
- lib/warb/components/url_button.rb
|
|
123
|
+
- lib/warb/components/voice_call_button.rb
|
|
106
124
|
- lib/warb/configuration.rb
|
|
107
125
|
- lib/warb/connection.rb
|
|
108
126
|
- lib/warb/dispatcher.rb
|
|
109
127
|
- lib/warb/dispatcher_concern.rb
|
|
128
|
+
- lib/warb/errors.rb
|
|
110
129
|
- lib/warb/indicator_dispatcher.rb
|
|
130
|
+
- lib/warb/language.rb
|
|
111
131
|
- lib/warb/media_dispatcher.rb
|
|
112
132
|
- lib/warb/resources/audio.rb
|
|
113
133
|
- lib/warb/resources/contact.rb
|
|
134
|
+
- lib/warb/resources/currency.rb
|
|
135
|
+
- lib/warb/resources/date_time.rb
|
|
114
136
|
- lib/warb/resources/document.rb
|
|
115
137
|
- lib/warb/resources/flow.rb
|
|
138
|
+
- lib/warb/resources/helpers/header.rb
|
|
116
139
|
- lib/warb/resources/image.rb
|
|
117
140
|
- lib/warb/resources/interactive_call_to_action_url.rb
|
|
118
141
|
- lib/warb/resources/interactive_list.rb
|
|
@@ -122,8 +145,13 @@ files:
|
|
|
122
145
|
- lib/warb/resources/reaction.rb
|
|
123
146
|
- lib/warb/resources/resource.rb
|
|
124
147
|
- lib/warb/resources/sticker.rb
|
|
148
|
+
- lib/warb/resources/template.rb
|
|
125
149
|
- lib/warb/resources/text.rb
|
|
150
|
+
- lib/warb/resources/validation.rb
|
|
126
151
|
- lib/warb/resources/video.rb
|
|
152
|
+
- lib/warb/response.rb
|
|
153
|
+
- lib/warb/response_error_handler.rb
|
|
154
|
+
- lib/warb/template_dispatcher.rb
|
|
127
155
|
- lib/warb/utils.rb
|
|
128
156
|
- lib/warb/version.rb
|
|
129
157
|
- sig/warb.rbs
|
|
@@ -133,6 +161,8 @@ metadata:
|
|
|
133
161
|
homepage_uri: https://github.com/Rebase-BR/warb
|
|
134
162
|
source_code_uri: https://github.com/Rebase-BR/warb
|
|
135
163
|
changelog_uri: https://github.com/Rebase-BR/warb/blob/main/CHANGELOG.md?ref_type=heads
|
|
164
|
+
rubygems_mfa_required: 'true'
|
|
165
|
+
post_install_message:
|
|
136
166
|
rdoc_options: []
|
|
137
167
|
require_paths:
|
|
138
168
|
- lib
|
|
@@ -147,7 +177,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
147
177
|
- !ruby/object:Gem::Version
|
|
148
178
|
version: '0'
|
|
149
179
|
requirements: []
|
|
150
|
-
rubygems_version: 3.
|
|
180
|
+
rubygems_version: 3.4.10
|
|
181
|
+
signing_key:
|
|
151
182
|
specification_version: 4
|
|
152
183
|
summary: A simple yet powerfull whatsapp api wrapper
|
|
153
184
|
test_files: []
|