lhs 20.1.3.pre.paginationfix.1 → 20.1.3.pre.paginationfix.2

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: 01b93ba0d7073ad916d4af31c05e3739d095729d17691d07473374547d589917
4
- data.tar.gz: 6a1f7462a292f695c45b1b0d6659415b75cdcbc282b9cdd6740cbe2a24245ab8
3
+ metadata.gz: 77f78ba0588ecc1b8e7d65c397a247459ab9caa2dfb43239635bf10680277e1e
4
+ data.tar.gz: a4e0e1e31dbe6346e648ec4b0406055688abc1487becc743e419cc72c3b6a07d
5
5
  SHA512:
6
- metadata.gz: 1b1834964ca5704e3e3170933127fcb1dfcd92f19293f1b87a64374387965f1f8f0ed13e543f1959b8aa5292a940706f1f0fa524bfff465b47a9c5c5459a052d
7
- data.tar.gz: c9f9f5c5dc3b7ba0f1759080442f4bc80735ac8e2f664ecf9608ed5b345fb0a565858e03ffc2aa1ad88d50af76efba66cb66361d58ccf39884dd45e86ac1ac06
6
+ metadata.gz: '012237879f1dbd65316592604126fa3a2593c5c6500801a01a3b6f09f3ffbbb9cd9060e974604549139b699a800b0c9185c32b4b0e926b5f93915f9edae5be72'
7
+ data.tar.gz: c291587ba6fd626dd17ac7c470fb1f8ccd55a8926bb395773a63902b72c432a881c4934e53d249fcf7cf3b4142fd63213d6bbab3cce021bef4246ccbe0925342
@@ -25,7 +25,7 @@ module LHS::Pagination
25
25
  def limit
26
26
  limit_value = data._raw.dig(*_record.limit_key(:body))
27
27
  requested_limit = data._request.params.dig(*_record.limit_key(:params))
28
- if limit_value < requested_limit
28
+ if requested_limit && limit_value && limit_value < requested_limit
29
29
  requested_limit
30
30
  else
31
31
  limit_value || DEFAULT_LIMIT
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module LHS
4
- VERSION = '20.1.3.pre.paginationfix.1'
4
+ VERSION = '20.1.3.pre.paginationfix.2'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lhs
3
3
  version: !ruby/object:Gem::Version
4
- version: 20.1.3.pre.paginationfix.1
4
+ version: 20.1.3.pre.paginationfix.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - https://github.com/local-ch/lhs/graphs/contributors