klaviyo_api 1.3.0 → 1.3.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: bb1fb4019e0ab815eed1cc24a427e97125369040f7e08821aeab66927f941b55
4
- data.tar.gz: bed43a2800399a3136dfe3c139882d132a50e8a56746aa912d178c5e9e58675b
3
+ metadata.gz: 730043f0dcbac75ac8f28308931684bae022bb5d412f5f137410ef7a9c6d8b09
4
+ data.tar.gz: c9837c60aef92683d21db4b5868c8fb21ce309709692bf9f257ad308bafc7d6b
5
5
  SHA512:
6
- metadata.gz: 443aad88c951bc24b23b08adde05179352edca3f2fd8fdeb38b41ceb1de0374d09b5328ef28c5b606807abbd55413eee262a9bf62fc4d7d988ad4befc0d284e1
7
- data.tar.gz: 196cf5de54d6c9d4f7fc53d20863d2e97fc3b1073f27ff4c6f1986dbd3c12b5943fdc354bdc454f5a17324cbfabccfd87a59abbe5d9be377e581ff286e7aa6b0
6
+ metadata.gz: afefe3883a8a4f78c1fba19cd1ecc40792a0aeb9332029f9faa44adde1d03f6a4fdb3f80ed9bfad19504cca6b6fb4057c90402eebc408d7c85c01a1bb35d7c23
7
+ data.tar.gz: 558884db59de97077b7384f9d6d38a18652eb2883c99181a066585df7571550aac2719a22f06712dc2ef263d5efe374a615edeab88beda62320168546a91d896
data/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # CHANGELOG
2
2
 
3
+ ## [1.3.1]
4
+
5
+ ### Changed
6
+
7
+ - Improve performance of `.count` by only getting the first item instead of the first page
8
+
3
9
  ## [1.3.0]
4
10
 
5
11
  ### Added
@@ -3,7 +3,8 @@
3
3
  module KlaviyoAPI::Support
4
4
  module Countable
5
5
  def count(params = {})
6
- all(params).total
6
+ all_params = params.deep_merge(params: { count: 1 })
7
+ all(all_params).total
7
8
  end
8
9
  end
9
10
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module KlaviyoAPI
4
- VERSION = '1.3.0'
4
+ VERSION = '1.3.1'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: klaviyo_api
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.0
4
+ version: 1.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - rewind.io