fast_page 0.1.5 → 0.1.6

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: de1e2b8f0b21925323aefa089bb2d884adaa10bd2fc329541773865de40f000f
4
- data.tar.gz: 3a94d8ffb42cc5b766e1daf4f0092b2b75266e139d358e63179ee418300ffa9a
3
+ metadata.gz: 1a33bbdfaf50bfeb97b7cc4a59f478fac909824626370408a48725767ce34e88
4
+ data.tar.gz: 409beebed7fe6a62e30cecd8a9f7be7d012c1c18d00dac7aaa4330754fb72618
5
5
  SHA512:
6
- metadata.gz: 990f0e5c32843a9f06116195132a2ec87f986b155f76da6962a896de5b2cd67fea09083ba0c200af944c76c0d3d189881cf5ebabf2ed38a03476a77eaefa0e89
7
- data.tar.gz: 668bcf9f45b90a7225022859f736f79c5b128025cf5c7ee6e7aa8e7f8c2dbcf4538a70a8c92c355c7386d45609067b74c941e3570e2efeabbacd9a02c5c87a18
6
+ metadata.gz: 50b32552555ef5d1f3d247bdd9b784991e5cf9095113c583256b68f11f2af0be4ccd40afc44fdbe5e00d81ebd3d797015b24ead10eee912b3833fc5a169a3d45
7
+ data.tar.gz: 4d3c40ab2b0d33ed32a36a24f206e66a2e71cb0190214a76e22ccf3a45dc83a409cfe9b8dbedecd7d5a52fc9af8a475889efe8aa6de58116a43bec8905974bfa
@@ -14,9 +14,14 @@ jobs:
14
14
  licensing:
15
15
  runs-on: ubuntu-latest
16
16
  steps:
17
- - uses: actions/checkout@v2
17
+ - uses: actions/checkout@v3
18
18
  with:
19
19
  fetch-depth: 0
20
- - run: sudo gem install license_finder && sudo gem install bundler
20
+ - name: Set up Ruby
21
+ uses: ruby/setup-ruby@v1
22
+ with:
23
+ ruby-version: 3.1.2
24
+ bundler-cache: false
21
25
  - run: bundle install
26
+ - run: gem install license_finder
22
27
  - run: license_finder
@@ -6,11 +6,12 @@ jobs:
6
6
  build:
7
7
  runs-on: ubuntu-latest
8
8
  steps:
9
- - uses: actions/checkout@v2
9
+ - uses: actions/checkout@v3
10
10
  - name: Set up Ruby
11
11
  uses: ruby/setup-ruby@v1
12
12
  with:
13
- ruby-version: 2.7.2
14
- bundler-cache: true
13
+ ruby-version: 3.1.2
14
+ bundler-cache: false
15
+ - run: bundle install
15
16
  - name: Run the default task
16
17
  run: bundle exec rake
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- fast_page (0.1.4)
4
+ fast_page (0.1.5)
5
5
  activerecord
6
6
  activesupport
7
7
 
@@ -11,7 +11,7 @@ module FastPage
11
11
  @values[:limit] = limit_value + 1 if limit_value
12
12
  id_scope = dup
13
13
  id_scope = id_scope.except(:includes) unless references_eager_loaded_tables?
14
- ids = id_scope.pluck(:id)
14
+ ids = id_scope.pluck(primary_key)
15
15
 
16
16
  if limit_value
17
17
  @values[:limit] = limit_value - 1
@@ -26,7 +26,7 @@ module FastPage
26
26
  return self
27
27
  end
28
28
 
29
- @records = where(id: ids).unscope(:limit).unscope(:offset).load.records
29
+ @records = where(primary_key => ids).unscope(:limit).unscope(:offset).load.records
30
30
  @loaded = true
31
31
 
32
32
  self
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module FastPage
4
- VERSION = "0.1.5"
4
+ VERSION = "0.1.6"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fast_page
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.5
4
+ version: 0.1.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mike Coutermarsh
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-12-19 00:00:00.000000000 Z
11
+ date: 2023-07-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord