arel_extensions 2.0.19 → 2.0.20

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: c1d2609be9db9a76e7e2a207348891cd2696286f57970a51726151671397baaf
4
- data.tar.gz: 9a4d1a3227816dfc7b56c8669112f34e458b7889b76cd48276075530598c7c32
3
+ metadata.gz: 3b33cc4b8403458cd160d55695a4f822c49874c9ee652be6bb07cf70b9c42472
4
+ data.tar.gz: 1abc89c35c27019ea9e50f0adddae261ee38ced162dce6f4ca43d290091d3d27
5
5
  SHA512:
6
- metadata.gz: 25ecdcc34e12980454d2b6adbd36fc4d79aa62013a90e4457212cedc75b4a63134206ad4ba903c17d8186fb5030e6163c0bc5c5791da966778d5058ec3f2fd3e
7
- data.tar.gz: 147b432faa7fed80b034e0645f3838378c0bb581f73450ab64cdf7e5117e3e15c403555194fdfc499513fe3c5348d30434186aa673dde7b6d2a443ba6c069567
6
+ metadata.gz: d802bc3b4f72b4b4427a3495e84e15fd32eab4928b171ac36f7ba58cb95c58f5e9e59df23d9b504a23a8fc72ab9e8ede4e3214d52be86a2b9ca7fb68836ad80c
7
+ data.tar.gz: ab1038b3f0703fb50281f6272b0c31fe11724cd1a602d16f8ab5c6bc592091359cdec2cdfaa5e7324548a238af0244d19f4f9ff306a0ccfbec1fd78d866afbbf
@@ -80,7 +80,7 @@ module ArelExtensions
80
80
  when ActiveSupport::Duration
81
81
  Arel.sql(object.to_i)
82
82
  when Array
83
- Arel::Nodes::Grouping.new(object.map{|r| convert_to_node(e)})
83
+ Arel::Nodes::Grouping.new(object.map{|e| convert_to_node(e)})
84
84
  else
85
85
  raise(ArgumentError, "#{object.class} cannot be converted to CONCAT arg")
86
86
  end
@@ -1,3 +1,3 @@
1
1
  module ArelExtensions
2
- VERSION = "2.0.19".freeze
2
+ VERSION = "2.0.20".freeze
3
3
  end
@@ -2,18 +2,6 @@ module ArelExtensions
2
2
  module Visitors
3
3
  Arel::Visitors.send(:remove_const,'Oracle12') if Arel::Visitors.const_defined?('Oracle12')
4
4
  Arel::Visitors.const_set('Oracle12',Class.new(Arel::Visitors::Oracle)).class_eval do
5
- def visit_Arel_Nodes_SelectStatement(o, collector)
6
- # Oracle does not allow LIMIT clause with select for update
7
- if o.limit && o.lock
8
- raise ArgumentError, <<-MSG
9
- 'Combination of limit and lock is not supported.
10
- because generated SQL statements
11
- `SELECT FOR UPDATE and FETCH FIRST n ROWS` generates ORA-02014.`
12
- MSG
13
- end
14
-
15
- super
16
- end
17
5
 
18
6
  def visit_Arel_Nodes_SelectOptions(o, collector)
19
7
  collector = maybe_visit o.offset, collector
data/version_v1.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module ArelExtensions
2
- VERSION = "1.2.22".freeze
2
+ VERSION = "1.2.23".freeze
3
3
  end
data/version_v2.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module ArelExtensions
2
- VERSION = "2.0.19".freeze
2
+ VERSION = "2.0.20".freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: arel_extensions
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.19
4
+ version: 2.0.20
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yann Azoury
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2021-01-13 00:00:00.000000000 Z
13
+ date: 2021-02-04 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: activerecord
@@ -222,7 +222,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
222
222
  - !ruby/object:Gem::Version
223
223
  version: '0'
224
224
  requirements: []
225
- rubygems_version: 3.0.6
225
+ rubygems_version: 3.1.2
226
226
  signing_key:
227
227
  specification_version: 4
228
228
  summary: Extending Arel