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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0f09f4f6c7c439bf8dc8d20ca19bce69cd7b67d0f6ffe9f8c91be7f3a673ccd6
4
- data.tar.gz: c79f9159200f3013be13892fd72b51f4ccba8c5111bd17411bde6db2deb9ea8b
3
+ metadata.gz: 481947bc305ba5c0952bd48e7a11cce97ef065d8c52eb8a17b911f936cc3bcb5
4
+ data.tar.gz: 072b3a752fd17c323595cb60282180c315008d84dd443938367b0cc1899bc8bc
5
5
  SHA512:
6
- metadata.gz: 469e8c30a4974b1f7be434169c46b82518de4c2f034f4c36ba01abf09b23855dd87b1d3689ef426b27b119283db25c4ba878462304c143084205e196571a7acd
7
- data.tar.gz: b16fd57909391d6d442291baef95adb33ec39181db7a4a1063cbb993ed0cea678fcf9e2ba502992bd91991e18d9246c564b47f1ca83e912c46da2a85bdc0b427
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.2.4...HEAD
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.2.4)
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.4)
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)
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: ..
3
3
  specs:
4
- cursor_pager (0.2.4)
4
+ cursor_pager (0.3.0)
5
5
  activerecord (>= 5.2.0)
6
6
 
7
7
  GEM
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: ..
3
3
  specs:
4
- cursor_pager (0.2.4)
4
+ cursor_pager (0.3.0)
5
5
  activerecord (>= 5.2.0)
6
6
 
7
7
  GEM
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: ..
3
3
  specs:
4
- cursor_pager (0.2.4)
4
+ cursor_pager (0.3.0)
5
5
  activerecord (>= 5.2.0)
6
6
 
7
7
  GEM
@@ -72,6 +72,7 @@ GEM
72
72
  zeitwerk (2.4.2)
73
73
 
74
74
  PLATFORMS
75
+ ruby
75
76
  x86_64-darwin-19
76
77
 
77
78
  DEPENDENCIES
@@ -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)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module CursorPager
4
- VERSION = "0.2.4"
4
+ VERSION = "0.3.0"
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.4
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-04-06 00:00:00.000000000 Z
11
+ date: 2021-06-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord