mincer 0.2.13 → 0.2.14
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/mincer/processors/pg_json_dumper/processor.rb +1 -1
- data/lib/mincer/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 596cff7167053281b57a50ee49b6d201a6c3481d
|
4
|
+
data.tar.gz: 6040bf0e675643a66ed39573172dcf770fac77c1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d4bcf26e32eae3d1d0b31b4a4fe45b0cdd2b2fa812cdc26197986c304d3363c4f00dfbd2fa6e2effb7efabaad122ada725ce3e4dee4852b736de0aea3da4274b
|
7
|
+
data.tar.gz: 36a7cf9e5c1ff79f8398cc2590af4afc690eac1e37f22aab969d66a48395b7f6a93350b967607030a6937402150f4545ab5222f3a3708582790f476062edcab2
|
@@ -16,7 +16,7 @@ module Mincer
|
|
16
16
|
result = Mincer.connection.execute(json_query).first['json']
|
17
17
|
return result unless @options[:singularize]
|
18
18
|
return (result[1..-2].presence || '{}') unless @options[:root]
|
19
|
-
(result.sub('[', '').sub(/(])}$/, '}').presence || '{}')
|
19
|
+
(result.sub('[', '').sub(/(\])}$/, '}').presence || '{}')
|
20
20
|
else
|
21
21
|
warn 'To dump data to json with postgres you need to use postgres server version >= 9.2'
|
22
22
|
end
|
data/lib/mincer/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
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.14
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Alex Krasinsky
|
@@ -196,7 +196,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
196
196
|
version: '0'
|
197
197
|
requirements: []
|
198
198
|
rubyforge_project:
|
199
|
-
rubygems_version: 2.
|
199
|
+
rubygems_version: 2.6.10
|
200
200
|
signing_key:
|
201
201
|
specification_version: 4
|
202
202
|
summary: ActiveRecord::Relation wrapper for pagination, order, json, search, cache_digest
|