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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2cae99728d5827015878e6af2b7e5b06851984dec3e82f6b7ffce0e471ecab1c
4
- data.tar.gz: 548d5f8799dd7748837a083ef9ec8cc8f620ede7a29107ddb7c20be28a64efb1
3
+ metadata.gz: cc1bbcc1992729703176c3a54296a1a3d55037677b6ad7079ce226c0b7cb5e99
4
+ data.tar.gz: 93c7b676fdbaea2f3060625af3c408c1f9280173918a51e041661519cfe69f72
5
5
  SHA512:
6
- metadata.gz: f84865be5f0153580346a191e58dc8483abc2a3699a358a38a2d6117624610c102fdde004b9a785b07b2095141be06e385416c5f0b94b30f2a22b0bfb1572c2d
7
- data.tar.gz: e7131697760670148494e697db0579dc3d96486d09fe945552bbe22d824654afb827c0392e86099725aa48a8c72d8e4c26bcc0ffb5ffcb77561c490a09c47390
6
+ metadata.gz: ea6d32b47021562a4dfc954ee71fb1a19f21cec99b2429d7fd82e7e1a2f3bfce4e54fbf0937f5686fccdd76532a4b9ff5d2d253b2778aa8e8a1ce79ff284583f
7
+ data.tar.gz: 1ae8fadea22bdbd6dfcb836a02193b4ddfbb610b5e37bb00e0499ad339b63ccb5cc55a26b9ea7eafe8d741dd6a7e5692b3e008c13c189564b463796a06f8d993
@@ -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
@@ -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.0...HEAD
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
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- cursor_pager (0.2.0)
4
+ cursor_pager (0.2.1)
5
5
  activerecord (>= 5.2.0)
6
6
 
7
7
  GEM
@@ -150,7 +150,7 @@ module CursorPager
150
150
  id = encoder.decode(cursor)
151
151
 
152
152
  selects = order_values.map(&:select_string)
153
- item = relation.where(id: id).select(selects).first
153
+ item = ordered_relation.where(id: id).select(selects).first
154
154
 
155
155
  raise CursorNotFoundError, cursor if item.blank?
156
156
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module CursorPager
4
- VERSION = "0.2.0"
4
+ VERSION = "0.2.1"
5
5
  end
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.0
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-04-28 00:00:00.000000000 Z
11
+ date: 2020-05-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord