lockstep_rails 0.3.56 → 0.3.57

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: f004f3fc636bc3aa132570664bd8536bcd2143204f6234e71be19876027cf8a2
4
- data.tar.gz: 58753bea6eddae06522c57dc92af31a4a7cd715805142fc78731d8f5ad2f11ab
3
+ metadata.gz: 63461b12ae57b46134cdc4ccccc5f75c09d784a548cbc1af3d2ead246f435180
4
+ data.tar.gz: 072e87d56d6896a6833e7bcc0f70d6d2760633a73a4a5bb9278c1e12cd174739
5
5
  SHA512:
6
- metadata.gz: a0fce44761660638e91efd5aa5b183e22ff1772bea8d6fa3ba462fce23a4c684b385f72529858cbc5a0a3058b5d30754aa89389e4d394e6496794bc12f13b326
7
- data.tar.gz: d67c11238d5936c4e6af3b65e88e226ca11908f03220101e9f442f6cc7ca91f6402dc154adc2bdd0ebec75ae7bafb06640ab51614e5f8700e43f2b87b2706fbc
6
+ metadata.gz: 9d2ebc46296806ae30db4cf047882f0b0c6f61b544d8b9efc74b212e7f06774a08bf97c61e463c4cb3b5b50642275a354aae2485c0ecd5879177cd27cf1057b7
7
+ data.tar.gz: a5de08cf74884672c7f23175fe0a43b428ec47939b008080f9337dd2f1636c3cace321b845fef5021d12e6671fd5fad9887c750193e1f4a80ded4b321d3932f7
data/README.md CHANGED
@@ -175,7 +175,11 @@ Lockstep::Connection.count
175
175
  Lockstep::Connection.where(status: "Active").count
176
176
  # 100
177
177
  ```
178
-
178
+ ### With Count
179
+ ```ruby
180
+ records , count = Lockstep::Connection.where(status: "active").with_count(true).execute
181
+ # records get the records for the query and the with count if used will return the total number of records present for that query.
182
+ ```
179
183
  ### Limit
180
184
  You can limit the number of records being fetched by passing `limit`
181
185
 
@@ -256,10 +256,7 @@ class Lockstep::Query
256
256
  }
257
257
 
258
258
  if criteria[:with_count]
259
- {
260
- records: records,
261
- total_count: parsed_response["totalCount"]
262
- }
259
+ [records, parsed_response["totalCount"]]
263
260
  else
264
261
  records
265
262
  end
@@ -1,3 +1,3 @@
1
1
  module LockstepRails
2
- VERSION = '0.3.56'
2
+ VERSION = '0.3.57'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lockstep_rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.56
4
+ version: 0.3.57
5
5
  platform: ruby
6
6
  authors:
7
7
  - Vivek AG