zerobounce-sdk 2.1.4 → 2.1.5
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/.github/workflows/publish.yml +131 -0
- data/Gemfile.lock +1 -1
- data/lib/zerobounce/version.rb +1 -1
- data/lib/zerobounce.rb +2 -0
- metadata +7 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 44fc864c3ea69f43eba002059c8e7128f6a439d049caf450bf8770b4bfb9f34d
|
|
4
|
+
data.tar.gz: 70266484e92db7d57f8b88def1af9e9fe742337a1be22d0485e57f71dc39b84e
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 985c43549117d70683419f9da48e468c3eb3464393f137b21a6beedaac3016aa3ea4c736e7e5fa818b50e447189084b4fe12824eb91e1784499014a052755ebc
|
|
7
|
+
data.tar.gz: b640d1c5485e68fc209a87f16b92e9a1740f36514e23eb38aa679176e2d6b49b55036296bb81e4e27af5bfe94860a6facd2e8ce13c61acafe8a30d52e9ce5087
|
|
@@ -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.
|
|
74
|
+
uses: github/codeql-action/init@v4.35.4
|
|
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.
|
|
103
|
+
uses: github/codeql-action/analyze@v4.35.4
|
|
104
104
|
with:
|
|
105
105
|
category: "/language:${{matrix.language}}"
|
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
name: Publish
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
workflow_dispatch:
|
|
5
|
+
inputs:
|
|
6
|
+
tag:
|
|
7
|
+
type: string
|
|
8
|
+
description: Tag to publish (e.g. v2.1.5)
|
|
9
|
+
required: true
|
|
10
|
+
|
|
11
|
+
permissions:
|
|
12
|
+
contents: read
|
|
13
|
+
|
|
14
|
+
jobs:
|
|
15
|
+
validate-tag:
|
|
16
|
+
name: Validate tag
|
|
17
|
+
runs-on: ubuntu-latest
|
|
18
|
+
steps:
|
|
19
|
+
- name: Checkout
|
|
20
|
+
uses: actions/checkout@v6
|
|
21
|
+
with:
|
|
22
|
+
fetch-depth: 0
|
|
23
|
+
ref: ${{ github.event.inputs.tag }}
|
|
24
|
+
|
|
25
|
+
- name: Verify tag and gem version
|
|
26
|
+
run: |
|
|
27
|
+
TAG="${{ github.event.inputs.tag }}"
|
|
28
|
+
if [ -z "$TAG" ]; then
|
|
29
|
+
echo "Error: Tag is required."
|
|
30
|
+
exit 1
|
|
31
|
+
fi
|
|
32
|
+
if ! git rev-parse "$TAG" >/dev/null 2>&1; then
|
|
33
|
+
echo "Error: Tag '$TAG' does not exist."
|
|
34
|
+
exit 1
|
|
35
|
+
fi
|
|
36
|
+
TAG_VERSION="${TAG#v}"
|
|
37
|
+
PKG_VERSION=$(grep -E "VERSION\s*=" lib/zerobounce/version.rb | sed -E "s/.*'([^']+)'.*/\1/")
|
|
38
|
+
if [ -z "$PKG_VERSION" ]; then
|
|
39
|
+
echo "Error: Could not read version from lib/zerobounce/version.rb"
|
|
40
|
+
exit 1
|
|
41
|
+
fi
|
|
42
|
+
if [ "$PKG_VERSION" != "$TAG_VERSION" ]; then
|
|
43
|
+
echo "Error: lib/zerobounce/version.rb ($PKG_VERSION) does not match tag ($TAG)."
|
|
44
|
+
exit 1
|
|
45
|
+
fi
|
|
46
|
+
echo "Publishing tag: $TAG (zerobounce-sdk@$PKG_VERSION)"
|
|
47
|
+
|
|
48
|
+
test:
|
|
49
|
+
name: Test
|
|
50
|
+
needs: [validate-tag]
|
|
51
|
+
if: ${{ !cancelled() && !contains(needs.*.result, 'failure') && !contains(needs.*.result, 'cancelled') }}
|
|
52
|
+
runs-on: ubuntu-latest
|
|
53
|
+
env:
|
|
54
|
+
ZEROBOUNCE_API_KEY: "invalid_key_for_tests"
|
|
55
|
+
steps:
|
|
56
|
+
- name: Checkout tag
|
|
57
|
+
uses: actions/checkout@v6
|
|
58
|
+
with:
|
|
59
|
+
ref: ${{ github.event.inputs.tag }}
|
|
60
|
+
|
|
61
|
+
- name: Set up Ruby
|
|
62
|
+
uses: ruby/setup-ruby@v1
|
|
63
|
+
with:
|
|
64
|
+
ruby-version: "3.2"
|
|
65
|
+
bundler-cache: true
|
|
66
|
+
|
|
67
|
+
- name: Run specs
|
|
68
|
+
run: bundle exec rspec
|
|
69
|
+
|
|
70
|
+
publish:
|
|
71
|
+
name: Build and publish to RubyGems
|
|
72
|
+
needs: [test]
|
|
73
|
+
if: ${{ !cancelled() && !failure() }}
|
|
74
|
+
runs-on: ubuntu-latest
|
|
75
|
+
environment: release
|
|
76
|
+
permissions:
|
|
77
|
+
id-token: write
|
|
78
|
+
contents: read
|
|
79
|
+
steps:
|
|
80
|
+
- name: Checkout tag
|
|
81
|
+
uses: actions/checkout@v6
|
|
82
|
+
with:
|
|
83
|
+
ref: ${{ github.event.inputs.tag }}
|
|
84
|
+
|
|
85
|
+
- name: Set up Ruby
|
|
86
|
+
uses: ruby/setup-ruby@v1
|
|
87
|
+
with:
|
|
88
|
+
ruby-version: "3.2"
|
|
89
|
+
bundler-cache: true
|
|
90
|
+
|
|
91
|
+
- name: Configure RubyGems credentials
|
|
92
|
+
uses: rubygems/configure-rubygems-credentials@main
|
|
93
|
+
with:
|
|
94
|
+
api-token: ${{ secrets.RUBYGEMS_API_TOKEN }}
|
|
95
|
+
|
|
96
|
+
- name: Build gem
|
|
97
|
+
run: gem build zerobounce.gemspec
|
|
98
|
+
|
|
99
|
+
- name: Publish to RubyGems
|
|
100
|
+
run: |
|
|
101
|
+
GEM_FILE=$(ls zerobounce-sdk-*.gem)
|
|
102
|
+
echo "Pushing $GEM_FILE"
|
|
103
|
+
gem push "$GEM_FILE"
|
|
104
|
+
|
|
105
|
+
release:
|
|
106
|
+
name: Create GitHub Release
|
|
107
|
+
needs: [publish]
|
|
108
|
+
if: ${{ !cancelled() && !failure() }}
|
|
109
|
+
runs-on: ubuntu-latest
|
|
110
|
+
permissions:
|
|
111
|
+
contents: write
|
|
112
|
+
steps:
|
|
113
|
+
- name: Checkout
|
|
114
|
+
uses: actions/checkout@v6
|
|
115
|
+
with:
|
|
116
|
+
ref: ${{ github.event.inputs.tag }}
|
|
117
|
+
fetch-depth: 0
|
|
118
|
+
|
|
119
|
+
- name: Create release if missing
|
|
120
|
+
env:
|
|
121
|
+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
122
|
+
run: |
|
|
123
|
+
TAG="${{ github.event.inputs.tag }}"
|
|
124
|
+
if gh release view "$TAG" --repo "${{ github.repository }}" >/dev/null 2>&1; then
|
|
125
|
+
echo "Release $TAG already exists, skipping."
|
|
126
|
+
else
|
|
127
|
+
gh release create "$TAG" \
|
|
128
|
+
--repo "${{ github.repository }}" \
|
|
129
|
+
--title "$TAG" \
|
|
130
|
+
--generate-notes
|
|
131
|
+
fi
|
data/Gemfile.lock
CHANGED
data/lib/zerobounce/version.rb
CHANGED
data/lib/zerobounce.rb
CHANGED
|
@@ -68,6 +68,7 @@ module Zerobounce
|
|
|
68
68
|
# "domain": null,
|
|
69
69
|
# "domain_age_days": "9692",
|
|
70
70
|
# "smtp_provider": "example",
|
|
71
|
+
# "catchall_domain": false,
|
|
71
72
|
# "mx_found": "true",
|
|
72
73
|
# "mx_record": "mx.example.com",
|
|
73
74
|
# "firstname": "zero",
|
|
@@ -199,6 +200,7 @@ module Zerobounce
|
|
|
199
200
|
# "domain": null,
|
|
200
201
|
# "domain_age_days": "9692",
|
|
201
202
|
# "smtp_provider": "example",
|
|
203
|
+
# "catchall_domain": false,
|
|
202
204
|
# "mx_found": "true",
|
|
203
205
|
# "mx_record": "mx.example.com",
|
|
204
206
|
# "firstname": "zero",
|
metadata
CHANGED
|
@@ -1,13 +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.5
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Zero Bounce
|
|
8
|
+
autorequire:
|
|
8
9
|
bindir: exe
|
|
9
10
|
cert_chain: []
|
|
10
|
-
date:
|
|
11
|
+
date: 2026-06-10 00:00:00.000000000 Z
|
|
11
12
|
dependencies:
|
|
12
13
|
- !ruby/object:Gem::Dependency
|
|
13
14
|
name: rest-client
|
|
@@ -294,6 +295,7 @@ files:
|
|
|
294
295
|
- ".github/dependabot.yml"
|
|
295
296
|
- ".github/workflows/auto_assign_ci.yaml"
|
|
296
297
|
- ".github/workflows/codeql.yml"
|
|
298
|
+
- ".github/workflows/publish.yml"
|
|
297
299
|
- ".github/workflows/sdk_ci.yml"
|
|
298
300
|
- ".gitignore"
|
|
299
301
|
- ".rspec"
|
|
@@ -338,6 +340,7 @@ licenses:
|
|
|
338
340
|
- MIT
|
|
339
341
|
metadata:
|
|
340
342
|
yard.run: yri
|
|
343
|
+
post_install_message:
|
|
341
344
|
rdoc_options: []
|
|
342
345
|
require_paths:
|
|
343
346
|
- lib
|
|
@@ -352,7 +355,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
352
355
|
- !ruby/object:Gem::Version
|
|
353
356
|
version: '0'
|
|
354
357
|
requirements: []
|
|
355
|
-
rubygems_version: 4.
|
|
358
|
+
rubygems_version: 3.4.19
|
|
359
|
+
signing_key:
|
|
356
360
|
specification_version: 4
|
|
357
361
|
summary: A Ruby client for Zerobounce.net.
|
|
358
362
|
test_files: []
|