zerobounce 0.1.1 → 0.1.2
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/ISSUE_TEMPLATE/bug_report.md +27 -0
- data/.github/ISSUE_TEMPLATE/feature_request.md +20 -0
- data/.github/pull_request_template.md +22 -0
- data/CHANGELOG.md +12 -0
- data/CONTRIBUTING.md +1 -0
- data/lib/zerobounce/error.rb +1 -1
- data/lib/zerobounce/middleware/raise_error.rb +1 -1
- data/lib/zerobounce/version.rb +1 -1
- data/zerobounce.gemspec +6 -6
- metadata +23 -12
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b86320438c8998ba2d2de06f9740aad7434809777a4b7aa9dd84a2e8c4d4055c
|
4
|
+
data.tar.gz: 30bc99c33fab17f8bc2a486ca89e0e90431af0e426e7d0f6b4d397dbc5501467
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 60ed318a3bd571bc33d2b012c8eec8c0524d6322c6c76e5f3b1883fec12f98bd75a4cddd3e7a957cde2bacae87d51b6d7c4ce602383d1277b5e5f7be04e6346e
|
7
|
+
data.tar.gz: fcee7056d2d19d4f1a2c508ab867d720df6378dbeaf642cd7d902b28dc9b3cd437f6024d127c0b4a8786f18b24832c6c0c1eb6318b08381d000feb25eb57e7bb
|
@@ -0,0 +1,27 @@
|
|
1
|
+
---
|
2
|
+
name: Bug report
|
3
|
+
about: Create a report to help us improve
|
4
|
+
title: ''
|
5
|
+
labels: bug
|
6
|
+
assignees: ''
|
7
|
+
|
8
|
+
---
|
9
|
+
|
10
|
+
**Describe the bug**
|
11
|
+
A clear and concise description of what the bug is.
|
12
|
+
|
13
|
+
**To Reproduce**
|
14
|
+
Steps to reproduce the behavior:
|
15
|
+
1. Go to '...'
|
16
|
+
2. Click on '....'
|
17
|
+
3. Scroll down to '....'
|
18
|
+
4. See error
|
19
|
+
|
20
|
+
**Expected behavior**
|
21
|
+
A clear and concise description of what you expected to happen.
|
22
|
+
|
23
|
+
**Screenshots**
|
24
|
+
If applicable, add screenshots to help explain your problem.
|
25
|
+
|
26
|
+
**Additional context**
|
27
|
+
Add any other context about the problem here.
|
@@ -0,0 +1,20 @@
|
|
1
|
+
---
|
2
|
+
name: Feature request
|
3
|
+
about: Suggest an idea for this project
|
4
|
+
title: ''
|
5
|
+
labels: enhancement
|
6
|
+
assignees: ''
|
7
|
+
|
8
|
+
---
|
9
|
+
|
10
|
+
**Is your feature request related to a problem? Please describe.**
|
11
|
+
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
|
12
|
+
|
13
|
+
**Describe the solution you'd like**
|
14
|
+
A clear and concise description of what you want to happen.
|
15
|
+
|
16
|
+
**Describe alternatives you've considered**
|
17
|
+
A clear and concise description of any alternative solutions or features you've considered.
|
18
|
+
|
19
|
+
**Additional context**
|
20
|
+
Add any other context or screenshots about the feature request here.
|
@@ -0,0 +1,22 @@
|
|
1
|
+
<!--- Provide a general summary of your changes in the Title above -->
|
2
|
+
|
3
|
+
## Description
|
4
|
+
<!--- Describe your changes in detail -->
|
5
|
+
|
6
|
+
## Related Issue
|
7
|
+
<!--- This project only accepts pull requests related to open issues -->
|
8
|
+
<!--- If suggesting a new feature or change, please discuss it in an issue first -->
|
9
|
+
<!--- If fixing a bug, there should be an issue describing it with steps to reproduce -->
|
10
|
+
<!--- Please link to the issue here: -->
|
11
|
+
|
12
|
+
## Motivation and Context
|
13
|
+
<!--- Why is this change required? What problem does it solve? -->
|
14
|
+
|
15
|
+
## Checklist:
|
16
|
+
<!--- Go over all the following points, and put an `x` in all the boxes that apply. -->
|
17
|
+
<!--- If you're unsure about any of these, don't hesitate to ask. We're here to help! -->
|
18
|
+
- [ ] My code follows the code style of this project.
|
19
|
+
- [ ] My change requires a change to the documentation.
|
20
|
+
- [ ] I have updated the documentation accordingly.
|
21
|
+
- [ ] I have added tests to cover my changes.
|
22
|
+
- [ ] All new and existing tests passed.
|
data/CHANGELOG.md
ADDED
@@ -0,0 +1,12 @@
|
|
1
|
+
# 0.1.2
|
2
|
+
|
3
|
+
* Removed the double quote from the body check since it appears a space is added after the colon.
|
4
|
+
* Added changelog file.
|
5
|
+
|
6
|
+
# 0.1.1
|
7
|
+
|
8
|
+
* Removed safe accessor usage to work with older versions of Ruby.
|
9
|
+
|
10
|
+
# 0.1.0
|
11
|
+
|
12
|
+
* Added support for V2 of Zerobounce API.
|
data/CONTRIBUTING.md
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
TODO fill this out
|
data/lib/zerobounce/error.rb
CHANGED
@@ -49,7 +49,7 @@ module Zerobounce
|
|
49
49
|
def parse_200(env)
|
50
50
|
# The body hasn't been parsed yet and to avoid potentially parsing the body twice
|
51
51
|
# we just use String#start_with?
|
52
|
-
ApiError.new(env) if env[:body].to_s.start_with?('{"error":
|
52
|
+
ApiError.new(env) if env[:body].to_s.start_with?('{"error":')
|
53
53
|
end
|
54
54
|
end
|
55
55
|
end
|
@@ -14,7 +14,7 @@ module Zerobounce
|
|
14
14
|
# @param [Hash] env
|
15
15
|
# @raise [Error]
|
16
16
|
def on_complete(env)
|
17
|
-
if (error = Zerobounce::Error.from_response(env)) # rubocop:disable GuardClause
|
17
|
+
if (error = Zerobounce::Error.from_response(env)) # rubocop:disable Style/GuardClause
|
18
18
|
raise error
|
19
19
|
end
|
20
20
|
end
|
data/lib/zerobounce/version.rb
CHANGED
data/zerobounce.gemspec
CHANGED
@@ -4,7 +4,7 @@ lib = File.expand_path('lib', __dir__)
|
|
4
4
|
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
5
5
|
require 'zerobounce/version'
|
6
6
|
|
7
|
-
Gem::Specification.new do |spec| # rubocop:disable BlockLength
|
7
|
+
Gem::Specification.new do |spec| # rubocop:disable Metrics/BlockLength
|
8
8
|
spec.name = 'zerobounce'
|
9
9
|
spec.version = Zerobounce::VERSION
|
10
10
|
spec.authors = ['Aaron Frase']
|
@@ -24,16 +24,16 @@ Gem::Specification.new do |spec| # rubocop:disable BlockLength
|
|
24
24
|
|
25
25
|
spec.metadata['yard.run'] = 'yri' # use "yard" to build full HTML docs.
|
26
26
|
|
27
|
-
spec.add_dependency 'faraday', '
|
27
|
+
spec.add_dependency 'faraday', '>= 0.14', '< 2.0'
|
28
28
|
spec.add_dependency 'faraday_middleware', '~> 0.12'
|
29
29
|
|
30
30
|
spec.add_development_dependency 'bundler', '~> 1.16'
|
31
|
-
spec.add_development_dependency 'pry', '~> 0.
|
32
|
-
spec.add_development_dependency 'rake', '~>
|
31
|
+
spec.add_development_dependency 'pry', '~> 0.12.2'
|
32
|
+
spec.add_development_dependency 'rake', '~> 13.0'
|
33
33
|
spec.add_development_dependency 'rspec', '~> 3.0'
|
34
|
-
spec.add_development_dependency 'rspec_junit_formatter', '~> 0.
|
34
|
+
spec.add_development_dependency 'rspec_junit_formatter', '~> 0.4.1'
|
35
35
|
spec.add_development_dependency 'rubocop', '~> 0.52'
|
36
36
|
spec.add_development_dependency 'rubocop-rspec', '~> 1.22', '>= 1.22.2'
|
37
|
-
spec.add_development_dependency 'simplecov', '~> 0.
|
37
|
+
spec.add_development_dependency 'simplecov', '~> 0.17.1'
|
38
38
|
spec.add_development_dependency 'yard', '~> 0.9.12'
|
39
39
|
end
|
metadata
CHANGED
@@ -1,29 +1,35 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: zerobounce
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Aaron Frase
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2020-03-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - "
|
17
|
+
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
19
|
version: '0.14'
|
20
|
+
- - "<"
|
21
|
+
- !ruby/object:Gem::Version
|
22
|
+
version: '2.0'
|
20
23
|
type: :runtime
|
21
24
|
prerelease: false
|
22
25
|
version_requirements: !ruby/object:Gem::Requirement
|
23
26
|
requirements:
|
24
|
-
- - "
|
27
|
+
- - ">="
|
25
28
|
- !ruby/object:Gem::Version
|
26
29
|
version: '0.14'
|
30
|
+
- - "<"
|
31
|
+
- !ruby/object:Gem::Version
|
32
|
+
version: '2.0'
|
27
33
|
- !ruby/object:Gem::Dependency
|
28
34
|
name: faraday_middleware
|
29
35
|
requirement: !ruby/object:Gem::Requirement
|
@@ -58,28 +64,28 @@ dependencies:
|
|
58
64
|
requirements:
|
59
65
|
- - "~>"
|
60
66
|
- !ruby/object:Gem::Version
|
61
|
-
version: 0.
|
67
|
+
version: 0.12.2
|
62
68
|
type: :development
|
63
69
|
prerelease: false
|
64
70
|
version_requirements: !ruby/object:Gem::Requirement
|
65
71
|
requirements:
|
66
72
|
- - "~>"
|
67
73
|
- !ruby/object:Gem::Version
|
68
|
-
version: 0.
|
74
|
+
version: 0.12.2
|
69
75
|
- !ruby/object:Gem::Dependency
|
70
76
|
name: rake
|
71
77
|
requirement: !ruby/object:Gem::Requirement
|
72
78
|
requirements:
|
73
79
|
- - "~>"
|
74
80
|
- !ruby/object:Gem::Version
|
75
|
-
version: '
|
81
|
+
version: '13.0'
|
76
82
|
type: :development
|
77
83
|
prerelease: false
|
78
84
|
version_requirements: !ruby/object:Gem::Requirement
|
79
85
|
requirements:
|
80
86
|
- - "~>"
|
81
87
|
- !ruby/object:Gem::Version
|
82
|
-
version: '
|
88
|
+
version: '13.0'
|
83
89
|
- !ruby/object:Gem::Dependency
|
84
90
|
name: rspec
|
85
91
|
requirement: !ruby/object:Gem::Requirement
|
@@ -100,14 +106,14 @@ dependencies:
|
|
100
106
|
requirements:
|
101
107
|
- - "~>"
|
102
108
|
- !ruby/object:Gem::Version
|
103
|
-
version: 0.
|
109
|
+
version: 0.4.1
|
104
110
|
type: :development
|
105
111
|
prerelease: false
|
106
112
|
version_requirements: !ruby/object:Gem::Requirement
|
107
113
|
requirements:
|
108
114
|
- - "~>"
|
109
115
|
- !ruby/object:Gem::Version
|
110
|
-
version: 0.
|
116
|
+
version: 0.4.1
|
111
117
|
- !ruby/object:Gem::Dependency
|
112
118
|
name: rubocop
|
113
119
|
requirement: !ruby/object:Gem::Requirement
|
@@ -148,14 +154,14 @@ dependencies:
|
|
148
154
|
requirements:
|
149
155
|
- - "~>"
|
150
156
|
- !ruby/object:Gem::Version
|
151
|
-
version: 0.
|
157
|
+
version: 0.17.1
|
152
158
|
type: :development
|
153
159
|
prerelease: false
|
154
160
|
version_requirements: !ruby/object:Gem::Requirement
|
155
161
|
requirements:
|
156
162
|
- - "~>"
|
157
163
|
- !ruby/object:Gem::Version
|
158
|
-
version: 0.
|
164
|
+
version: 0.17.1
|
159
165
|
- !ruby/object:Gem::Dependency
|
160
166
|
name: yard
|
161
167
|
requirement: !ruby/object:Gem::Requirement
|
@@ -179,12 +185,17 @@ extra_rdoc_files: []
|
|
179
185
|
files:
|
180
186
|
- ".circleci/config.yml"
|
181
187
|
- ".editorconfig"
|
188
|
+
- ".github/ISSUE_TEMPLATE/bug_report.md"
|
189
|
+
- ".github/ISSUE_TEMPLATE/feature_request.md"
|
190
|
+
- ".github/pull_request_template.md"
|
182
191
|
- ".gitignore"
|
183
192
|
- ".rspec"
|
184
193
|
- ".rubocop.yml"
|
185
194
|
- ".ruby-gemset"
|
186
195
|
- ".ruby-version"
|
196
|
+
- CHANGELOG.md
|
187
197
|
- CODE_OF_CONDUCT.md
|
198
|
+
- CONTRIBUTING.md
|
188
199
|
- Gemfile
|
189
200
|
- LICENSE.txt
|
190
201
|
- README.md
|