lockstep_rails 0.3.51 → 0.3.52

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: 17bae7b548a91206d28195b92dedd178d43d42c9ce3a5d3a258328a4d5161c10
4
- data.tar.gz: 9236a2514f3ed31d3cc51ebc5ae831f3f0984ed97ed748cf8f35d7db0e230246
3
+ metadata.gz: 4ae7706a51bbbb9287e03d75e1caa76fca7ccd3390e3cb2b7228da5923eea1b1
4
+ data.tar.gz: e0481ed5eb90dd104ed9c223fd01f476ed7a7181395f0be7706ca02537924282
5
5
  SHA512:
6
- metadata.gz: 538ef7d53e03020f7b4786168685d148b8bc52b648e22b804eb19063462d9c2756febb8700ba65462a4331b6be206ef7b7eedde7e31bae91b26249dbb00dad77
7
- data.tar.gz: 495323313f0830fac7e5831c2ecdb59f324ad31514067c98093a65ba111996d7c952acc48c911c75d43f4814f47805cb9605ca0ec29fc8bf87739a60f9a10880
6
+ metadata.gz: c00fbe40099a0b9a3ac3fd4da3d0af34f55e3608bc55ca0681a2bc5d1f4d47760048d7766f49bae719d887ca17afd7eea8f91ab1007393300e1d31232d249440
7
+ data.tar.gz: 68e6d538ec4cc70a26d63657dff6c1106a046be0993db34c78c65a794dfbd8d7806b9be246a04d8c8807bf161b0938c9a45a138ed88a98c1f4a413206742cf19
@@ -241,6 +241,8 @@ class Lockstep::Query
241
241
  return results.to_i
242
242
  else
243
243
  results = parsed_response.is_a?(Array) ? parsed_response : parsed_response["records"]
244
+ return [] if results.blank?
245
+
244
246
  results = results[0..(criteria[:limit] - 1)] if criteria[:limit]
245
247
  get_relation_objects results.map { |r|
246
248
  # Convert camelcase to snake-case
@@ -1,3 +1,3 @@
1
1
  module LockstepRails
2
- VERSION = '0.3.51'
2
+ VERSION = '0.3.52'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lockstep_rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.51
4
+ version: 0.3.52
5
5
  platform: ruby
6
6
  authors:
7
7
  - Vivek AG
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-03-14 00:00:00.000000000 Z
11
+ date: 2023-03-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails