zerobounce-sdk 2.1.5 → 2.1.8
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 +3 -3
- data/.github/workflows/publish.yml +4 -4
- data/.github/workflows/sdk_ci.yml +1 -1
- 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: e9f3c2a7bac4386a95e440f91b2c05fd70a9ed4fba0676aba089bb654b6c0a78
|
|
4
|
+
data.tar.gz: 829bd8ba5c1f64e2c3580a43062b4b11d372b25f75f18cedcd3d03d186bff809
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: d7252217055c4d602bf6723b06463fbfc0591c1793a2d72857acfaa1dddd50b66217afbf139afccf79faeccb73804f695b921cfac3c1955ee949e5d8e37cf398
|
|
7
|
+
data.tar.gz: c2d6cff7f176b64d1b048b596f4a09d7ff9140549bdd450a193ca349dcaf74899322c743d0abeca65e046e979da96411feabdffa62ccf89275c6d2e7f6a42ce1
|
|
@@ -61,7 +61,7 @@ jobs:
|
|
|
61
61
|
# your codebase is analyzed, see https://docs.github.com/en/code-security/code-scanning/creating-an-advanced-setup-for-code-scanning/codeql-code-scanning-for-compiled-languages
|
|
62
62
|
steps:
|
|
63
63
|
- name: Checkout repository
|
|
64
|
-
uses: actions/checkout@
|
|
64
|
+
uses: actions/checkout@v7
|
|
65
65
|
|
|
66
66
|
# Add any setup steps before running the `github/codeql-action/init` action.
|
|
67
67
|
# This includes steps like installing compilers or runtimes (`actions/setup-node`
|
|
@@ -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.3
|
|
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.3
|
|
104
104
|
with:
|
|
105
105
|
category: "/language:${{matrix.language}}"
|
|
@@ -17,7 +17,7 @@ jobs:
|
|
|
17
17
|
runs-on: ubuntu-latest
|
|
18
18
|
steps:
|
|
19
19
|
- name: Checkout
|
|
20
|
-
uses: actions/checkout@
|
|
20
|
+
uses: actions/checkout@v7
|
|
21
21
|
with:
|
|
22
22
|
fetch-depth: 0
|
|
23
23
|
ref: ${{ github.event.inputs.tag }}
|
|
@@ -54,7 +54,7 @@ jobs:
|
|
|
54
54
|
ZEROBOUNCE_API_KEY: "invalid_key_for_tests"
|
|
55
55
|
steps:
|
|
56
56
|
- name: Checkout tag
|
|
57
|
-
uses: actions/checkout@
|
|
57
|
+
uses: actions/checkout@v7
|
|
58
58
|
with:
|
|
59
59
|
ref: ${{ github.event.inputs.tag }}
|
|
60
60
|
|
|
@@ -78,7 +78,7 @@ jobs:
|
|
|
78
78
|
contents: read
|
|
79
79
|
steps:
|
|
80
80
|
- name: Checkout tag
|
|
81
|
-
uses: actions/checkout@
|
|
81
|
+
uses: actions/checkout@v7
|
|
82
82
|
with:
|
|
83
83
|
ref: ${{ github.event.inputs.tag }}
|
|
84
84
|
|
|
@@ -111,7 +111,7 @@ jobs:
|
|
|
111
111
|
contents: write
|
|
112
112
|
steps:
|
|
113
113
|
- name: Checkout
|
|
114
|
-
uses: actions/checkout@
|
|
114
|
+
uses: actions/checkout@v7
|
|
115
115
|
with:
|
|
116
116
|
ref: ${{ github.event.inputs.tag }}
|
|
117
117
|
fetch-depth: 0
|
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.8
|
|
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-
|
|
11
|
+
date: 2026-08-14 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rest-client
|