jsom-pagination 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/gem-push.yml +31 -0
- data/.github/workflows/gem-test.yml +29 -0
- data/.gitignore +4 -0
- data/.rubocop.yml +9 -0
- data/CODE_OF_CONDUCT.md +19 -14
- data/Gemfile.lock +10 -1
- data/README.md +22 -16
- data/jsom-pagination.gemspec +6 -0
- data/lib/jsom/pagination/paginator.rb +1 -1
- data/lib/jsom/pagination/pagy.rb +2 -151
- data/lib/jsom/pagination/types.rb +2 -1
- data/lib/jsom/pagination/version.rb +1 -1
- metadata +36 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 83137a4848a276bed8f982609a3b7de765a311718d983db6a7694f9abe99327d
|
4
|
+
data.tar.gz: c427e98b74e1c00c5d40f5546c943455c5c42ffddf1aa5ee2c037c03997a996a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz: '
|
6
|
+
metadata.gz: 5b0067520185211ad3bee63fff7d60aedb109985680bc59e63f7c10600f41ae8e65ce787652f445d2df54b377b87ed8569d4f5b80f3db7a409a31815005b08dd
|
7
|
+
data.tar.gz: '00596d4aeb84d6f19ce513debfcca21a00314f5145c2ec8d9bfa8b627551081c0bff5c6c0a4036ec795535e0f62628a651da2587df1bacfdd0c8d9228928134e'
|
@@ -0,0 +1,31 @@
|
|
1
|
+
name: Test & Release
|
2
|
+
|
3
|
+
on:
|
4
|
+
push:
|
5
|
+
branches: [ release ]
|
6
|
+
|
7
|
+
jobs:
|
8
|
+
build:
|
9
|
+
name: Build + Publish
|
10
|
+
runs-on: ubuntu-latest
|
11
|
+
|
12
|
+
steps:
|
13
|
+
- uses: actions/checkout@v2
|
14
|
+
- name: Set up Ruby 2.7.1
|
15
|
+
uses: actions/setup-ruby@v1
|
16
|
+
with:
|
17
|
+
ruby-version: 2.7.1
|
18
|
+
- name: Run tests
|
19
|
+
run: |
|
20
|
+
bundle install
|
21
|
+
bundle exec rspec
|
22
|
+
- name: Publish to RubyGems
|
23
|
+
run: |
|
24
|
+
mkdir -p $HOME/.gem
|
25
|
+
touch $HOME/.gem/credentials
|
26
|
+
chmod 0600 $HOME/.gem/credentials
|
27
|
+
printf -- "---\n:rubygems_api_key: ${GEM_HOST_API_KEY}\n" > $HOME/.gem/credentials
|
28
|
+
gem build *.gemspec
|
29
|
+
gem push *.gem
|
30
|
+
env:
|
31
|
+
GEM_HOST_API_KEY: ${{secrets.RUBYGEMS_AUTH_TOKEN}}
|
@@ -0,0 +1,29 @@
|
|
1
|
+
name: Run tests
|
2
|
+
|
3
|
+
on:
|
4
|
+
push:
|
5
|
+
branches-ignore: [ release ]
|
6
|
+
pull_request:
|
7
|
+
branches: [ master release ]
|
8
|
+
|
9
|
+
jobs:
|
10
|
+
build:
|
11
|
+
name: Build + Test
|
12
|
+
runs-on: ubuntu-latest
|
13
|
+
|
14
|
+
steps:
|
15
|
+
- uses: actions/checkout@v2
|
16
|
+
- name: Set up Ruby 2.7.1
|
17
|
+
uses: actions/setup-ruby@v1
|
18
|
+
with:
|
19
|
+
ruby-version: 2.7.1
|
20
|
+
- name: Run tests
|
21
|
+
run: |
|
22
|
+
bundle install
|
23
|
+
CI=true bundle exec rspec
|
24
|
+
- name: Upload report
|
25
|
+
run: |
|
26
|
+
mv ./coverage/coverage.xml cobertura.xml
|
27
|
+
bash <(curl -Ls https://coverage.codacy.com/get.sh) report
|
28
|
+
env:
|
29
|
+
CODACY_PROJECT_TOKEN: ${{secrets.CODACY_PROJECT_TOKEN}}
|
data/.gitignore
CHANGED
data/.rubocop.yml
ADDED
data/CODE_OF_CONDUCT.md
CHANGED
@@ -14,22 +14,26 @@ orientation.
|
|
14
14
|
Examples of behavior that contributes to creating a positive environment
|
15
15
|
include:
|
16
16
|
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
17
|
+
- Using welcoming and inclusive language
|
18
|
+
- Being respectful of differing viewpoints and experiences
|
19
|
+
- Gracefully accepting constructive criticism
|
20
|
+
- Focusing on what is best for the community
|
21
|
+
- Showing empathy towards other community members
|
22
22
|
|
23
23
|
Examples of unacceptable behavior by participants include:
|
24
24
|
|
25
|
-
|
26
|
-
advances
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
25
|
+
- The use of sexualized language or imagery and unwelcome sexual attention or
|
26
|
+
advances
|
27
|
+
|
28
|
+
- Trolling, insulting/derogatory comments, and personal or political attacks
|
29
|
+
|
30
|
+
- Public or private harassment
|
31
|
+
|
32
|
+
- Publishing others' private information, such as a physical or electronic
|
33
|
+
address, without explicit permission
|
34
|
+
|
35
|
+
- Other conduct which could reasonably be considered inappropriate in a
|
36
|
+
professional setting
|
33
37
|
|
34
38
|
## Our Responsibilities
|
35
39
|
|
@@ -55,7 +59,7 @@ further defined and clarified by project maintainers.
|
|
55
59
|
## Enforcement
|
56
60
|
|
57
61
|
Instances of abusive, harassing, or otherwise unacceptable behavior may be
|
58
|
-
reported by contacting the project team at sebastian@driggl.com. All
|
62
|
+
reported by contacting the project team at [sebastian@driggl.com.](mailto:sebastian@driggl.com.) All
|
59
63
|
complaints will be reviewed and investigated and will result in a response that
|
60
64
|
is deemed necessary and appropriate to the circumstances. The project team is
|
61
65
|
obligated to maintain confidentiality with regard to the reporter of an incident.
|
@@ -71,4 +75,5 @@ This Code of Conduct is adapted from the [Contributor Covenant][homepage], versi
|
|
71
75
|
available at [https://contributor-covenant.org/version/1/4][version]
|
72
76
|
|
73
77
|
[homepage]: https://contributor-covenant.org
|
78
|
+
|
74
79
|
[version]: https://contributor-covenant.org/version/1/4/
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
jsom-pagination (0.1.
|
4
|
+
jsom-pagination (0.1.1)
|
5
5
|
dry-struct (~> 1.3.0)
|
6
6
|
pagy (~> 3.8.3)
|
7
7
|
|
@@ -10,6 +10,7 @@ GEM
|
|
10
10
|
specs:
|
11
11
|
concurrent-ruby (1.1.7)
|
12
12
|
diff-lcs (1.4.4)
|
13
|
+
docile (1.3.2)
|
13
14
|
dry-configurable (0.11.6)
|
14
15
|
concurrent-ruby (~> 1.0)
|
15
16
|
dry-core (~> 0.4, >= 0.4.7)
|
@@ -53,6 +54,12 @@ GEM
|
|
53
54
|
diff-lcs (>= 1.2.0, < 2.0)
|
54
55
|
rspec-support (~> 3.9.0)
|
55
56
|
rspec-support (3.9.3)
|
57
|
+
simplecov (0.19.0)
|
58
|
+
docile (~> 1.1)
|
59
|
+
simplecov-html (~> 0.11)
|
60
|
+
simplecov-cobertura (1.4.0)
|
61
|
+
simplecov (~> 0.8)
|
62
|
+
simplecov-html (0.12.2)
|
56
63
|
|
57
64
|
PLATFORMS
|
58
65
|
ruby
|
@@ -61,6 +68,8 @@ DEPENDENCIES
|
|
61
68
|
jsom-pagination!
|
62
69
|
rake (~> 12.0)
|
63
70
|
rspec (~> 3.0)
|
71
|
+
simplecov
|
72
|
+
simplecov-cobertura
|
64
73
|
|
65
74
|
BUNDLED WITH
|
66
75
|
2.1.4
|
data/README.md
CHANGED
@@ -1,5 +1,9 @@
|
|
1
1
|
# JSOM::Pagination
|
2
2
|
|
3
|
+
[![Gem Version](https://badge.fury.io/rb/jsom-pagination.svg)](https://badge.fury.io/rb/jsom-pagination)
|
4
|
+
[![Codacy Badge](https://api.codacy.com/project/badge/Grade/bc98c8c017c64b70a11ca79aea6c3e3c)](https://app.codacy.com/gh/useo-pl/jsom-pagination?utm_source=github.com&utm_medium=referral&utm_content=useo-pl/jsom-pagination&utm_campaign=Badge_Grade_Dashboard)
|
5
|
+
[![Codacy Badge](https://app.codacy.com/project/badge/Coverage/eab277bd1f694da88691a2e645adbe96)](https://www.codacy.com/gh/useo-pl/jsom-pagination?utm_source=github.com&utm_medium=referral&utm_content=useo-pl/jsom-pagination&utm_campaign=Badge_Coverage)
|
6
|
+
|
3
7
|
An easy to use JSON:API support for web applications.
|
4
8
|
|
5
9
|
## Installation
|
@@ -12,31 +16,35 @@ gem 'jsom-pagination'
|
|
12
16
|
|
13
17
|
And then execute:
|
14
18
|
|
15
|
-
|
19
|
+
```shell
|
20
|
+
$ bundle install
|
21
|
+
```
|
16
22
|
|
17
23
|
Or install it yourself as:
|
18
24
|
|
19
|
-
|
25
|
+
```shell
|
26
|
+
$ gem install jsom-pagination
|
27
|
+
```
|
20
28
|
|
21
29
|
## Usage
|
22
30
|
|
23
|
-
|
31
|
+
### For arrays
|
24
32
|
|
25
33
|
```ruby
|
26
|
-
|
27
|
-
|
28
|
-
|
34
|
+
paginator = JSOM::Pagination::Paginator.new
|
35
|
+
collection = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
|
36
|
+
paginated = paginator.call(collection, params: { number: 2, size: 3 }, base_url: 'https://example.com')
|
29
37
|
```
|
30
38
|
|
31
|
-
|
39
|
+
### For ActiveRecord collections
|
32
40
|
|
33
41
|
```ruby
|
34
|
-
|
35
|
-
|
36
|
-
|
42
|
+
paginator = JSOM::Pagination::Paginator.new
|
43
|
+
collection = Article.published
|
44
|
+
paginated = paginator.call(collection, params: { number: 2, size: 3 }, base_url: 'https://example.com')
|
37
45
|
```
|
38
46
|
|
39
|
-
|
47
|
+
### Meta data object
|
40
48
|
|
41
49
|
You can call `meta` on the paginated collection to easily get meta information about the paginated results
|
42
50
|
|
@@ -48,7 +56,7 @@ paginated.meta.to_h
|
|
48
56
|
# => {:total=>10, :pages=>4}
|
49
57
|
```
|
50
58
|
|
51
|
-
|
59
|
+
### Links object
|
52
60
|
|
53
61
|
You can call `links` on the paginated collection to easily get collection of pagination links for the client
|
54
62
|
|
@@ -66,10 +74,9 @@ paginated.links.to_h
|
|
66
74
|
# }
|
67
75
|
```
|
68
76
|
|
69
|
-
|
70
77
|
### Rendering using fast_jsonapi
|
71
78
|
|
72
|
-
```
|
79
|
+
```ruby
|
73
80
|
options = { meta: paginated.meta.to_h, links: paginated.links.to_h }
|
74
81
|
render json: serializer.new(paginated.items, options)
|
75
82
|
```
|
@@ -82,8 +89,7 @@ To install this gem onto your local machine, run `bundle exec rake install`. To
|
|
82
89
|
|
83
90
|
## Contributing
|
84
91
|
|
85
|
-
Bug reports and pull requests are welcome on GitHub at https://github.com/useo-pl/jsom-pagination
|
86
|
-
|
92
|
+
Bug reports and pull requests are welcome on GitHub at <https://github.com/useo-pl/jsom-pagination>. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [code of conduct](https://github.com/useo-pl/jsom-pagination/blob/master/CODE_OF_CONDUCT.md).
|
87
93
|
|
88
94
|
## License
|
89
95
|
|
data/jsom-pagination.gemspec
CHANGED
@@ -2,6 +2,8 @@
|
|
2
2
|
|
3
3
|
require_relative 'lib/jsom/pagination/version'
|
4
4
|
|
5
|
+
# rubocop:disable Metrics/BlockLength
|
6
|
+
#
|
5
7
|
Gem::Specification.new do |spec|
|
6
8
|
spec.name = 'jsom-pagination'
|
7
9
|
spec.version = JSOM::Pagination::VERSION
|
@@ -37,4 +39,8 @@ Gem::Specification.new do |spec|
|
|
37
39
|
|
38
40
|
spec.add_dependency 'dry-struct', '~>1.3.0'
|
39
41
|
spec.add_dependency 'pagy', '~>3.8.3'
|
42
|
+
|
43
|
+
spec.add_development_dependency 'simplecov'
|
44
|
+
spec.add_development_dependency 'simplecov-cobertura'
|
40
45
|
end
|
46
|
+
# rubocop:enable Metrics/BlockLength
|
data/lib/jsom/pagination/pagy.rb
CHANGED
@@ -2,169 +2,20 @@
|
|
2
2
|
|
3
3
|
require 'pagy'
|
4
4
|
|
5
|
-
# Pagy initializer file (3.8.3)
|
6
|
-
# Customize only what you really need and notice that Pagy works also without any of the following lines.
|
7
|
-
# Should you just cherry pick part of this file, please maintain the require-order of the extras
|
8
|
-
|
9
5
|
# Extras
|
10
6
|
# See https://ddnexus.github.io/pagy/extras
|
11
7
|
|
12
8
|
# Backend Extras
|
13
9
|
|
14
|
-
# Array extra: Paginate arrays efficiently, avoiding expensive
|
10
|
+
# Array extra: Paginate arrays efficiently, avoiding expensive
|
11
|
+
# array-wrapping and without overriding
|
15
12
|
# See https://ddnexus.github.io/pagy/extras/array
|
16
13
|
require 'pagy/extras/array'
|
17
14
|
|
18
|
-
# Countless extra: Paginate without any count, saving one query per rendering
|
19
|
-
# See https://ddnexus.github.io/pagy/extras/countless
|
20
|
-
# require 'pagy/extras/countless'
|
21
|
-
# Pagy::VARS[:cycle] = false # default
|
22
|
-
|
23
|
-
# Elasticsearch Rails extra: Paginate `ElasticsearchRails::Results` objects
|
24
|
-
# See https://ddnexus.github.io/pagy/extras/elasticsearch_rails
|
25
|
-
# require 'pagy/extras/elasticsearch_rails'
|
26
|
-
|
27
|
-
# Searchkick extra: Paginate `Searchkick::Results` objects
|
28
|
-
# See https://ddnexus.github.io/pagy/extras/searchkick
|
29
|
-
# require 'pagy/extras/searchkick'
|
30
|
-
|
31
|
-
|
32
|
-
# Frontend Extras
|
33
|
-
|
34
|
-
# Bootstrap extra: Add nav, nav_js and combo_nav_js helpers and templates for Bootstrap pagination
|
35
|
-
# See https://ddnexus.github.io/pagy/extras/bootstrap
|
36
|
-
# require 'pagy/extras/bootstrap'
|
37
|
-
|
38
|
-
# Bulma extra: Add nav, nav_js and combo_nav_js helpers and templates for Bulma pagination
|
39
|
-
# See https://ddnexus.github.io/pagy/extras/bulma
|
40
|
-
# require 'pagy/extras/bulma'
|
41
|
-
|
42
|
-
# Foundation extra: Add nav, nav_js and combo_nav_js helpers and templates for Foundation pagination
|
43
|
-
# See https://ddnexus.github.io/pagy/extras/foundation
|
44
|
-
# require 'pagy/extras/foundation'
|
45
|
-
|
46
|
-
# Materialize extra: Add nav, nav_js and combo_nav_js helpers for Materialize pagination
|
47
|
-
# See https://ddnexus.github.io/pagy/extras/materialize
|
48
|
-
# require 'pagy/extras/materialize'
|
49
|
-
|
50
|
-
# Navs extra: Add nav_js and combo_nav_js javascript helpers
|
51
|
-
# Notice: the other frontend extras add their own framework-styled versions,
|
52
|
-
# so require this extra only if you need the unstyled version
|
53
|
-
# See https://ddnexus.github.io/pagy/extras/navs
|
54
|
-
# require 'pagy/extras/navs'
|
55
|
-
|
56
|
-
# Semantic extra: Add nav, nav_js and combo_nav_js helpers for Semantic UI pagination
|
57
|
-
# See https://ddnexus.github.io/pagy/extras/semantic
|
58
|
-
# require 'pagy/extras/semantic'
|
59
|
-
|
60
|
-
# UIkit extra: Add nav helper and templates for UIkit pagination
|
61
|
-
# See https://ddnexus.github.io/pagy/extras/uikit
|
62
|
-
# require 'pagy/extras/uikit'
|
63
|
-
|
64
|
-
# Multi size var used by the *_nav_js helpers
|
65
|
-
# See https://ddnexus.github.io/pagy/extras/navs#steps
|
66
|
-
# Pagy::VARS[:steps] = { 0 => [2,3,3,2], 540 => [3,5,5,3], 720 => [5,7,7,5] } # example
|
67
|
-
|
68
|
-
|
69
15
|
# Feature Extras
|
70
16
|
|
71
|
-
# Headers extra: http response headers (and other helpers) useful for API pagination
|
72
|
-
# See http://ddnexus.github.io/pagy/extras/headers
|
73
|
-
# require 'pagy/extras/headers'
|
74
|
-
# Pagy::VARS[:headers] = { page: 'Current-Page', items: 'Page-Items', count: 'Total-Count', pages: 'Total-Pages' } # default
|
75
|
-
|
76
|
-
# Support extra: Extra support for features like: incremental, infinite, auto-scroll pagination
|
77
|
-
# See https://ddnexus.github.io/pagy/extras/support
|
78
|
-
# require 'pagy/extras/support'
|
79
|
-
|
80
|
-
# Items extra: Allow the client to request a custom number of items per page with an optional selector UI
|
81
|
-
# See https://ddnexus.github.io/pagy/extras/items
|
82
|
-
# require 'pagy/extras/items'
|
83
|
-
# Pagy::VARS[:items_param] = :items # default
|
84
|
-
# Pagy::VARS[:max_items] = 100 # default
|
85
|
-
|
86
17
|
# Overflow extra: Allow for easy handling of overflowing pages
|
87
18
|
# See https://ddnexus.github.io/pagy/extras/overflow
|
88
19
|
require 'pagy/extras/overflow'
|
89
20
|
|
90
21
|
Pagy::VARS[:overflow] = :empty_page
|
91
|
-
|
92
|
-
# Metadata extra: Provides the pagination metadata to Javascript frameworks like Vue.js, react.js, etc.
|
93
|
-
# See https://ddnexus.github.io/pagy/extras/metadata
|
94
|
-
# you must require the shared internal extra (BEFORE the metadata extra) ONLY if you need also the :sequels
|
95
|
-
# require 'pagy/extras/shared'
|
96
|
-
# require 'pagy/extras/metadata'
|
97
|
-
# For performance reason, you should explicitly set ONLY the metadata you use in the frontend
|
98
|
-
# Pagy::VARS[:metadata] = [:scaffold_url, :count, :page, :prev, :next, :last] # example
|
99
|
-
|
100
|
-
# Trim extra: Remove the page=1 param from links
|
101
|
-
# See https://ddnexus.github.io/pagy/extras/trim
|
102
|
-
# require 'pagy/extras/trim'
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
# Pagy Variables
|
107
|
-
# See https://ddnexus.github.io/pagy/api/pagy#variables
|
108
|
-
# All the Pagy::VARS are set for all the Pagy instances but can be overridden
|
109
|
-
# per instance by just passing them to Pagy.new or the #pagy controller method
|
110
|
-
|
111
|
-
|
112
|
-
# Instance variables
|
113
|
-
# See https://ddnexus.github.io/pagy/api/pagy#instance-variables
|
114
|
-
# Pagy::VARS[:items] = 20 # default
|
115
|
-
|
116
|
-
|
117
|
-
# Other Variables
|
118
|
-
# See https://ddnexus.github.io/pagy/api/pagy#other-variables
|
119
|
-
# Pagy::VARS[:size] = [1,4,4,1] # default
|
120
|
-
# Pagy::VARS[:page_param] = :page # default
|
121
|
-
# Pagy::VARS[:params] = {} # default
|
122
|
-
# Pagy::VARS[:anchor] = '#anchor' # example
|
123
|
-
# Pagy::VARS[:link_extra] = 'data-remote="true"' # example
|
124
|
-
|
125
|
-
|
126
|
-
# Rails
|
127
|
-
|
128
|
-
# Rails: extras assets path required by the helpers that use javascript
|
129
|
-
# (pagy*_nav_js, pagy*_combo_nav_js, and pagy_items_selector_js)
|
130
|
-
# See https://ddnexus.github.io/pagy/extras#javascript
|
131
|
-
# Rails.application.config.assets.paths << Pagy.root.join('javascripts')
|
132
|
-
|
133
|
-
|
134
|
-
# I18n
|
135
|
-
|
136
|
-
# Pagy internal I18n: ~18x faster using ~10x less memory than the i18n gem
|
137
|
-
# See https://ddnexus.github.io/pagy/api/frontend#i18n
|
138
|
-
# Notice: No need to configure anything in this section if your app uses only "en"
|
139
|
-
# or if you use the i18n extra below
|
140
|
-
#
|
141
|
-
# Examples:
|
142
|
-
# load the "de" built-in locale:
|
143
|
-
# Pagy::I18n.load(locale: 'de')
|
144
|
-
#
|
145
|
-
# load the "de" locale defined in the custom file at :filepath:
|
146
|
-
# Pagy::I18n.load(locale: 'de', filepath: 'path/to/pagy-de.yml')
|
147
|
-
#
|
148
|
-
# load the "de", "en" and "es" built-in locales:
|
149
|
-
# (the first passed :locale will be used also as the default_locale)
|
150
|
-
# Pagy::I18n.load({locale: 'de'},
|
151
|
-
# {locale: 'en'},
|
152
|
-
# {locale: 'es'})
|
153
|
-
#
|
154
|
-
# load the "en" built-in locale, a custom "es" locale,
|
155
|
-
# and a totally custom locale complete with a custom :pluralize proc:
|
156
|
-
# (the first passed :locale will be used also as the default_locale)
|
157
|
-
# Pagy::I18n.load({locale: 'en'},
|
158
|
-
# {locale: 'es', filepath: 'path/to/pagy-es.yml'},
|
159
|
-
# {locale: 'xyz', # not built-in
|
160
|
-
# filepath: 'path/to/pagy-xyz.yml',
|
161
|
-
# pluralize: lambda{|count| ... } )
|
162
|
-
|
163
|
-
|
164
|
-
# I18n extra: uses the standard i18n gem which is ~18x slower using ~10x more memory
|
165
|
-
# than the default pagy internal i18n (see above)
|
166
|
-
# See https://ddnexus.github.io/pagy/extras/i18n
|
167
|
-
# require 'pagy/extras/i18n'
|
168
|
-
|
169
|
-
# Default i18n key
|
170
|
-
# Pagy::VARS[:i18n_key] = 'pagy.item_name' # default
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jsom-pagination
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sebastian Wilgosz
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-09-
|
11
|
+
date: 2020-09-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: dry-struct
|
@@ -38,6 +38,34 @@ dependencies:
|
|
38
38
|
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: 3.8.3
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: simplecov
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - ">="
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '0'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - ">="
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: simplecov-cobertura
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - ">="
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0'
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - ">="
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '0'
|
41
69
|
description: |2
|
42
70
|
Easy to use, framework-agnostic set of methods useful for
|
43
71
|
integrating JSON:API in your project.
|
@@ -47,8 +75,11 @@ executables: []
|
|
47
75
|
extensions: []
|
48
76
|
extra_rdoc_files: []
|
49
77
|
files:
|
78
|
+
- ".github/workflows/gem-push.yml"
|
79
|
+
- ".github/workflows/gem-test.yml"
|
50
80
|
- ".gitignore"
|
51
81
|
- ".rspec"
|
82
|
+
- ".rubocop.yml"
|
52
83
|
- ".ruby-gemset"
|
53
84
|
- ".ruby-version"
|
54
85
|
- ".travis.yml"
|
@@ -78,7 +109,7 @@ metadata:
|
|
78
109
|
homepage_uri: https://github.com/useo-pl/jsom-pagination
|
79
110
|
source_code_uri: https://github.com/useo-pl/jsom-pagination
|
80
111
|
changelog_uri: https://github.com/useo-pl/jsom-pagination/releases
|
81
|
-
post_install_message:
|
112
|
+
post_install_message:
|
82
113
|
rdoc_options: []
|
83
114
|
require_paths:
|
84
115
|
- lib
|
@@ -94,7 +125,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
94
125
|
version: '0'
|
95
126
|
requirements: []
|
96
127
|
rubygems_version: 3.1.2
|
97
|
-
signing_key:
|
128
|
+
signing_key:
|
98
129
|
specification_version: 4
|
99
130
|
summary: A pagination support for JSON:API based web applications.
|
100
131
|
test_files: []
|