rom-sql 3.3.1 → 3.3.2

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: ece3857926805b8cd226c7cbed4a8b4951b65a5f631b3af830663d1b659cf092
4
- data.tar.gz: d56f95b73edaf96462e363cd85d9fb4c5852e1242b1619178079262e94a7f5c2
3
+ metadata.gz: ddc33a4e8bd74212636e3c07be5ee12ab1e8947d4e5f76a3981c31c577140697
4
+ data.tar.gz: '097637bec7bac21c61128ed798ae0038e7f19ffed9579e89d596243f4b3f8bc0'
5
5
  SHA512:
6
- metadata.gz: 7073050be9175037200b6654730f51dc927918f6046414fff29233fce4f50af36b11dbf925c0c2dcae6d44609e15238445ad844fa81e771f90d0ebeed3556118
7
- data.tar.gz: 57299fc7a3b0fa07198acdf44ac0923f76b4a8a0d12290768e26155dcc6c3e8c543c12a21d486ed19fc2bc134165426f12615e4b2d534bdd96a0201d7ad43af4
6
+ metadata.gz: 279b99442b0b5b6434c2d5cbf9817e1e04b62897cdf485cbbc1164259336d47bf621e98a2b2a5f648d61ef0e0fa7f5c9f7dfcec2b448f33db49f41b1e1295352
7
+ data.tar.gz: 466bbb815b90464ada9de31e040e36d91e75c9a34d9d36d8bb85f639fc1808318d87ab91e037bf0ee69a03433a4326ef6640eda323b6bceaf5b0f473cbffa4e6
@@ -1,5 +1,15 @@
1
1
  <!--- DO NOT EDIT THIS FILE - IT'S AUTOMATICALLY GENERATED VIA DEVTOOLS --->
2
2
 
3
+ ## 3.3.2 2020-01-06
4
+
5
+
6
+ ### Fixed
7
+
8
+ - Function qualification methods no longer lose options (issue #390 fixed via #391) (@solnic)
9
+
10
+
11
+ [Compare v3.3.1...v3.3.2](https://github.com/rom-rb/rom-sql/compare/v3.3.1...v3.3.2)
12
+
3
13
  ## 3.3.1 2020-12-29
4
14
 
5
15
 
data/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  The MIT License (MIT)
2
2
 
3
- Copyright (c) 2015-2020 rom-rb team
3
+ Copyright (c) 2015-2021 rom-rb team
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy of
6
6
  this software and associated documentation files (the "Software"), to deal in
@@ -73,18 +73,23 @@ module ROM
73
73
  #
74
74
  # @api private
75
75
  def qualified(table_alias = nil)
76
- meta(
77
- func: ::Sequel::SQL::Function.new(func.name, *func.args.map { |arg| arg.respond_to?(:qualified) ? arg.qualified(table_alias) : arg })
78
- )
76
+ new { |arg|
77
+ arg.respond_to?(:qualified) ? arg.qualified(table_alias) : arg
78
+ }
79
79
  end
80
80
 
81
81
  # @see Attribute#qualified_projection
82
82
  #
83
83
  # @api private
84
84
  def qualified_projection(table_alias = nil)
85
- meta(
86
- func: ::Sequel::SQL::Function.new(func.name, *func.args.map { |arg| arg.respond_to?(:qualified_projection) ? arg.qualified_projection(table_alias) : arg })
87
- )
85
+ new { |arg|
86
+ arg.respond_to?(:qualified_projection) ? arg.qualified_projection(table_alias) : arg
87
+ }
88
+ end
89
+
90
+ # @api private
91
+ def new(&block)
92
+ meta(func: ::Sequel::SQL::Function.new!(func.name, func.args.map(&block), func.opts))
88
93
  end
89
94
 
90
95
  # @see Attribute#qualified?
@@ -2,6 +2,6 @@
2
2
 
3
3
  module ROM
4
4
  module SQL
5
- VERSION = '3.3.1'.freeze
5
+ VERSION = '3.3.2'.freeze
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.3.1
4
+ version: 3.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Piotr Solnica
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-12-29 00:00:00.000000000 Z
11
+ date: 2021-01-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: sequel