trailblazer-finder 0.2.5 → 0.2.6

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: dc3cc06785eeaa846359a0577ece8ba7d42a93ac122d732607b6f01ca535b782
4
- data.tar.gz: a55de72ba22507d8a22854fb94998df91b08e29b9260161e3ac9177db5048c72
3
+ metadata.gz: f862084bc39a581d2e11d369f44f9189122c7970cc7741082f9009f31a7aa12e
4
+ data.tar.gz: d30a06f86071cd2c88c3f6afc31e4860d93a9a985dbec488812cae444b78fbed
5
5
  SHA512:
6
- metadata.gz: 62888964119288ea47b1c4a2beaf88a51fb6c5185bf1866e4f2362f4461b6f4e616a4ebc38641fce019e70f6fe44d9d6170a0642dd0ec92cac68829866a48c58
7
- data.tar.gz: dd1d405a36b76e271115bf69d36b26285cbc96dd18fe1be5a03ce05a5a0a95468c175eb160e65e36e74a97f1137147c8ba2d057b66b8242f2d15866811d324bf
6
+ metadata.gz: f6a7e27f822d6bb9f9b140df060adcd69efa99e73d865e644560f5d23d2f1f00e8f77c3a2d5fbc9d81cd64bc9d468cbf6916400ba6422a1fce2de2d5bfadb4c8
7
+ data.tar.gz: b4810e6d1db60a5daf2357586d4a67bc0bbc3f4bf8a1f9c850ead94f387177c76a3df54e818a3ec695cdb252c9405ff3d83b1cc32070cbe4348786892ab11f31
@@ -23,8 +23,8 @@ module Trailblazer
23
23
  return true unless ctx[:params][:per_page]
24
24
 
25
25
  ctx[:paging][:per_page] = ctx[:params][:per_page].to_i || ctx[:paging][:per_page]
26
- ctx[:paging][:per_page] = ctx[:paging][:max_per_page] if ctx[:params][:per_page] > ctx[:paging][:max_per_page]
27
- ctx[:paging][:per_page] = ctx[:paging][:min_per_page] if ctx[:params][:per_page] < ctx[:paging][:min_per_page]
26
+ ctx[:paging][:per_page] = ctx[:paging][:max_per_page] if ctx[:paging][:per_page] > ctx[:paging][:max_per_page]
27
+ ctx[:paging][:per_page] = ctx[:paging][:min_per_page] if ctx[:paging][:per_page] < ctx[:paging][:min_per_page]
28
28
  true
29
29
  end
30
30
 
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Trailblazer
4
4
  class Finder
5
- VERSION = "0.2.5"
5
+ VERSION = "0.2.6"
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: trailblazer-finder
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.5
4
+ version: 0.2.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nick Sutterer
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2019-08-16 00:00:00.000000000 Z
12
+ date: 2019-09-04 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: dry-types