rom-sql 3.6.2 → 3.6.3

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: a66a6f386f99391a91f6e72d746bf252ebfcf7428c225d98b19035e6f2a1b09a
4
- data.tar.gz: 828f97dec8dbe879462a7185f7fcf68df4a70e5a76583bc033d2d28e571e4ca2
3
+ metadata.gz: 10de6edf52d1ae5d345bc22f2c884ab9f35d39f52ed1b31afc227c39c97e2922
4
+ data.tar.gz: 865b5d0f4aabdd7fc5911ec269e43977257212517d9373574861c47fa79e1af8
5
5
  SHA512:
6
- metadata.gz: ff8b53eda3cae629dd719e459647033c59de0f605a83d3b2b616ee1780673f1e25a655e8df9da5b9bc66ac60893be927240a906734f1f92785ee7e24dcfd637d
7
- data.tar.gz: 2d35c254478bd63ad9636c6f6f7ae516c39c463adc98eae524dcac0b04673138f43a9499c76014f98fb8c554abb14b3f734b3195bfbd6b54e75ce06d9f24c8ab
6
+ metadata.gz: 1630dea45a0f30921a6298ea279d817e48d0bff6953639164304d4c308eb48a442b3ffe68dde0259e28ec0412a8b4ecea0c36bfc1c739d7ccbdaaa7dc49b2ac5
7
+ data.tar.gz: df51ba2b2674e601f7f44fb492e65bf753ed1cc258599eedd2a2f0fc8100f7dd694899cc461492e93f3c5d98cad2dfe4901e7754965f177e147c636b3d7d14d1
data/CHANGELOG.md CHANGED
@@ -1,5 +1,25 @@
1
1
  <!--- DO NOT EDIT THIS FILE - IT'S AUTOMATICALLY GENERATED VIA DEVTOOLS --->
2
2
 
3
+ ## 3.6.3 2024-05-06
4
+
5
+
6
+ ### Fixed
7
+
8
+ - Fix using `.filter` with a block for aggregate functions (@flash-gordon)
9
+
10
+
11
+ [Compare v3.6.2...v3.6.3](https://github.com/rom-rb/rom-sql/compare/v3.6.2...v3.6.3)
12
+
13
+ ## 3.6.2 2024-01-09
14
+
15
+
16
+ ### Fixed
17
+
18
+ - Fix Hash.new warning in Ruby 3.3 (@flash-gordon)
19
+
20
+
21
+ [Compare v3.6.1...v3.6.2](https://github.com/rom-rb/rom-sql/compare/v3.6.1...v3.6.2)
22
+
3
23
  ## 3.6.1 2022-11-22
4
24
 
5
25
  ### Fixed
@@ -37,7 +37,7 @@ module ROM
37
37
  #
38
38
  # @api public
39
39
  def function(name, *attrs)
40
- ::ROM::SQL::Function.new(::ROM::Types::Any, schema: schema).public_send(name, *attrs)
40
+ ::ROM::SQL::Function.new(::ROM::Types::Any).meta(schema: schema).public_send(name, *attrs)
41
41
  end
42
42
  alias_method :f, :function
43
43
 
@@ -57,7 +57,7 @@ module ROM
57
57
 
58
58
  if type
59
59
  if args.empty?
60
- ::ROM::SQL::Function.new(type, schema: schema)
60
+ ::ROM::SQL::Function.new(type).meta(schema: schema)
61
61
  else
62
62
  ::ROM::SQL::Attribute[type].value(args[0])
63
63
  end
@@ -27,7 +27,7 @@ module ROM
27
27
  type = type(meth)
28
28
 
29
29
  if type
30
- ::ROM::SQL::Function.new(type)
30
+ ::ROM::SQL::Function.new(type).meta(schema: schema)
31
31
  else
32
32
  ::Sequel::VIRTUAL_ROW.__send__(meth, *args, &block)
33
33
  end
@@ -2,6 +2,6 @@
2
2
 
3
3
  module ROM
4
4
  module SQL
5
- VERSION = '3.6.2'.freeze
5
+ VERSION = '3.6.3'
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rom-sql
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.6.2
4
+ version: 3.6.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Piotr Solnica
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-01-09 00:00:00.000000000 Z
11
+ date: 2024-05-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: sequel