rom-sql 3.6.1 → 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: cc51c9abdc25fa792a3115391e4dbb169d8c7dba6bac5553810140013d097836
4
- data.tar.gz: 9b96d61a4dbdb7fa422f66e04933f89c513e429d5576cb6ce5c3c41acec96649
3
+ metadata.gz: 10de6edf52d1ae5d345bc22f2c884ab9f35d39f52ed1b31afc227c39c97e2922
4
+ data.tar.gz: 865b5d0f4aabdd7fc5911ec269e43977257212517d9373574861c47fa79e1af8
5
5
  SHA512:
6
- metadata.gz: 185d71f20d84f614f47511bd1f5f21fd03cfd5d6f0734431464cfa895bb5a1b263798becd891c26b54498c50970d73dcb43cda8c34b2a90a25ca5e164a3921e9
7
- data.tar.gz: 57926f14bd364b7abbab21c5bb6d89a53989029e84540e88e9b3b4695abc60509d741884e52313e329f676cfb787ce53eeaf8519794672e75d60f66162bbfb9a
6
+ metadata.gz: 1630dea45a0f30921a6298ea279d817e48d0bff6953639164304d4c308eb48a442b3ffe68dde0259e28ec0412a8b4ecea0c36bfc1c739d7ccbdaaa7dc49b2ac5
7
+ data.tar.gz: df51ba2b2674e601f7f44fb492e65bf753ed1cc258599eedd2a2f0fc8100f7dd694899cc461492e93f3c5d98cad2dfe4901e7754965f177e147c636b3d7d14d1
data/CHANGELOG.md CHANGED
@@ -1,11 +1,33 @@
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
6
26
 
7
27
  - Mapping of cidr types in PostgreSQL to IPAddr values (@flash-gordon)
8
28
 
29
+ [Compare v3.6.0...v3.6.1](https://github.com/rom-rb/rom-sql/compare/v3.6.0...v3.6.1)
30
+
9
31
  ## 3.6.0 2022-11-11
10
32
 
11
33
  ### Added
@@ -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
@@ -11,7 +11,7 @@ module ROM
11
11
  # @api public
12
12
  module Reading
13
13
  # Row-level lock modes
14
- ROW_LOCK_MODES = Hash.new(update: 'FOR UPDATE'.freeze).update(
14
+ ROW_LOCK_MODES = Hash.new({ update: "FOR UPDATE" }).update(
15
15
  # https://www.postgresql.org/docs/current/static/sql-select.html#SQL-FOR-UPDATE-SHARE
16
16
  postgres: {
17
17
  update: 'FOR UPDATE'.freeze,
@@ -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.1'.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.1
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: 2022-11-22 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
@@ -235,7 +235,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
235
235
  - !ruby/object:Gem::Version
236
236
  version: '0'
237
237
  requirements: []
238
- rubygems_version: 3.3.7
238
+ rubygems_version: 3.5.3
239
239
  signing_key:
240
240
  specification_version: 4
241
241
  summary: SQL databases support for ROM