firebird_adapter 5.0.0 → 6.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 95410fc2940735fd9605ce6a8c04acc5df874f65b0df2c8cf016c37752a82b34
4
- data.tar.gz: c397930b77355619f7cced7b00385cae894f8e47177c5f5adaa9bc704fb8cea7
3
+ metadata.gz: d16fdcec64294ee89e80963f70014774ca1e4ebe1689c567fd8797e2aed941e4
4
+ data.tar.gz: fd636ff0a5c785e5f72cfc7feb03b84204c8528b1b87cc63b7bdff6f6fb5c140
5
5
  SHA512:
6
- metadata.gz: dc30e4ccf3636681be4eb0d1f3b17095f832ae324eab53ea077f4ed4c278bf7278534ceb6e53cffdcf76be7702bf3d5f78c145a64c078f6b221e9d98457cef4d
7
- data.tar.gz: 981a5d13280242cc2a7c8b21aa1ce46e2af6291d9874745179079930c82a9989488d12eddde27f6fad7797a9a9718bf62594a1dc36c6b7d75d4bd76a8b2bd723
6
+ metadata.gz: 513b0ecade7b01947daca7d843abbcdda4a69adc636dae2666b3a17755df083a578500e502949f94d9acfa4c04b3e7a312dea28c65f18e96c0db0f15cf7d1625
7
+ data.tar.gz: 93c436220c68e31ef6b06c11132fa1bfb7975fe3f5d34aa95aa6ba0e1970f535e3a8129d2c4acd22c49589e332daa145765b322f9bda7c94a5ff1071d6886f8c
@@ -47,7 +47,7 @@ module ActiveRecord::ConnectionAdapters::Firebird::DatabaseStatements
47
47
 
48
48
  result.close
49
49
  ActiveRecord::Result.new(fields, rows)
50
- elsif name.ends_with?(' Destroy')
50
+ elsif name.end_with?(' Destroy')
51
51
  result
52
52
  else
53
53
  ActiveRecord::Result.new([], [])
@@ -1,3 +1,5 @@
1
+ require 'active_support/core_ext/string/strip'
2
+
1
3
  module ActiveRecord::ConnectionAdapters::Firebird::SchemaStatements
2
4
 
3
5
  def tables(_name = nil)
@@ -42,8 +44,8 @@ module ActiveRecord::ConnectionAdapters::Firebird::SchemaStatements
42
44
  end
43
45
  end
44
46
 
45
- def remove_index(table_name, options = {})
46
- index_name = index_name_for_remove(table_name, options)
47
+ def remove_index(table_name, column, options = {})
48
+ index_name = index_name_for_remove(table_name, column, options)
47
49
  execute "DROP INDEX #{quote_column_name(index_name)}"
48
50
  end
49
51
 
@@ -16,24 +16,23 @@ module Arel
16
16
 
17
17
  visit_Arel_Nodes_SelectOptions(select_statement, collector)
18
18
 
19
- collector = maybe_visit o.top, collector
20
-
19
+ collector = collect_optimizer_hints(o, collector)
21
20
  collector = maybe_visit o.set_quantifier, collector
22
21
 
23
- collect_nodes_for o.projections, collector, SPACE
22
+ collect_nodes_for o.projections, collector, ' '
24
23
 
25
24
  if o.source && !o.source.empty?
26
25
  collector << ' FROM '
27
26
  collector = visit o.source, collector
28
27
  end
29
28
 
30
- collect_nodes_for o.wheres, collector, WHERE, AND
31
- collect_nodes_for o.groups, collector, GROUP_BY
29
+ collect_nodes_for o.wheres, collector, ' WHERE ', ' AND '
30
+ collect_nodes_for o.groups, collector, ' GROUP BY '
32
31
  unless o.havings.empty?
33
32
  collector << ' HAVING '
34
- inject_join o.havings, collector, AND
33
+ inject_join o.havings, collector, ' AND '
35
34
  end
36
- collect_nodes_for o.windows, collector, WINDOW
35
+ collect_nodes_for o.windows, collector, ' WINDOW '
37
36
 
38
37
  collector
39
38
  end
@@ -41,7 +40,7 @@ module Arel
41
40
  def visit_Arel_Nodes_SelectStatement o, collector
42
41
  if o.with
43
42
  collector = visit o.with, collector
44
- collector << SPACE
43
+ collector << ' '
45
44
  end
46
45
 
47
46
  collector = o.cores.inject(collector) { |c,x|
@@ -49,11 +48,11 @@ module Arel
49
48
  }
50
49
 
51
50
  unless o.orders.empty?
52
- collector << ORDER_BY
51
+ collector << ' ORDER BY '
53
52
  len = o.orders.length - 1
54
53
  o.orders.each_with_index { |x, i|
55
54
  collector = visit(x, collector)
56
- collector << COMMA unless len == i
55
+ collector << ', ' unless len == i
57
56
  }
58
57
  end
59
58
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: firebird_adapter
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.0.0
4
+ version: 6.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Fábio Rodrigues
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '5.1'
19
+ version: '6.0'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: '5.1'
26
+ version: '6.0'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: fb
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -44,14 +44,14 @@ dependencies:
44
44
  requirements:
45
45
  - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: '1.16'
47
+ version: 2.1.4
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - "~>"
53
53
  - !ruby/object:Gem::Version
54
- version: '1.16'
54
+ version: 2.1.4
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: rake
57
57
  requirement: !ruby/object:Gem::Requirement
@@ -136,7 +136,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
136
136
  requirements:
137
137
  - - "~>"
138
138
  - !ruby/object:Gem::Version
139
- version: '2.3'
139
+ version: '2.7'
140
140
  required_rubygems_version: !ruby/object:Gem::Requirement
141
141
  requirements:
142
142
  - - ">="
@@ -146,5 +146,5 @@ requirements: []
146
146
  rubygems_version: 3.0.3
147
147
  signing_key:
148
148
  specification_version: 4
149
- summary: ActiveRecord Firebird Adapter for Rails 5.
149
+ summary: ActiveRecord Firebird Adapter for Rails 6.
150
150
  test_files: []