whatsapp_sdk 1.0.0 → 1.0.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b916f88ff7d75987b2173c55eb05efa2761951667f5d09daa2d6febba5e2ad63
4
- data.tar.gz: 9c1974df055bdab421285fb4095f205b4713a22ca5363841737157c3f5ddf40a
3
+ metadata.gz: ed93aabe8b6cb2967a908c8ae113f76529462e1b768bd3cc523ed7cd0873e958
4
+ data.tar.gz: a016f51ad25dcd88e0cce06b9e42feeae0ff0812daaffe2c700cd4aeb5f724ab
5
5
  SHA512:
6
- metadata.gz: 74f451bf6122b298a40aebae35806e49ad630ed1a7e54ca021b2179c3339361366190594dfe5327a575964203a49c0064cf4f0d14a6772a2b70ff0e9a1ea1d78
7
- data.tar.gz: 28766015d65c3e7bac47cbc50bef0dd2e509bb326d20d360ed3e2cb9993c60adebe3059af882f8b9c01519485a868db7c7ca3ca2590e7e44cae3ae7b3a6e7eb6
6
+ metadata.gz: 64241a3b2899343c95f87ae6541246c472266a5c061b294e9c13fe25088d5eacdeff671f25bf830dc5700240c64c64be3d0d539458ae05721ede51adba341e25
7
+ data.tar.gz: 1fc21288923a4092d4830be7f730284c492900195795d963db99f9830d4eceee8119d03596ff06c6a62711eee11ad9af1bdfccbf77c42f177581ed06b82da8d2
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Unreleased
2
2
 
3
+ # v 1.0.1
4
+ - Send the current client instance to the initializer of the client resource #165
5
+ [#165](https://github.com/ignacio-chiazzo/ruby_whatsapp_sdk/pull/165) @omarowns
6
+
3
7
  # v 1.0.0
4
8
  - Implement a Better response API [159](https://github.com/ignacio-chiazzo/ruby_whatsapp_sdk/pull/156)
5
9
  - Implement a Better API for calling the Cloud API [156](https://github.com/ignacio-chiazzo/ruby_whatsapp_sdk/pull/156)
data/Gemfile.lock CHANGED
@@ -1,8 +1,8 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- whatsapp_sdk (1.0.0)
5
- faraday (~> 2)
4
+ whatsapp_sdk (1.0.2)
5
+ faraday (~> 2.0, > 2.0.1)
6
6
  faraday-multipart (~> 1)
7
7
  zeitwerk (~> 2)
8
8
 
@@ -16,18 +16,23 @@ GEM
16
16
  coderay (1.1.3)
17
17
  crack (0.4.5)
18
18
  rexml
19
- faraday (2.8.1)
20
- base64
21
- faraday-net_http (>= 2.0, < 3.1)
22
- ruby2_keywords (>= 0.0.4)
19
+ faraday (2.12.0)
20
+ faraday-net_http (>= 2.0, < 3.4)
21
+ json
22
+ logger
23
23
  faraday-multipart (1.0.4)
24
24
  multipart-post (~> 2)
25
- faraday-net_http (3.0.2)
25
+ faraday-net_http (3.3.0)
26
+ net-http
26
27
  hashdiff (1.0.1)
28
+ json (2.7.2)
29
+ logger (1.6.1)
27
30
  method_source (1.0.0)
28
31
  minitest (5.16.1)
29
32
  mocha (1.14.0)
30
33
  multipart-post (2.4.1)
34
+ net-http (0.4.1)
35
+ uri
31
36
  parallel (1.22.1)
32
37
  parser (3.1.2.0)
33
38
  ast (~> 2.4.1)
@@ -40,8 +45,7 @@ GEM
40
45
  rainbow (3.1.1)
41
46
  rake (12.3.3)
42
47
  regexp_parser (2.5.0)
43
- rexml (3.3.6)
44
- strscan
48
+ rexml (3.3.9)
45
49
  rubocop (1.30.1)
46
50
  parallel (~> 1.10)
47
51
  parser (>= 3.1.0.0)
@@ -59,9 +63,8 @@ GEM
59
63
  rubocop (>= 1.7.0, < 2.0)
60
64
  rubocop-ast (>= 0.4.0)
61
65
  ruby-progressbar (1.11.0)
62
- ruby2_keywords (0.0.5)
63
- strscan (3.1.0)
64
66
  unicode-display_width (2.2.0)
67
+ uri (0.13.1)
65
68
  vcr (6.3.1)
66
69
  base64
67
70
  webmock (3.18.1)
@@ -28,23 +28,23 @@ module WhatsappSdk
28
28
  end
29
29
 
30
30
  def media
31
- @media ||= WhatsappSdk::Api::Medias.new
31
+ @media ||= WhatsappSdk::Api::Medias.new(self)
32
32
  end
33
33
 
34
34
  def messages
35
- @messages ||= WhatsappSdk::Api::Messages.new
35
+ @messages ||= WhatsappSdk::Api::Messages.new(self)
36
36
  end
37
37
 
38
38
  def phone_numbers
39
- @phone_numbers ||= WhatsappSdk::Api::PhoneNumbers.new
39
+ @phone_numbers ||= WhatsappSdk::Api::PhoneNumbers.new(self)
40
40
  end
41
41
 
42
42
  def business_profiles
43
- @business_profiles ||= WhatsappSdk::Api::BusinessProfile.new
43
+ @business_profiles ||= WhatsappSdk::Api::BusinessProfile.new(self)
44
44
  end
45
45
 
46
46
  def templates
47
- @templates ||= WhatsappSdk::Api::Templates.new
47
+ @templates ||= WhatsappSdk::Api::Templates.new(self)
48
48
  end
49
49
 
50
50
  def send_request(endpoint: "", full_url: nil, http_method: "post", params: {}, headers: {}, multipart: false)
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require "error"
3
+ require_relative "../error"
4
4
 
5
5
  module WhatsappSdk
6
6
  module Resource
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module WhatsappSdk
4
- VERSION = "1.0.0"
4
+ VERSION = "1.0.2"
5
5
  end
data/whatsapp_sdk.gemspec CHANGED
@@ -44,7 +44,7 @@ Gem::Specification.new do |spec|
44
44
  spec.add_development_dependency("minitest", "~> 5.0")
45
45
  spec.add_development_dependency("rake", "~> 12.3")
46
46
 
47
- spec.add_dependency("faraday", "~> 2")
47
+ spec.add_dependency("faraday", "~> 2.0", "> 2.0.1")
48
48
  spec.add_dependency("faraday-multipart", "~> 1")
49
49
  spec.add_dependency("zeitwerk", "~> 2")
50
50
  spec.metadata['rubygems_mfa_required'] = 'true'
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: 1.0.0
4
+ version: 1.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - ignacio-chiazzo
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-10-16 00:00:00.000000000 Z
11
+ date: 2024-12-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -58,14 +58,20 @@ dependencies:
58
58
  requirements:
59
59
  - - "~>"
60
60
  - !ruby/object:Gem::Version
61
- version: '2'
61
+ version: '2.0'
62
+ - - ">"
63
+ - !ruby/object:Gem::Version
64
+ version: 2.0.1
62
65
  type: :runtime
63
66
  prerelease: false
64
67
  version_requirements: !ruby/object:Gem::Requirement
65
68
  requirements:
66
69
  - - "~>"
67
70
  - !ruby/object:Gem::Version
68
- version: '2'
71
+ version: '2.0'
72
+ - - ">"
73
+ - !ruby/object:Gem::Version
74
+ version: 2.0.1
69
75
  - !ruby/object:Gem::Dependency
70
76
  name: faraday-multipart
71
77
  requirement: !ruby/object:Gem::Requirement