klaviyo_api 1.6.0 → 1.7.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +6 -0
- data/lib/klaviyo_api/resources/support/countable.rb +3 -0
- data/lib/klaviyo_api/version.rb +1 -1
- metadata +4 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4bf6afa8a4b46e4d44a3c8d09a7cc9118c537a5513b8085eeb3d5743071e6f3c
|
4
|
+
data.tar.gz: 651fb3e6b88f7b0141f1150743d103eea4788e1406b423dffc2c0f65e6376776
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b281dfe189de20b06213e4bf4ccf4822087b5d5d36481b5470c5dca1078266d0e2cef3fa1757bd3a162d2f4fcd3964ae317285f6e04afd253695b9053ac14bad
|
7
|
+
data.tar.gz: 347e0cfa8eaf8607ec09be7596de76753fb6fc297e73c1fdd9c6459ccf2fb96019517bfa0752e08f8844523429d51851e5d6bb130ecfc6d4f948e912d2eb097c
|
data/CHANGELOG.md
CHANGED
@@ -5,6 +5,9 @@ module KlaviyoAPI::Support
|
|
5
5
|
def count(params = {})
|
6
6
|
all_params = params.deep_merge(params: { count: 1 })
|
7
7
|
all(all_params).total
|
8
|
+
# klaviyo returns 400 if there are no results found in the account, so we catch it and return zero
|
9
|
+
rescue ActiveResource::BadRequest => e
|
10
|
+
0
|
8
11
|
end
|
9
12
|
end
|
10
13
|
end
|
data/lib/klaviyo_api/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: klaviyo_api
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.7.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- rewind.io
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-
|
11
|
+
date: 2019-09-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activeresource
|
@@ -232,7 +232,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
232
232
|
- !ruby/object:Gem::Version
|
233
233
|
version: '0'
|
234
234
|
requirements: []
|
235
|
-
|
235
|
+
rubyforge_project:
|
236
|
+
rubygems_version: 2.7.7
|
236
237
|
signing_key:
|
237
238
|
specification_version: 4
|
238
239
|
summary: Consume Klaviyo's API using ActiveResource
|