jinrai 1.1.2 → 1.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +2 -2
- data/lib/jinrai/active_record/result.rb +2 -2
- data/lib/jinrai/version.rb +1 -1
- metadata +28 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bbffd9d3fbdce795ac45ee5c58f173cd34fddb6ce20b8c66bf4e6f252c9875c7
|
4
|
+
data.tar.gz: 3f9ad85bd9b04780ae643a3ccc2c52cb9c471b535a1425a3717fc816d26d0479
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b111141fe30caf1d9760495a7c938475831737604f9cf01543b5f104fd527dbba29b8ed56f470a5f73bb6815261344b0b4db9aa00e3d4af986c0d7082db348f7
|
7
|
+
data.tar.gz: bcb1ad0a8139c5873a95b79d2d11708a02f57d2ce51fceddea2a6965ff83479169cf52025448161a34cd8808494ffb9271a0f3151f6d947a2cee3dcb994a8c86
|
data/README.md
CHANGED
@@ -8,7 +8,7 @@ Jinrai is a awesome cursor based paginator
|
|
8
8
|
Jinrai.configure do |config|
|
9
9
|
config.default_cursor_per = 20 #=> User.cursor.count == 20
|
10
10
|
config.default_cursor_format = :id, :name #=> cursor format will be "#{user.id}_#{user.name}"
|
11
|
-
config.
|
11
|
+
config.default_cursor_sort_order = :desc
|
12
12
|
end
|
13
13
|
```
|
14
14
|
|
@@ -18,7 +18,7 @@ end
|
|
18
18
|
class User < ApplicationRecord
|
19
19
|
cursor_per 100
|
20
20
|
cursor_format :name, :age
|
21
|
-
|
21
|
+
cursor_sort_order :asc # default: :desc
|
22
22
|
end
|
23
23
|
|
24
24
|
User.cursor.count #=> 100
|
data/lib/jinrai/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jinrai
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- atomiyama
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2022-06-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -16,14 +16,34 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 5.
|
19
|
+
version: 5.2.0
|
20
|
+
- - "<"
|
21
|
+
- !ruby/object:Gem::Version
|
22
|
+
version: '7'
|
20
23
|
type: :runtime
|
21
24
|
prerelease: false
|
22
25
|
version_requirements: !ruby/object:Gem::Requirement
|
23
26
|
requirements:
|
24
27
|
- - ">="
|
25
28
|
- !ruby/object:Gem::Version
|
26
|
-
version: 5.
|
29
|
+
version: 5.2.0
|
30
|
+
- - "<"
|
31
|
+
- !ruby/object:Gem::Version
|
32
|
+
version: '7'
|
33
|
+
- !ruby/object:Gem::Dependency
|
34
|
+
name: psych
|
35
|
+
requirement: !ruby/object:Gem::Requirement
|
36
|
+
requirements:
|
37
|
+
- - "<"
|
38
|
+
- !ruby/object:Gem::Version
|
39
|
+
version: '4.0'
|
40
|
+
type: :runtime
|
41
|
+
prerelease: false
|
42
|
+
version_requirements: !ruby/object:Gem::Requirement
|
43
|
+
requirements:
|
44
|
+
- - "<"
|
45
|
+
- !ruby/object:Gem::Version
|
46
|
+
version: '4.0'
|
27
47
|
- !ruby/object:Gem::Dependency
|
28
48
|
name: mysql2
|
29
49
|
requirement: !ruby/object:Gem::Requirement
|
@@ -116,7 +136,7 @@ homepage: https://github.com/studyplus/jinrai
|
|
116
136
|
licenses:
|
117
137
|
- MIT
|
118
138
|
metadata: {}
|
119
|
-
post_install_message:
|
139
|
+
post_install_message:
|
120
140
|
rdoc_options: []
|
121
141
|
require_paths:
|
122
142
|
- lib
|
@@ -131,8 +151,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
131
151
|
- !ruby/object:Gem::Version
|
132
152
|
version: '0'
|
133
153
|
requirements: []
|
134
|
-
rubygems_version: 3.
|
135
|
-
signing_key:
|
154
|
+
rubygems_version: 3.3.7
|
155
|
+
signing_key:
|
136
156
|
specification_version: 4
|
137
157
|
summary: A cursor based pagination plugin for Rails
|
138
158
|
test_files: []
|