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 +4 -4
- data/.github/workflows/codeql.yml +2 -2
- data/CHANGELOG.md +8 -0
- data/Gemfile.lock +1 -1
- data/README.md +6 -2
- data/lib/zerobounce/mock_request.rb +17 -0
- data/lib/zerobounce/request.rb +17 -0
- data/lib/zerobounce/version.rb +1 -1
- data/lib/zerobounce.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: c86ddf9ad6c2ad0ccb3795dae6f7e8a9e11754ab8ce56de593c05d98be5e91a3
|
|
4
|
+
data.tar.gz: 5c5efe684358aa3975ad4773d4aa70cf180877672fa794406e4d9e89d46d5d77
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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.
|
|
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.
|
|
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
data/README.md
CHANGED
|
@@ -727,9 +727,10 @@ bundle install
|
|
|
727
727
|
```
|
|
728
728
|
|
|
729
729
|
### Run tests with Docker
|
|
730
|
-
From the
|
|
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
|
-
|
|
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)
|
data/lib/zerobounce/request.rb
CHANGED
|
@@ -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)
|
data/lib/zerobounce/version.rb
CHANGED
data/lib/zerobounce.rb
CHANGED
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.
|
|
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-
|
|
11
|
+
date: 2026-06-17 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rest-client
|