grape-cursor_paginate_helper 0.2.0 → 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/.rubocop.yml +1 -1
- data/CHANGELOG.md +5 -0
- data/Rakefile +3 -3
- data/lib/grape/cursor_paginate_helper/version.rb +1 -1
- data/lib/grape/cursor_paginate_helper.rb +5 -3
- metadata +6 -9
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: ec5e794411dee7ace6813c3286cc0c0abae00197a77a7ccb47c988ea97d5e70f
|
|
4
|
+
data.tar.gz: 8237e06f405e89d6088214afb64ed44a7b6eea9c4aed85430adae8d602c65744
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 74844e136a5415819784361edda59c2e6127e8749f1f6d12bce4c34b985e6fe5040e261e54b1c1b6b43ea8de3b4abbd95c4d0847dfbe6656b7661472cea19794
|
|
7
|
+
data.tar.gz: d857924c3a0e5858bf115ebe7cf49635af4d3d5e415329f724de908511ce4e40ce974af4cfc521545b47bae492a347fec1f6d7a598d65450e18ef4df8043a057
|
data/.rubocop.yml
CHANGED
data/CHANGELOG.md
CHANGED
data/Rakefile
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
|
-
require
|
|
4
|
-
require
|
|
3
|
+
require 'bundler/gem_tasks'
|
|
4
|
+
require 'rspec/core/rake_task'
|
|
5
5
|
|
|
6
6
|
RSpec::Core::RakeTask.new(:spec)
|
|
7
7
|
|
|
8
|
-
require
|
|
8
|
+
require 'rubocop/rake_task'
|
|
9
9
|
|
|
10
10
|
RuboCop::RakeTask.new
|
|
11
11
|
|
|
@@ -8,7 +8,8 @@ module Grape
|
|
|
8
8
|
|
|
9
9
|
DEFAULT_PAGE_SIZE = 10
|
|
10
10
|
|
|
11
|
-
|
|
11
|
+
# Grape 3対応だが、Grape 2でも動作する(Ruby 3以降推奨)
|
|
12
|
+
params :cursor_paginate do |**opts|
|
|
12
13
|
opts.reverse_merge!(
|
|
13
14
|
per_page: DEFAULT_PAGE_SIZE,
|
|
14
15
|
)
|
|
@@ -31,9 +32,10 @@ module Grape
|
|
|
31
32
|
end
|
|
32
33
|
|
|
33
34
|
module DSLMethods
|
|
34
|
-
|
|
35
|
+
# Grape 3対応だが、Grape 2でも動作する(Ruby 3以降推奨)
|
|
36
|
+
def cursor_paginate(**opts)
|
|
35
37
|
params do
|
|
36
|
-
use(:cursor_paginate, opts)
|
|
38
|
+
use(:cursor_paginate, **opts)
|
|
37
39
|
end
|
|
38
40
|
end
|
|
39
41
|
end
|
metadata
CHANGED
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: grape-cursor_paginate_helper
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.3.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Shinichi Sugiyama
|
|
8
|
-
autorequire:
|
|
9
8
|
bindir: exe
|
|
10
9
|
cert_chain: []
|
|
11
|
-
date:
|
|
10
|
+
date: 1980-01-02 00:00:00.000000000 Z
|
|
12
11
|
dependencies:
|
|
13
12
|
- !ruby/object:Gem::Dependency
|
|
14
13
|
name: active_record-cursor_paginator
|
|
@@ -30,14 +29,14 @@ dependencies:
|
|
|
30
29
|
requirements:
|
|
31
30
|
- - ">="
|
|
32
31
|
- !ruby/object:Gem::Version
|
|
33
|
-
version: '
|
|
32
|
+
version: '2.0'
|
|
34
33
|
type: :runtime
|
|
35
34
|
prerelease: false
|
|
36
35
|
version_requirements: !ruby/object:Gem::Requirement
|
|
37
36
|
requirements:
|
|
38
37
|
- - ">="
|
|
39
38
|
- !ruby/object:Gem::Version
|
|
40
|
-
version: '
|
|
39
|
+
version: '2.0'
|
|
41
40
|
description: see https://github.com/ssugiyama/grape-cursor_paginate_helper
|
|
42
41
|
email:
|
|
43
42
|
- sugiyama-shinichi@kayac.com
|
|
@@ -64,7 +63,6 @@ metadata:
|
|
|
64
63
|
source_code_uri: https://github.com/ssugiyama/grape-cursor_paginate_helper
|
|
65
64
|
changelog_uri: https://github.com/ssugiyama/grape-cursor_paginate_helper/Changelog.md
|
|
66
65
|
rubygems_mfa_required: 'true'
|
|
67
|
-
post_install_message:
|
|
68
66
|
rdoc_options: []
|
|
69
67
|
require_paths:
|
|
70
68
|
- lib
|
|
@@ -72,15 +70,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
72
70
|
requirements:
|
|
73
71
|
- - ">="
|
|
74
72
|
- !ruby/object:Gem::Version
|
|
75
|
-
version:
|
|
73
|
+
version: 3.0.0
|
|
76
74
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
77
75
|
requirements:
|
|
78
76
|
- - ">="
|
|
79
77
|
- !ruby/object:Gem::Version
|
|
80
78
|
version: '0'
|
|
81
79
|
requirements: []
|
|
82
|
-
rubygems_version: 3.
|
|
83
|
-
signing_key:
|
|
80
|
+
rubygems_version: 3.7.2
|
|
84
81
|
specification_version: 4
|
|
85
82
|
summary: Grape API Helper for ActiveRecord::CursorPaginator
|
|
86
83
|
test_files: []
|