cursor_pager 0.2.4 → 0.3.0
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 +4 -4
- data/CHANGELOG.md +7 -1
- data/Gemfile.lock +2 -2
- data/gemfiles/activerecord_5.2.gemfile.lock +1 -1
- data/gemfiles/activerecord_6.0.gemfile.lock +1 -1
- data/gemfiles/activerecord_6.1.gemfile.lock +2 -1
- data/lib/cursor_pager/cursor_not_found_error.rb +4 -0
- 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: 481947bc305ba5c0952bd48e7a11cce97ef065d8c52eb8a17b911f936cc3bcb5
|
|
4
|
+
data.tar.gz: 072b3a752fd17c323595cb60282180c315008d84dd443938367b0cc1899bc8bc
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: e8afbe43e9f1585d5aa70dffcebcb87654975889f054c79d9dddd55b3cda410189a0cf121ae886e7bca9954f084457884edff4cc7e6537fe48c765447fc5eec9
|
|
7
|
+
data.tar.gz: 61742d6d1e3d1a45af9202578dda3ad290fb059259d02b091a4233dff0354024e0b1c99c88eb7076d235d2e6eac181d7ec9f0fbb6006288cbc472b6984843033
|
data/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
7
7
|
|
|
8
8
|
## [Unreleased]
|
|
9
9
|
|
|
10
|
+
## [0.3.0] - 2021-06-11
|
|
11
|
+
### Added
|
|
12
|
+
|
|
13
|
+
* Add `cursor` attribute to `CursorNotFoundError`
|
|
14
|
+
|
|
10
15
|
## [0.2.4] - 2021-04-01
|
|
11
16
|
|
|
12
17
|
### Fixed
|
|
@@ -45,7 +50,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
45
50
|
* First implementation of cursor-pased pagination #2
|
|
46
51
|
* Configurable cursor encoder #3
|
|
47
52
|
|
|
48
|
-
[Unreleased]: https://github.com/check24-profis/shared-cursor-pager/compare/v0.
|
|
53
|
+
[Unreleased]: https://github.com/check24-profis/shared-cursor-pager/compare/v0.3.0...HEAD
|
|
54
|
+
[0.3.0]: https://github.com/check24-profis/shared-cursor-pager/compare/v0.2.4...v0.3.0
|
|
49
55
|
[0.2.4]: https://github.com/check24-profis/shared-cursor-pager/compare/v0.2.3...v0.2.4
|
|
50
56
|
[0.2.3]: https://github.com/check24-profis/shared-cursor-pager/compare/v0.2.2...v0.2.3
|
|
51
57
|
[0.2.2]: https://github.com/check24-profis/shared-cursor-pager/compare/v0.2.1...v0.2.2
|
data/Gemfile.lock
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
cursor_pager (0.
|
|
4
|
+
cursor_pager (0.3.0)
|
|
5
5
|
activerecord (>= 5.2.0)
|
|
6
6
|
|
|
7
7
|
GEM
|
|
@@ -39,7 +39,7 @@ GEM
|
|
|
39
39
|
rainbow (3.0.0)
|
|
40
40
|
rake (12.3.3)
|
|
41
41
|
regexp_parser (2.1.1)
|
|
42
|
-
rexml (3.2.
|
|
42
|
+
rexml (3.2.5)
|
|
43
43
|
rspec (3.10.0)
|
|
44
44
|
rspec-core (~> 3.10.0)
|
|
45
45
|
rspec-expectations (~> 3.10.0)
|
|
@@ -3,7 +3,11 @@
|
|
|
3
3
|
module CursorPager
|
|
4
4
|
# Will be raised when the cursor's record couldn't be found in the relation.
|
|
5
5
|
class CursorNotFoundError < Error
|
|
6
|
+
|
|
7
|
+
attr_reader :cursor
|
|
8
|
+
|
|
6
9
|
def initialize(cursor)
|
|
10
|
+
@cursor = cursor
|
|
7
11
|
message = "Couldn't find item for cursor: #{cursor}."
|
|
8
12
|
|
|
9
13
|
super(message)
|
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.
|
|
4
|
+
version: 0.3.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Bastian Bartmann
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2021-
|
|
11
|
+
date: 2021-06-11 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: activerecord
|