cursor_pager 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/ci.yml +2 -2
- data/CHANGELOG.md +8 -1
- data/Gemfile.lock +1 -1
- data/lib/cursor_pager/page.rb +1 -1
- data/lib/cursor_pager/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cc1bbcc1992729703176c3a54296a1a3d55037677b6ad7079ce226c0b7cb5e99
|
4
|
+
data.tar.gz: 93c7b676fdbaea2f3060625af3c408c1f9280173918a51e041661519cfe69f72
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ea6d32b47021562a4dfc954ee71fb1a19f21cec99b2429d7fd82e7e1a2f3bfce4e54fbf0937f5686fccdd76532a4b9ff5d2d253b2778aa8e8a1ce79ff284583f
|
7
|
+
data.tar.gz: 1ae8fadea22bdbd6dfcb836a02193b4ddfbb610b5e37bb00e0499ad339b63ccb5cc55a26b9ea7eafe8d741dd6a7e5692b3e008c13c189564b463796a06f8d993
|
data/.github/workflows/ci.yml
CHANGED
@@ -31,9 +31,9 @@ jobs:
|
|
31
31
|
uses: actions/cache@v1
|
32
32
|
with:
|
33
33
|
path: vendor/bundle
|
34
|
-
key: ${{ runner.os }}-gems-${{ hashFiles('**/Gemfile.lock') }}
|
34
|
+
key: ${{ runner.os }}-gems-${{ matrix.ruby-version }}-${{ hashFiles('**/Gemfile.lock') }}
|
35
35
|
restore-keys: |
|
36
|
-
${{ runner.os }}-gems-
|
36
|
+
${{ runner.os }}-gems-${{ matrix.ruby-version }}-
|
37
37
|
|
38
38
|
- name: Set up Ruby ${{ matrix.ruby-version }}
|
39
39
|
uses: ruby/setup-ruby@v1
|
data/CHANGELOG.md
CHANGED
@@ -7,6 +7,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
7
7
|
|
8
8
|
## [Unreleased]
|
9
9
|
|
10
|
+
## [0.2.1] - 2020-05-13
|
11
|
+
|
12
|
+
### Fixed
|
13
|
+
|
14
|
+
* Fix fetching cursor values when relation has join and string order values #9
|
15
|
+
|
10
16
|
## [0.2.0] - 2020-04-23
|
11
17
|
|
12
18
|
### Added
|
@@ -21,6 +27,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
21
27
|
* First implementation of cursor-pased pagination #2
|
22
28
|
* Configurable cursor encoder #3
|
23
29
|
|
24
|
-
[Unreleased]: https://github.com/askcharlie/cursor_pager/compare/v0.2.
|
30
|
+
[Unreleased]: https://github.com/askcharlie/cursor_pager/compare/v0.2.1...HEAD
|
31
|
+
[0.2.0]: https://github.com/askcharlie/cursor_pager/compare/v0.2.0...v0.2.1
|
25
32
|
[0.2.0]: https://github.com/askcharlie/cursor_pager/compare/v0.1.0...v0.2.0
|
26
33
|
[0.1.0]: https://github.com/askcharlie/cursor_pager/releases/tag/v0.1.0
|
data/Gemfile.lock
CHANGED
data/lib/cursor_pager/page.rb
CHANGED
@@ -150,7 +150,7 @@ module CursorPager
|
|
150
150
|
id = encoder.decode(cursor)
|
151
151
|
|
152
152
|
selects = order_values.map(&:select_string)
|
153
|
-
item =
|
153
|
+
item = ordered_relation.where(id: id).select(selects).first
|
154
154
|
|
155
155
|
raise CursorNotFoundError, cursor if item.blank?
|
156
156
|
|
data/lib/cursor_pager/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cursor_pager
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Bastian Bartmann
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-05-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activerecord
|