active_median 0.2.7 → 0.2.8

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: 0060d29bd7e382bb2cd06e63df45278b9dfe1c2cb9a2210bd3e82dd973fc90ef
4
- data.tar.gz: 6d12c8ecf51e432fdcd659df62f81f629b29ea7476cc9e3719ce072ae86df7cd
3
+ metadata.gz: 9f779fe5268fc1347cd94c47fc55a3322a3d52282539d0ca7d001e37c405f9a1
4
+ data.tar.gz: 37d6b834f1857f6119d3ec7969d422f7d4f3fcbeaa1645d8bc0f8a3f10824c04
5
5
  SHA512:
6
- metadata.gz: 56c5060c952f8c729c6463946db701c2ff6a503a2258252ab8b3b9efacd43b6719ad542d22cb488cf8d4d83f41222ce0d4bf5e0985f948cc1adfea9bf5a5467b
7
- data.tar.gz: 3c2ec783cbe6a85e7e35814359e767dbb714b36be9578e46a0e5583dec5b74c19feb920192dcd2e2ace9e6482e296ccdc24659135a519d9413d79f53bed8b3de
6
+ metadata.gz: 180be6b9f59bc10e2bc0e708f4d8ad01d4d3d7a27d95707162ef45c4478ff858d6b6b5a2f598b6c411bf0e4942f02f0a13a642b04746e79fb124c2c6d70e58cb
7
+ data.tar.gz: db9436660c4fa4e2bdd80af101dbc8723f46781f17eeeecc57e8015a2510d9429bce6f38f93b210c82b2499b3dae787df26c1d0e898280af98174738a29eb984
@@ -1,3 +1,7 @@
1
+ ## 0.2.8 (2021-01-16)
2
+
3
+ - Fixed bug with removing order
4
+
1
5
  ## 0.2.7 (2021-01-16)
2
6
 
3
7
  - Fixed error with order
@@ -67,7 +67,7 @@ module ActiveMedian
67
67
  end
68
68
 
69
69
  # same as average
70
- relation = relation.unscope(:order).distinct!(false) if relation.group_values.empty?
70
+ relation = relation.unscope(:order).distinct!(false) if group_values.empty?
71
71
 
72
72
  result = connection.select_all(relation.to_sql)
73
73
 
@@ -1,3 +1,3 @@
1
1
  module ActiveMedian
2
- VERSION = "0.2.7"
2
+ VERSION = "0.2.8"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: active_median
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.7
4
+ version: 0.2.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew Kane
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-01-16 00:00:00.000000000 Z
11
+ date: 2021-01-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport