whatsapp_sdk 1.0.2 → 1.0.3

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: ed93aabe8b6cb2967a908c8ae113f76529462e1b768bd3cc523ed7cd0873e958
4
- data.tar.gz: a016f51ad25dcd88e0cce06b9e42feeae0ff0812daaffe2c700cd4aeb5f724ab
3
+ metadata.gz: 68fa7bcce031d800ba3b8c541992921e602fd9266172fda8c2b9db9a0d400efc
4
+ data.tar.gz: e7922f22f38e79a5e2cca6377c86d0bc5a1a2a26beb859b2311b21f6a9be33e7
5
5
  SHA512:
6
- metadata.gz: 64241a3b2899343c95f87ae6541246c472266a5c061b294e9c13fe25088d5eacdeff671f25bf830dc5700240c64c64be3d0d539458ae05721ede51adba341e25
7
- data.tar.gz: 1fc21288923a4092d4830be7f730284c492900195795d963db99f9830d4eceee8119d03596ff06c6a62711eee11ad9af1bdfccbf77c42f177581ed06b82da8d2
6
+ metadata.gz: f4ae0d0f4f0fff5d85d22255ed36eb063f7b4a3eac744f4d31dca4fc5c86605116bf34043932e17a4b10e8dba9433cf1a7c2aaca54a0becd5bf13ae8ce00a167
7
+ data.tar.gz: d0a8e8ef860b48363804833bb518dafc5eb417e09f53d1ffd5cfd797368d9611d040fcdbec55977d886bea265924916c35c65e54c07ba1a41773cb1c2060fa9d
data/.rubocop.yml CHANGED
@@ -8,6 +8,10 @@ AllCops:
8
8
  - 'example.rb'
9
9
  - 'tmp/*'
10
10
  - 'vendor/**/*'
11
+ TargetRubyVersion: 3.1
12
+
13
+ Style/HashSyntax:
14
+ Enabled: false
11
15
 
12
16
  Lint/ToJSON:
13
17
  Enabled: false
data/CHANGELOG.md CHANGED
@@ -1,9 +1,15 @@
1
1
  # Unreleased
2
2
 
3
- # v 1.0.1
4
- - Send the current client instance to the initializer of the client resource #165
3
+ # v 1.0.3
4
+ - Fix configuration bug setting `api_version` on Configure. @frenesim [#168](https://github.com/ignacio-chiazzo/ruby_whatsapp_sdk/pull/168)
5
+
6
+ # v 1.0.2
7
+ - Send the current client instance to the initializer of the client resource #165
5
8
  [#165](https://github.com/ignacio-chiazzo/ruby_whatsapp_sdk/pull/165) @omarowns
6
9
 
10
+ #v 1.0.1
11
+ - Update `require error` @guizaols [162](https://github.com/ignacio-chiazzo/ruby_whatsapp_sdk/pull/162)
12
+
7
13
  # v 1.0.0
8
14
  - Implement a Better response API [159](https://github.com/ignacio-chiazzo/ruby_whatsapp_sdk/pull/156)
9
15
  - 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,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- whatsapp_sdk (1.0.2)
4
+ whatsapp_sdk (1.0.3)
5
5
  faraday (~> 2.0, > 2.0.1)
6
6
  faraday-multipart (~> 1)
7
7
  zeitwerk (~> 2)
@@ -75,6 +75,7 @@ GEM
75
75
 
76
76
  PLATFORMS
77
77
  arm64-darwin-21
78
+ arm64-darwin-22
78
79
  x86_64-darwin-19
79
80
  x86_64-darwin-21
80
81
  x86_64-linux
data/README.md CHANGED
@@ -483,7 +483,7 @@ Note: Sometimes the messages are delayed; see [Meta documentation](https://devel
483
483
 
484
484
  After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake test` to run the tests.
485
485
 
486
- Run ' bundle exec rake install ' to install this gem onto your local machine. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
486
+ Run ' bundle exec rake install' to install this gem onto your local machine. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
487
487
 
488
488
  ### Run all the tests
489
489
 
@@ -15,7 +15,7 @@ module WhatsappSdk
15
15
 
16
16
  def initialize(
17
17
  access_token = WhatsappSdk.configuration.access_token,
18
- api_version = ApiConfiguration::DEFAULT_API_VERSION,
18
+ api_version = WhatsappSdk.configuration.api_version,
19
19
  logger = nil,
20
20
  logger_options = {}
21
21
  )
@@ -50,7 +50,7 @@ module WhatsappSdk
50
50
  def send_request(endpoint: "", full_url: nil, http_method: "post", params: {}, headers: {}, multipart: false)
51
51
  url = full_url || "#{ApiConfiguration::API_URL}/#{@api_version}/"
52
52
 
53
- faraday_request = faraday(url: url, multipart: multipart)
53
+ faraday_request = faraday(url:, multipart:)
54
54
 
55
55
  response = faraday_request.public_send(http_method, endpoint, request_params(params, headers), headers)
56
56
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module WhatsappSdk
4
- VERSION = "1.0.2"
4
+ VERSION = "1.0.3"
5
5
  end
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.2
4
+ version: 1.0.3
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-12-16 00:00:00.000000000 Z
11
+ date: 2025-01-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler