zerobounce-sdk 2.1.5 → 2.1.7

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: 44fc864c3ea69f43eba002059c8e7128f6a439d049caf450bf8770b4bfb9f34d
4
- data.tar.gz: 70266484e92db7d57f8b88def1af9e9fe742337a1be22d0485e57f71dc39b84e
3
+ metadata.gz: c86ddf9ad6c2ad0ccb3795dae6f7e8a9e11754ab8ce56de593c05d98be5e91a3
4
+ data.tar.gz: 5c5efe684358aa3975ad4773d4aa70cf180877672fa794406e4d9e89d46d5d77
5
5
  SHA512:
6
- metadata.gz: 985c43549117d70683419f9da48e468c3eb3464393f137b21a6beedaac3016aa3ea4c736e7e5fa818b50e447189084b4fe12824eb91e1784499014a052755ebc
7
- data.tar.gz: b640d1c5485e68fc209a87f16b92e9a1740f36514e23eb38aa679176e2d6b49b55036296bb81e4e27af5bfe94860a6facd2e8ce13c61acafe8a30d52e9ce5087
6
+ metadata.gz: b29b4c25e9954827fe407cee461712750068df4cf91fc8861029b60348f44fb95518c37a7041f8dea45b9578c965cd71ffc4d800fcf480c491e03d5a71d45dbe
7
+ data.tar.gz: 788a1c8c0c21ecfb3a15d0ee19295054866a65deee7f4242be211136537ac04540b92b4af01d924141e8ace913fc9c80d575b4295d4fe39d29335ccc37b52f52
@@ -71,7 +71,7 @@ jobs:
71
71
 
72
72
  # Initializes the CodeQL tools for scanning.
73
73
  - name: Initialize CodeQL
74
- uses: github/codeql-action/init@v4.35.4
74
+ uses: github/codeql-action/init@v4.36.2
75
75
  with:
76
76
  languages: ${{ matrix.language }}
77
77
  build-mode: ${{ matrix.build-mode }}
@@ -100,6 +100,6 @@ jobs:
100
100
  exit 1
101
101
 
102
102
  - name: Perform CodeQL Analysis
103
- uses: github/codeql-action/analyze@v4.35.4
103
+ uses: github/codeql-action/analyze@v4.36.2
104
104
  with:
105
105
  category: "/language:${{matrix.language}}"
data/CHANGELOG.md CHANGED
@@ -1,3 +1,11 @@
1
+ # 2.1.7
2
+
3
+ * Update Gemfile.lock for v2.1.6 release.
4
+
5
+ # 2.1.6
6
+
7
+ * Route `validatebatch` requests to `api.zerobounce.net` instead of `bulkapi.zerobounce.net`.
8
+
1
9
  # 2.1.1
2
10
 
3
11
  * Raise development and transitive dependency floors to address security advisories for REXML, Addressable, and YARD (updated `Gemfile.lock`; see `Gemfile` and `zerobounce.gemspec`).
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- zerobounce-sdk (2.1.5)
4
+ zerobounce-sdk (2.1.7)
5
5
  dotenv
6
6
  rest-client (~> 2.1)
7
7
 
data/README.md CHANGED
@@ -727,9 +727,10 @@ bundle install
727
727
  ```
728
728
 
729
729
  ### Run tests with Docker
730
- From the **parent repository root** (the folder that contains all SDKs and `docker-compose.yml`):
730
+ From the **`sdk-docs/`** folder in the SDKs monorepo:
731
731
 
732
732
  ```bash
733
+ cd sdk-docs
733
734
  docker compose build ruby
734
735
  docker compose run --rm ruby
735
736
  ```
@@ -772,4 +773,7 @@ Tests use webmock and vcr for mocking HTTP requests. This means that actual requ
772
773
 
773
774
  ## Publish
774
775
 
775
- See the [sdk-docs (RubyGems)](../sdk-docs/rubygems/) guide in the SDKs repo for build and `gem push` steps.
776
+ 1. Bump `VERSION` in `lib/zerobounce/version.rb`, commit, tag (`vX.Y.Z`), push tag.
777
+ 2. **Actions → Publish → Run workflow** with that tag.
778
+
779
+ Registry: [zerobounce-sdk on RubyGems](https://rubygems.org/gems/zerobounce-sdk)
@@ -47,6 +47,23 @@ module Zerobounce
47
47
  GetFileHelper.process_getfile_response(response)
48
48
  end
49
49
 
50
+ def self.post(path, params, content_type='application/json', filepath=nil)
51
+ response = self._post(Zerobounce.configuration.api_root_url, path, params, \
52
+ content_type, filepath)
53
+ if response.headers[:content_type] == 'application/json'
54
+ response_body = response.body
55
+ response_body_json = JSON.parse(response_body)
56
+
57
+ raise (response_body_json['error']) if response_body_json.key?('error')
58
+ raise (response_body_json['errors'][0]['error']) \
59
+ if response_body_json.key?('errors') and \
60
+ response_body_json['errors'].length > 0
61
+
62
+ return response_body_json
63
+ end
64
+ return response.body
65
+ end
66
+
50
67
  def self.bulk_post(path, params, content_type='application/json', filepath=nil)
51
68
  response = self._post(Zerobounce.configuration.bulk_api_root_url, path, params, \
52
69
  content_type, filepath)
@@ -54,6 +54,23 @@ module Zerobounce
54
54
  GetFileHelper.process_getfile_response(response)
55
55
  end
56
56
 
57
+ def self.post(path, params, content_type='application/json', filepath=nil)
58
+ response = self._post(Zerobounce.configuration.api_root_url, path, params, \
59
+ content_type, filepath)
60
+ if response.headers[:content_type] == 'application/json'
61
+ response_body = response.body
62
+ response_body_json = JSON.parse(response_body)
63
+
64
+ raise (response_body_json['error']) if response_body_json.key?('error')
65
+ raise (response_body_json['errors'][0]['error']) \
66
+ if response_body_json.key?('errors') and \
67
+ response_body_json['errors'].length > 0
68
+
69
+ return response_body_json
70
+ end
71
+ return response.body
72
+ end
73
+
57
74
  def self.bulk_post(path, params, content_type='application/json', filepath=nil)
58
75
  response = self._post(Zerobounce.configuration.bulk_api_root_url, path, params, \
59
76
  content_type, filepath)
@@ -2,5 +2,5 @@
2
2
 
3
3
  module Zerobounce
4
4
  # The version of the gem.
5
- VERSION = '2.1.5'
5
+ VERSION = '2.1.7'
6
6
  end
data/lib/zerobounce.rb CHANGED
@@ -232,7 +232,7 @@ module Zerobounce
232
232
  })
233
233
  end
234
234
  params = {email_batch: email_batch}
235
- results = @@request.bulk_post('validatebatch', params)
235
+ results = @@request.post('validatebatch', params)
236
236
  return results['email_batch']
237
237
  end
238
238
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: zerobounce-sdk
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.5
4
+ version: 2.1.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Zero Bounce
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2026-06-10 00:00:00.000000000 Z
11
+ date: 2026-06-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rest-client