graphiti-activegraph 0.1.8 → 0.1.9

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: 27f568c2558fd90927efbdfe9a027deaec2bbfa78e4661cef40e3cfd69513580
4
- data.tar.gz: 9601ee6142701b1a412b3c93975b97877fec63e8ab11cc1d4fc327837ef580eb
3
+ metadata.gz: f6f5689742540eacd7c8d5af6c94d69deca502eaf16b1e5d4c69c4e6bb34ad88
4
+ data.tar.gz: 8f0cdad94dc592a5496ac839abea4727422cd1b09a2dd5fe8df908a2a3422106
5
5
  SHA512:
6
- metadata.gz: e8f536280c38952208a5e5c1d4355799b9e8fe46dfaf14f83678031cf6d23149341093860d7fb822cf23daad5658bf07561daa547e23befb5fab253b76219c8f
7
- data.tar.gz: 760b8d94785cdae51b83c7604ee4a5cadc4c8c88a9c7704a33466f86de2965634a68d0aaf792d403ff418f5ecfca9f8dbac69089afba42151fd98ff4fa7088a6
6
+ metadata.gz: 9bde7647cac6007c4378c427c494c3d67a3d838794189c82f347c89ce1a3916c18de66a39aee01f7b3fd1ec65130d956ef3733ce460084cc64731c4ff3127cfe
7
+ data.tar.gz: b563699ee2c31d298c10ac0fe70a63100f75b196c24fddc2abc44f0225f5087267ff6e8ff6fddd508ea6fbf06eded19a85b4f1decc2e5f9dc1c744c670d14fd4
@@ -25,8 +25,9 @@ module Graphiti::ActiveGraph
25
25
  model_instance.update(attributes)
26
26
  end
27
27
 
28
- def paginate(scope, current_page, per_page)
29
- scope.skip((current_page - 1) * per_page).limit(per_page)
28
+ def paginate(scope, current_page, per_page, offset)
29
+ offset ||= (current_page - 1) * per_page
30
+ scope.skip(offset).limit(per_page)
30
31
  end
31
32
 
32
33
  def transaction(_model_class)
@@ -1,5 +1,5 @@
1
1
  module Graphiti
2
2
  module ActiveGraph
3
- VERSION = '0.1.8'
3
+ VERSION = '0.1.9'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: graphiti-activegraph
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.8
4
+ version: 0.1.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Hardik Joshi
8
- autorequire:
8
+ autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-06-09 00:00:00.000000000 Z
11
+ date: 2021-06-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: graphiti
@@ -178,7 +178,7 @@ dependencies:
178
178
  - - "~>"
179
179
  - !ruby/object:Gem::Version
180
180
  version: 3.9.0
181
- description:
181
+ description:
182
182
  email:
183
183
  - hardikjoshi1991@gmail.com
184
184
  executables: []
@@ -215,7 +215,7 @@ homepage: https://github.com/mrhardikjoshi/graphiti-activegraph
215
215
  licenses:
216
216
  - MIT
217
217
  metadata: {}
218
- post_install_message:
218
+ post_install_message:
219
219
  rdoc_options: []
220
220
  require_paths:
221
221
  - lib
@@ -230,8 +230,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
230
230
  - !ruby/object:Gem::Version
231
231
  version: '0'
232
232
  requirements: []
233
- rubygems_version: 3.1.2
234
- signing_key:
233
+ rubygems_version: 3.2.3
234
+ signing_key:
235
235
  specification_version: 4
236
236
  summary: Easily build jsonapi.org-compatible APIs for GraphDB
237
237
  test_files: []