logical_model 0.7.4 → 0.7.5

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: b9e813874f914e15ae59b5418f3b8f3f7956b634d3b78e6b71b8db7f6d0b24a9
4
- data.tar.gz: 34e5a57719bdfaa9d8c5e015f375928f555919a05628fbd7e91b8aa6a690e385
3
+ metadata.gz: 2c54ee15e0413bd22ec9565523d2c9717913acc6475dbb65c0a130fb8b74cb1b
4
+ data.tar.gz: e74b18396a817b26aef40359788048e5a58c78c71cd43c2ad0de44cca6626b6c
5
5
  SHA512:
6
- metadata.gz: bdc851d2855dad7d13c088eb44a16229bd05b57d418149d67af3fcff1d0e952f9e326e052b897c1361acf9da8a20d2667c1a4e8ec969437634801ddf845fe2e0
7
- data.tar.gz: d0f140df1accc666f3e33a097f71b2681235dfbeb21a9602ee791d019159ee63495568c2f5db026fdf026e285650da70170ba88a532619205cde879ef687e5b2
6
+ metadata.gz: 92209ab1bf6f806bf873cba8baa7e56753e0ddf68d7fcec333760e622b180f868dbdfaa47beae8b7b535aa39dc7b8ed23b6882e1a02147c671480063d144377a
7
+ data.tar.gz: 28693c7d61c83359dd9fbfe6b9056f74a86f4aeac28bc4913656bfb78404243db76d5dc45050326a6a32a77ee8c34ea85ca3217e41b0c84972ecbf61ba14701d
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.6.4
1
+ 0.6.6
@@ -236,11 +236,9 @@ class LogicalModel
236
236
  # this paginate is will_paginate's Array pagination
237
237
  collection = Kaminari.paginate_array(
238
238
  result_set[:collection],
239
- {
240
- :total_count=>result_set[:total],
241
- :limit => options[:per_page],
242
- :offset => options[:per_page] * ([options[:page], 1].max - 1)
243
- }
239
+ limit: options[:per_page],
240
+ offset: options[:per_page] * ([options[:page], 1].max - 1),
241
+ total_count: result_set[:total]
244
242
  )
245
243
 
246
244
  yield collection
@@ -6,7 +6,7 @@
6
6
 
7
7
  Gem::Specification.new do |s|
8
8
  s.name = "logical_model"
9
- s.version = "0.7.4"
9
+ s.version = "0.7.5"
10
10
 
11
11
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
12
12
  s.require_paths = ["lib"]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: logical_model
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.4
4
+ version: 0.7.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dwayne Macgowan
@@ -301,7 +301,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
301
301
  - !ruby/object:Gem::Version
302
302
  version: '0'
303
303
  requirements: []
304
- rubygems_version: 3.0.1
304
+ rubygems_version: 3.3.7
305
305
  signing_key:
306
306
  specification_version: 4
307
307
  summary: LogicalModel allows to use a resource as a model.