mincer 0.2.17 → 0.2.18
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 +5 -5
- data/lib/mincer/processors/pg_json_dumper/processor.rb +3 -0
- data/lib/mincer/version.rb +1 -1
- metadata +3 -4
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
|
-
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
2
|
+
SHA256:
|
|
3
|
+
metadata.gz: e5d10eccf1fade89b90c3c00a04aa8740a548ff7c4818656cb2569593c3993d7
|
|
4
|
+
data.tar.gz: 898265f01a1e873f60dd2eeede2f5fbec36559bed8386a2681c6bf995178cf8c
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: afb5fdc6407cc7aed5b70933ef76710fd2fffdc27af56521ddf34e5214a5340ce51573ced6c3257662914078363ea2c23c6c1ae8ec082d3592712579730553f0
|
|
7
|
+
data.tar.gz: 33e7e42c41ee190f851564cc48ef297c9d388637c10018e72c8f27ec3a7537ba4d70e4620c4b09addc7e99a4525f8c792e392a05d3d6de0faf9816530f8c4e0b
|
|
@@ -43,6 +43,9 @@ module Mincer
|
|
|
43
43
|
# Query for basic json generation. Ex: [{'id': 1}, {...}]
|
|
44
44
|
def basic_json_query(root = 'json', meta = false)
|
|
45
45
|
meta_sql = if meta
|
|
46
|
+
if meta.is_a?(Hash) && meta[:total_count]
|
|
47
|
+
@mincer.relation.instance_variable_set(:@total_count, meta[:total_count])
|
|
48
|
+
end
|
|
46
49
|
", #{@mincer.total_pages} AS total_pages, #{@mincer.total_count} AS total_count, #{@mincer.current_page} AS current_page, #{@mincer.limit_value} AS per_page"
|
|
47
50
|
else
|
|
48
51
|
''
|
data/lib/mincer/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: mincer
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.2.
|
|
4
|
+
version: 0.2.18
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Alex Krasinsky
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2019-12-20 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: activerecord
|
|
@@ -195,8 +195,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
195
195
|
- !ruby/object:Gem::Version
|
|
196
196
|
version: '0'
|
|
197
197
|
requirements: []
|
|
198
|
-
|
|
199
|
-
rubygems_version: 2.4.5.1
|
|
198
|
+
rubygems_version: 3.0.1
|
|
200
199
|
signing_key:
|
|
201
200
|
specification_version: 4
|
|
202
201
|
summary: ActiveRecord::Relation wrapper for pagination, order, json, search, cache_digest
|