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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: '0178eeb57c5a6f97b36376989e7c3e5081b870d400ef538f9365798345448313'
4
- data.tar.gz: 249497a66a0678e1060d13c952885d12c6228fa6536d36eb4da59e6870e22b93
3
+ metadata.gz: bbffd9d3fbdce795ac45ee5c58f173cd34fddb6ce20b8c66bf4e6f252c9875c7
4
+ data.tar.gz: 3f9ad85bd9b04780ae643a3ccc2c52cb9c471b535a1425a3717fc816d26d0479
5
5
  SHA512:
6
- metadata.gz: 6565143154e30649171225464f6c283190f581fccb31950f75a7aa49656e3f6f6de33a0e1a0c132741900e3391a6a27edcecfbdc633d3d59373116e9a70f0a5b
7
- data.tar.gz: 363deba13720ccdfcf144a07478c1d7410d97be4113b887c22fe4d97a3f2ea6b9f3fbd8662ec5fa43af8b7d83ede8a1a01d3ceb281c91988fc59e06a9685dfb6
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.cursor_sort_order = :desc
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
- cursor_order :asc # default: :desc
21
+ cursor_sort_order :asc # default: :desc
22
22
  end
23
23
 
24
24
  User.cursor.count #=> 100
@@ -3,9 +3,9 @@ module Jinrai
3
3
  module Result
4
4
  attr_writer :is_cursored
5
5
 
6
- def initialize(*a)
6
+ def initialize(klass, **args)
7
7
  @is_cursored = false
8
- super(*a)
8
+ super
9
9
  end
10
10
 
11
11
  def cursored?
@@ -1,3 +1,3 @@
1
1
  module Jinrai
2
- VERSION = '1.1.2'
2
+ VERSION = '1.1.3'
3
3
  end
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.2
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: 2019-01-20 00:00:00.000000000 Z
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.1.0
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.1.0
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.0.2
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: []