zerobounce-sdk 2.1.8 → 3.0.0

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.
Files changed (49) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +172 -19
  3. data/README.md +477 -410
  4. data/lib/zerobounce/api_key.rb +21 -0
  5. data/lib/zerobounce/api_urls.rb +9 -0
  6. data/lib/zerobounce/base_request.rb +260 -8
  7. data/lib/zerobounce/client.rb +30 -0
  8. data/lib/zerobounce/configuration.rb +24 -3
  9. data/lib/zerobounce/error.rb +20 -0
  10. data/lib/zerobounce/get_file_helper.rb +6 -8
  11. data/lib/zerobounce/priority3.rb +351 -0
  12. data/lib/zerobounce/request.rb +84 -42
  13. data/lib/zerobounce/response_error.rb +117 -0
  14. data/lib/zerobounce/validate_sub_status.rb +1 -0
  15. data/lib/zerobounce/version.rb +1 -1
  16. data/lib/zerobounce/warmup.rb +471 -0
  17. data/lib/zerobounce.rb +112 -26
  18. metadata +46 -41
  19. data/.dockerignore +0 -17
  20. data/.env.example +0 -3
  21. data/.github/auto_assign.yml +0 -5
  22. data/.github/dependabot.yml +0 -35
  23. data/.github/workflows/auto_assign_ci.yaml +0 -21
  24. data/.github/workflows/codeql.yml +0 -105
  25. data/.github/workflows/publish.yml +0 -131
  26. data/.github/workflows/sdk_ci.yml +0 -29
  27. data/.gitignore +0 -70
  28. data/.rspec +0 -2
  29. data/.ruby-version +0 -1
  30. data/CODE_OF_CONDUCT.md +0 -69
  31. data/CONTRIBUTING.md +0 -112
  32. data/Dockerfile +0 -17
  33. data/Gemfile +0 -13
  34. data/Gemfile.lock +0 -135
  35. data/LICENSE.txt +0 -21
  36. data/Rakefile +0 -26
  37. data/SECURITY.md +0 -21
  38. data/bin/bundle +0 -105
  39. data/bin/console +0 -7
  40. data/bin/setup +0 -6
  41. data/data/zerobounce-ai-scoring.csv +0 -31
  42. data/data/zerobounce-batch-validation.csv +0 -31
  43. data/documentation.md +0 -530
  44. data/files/scoring.csv +0 -1
  45. data/files/validation.csv +0 -1
  46. data/files/zerobounce-ai-scoring.csv +0 -31
  47. data/files/zerobounce-batch-validation.csv +0 -31
  48. data/lib/zerobounce/mock_request.rb +0 -86
  49. data/zerobounce.gemspec +0 -49
@@ -1,131 +0,0 @@
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@v7
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@v7
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@v7
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@v7
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
@@ -1,29 +0,0 @@
1
- # Run RSpec tests (VCR cassettes; no live API key needed for recorded specs).
2
- name: SDK CI
3
-
4
- on:
5
- pull_request:
6
- types: [opened, synchronize, reopened]
7
- push:
8
- branches: [main, master]
9
-
10
- permissions:
11
- contents: read
12
-
13
- jobs:
14
- test:
15
- name: Test
16
- runs-on: ubuntu-latest
17
- env:
18
- ZEROBOUNCE_API_KEY: "invalid_key_for_tests"
19
- steps:
20
- - uses: actions/checkout@v7
21
-
22
- - name: Set up Ruby
23
- uses: ruby/setup-ruby@v1
24
- with:
25
- ruby-version: "3.2"
26
- bundler-cache: true
27
-
28
- - name: Run specs
29
- run: bundle exec rspec
data/.gitignore DELETED
@@ -1,70 +0,0 @@
1
- *.gem
2
- *.rbc
3
- /.config
4
- /coverage/
5
- /InstalledFiles
6
- /pkg/
7
- /spec/reports/
8
- /spec/examples.txt
9
- /test/tmp/
10
- /test/version_tmp/
11
- /tmp/
12
-
13
- # Used by dotenv library to load environment variables.
14
- .env
15
-
16
- # Ignore Byebug command history file.
17
- .byebug_history
18
-
19
- ## Specific to RubyMotion:
20
- .dat*
21
- .repl_history
22
- build/
23
- *.bridgesupport
24
- build-iPhoneOS/
25
- build-iPhoneSimulator/
26
-
27
- ## Specific to RubyMotion (use of CocoaPods):
28
- #
29
- # We recommend against adding the Pods directory to your .gitignore. However
30
- # you should judge for yourself, the pros and cons are mentioned at:
31
- # https://guides.cocoapods.org/using/using-cocoapods.html#should-i-check-the-pods-directory-into-source-control
32
- #
33
- # vendor/Pods/
34
-
35
- ## Documentation cache and generated files:
36
- /.yardoc/
37
- /_yardoc/
38
- /doc/
39
- /rdoc/
40
-
41
- ## Environment normalization:
42
- /.bundle/
43
- /vendor/bundle
44
- /lib/bundler/man/
45
-
46
- # for a library or gem, you might want to ignore these files since the code is
47
- # intended to run in multiple environments; otherwise, check them in:
48
- # Gemfile.lock
49
- # .ruby-version
50
- # .ruby-gemset
51
-
52
- # unless supporting rvm < 1.11.0 or doing something fancy, ignore this:
53
- .rvmrc
54
-
55
- # Used by RuboCop. Remote config files pulled in from inherit_from directive.
56
- # .rubocop-https?--*
57
-
58
- # Used by RSpec
59
- .rspec_status
60
-
61
-
62
- # Log files
63
- output.err
64
- output.log
65
-
66
- .DS_Store
67
- Thumbs.db
68
- .idea/
69
- .cursor/
70
- .env
data/.rspec DELETED
@@ -1,2 +0,0 @@
1
- --require spec_helper
2
- --format progress
data/.ruby-version DELETED
@@ -1 +0,0 @@
1
- 3.2.1
data/CODE_OF_CONDUCT.md DELETED
@@ -1,69 +0,0 @@
1
- # Contributor Covenant Code of Conduct
2
-
3
- ## Our Pledge
4
-
5
- In the interest of fostering an open and welcoming environment, we as
6
- contributors and maintainers pledge to making participation in our project and
7
- our community a harassment-free experience for everyone, regardless of age, body
8
- size, disability, ethnicity, gender identity and expression, level of experience,
9
- nationality, personal appearance, race, religion, or sexual identity and
10
- orientation.
11
-
12
- ## Our Standards
13
-
14
- Examples of behavior that contributes to creating a positive environment
15
- include:
16
-
17
- * Using welcoming and inclusive language
18
- * Being respectful of differing viewpoints and experiences
19
- * Gracefully accepting constructive criticism
20
- * Focusing on what is best for the community
21
- * Showing empathy towards other community members
22
-
23
- Examples of unacceptable behavior by participants include:
24
-
25
- * The use of sexualized language or imagery and unwelcome sexual attention or
26
- advances
27
- * Trolling, insulting/derogatory comments, and personal or political attacks
28
- * Public or private harassment
29
- * Publishing others' private information, such as a physical or electronic
30
- address, without explicit permission
31
- * Other conduct which could reasonably be considered inappropriate in a
32
- professional setting
33
-
34
- ## Our Responsibilities
35
-
36
- Project maintainers are responsible for clarifying the standards of acceptable
37
- behavior and are expected to take appropriate and fair corrective action in
38
- response to any instances of unacceptable behavior.
39
-
40
- Project maintainers have the right and responsibility to remove, edit, or
41
- reject comments, commits, code, wiki edits, issues, and other contributions
42
- that are not aligned to this Code of Conduct, or to ban temporarily or
43
- permanently any contributor for other behaviors that they deem inappropriate,
44
- threatening, offensive, or harmful.
45
-
46
- ## Scope
47
-
48
- This Code of Conduct applies both within project spaces and in public spaces
49
- when an individual is representing the project or its community. Examples of
50
- representing a project or community include using an official project e-mail
51
- address, posting via an official social media account, or acting as an appointed
52
- representative at an online or offline event. Representation of a project may be
53
- further defined and clarified by project maintainers.
54
-
55
- ## Enforcement
56
-
57
- Instances of abusive, harassing, or otherwise unacceptable behavior may be reported to the project team at **integrations@zerobounce.net**. All complaints will be reviewed and investigated promptly and fairly. The project team is obligated to maintain confidentiality with regard to the reporter of an incident.
58
-
59
- Project maintainers who do not follow or enforce the Code of Conduct in good
60
- faith may face temporary or permanent repercussions as determined by other
61
- members of the project's leadership.
62
-
63
- ## Attribution
64
-
65
- This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
66
- available at [http://contributor-covenant.org/version/1/4][version]
67
-
68
- [homepage]: http://contributor-covenant.org
69
- [version]: http://contributor-covenant.org/version/1/4/
data/CONTRIBUTING.md DELETED
@@ -1,112 +0,0 @@
1
- # Contributing to Zero Bounce Ruby SDK
2
-
3
- Thank you for your interest in contributing. This document explains how to get set up, run tests, and submit changes.
4
-
5
- ## Code of Conduct
6
-
7
- By participating in this project, you agree to uphold our [Code of Conduct](CODE_OF_CONDUCT.md).
8
-
9
- ## Getting Started
10
-
11
- ### Prerequisites
12
-
13
- * Ruby 3.2+ (see [.ruby-version](.ruby-version))
14
- * [Bundler](https://bundler.io/) ~> 2.4
15
-
16
- ### Setup
17
-
18
- ```bash
19
- git clone https://github.com/zerobounce/zero-bounce-ruby.git
20
- cd zero-bounce-ruby
21
- bundle install
22
- ```
23
-
24
- ### Running Tests
25
-
26
- Tests use [RSpec](https://rspec.info/) with [VCR](https://github.com/vcr/vcr) for recorded HTTP interactions. Use the placeholder key so cassettes match:
27
-
28
- ```bash
29
- ZEROBOUNCE_API_KEY=vcr_test_key bundle exec rspec
30
- ```
31
-
32
- Or copy `.env.example` to `.env`, set `ZEROBOUNCE_API_KEY=vcr_test_key`, then:
33
-
34
- ```bash
35
- bundle exec rspec
36
- ```
37
-
38
- **With Docker:**
39
-
40
- ```bash
41
- docker build -t zerobounce-ruby-test .
42
- docker run --rm zerobounce-ruby-test
43
- ```
44
-
45
- ### Code Style
46
-
47
- The project uses [RuboCop](https://github.com/rubocop/rubocop). Run before submitting:
48
-
49
- ```bash
50
- bundle exec rubocop
51
- ```
52
-
53
- ## How to Contribute
54
-
55
- ### Reporting Bugs
56
-
57
- Open an [issue](https://github.com/zerobounce/zero-bounce-ruby/issues) and include:
58
-
59
- * Ruby version (`ruby -v`)
60
- * Steps to reproduce
61
- * Expected vs actual behavior
62
- * Relevant code or error messages
63
-
64
- ### Suggesting Changes
65
-
66
- * Check existing issues and pull requests first.
67
- * Open an issue to discuss larger changes or API design before coding.
68
-
69
- ### Submitting Changes
70
-
71
- 1. **Fork** the repository and create a branch from `main`:
72
- ```bash
73
- git checkout -b feature/your-feature-name
74
- ```
75
-
76
- 2. **Make your changes** and add or update tests where relevant.
77
-
78
- 3. **Run the suite** and RuboCop:
79
- ```bash
80
- ZEROBOUNCE_API_KEY=vcr_test_key bundle exec rspec
81
- bundle exec rubocop
82
- ```
83
-
84
- 4. **Commit** with a clear message (e.g. `Add X`, `Fix Y`).
85
-
86
- 5. **Push** your branch and open a **Pull Request** against `main`.
87
-
88
- 6. In the PR description, briefly explain what changed and why. Link any related issues.
89
-
90
- Maintainers will review and may request changes. Once approved, your PR can be merged.
91
-
92
- ## Project Layout
93
-
94
- * `lib/` – SDK source (entry point: `lib/zerobounce.rb`)
95
- * `spec/` – RSpec tests and VCR cassettes (`spec/cassettes/`)
96
- * `data/` – Sample CSV files for batch validation and scoring examples
97
-
98
- ## Re-recording VCR Cassettes
99
-
100
- If you change or add API calls and need to re-record cassettes:
101
-
102
- 1. Use a valid Zero Bounce API key (e.g. from [dashboard](https://www.zerobounce.net/docs/api-dashboard)).
103
- 2. Set `ZEROBOUNCE_API_KEY` and run the specs; VCR will record new HTTP interactions.
104
- 3. Replace any real API key in the new cassette files with `vcr_test_key` before committing, so the repo never contains real credentials.
105
-
106
- ## Questions
107
-
108
- * [Zero Bounce API docs](https://www.zerobounce.net/docs/)
109
- * [Project homepage](https://zerobounce.net)
110
- * Contact: **integrations@zerobounce.net**
111
-
112
- Thanks for contributing.
data/Dockerfile DELETED
@@ -1,17 +0,0 @@
1
- # ZeroBounce Ruby SDK – test image (Ruby 3.2)
2
- FROM ruby:3.2-alpine
3
-
4
- RUN apk add --no-cache build-base git
5
-
6
- WORKDIR /app
7
-
8
- COPY . .
9
- # Gemfile.lock expects Bundler 2.4.x (see gemspec); Ruby 3.2 image may ship Bundler 4.x.
10
- RUN gem install bundler -v 2.4.22 && \
11
- bundle config set --local path 'vendor/bundle' && \
12
- bundle _2.4.22_ install
13
-
14
- # Dummy key for VCR/cassette-based specs; override with env for live API
15
- ENV ZEROBOUNCE_API_KEY="${ZEROBOUNCE_API_KEY:-invalid_key_for_tests}"
16
-
17
- CMD ["bundle", "_2.4.22_", "exec", "rspec"]
data/Gemfile DELETED
@@ -1,13 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- source 'https://rubygems.org'
4
-
5
- git_source(:github) { |repo_name| "https://github.com/#{repo_name}" }
6
-
7
- # Specify your gem's dependencies in zerobounce.gemspec
8
- gemspec
9
-
10
- # Transitive dependency floors (security advisories: REXML DoS/ReDoS, Addressable ReDoS).
11
- gem 'rexml', '>= 3.4.4'
12
- gem 'addressable', '>= 2.8.10'
13
-
data/Gemfile.lock DELETED
@@ -1,135 +0,0 @@
1
- PATH
2
- remote: .
3
- specs:
4
- zerobounce-sdk (2.1.8)
5
- dotenv
6
- rest-client (~> 2.1)
7
-
8
- GEM
9
- remote: https://rubygems.org/
10
- specs:
11
- addressable (2.9.0)
12
- public_suffix (>= 2.0.2, < 8.0)
13
- ast (2.4.2)
14
- base64 (0.3.0)
15
- bigdecimal (4.0.1)
16
- coderay (1.1.3)
17
- crack (0.4.5)
18
- rexml
19
- diff-lcs (1.5.0)
20
- docile (1.4.0)
21
- domain_name (0.5.20190701)
22
- unf (>= 0.0.5, < 1.0.0)
23
- dotenv (3.1.8)
24
- hashdiff (1.0.1)
25
- http-accept (1.7.0)
26
- http-cookie (1.0.5)
27
- domain_name (~> 0.5)
28
- json (2.6.3)
29
- logger (1.7.0)
30
- method_source (1.0.0)
31
- mime-types (3.5.1)
32
- mime-types-data (~> 3.2015)
33
- mime-types-data (3.2023.0808)
34
- netrc (0.11.0)
35
- ostruct (0.6.3)
36
- parallel (1.22.1)
37
- parser (3.2.2.0)
38
- ast (~> 2.4.1)
39
- pry (0.14.2)
40
- coderay (~> 1.1)
41
- method_source (~> 1.0)
42
- public_suffix (7.0.5)
43
- rainbow (3.1.1)
44
- rake (13.0.6)
45
- regexp_parser (2.7.0)
46
- rest-client (2.1.0)
47
- http-accept (>= 1.7.0, < 2.0)
48
- http-cookie (>= 1.0.2, < 2.0)
49
- mime-types (>= 1.16, < 4.0)
50
- netrc (~> 0.8)
51
- rexml (3.4.4)
52
- rspec (3.12.0)
53
- rspec-core (~> 3.12.0)
54
- rspec-expectations (~> 3.12.0)
55
- rspec-mocks (~> 3.12.0)
56
- rspec-core (3.12.1)
57
- rspec-support (~> 3.12.0)
58
- rspec-expectations (3.12.2)
59
- diff-lcs (>= 1.2.0, < 2.0)
60
- rspec-support (~> 3.12.0)
61
- rspec-mocks (3.12.5)
62
- diff-lcs (>= 1.2.0, < 2.0)
63
- rspec-support (~> 3.12.0)
64
- rspec-support (3.12.0)
65
- rspec_junit_formatter (0.4.1)
66
- rspec-core (>= 2, < 4, != 2.12.0)
67
- rubocop (1.49.0)
68
- json (~> 2.3)
69
- parallel (~> 1.10)
70
- parser (>= 3.2.0.0)
71
- rainbow (>= 2.2.2, < 4.0)
72
- regexp_parser (>= 1.8, < 3.0)
73
- rexml (>= 3.2.5, < 4.0)
74
- rubocop-ast (>= 1.28.0, < 2.0)
75
- ruby-progressbar (~> 1.7)
76
- unicode-display_width (>= 2.4.0, < 3.0)
77
- rubocop-ast (1.28.0)
78
- parser (>= 3.2.1.0)
79
- rubocop-capybara (2.17.1)
80
- rubocop (~> 1.41)
81
- rubocop-performance (1.17.1)
82
- rubocop (>= 1.7.0, < 2.0)
83
- rubocop-ast (>= 0.4.0)
84
- rubocop-rake (0.5.1)
85
- rubocop
86
- rubocop-rspec (2.19.0)
87
- rubocop (~> 1.33)
88
- rubocop-capybara (~> 2.17)
89
- ruby-progressbar (1.13.0)
90
- simplecov (0.21.2)
91
- docile (~> 1.1)
92
- simplecov-html (~> 0.11)
93
- simplecov_json_formatter (~> 0.1)
94
- simplecov-html (0.12.3)
95
- simplecov_json_formatter (0.1.4)
96
- unf (0.1.4)
97
- unf_ext
98
- unf_ext (0.0.8.2)
99
- unicode-display_width (2.4.2)
100
- vcr (6.4.0)
101
- webmock (3.18.1)
102
- addressable (>= 2.8.0)
103
- crack (>= 0.3.2)
104
- hashdiff (>= 0.4.0, < 2.0.0)
105
- yard (0.9.43)
106
-
107
- PLATFORMS
108
- arm64-darwin-24
109
- arm64-darwin-25
110
- x86_64-linux
111
-
112
- DEPENDENCIES
113
- addressable (>= 2.8.10)
114
- base64
115
- bigdecimal
116
- bundler (~> 2.4.6)
117
- logger
118
- ostruct
119
- pry (~> 0.14.1)
120
- rake (~> 13.0)
121
- rexml (>= 3.4.4)
122
- rspec (~> 3.0)
123
- rspec_junit_formatter (~> 0.4.1)
124
- rubocop (~> 1.15)
125
- rubocop-performance (~> 1.11, >= 1.11.3)
126
- rubocop-rake (~> 0.5.1)
127
- rubocop-rspec (~> 2.3)
128
- simplecov (~> 0.21.2)
129
- vcr (~> 6.4)
130
- webmock (~> 3.18)
131
- yard (~> 0.9.42)
132
- zerobounce-sdk!
133
-
134
- BUNDLED WITH
135
- 2.4.22
data/LICENSE.txt DELETED
@@ -1,21 +0,0 @@
1
- MIT License
2
-
3
- Copyright (c) 2026 ZeroBounce
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.
data/Rakefile DELETED
@@ -1,26 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require 'yard'
4
- require 'bundler/gem_tasks'
5
- require 'rspec/core/rake_task'
6
- require 'rubocop/rake_task'
7
- require 'zerobounce/version'
8
-
9
- RSpec::Core::RakeTask.new
10
-
11
- RuboCop::RakeTask.new do |task|
12
- task.requires << 'rubocop-rspec'
13
- end
14
-
15
- YARD::Rake::YardocTask.new do |task|
16
- task.options += ['--title', "Zerobounce #{Zerobounce::VERSION} Documentation"]
17
- task.options += ['--protected']
18
- task.options += ['--no-private']
19
- task.stats_options = ['--list-undoc']
20
-
21
- # has to be last
22
- extra_files = %w[CODE_OF_CONDUCT.md LICENSE.txt]
23
- task.options += ['-'] + extra_files
24
- end
25
-
26
- task default: %i[rubocop spec]
data/SECURITY.md DELETED
@@ -1,21 +0,0 @@
1
- # Security Policy
2
-
3
- ## Reporting a Vulnerability
4
-
5
- If you think you've found a security issue, please report it privately instead of opening a public issue.
6
-
7
- **Email:** integrations@zerobounce.net (use a subject like `[zero-bounce-ruby] Security`).
8
-
9
- We'll look into reports as we can. If the issue is in the Zero Bounce API or service rather than this SDK, we may forward it to the right team.
10
-
11
- ## Supported Versions
12
-
13
- We focus on the current release line for fixes. Using the [latest version](https://rubygems.org/gems/zerobounce-sdk) is recommended.
14
-
15
- ## Tips for Using This SDK
16
-
17
- * Don't commit API keys or `.env` files—use environment variables or a secrets manager.
18
- * Keep dependencies up to date with `bundle install` and upgrade when new versions are released.
19
- * The client uses HTTPS by default; avoid overriding to non-HTTPS in production.
20
-
21
- Thanks for helping keep things secure.