torque-postgresql 0.2.6 → 0.2.7
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
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3acbe6336e50f21c522fc33c2d8681793c32d9f1
|
4
|
+
data.tar.gz: a33f97c88c4a7c18791cd12b8c6e1b1fa7f85132
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bfc4259f12a5e67c1edf53fae8417dc3872065167131a1727fe91737cb5610e38176650fc7b845067bd413e81572a593d1b6a4a3336f2dd9b75518ccde7d62ba
|
7
|
+
data.tar.gz: 0ab22cd3aedf08ad64cd26d7a313507de38de4ab18f88cf3c6fe336f38bc0cb42b5a75a44e89377cd57f9e3966b1996371a6a81b0ffe2d642dfe303d8ddc5034
|
@@ -18,7 +18,7 @@ module Torque
|
|
18
18
|
|
19
19
|
# Merge dynamic selection columns
|
20
20
|
def merge_dynamic_selection
|
21
|
-
relation.
|
21
|
+
relation.send(:dynamic_selection).concat(other.send(:dynamic_selection))
|
22
22
|
end
|
23
23
|
|
24
24
|
# Merge distinct on columns
|
@@ -14,15 +14,9 @@ module Torque
|
|
14
14
|
include Inheritance
|
15
15
|
|
16
16
|
SINGLE_VALUE_METHODS = [:itself_only]
|
17
|
-
MULTI_VALUE_METHODS = [:distinct_on, :auxiliary_statements, :cast_records
|
18
|
-
:dynamic_selection]
|
17
|
+
MULTI_VALUE_METHODS = [:distinct_on, :auxiliary_statements, :cast_records]
|
19
18
|
VALUE_METHODS = SINGLE_VALUE_METHODS + MULTI_VALUE_METHODS
|
20
19
|
|
21
|
-
# :nodoc:
|
22
|
-
def dynamic_selection_values; get_value(:dynamic_selection); end
|
23
|
-
# :nodoc:
|
24
|
-
def dynamic_selection_values=(value); set_value(:dynamic_selection, value); end
|
25
|
-
|
26
20
|
# Resolve column name when calculating models, allowing the column name to
|
27
21
|
# be more complex while keeping the query selection quality
|
28
22
|
def calculate(operation, column_name)
|
@@ -131,7 +125,7 @@ module Torque
|
|
131
125
|
ActiveRecord::Relation::MULTI_VALUE_METHODS += Relation::MULTI_VALUE_METHODS
|
132
126
|
ActiveRecord::Relation::VALUE_METHODS += Relation::VALUE_METHODS
|
133
127
|
ActiveRecord::QueryMethods::VALID_UNSCOPING_VALUES += [:cast_records, :itself_only,
|
134
|
-
:distinct_on, :auxiliary_statements
|
128
|
+
:distinct_on, :auxiliary_statements]
|
135
129
|
|
136
130
|
if ActiveRecord::QueryMethods.const_defined?('DEFAULT_VALUES')
|
137
131
|
Relation::SINGLE_VALUE_METHODS.each do |value|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: torque-postgresql
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Carlos Silva
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-09-
|
11
|
+
date: 2018-09-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|