activerecord-sqlserver-adapter 7.0.6 → 7.0.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
  SHA256:
3
- metadata.gz: 2b4383f74e5eb074b9cbe32e45c13f29139ec454f9da2b9f2d3b12f20fd6dcff
4
- data.tar.gz: 5f0a17eae3d510ab6c842276e1265bb523d1682a1f65cf7ae5039b96115f2b63
3
+ metadata.gz: 83388c1406fff2ac06215c523b54148362c6eadfbb56a32555cc36e9a95b42b6
4
+ data.tar.gz: 9b7230a6317df5393e15adc93486dea74701c38b8d25cb176a6c2961cdd27b86
5
5
  SHA512:
6
- metadata.gz: 1f7e83b119e54652678c2b9293128ad7da186bc6493dbeb254bee97c7bb4b1714587e420718dd8764ca28cec68e471c7834b2944ebcca4b3ed4e64c1df167189
7
- data.tar.gz: dfd8d4cf7f83f5275725ce33f9d8dbda1bfa1eef8cccd3d29f8f49f0d5a9e287316ce400847b93d4029993707784e4b143abec542ae747f15859b2f200493ef7
6
+ metadata.gz: 58c3429ed5900c289e059d6047dfef313b8a91fca2f43bbe2c95004a16b99e5cb9255d9715ac531a34fb2db9c7b7acf77ff81bb9a9c43e3e31e90116f2bc0da8
7
+ data.tar.gz: 91c41e4809dfca4809cd8899a60d80325310999adce340a70d672aefacd06f61ddc885260908b12a5d444df3cb1008a993276ccd9640f38ff59a6df4cd6c9346
@@ -14,7 +14,6 @@ jobs:
14
14
  fail-fast: false
15
15
  matrix:
16
16
  ruby:
17
- - 2.7.7
18
17
  - 3.1.3
19
18
  - 3.2.1
20
19
 
data/CHANGELOG.md CHANGED
@@ -1,3 +1,9 @@
1
+ ## v7.0.7
2
+
3
+ #### Changed
4
+
5
+ - [#1200](https://github.com/rails-sqlserver/activerecord-sqlserver-adapter/pull/1200) Remove ActiveRecord::Relation#calculate patch
6
+
1
7
  ## v7.0.6
2
8
 
3
9
  #### Added
data/README.md CHANGED
@@ -13,7 +13,7 @@ Interested in older versions? We follow a rational versioning policy that tracks
13
13
 
14
14
  | Adapter Version | Rails Version | Support |
15
15
  |-----------------| ------------- |---------------------------------------------------------------------------------------------|
16
- | `7.0.6` | `7.0.x` | [active](https://github.com/rails-sqlserver/activerecord-sqlserver-adapter/tree/7-0-stable) |
16
+ | `7.0.7` | `7.0.x` | [active](https://github.com/rails-sqlserver/activerecord-sqlserver-adapter/tree/7-0-stable) |
17
17
  | `6.1.2.1` | `6.1.x` | [active](https://github.com/rails-sqlserver/activerecord-sqlserver-adapter/tree/6-1-stable) |
18
18
  | `6.0.3` | `6.0.x` | [active](https://github.com/rails-sqlserver/activerecord-sqlserver-adapter/tree/6-0-stable) |
19
19
  | `5.2.1` | `5.2.x` | [ended](https://github.com/rails-sqlserver/activerecord-sqlserver-adapter/tree/5-2-stable) |
data/VERSION CHANGED
@@ -1 +1 @@
1
- 7.0.6
1
+ 7.0.7
@@ -8,25 +8,6 @@ module ActiveRecord
8
8
  module SQLServer
9
9
  module CoreExt
10
10
  module Calculations
11
- # Same as original except we don't perform PostgreSQL hack that removes ordering.
12
- def calculate(operation, column_name)
13
- return super unless klass.connection.adapter_name == "SQLServer"
14
-
15
- if has_include?(column_name)
16
- relation = apply_join_dependency
17
-
18
- if operation.to_s.downcase == "count"
19
- unless distinct_value || distinct_select?(column_name || select_for_count)
20
- relation.distinct!
21
- relation.select_values = [klass.primary_key || table[Arel.star]]
22
- end
23
- end
24
-
25
- relation.calculate(operation, column_name)
26
- else
27
- perform_calculation(operation, column_name)
28
- end
29
- end
30
11
 
31
12
  private
32
13
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: activerecord-sqlserver-adapter
3
3
  version: !ruby/object:Gem::Version
4
- version: 7.0.6
4
+ version: 7.0.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ken Collins
@@ -15,7 +15,7 @@ authors:
15
15
  autorequire:
16
16
  bindir: bin
17
17
  cert_chain: []
18
- date: 2023-11-20 00:00:00.000000000 Z
18
+ date: 2024-07-04 00:00:00.000000000 Z
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
21
21
  name: activerecord
@@ -231,8 +231,8 @@ licenses:
231
231
  - MIT
232
232
  metadata:
233
233
  bug_tracker_uri: https://github.com/rails-sqlserver/activerecord-sqlserver-adapter/issues
234
- changelog_uri: https://github.com/rails-sqlserver/activerecord-sqlserver-adapter/blob/v7.0.6/CHANGELOG.md
235
- source_code_uri: https://github.com/rails-sqlserver/activerecord-sqlserver-adapter/tree/v7.0.6
234
+ changelog_uri: https://github.com/rails-sqlserver/activerecord-sqlserver-adapter/blob/v7.0.7/CHANGELOG.md
235
+ source_code_uri: https://github.com/rails-sqlserver/activerecord-sqlserver-adapter/tree/v7.0.7
236
236
  post_install_message:
237
237
  rdoc_options: []
238
238
  require_paths:
@@ -248,7 +248,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
248
248
  - !ruby/object:Gem::Version
249
249
  version: '0'
250
250
  requirements: []
251
- rubygems_version: 3.4.7
251
+ rubygems_version: 3.4.22
252
252
  signing_key:
253
253
  specification_version: 4
254
254
  summary: ActiveRecord SQL Server Adapter.