torque-postgresql 0.2.6 → 0.2.7

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
  SHA1:
3
- metadata.gz: f01743d0b17376aff113086782016f688330d7fe
4
- data.tar.gz: bf8ab5b19862bef0a158d5cf17575960f6385b7e
3
+ metadata.gz: 3acbe6336e50f21c522fc33c2d8681793c32d9f1
4
+ data.tar.gz: a33f97c88c4a7c18791cd12b8c6e1b1fa7f85132
5
5
  SHA512:
6
- metadata.gz: 9aab3f50ac0d003ffe4876aef773afe975739eceb2e4552e0789d864b2c6e52669f25ef3bcf30f9c2aed48e9628d01137763fea0fa005d97d538f2974f464ad2
7
- data.tar.gz: 60a4e728532be8c9ae45448192762ac4755a8157dc299495d5087a11d80a6f8a3315400eccd11b0f2c471a928406de642dd6af2cd75164b7169c9ae1763c7362
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.dynamic_selection_values.concat(other.dynamic_selection_values)
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, :dynamic_selection]
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|
@@ -1,5 +1,5 @@
1
1
  module Torque
2
2
  module PostgreSQL
3
- VERSION = '0.2.6'
3
+ VERSION = '0.2.7'
4
4
  end
5
5
  end
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.6
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-07 00:00:00.000000000 Z
11
+ date: 2018-09-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails