composite_primary_keys 11.0.0.beta3 → 11.0.0.beta4

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: f06b556871f465285e08ae730e3a7b393a1a2342215083dec37e85ccb8e323f7
4
- data.tar.gz: 2efcdf65030ce1463981c2e728988a35b4c5ed2f2e650c32aca2025b760cfc46
3
+ metadata.gz: a82bde494ba8ade055be42d3e57d7d6f4eb31aebe5417e5e7c92590963943cab
4
+ data.tar.gz: 28805dfbc66e70f35452d852a7f2a5f20248ec64a6798d844505c6a2aec7fc73
5
5
  SHA512:
6
- metadata.gz: 4774876569874db813bfbc549460c8e4ea4d67c35261e8be1b2844ba776604d0435a87875d05326212f76b4573a097cecc0c19dac0f86e3f501cf7d81b73db6b
7
- data.tar.gz: b493eaae3998c02850addc163eab57e1548a8d4ec608cd8df6d1136d6b59b8fddbbb58410861a8777ed80f7d65a2d8c6db171b0247b29ceb4b21e5ddba543f5d
6
+ metadata.gz: 2e67fdc2a3846cc17ed323ffcbdc3d4eb2c2da3c898436f667ac071a3f6f1abc25983f77dd68798055a6a9365556d36c8631798f9bfed71cafe1a6ab3156e001
7
+ data.tar.gz: facd88fcfacbc76cf14d0ca0c6f9c9ecce5d5ef39856f32eb40ed20d91e9e8b48bc40829bbcf2013c95249f689a0c32e189aba054cd580a2ec74b6075fc71908
@@ -1,4 +1,8 @@
1
- == 11.0.0.beta3 (2017-12-10)
1
+ == 11.0.0.beta4 (2018-01-08)
2
+
3
+ * Try again on Calculations#execute_simple_calculation for ActiveRecord 5.2.beta2 (Charlie Savage)
4
+
5
+ == 11.0.0.beta3 (2018-01-07)
2
6
 
3
7
  * Fix typo in Readme.doc (Lopez Lucien)
4
8
  * Fix Calculations#execute_simple_calculation for ActiveRecord 5.2.beta2 (Charlie Savage)
@@ -18,14 +18,14 @@ module CompositePrimaryKeys
18
18
  column_alias = column_name
19
19
 
20
20
  # CPK
21
- if self.composite? && operation == "count"
21
+ # if operation == "count" && has_limit_or_offset?
22
+ # # Shortcut when limit is zero.
23
+ # return 0 if limit_value == 0
24
+ #
25
+ # query_builder = build_count_subquery(spawn, column_name, distinct)
26
+ if operation == "count"
22
27
  relation = unscope(:order)
23
28
  query_builder = build_count_subquery(relation, column_name, distinct)
24
- elsif operation == "count" && has_limit_or_offset?
25
- # Shortcut when limit is zero.
26
- return 0 if limit_value == 0
27
-
28
- query_builder = build_count_subquery(spawn, column_name, distinct)
29
29
  else
30
30
  # PostgreSQL doesn't like ORDER BY when there are no GROUP BY
31
31
  relation = unscope(:order).distinct!(false)
@@ -3,6 +3,6 @@ module CompositePrimaryKeys
3
3
  MAJOR = 11
4
4
  MINOR = 0
5
5
  TINY = 0
6
- STRING = [MAJOR, MINOR, TINY, 'beta3'].join('.')
6
+ STRING = [MAJOR, MINOR, TINY, 'beta4'].join('.')
7
7
  end
8
8
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: composite_primary_keys
3
3
  version: !ruby/object:Gem::Version
4
- version: 11.0.0.beta3
4
+ version: 11.0.0.beta4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Charlie Savage
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-01-07 00:00:00.000000000 Z
11
+ date: 2018-01-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord