neverbounce-api 1.2.0 → 1.2.1
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
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 5a5698989420dc6db842981e3a041bc81c70e3701c2d045fa5d8830359c42914
|
|
4
|
+
data.tar.gz: 5fb1cd4f0944c7469dbab94c8d2b6db44c79e7ae1fe76c5ca3dd40971168eb7b
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 052f616c31940e6c892f76e55c8599a751f1bfcd34a28ad0f4d9463bd7863cb8dbb42d92c1b68c9c17c6ce74361a4388802ea8403cfa29753e25221d9ae8a00b
|
|
7
|
+
data.tar.gz: 7a28429513044a4189211c54d4cfa0eae0232920e873a8bd841502270fbd13bc9c09fd1c4ca374e6b917e4d210efdc995cdbd0d7460679269a5cd17746a4b4a3
|
|
@@ -18,8 +18,8 @@ module NeverBounce; module API; module Feature
|
|
|
18
18
|
# Require attribute to be set. Return attribute value.
|
|
19
19
|
# @return [mixed]
|
|
20
20
|
def require_attr(name)
|
|
21
|
-
send(name).tap do |
|
|
22
|
-
raise AttributeError, "Attribute must be set: #{name}" if
|
|
21
|
+
send(name).tap do |value|
|
|
22
|
+
raise AttributeError, "Attribute must be set: #{name}" if value == nil
|
|
23
23
|
end
|
|
24
24
|
end
|
|
25
25
|
end
|
|
@@ -21,5 +21,18 @@ module NeverBounce; module API; module Feature
|
|
|
21
21
|
r.a = "a"
|
|
22
22
|
expect(r.b).to eq ["a", "b"]
|
|
23
23
|
end
|
|
24
|
+
|
|
25
|
+
it "doesn't trip HTTParty's deprecation warning on #nil?" do
|
|
26
|
+
request = instance_double(HTTParty::Request, options: {})
|
|
27
|
+
response = instance_double(Net::HTTPResponse, body: nil, to_hash: {})
|
|
28
|
+
parsed_block = lambda { nil }
|
|
29
|
+
|
|
30
|
+
server_obj = HTTParty::Response.new(request, response, parsed_block)
|
|
31
|
+
|
|
32
|
+
r = klass.new
|
|
33
|
+
r.a = server_obj
|
|
34
|
+
|
|
35
|
+
expect { r.b }.not_to output(/DEPRECATION/).to_stderr
|
|
36
|
+
end
|
|
24
37
|
end
|
|
25
38
|
end; end; end
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: neverbounce-api
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.2.
|
|
4
|
+
version: 1.2.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- NeverBounce
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2025-11-13 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: httparty
|
|
@@ -159,7 +159,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
159
159
|
- !ruby/object:Gem::Version
|
|
160
160
|
version: '0'
|
|
161
161
|
requirements: []
|
|
162
|
-
rubygems_version: 3.0.3
|
|
162
|
+
rubygems_version: 3.0.3.1
|
|
163
163
|
signing_key:
|
|
164
164
|
specification_version: 4
|
|
165
165
|
summary: The official NeverBounce API library for Ruby
|