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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f862084bc39a581d2e11d369f44f9189122c7970cc7741082f9009f31a7aa12e
|
4
|
+
data.tar.gz: d30a06f86071cd2c88c3f6afc31e4860d93a9a985dbec488812cae444b78fbed
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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[:
|
27
|
-
ctx[:paging][:per_page] = ctx[:paging][:min_per_page] if ctx[:
|
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
|
|
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.
|
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-
|
12
|
+
date: 2019-09-04 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: dry-types
|