torque-postgresql 2.2.0 → 2.2.1

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: cb3d81538edfb988d8566295fac7d055208e399d552b619d9d8b3b9234254686
4
- data.tar.gz: 7c7c62bec966085eccbdc351041a94d04788e40f84b1120d88c1673c9d0e3b3c
3
+ metadata.gz: fcb69118c9cca1afe5ef21a9ed9b4cf98e9036108b739707a1e7f65058aaaf84
4
+ data.tar.gz: d7ca85705f802c0d15c0aabca99a9ec17b8403e60e912724b609d8b93cd7bd86
5
5
  SHA512:
6
- metadata.gz: 93cf49b971a0013d3f10263917437b7a552632e62f462d43b91aaad86ec66ba10b20a014bf2bbcaa883f1c6801df423fd3d98dd8d9546bd849920bb98b743e6c
7
- data.tar.gz: 88cf63c02e13e80e48b5dfbe66e9157a52ecc8cc11410f0688e97a6c28e7f25a03adc9c7b71a45ffe9384a81debbf1a29d55363145a4ae6568c82cc9f7207a30
6
+ metadata.gz: 0a48ed549030276f9a3e4c845454eb89cf97b8d0bf3d00cd5431abd85a7317f6031e4f997e86ae3657012ca9d4578598d612a14c531247575f1d0496bc629f6e
7
+ data.tar.gz: 50a1817ef37c0c8d98a71b92500a73b420f5dc27cf9d19afc6aeb8492e3d4582b69ee9ada91b281699987cc4bb33a9d1df584219073d432299ebad53a4a29513
@@ -20,7 +20,7 @@ module Torque
20
20
  end
21
21
 
22
22
  def quote_default_expression(value, column)
23
- if column.dig(:options, :array) && value.class <= Array
23
+ if column.options.try(:[], :array) && value.class <= Array
24
24
  quote(value) + '::' + column.sql_type
25
25
  else
26
26
  super
@@ -117,7 +117,7 @@ module Torque
117
117
  # because the type mapper may add new methods to the model. This happens
118
118
  # for the given model Klass and its inheritances
119
119
  module Initializer
120
- def initialize(klass, *)
120
+ def initialize(klass, *, **)
121
121
  super
122
122
 
123
123
  klass.superclass.send(:relation) if klass.define_attribute_methods &&
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Torque
4
4
  module PostgreSQL
5
- VERSION = '2.2.0'
5
+ VERSION = '2.2.1'
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: torque-postgresql
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.2.0
4
+ version: 2.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Carlos Silva
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-09-23 00:00:00.000000000 Z
11
+ date: 2021-11-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -307,57 +307,57 @@ required_rubygems_version: !ruby/object:Gem::Requirement
307
307
  - !ruby/object:Gem::Version
308
308
  version: 1.8.11
309
309
  requirements: []
310
- rubygems_version: 3.1.2
310
+ rubygems_version: 3.2.14
311
311
  signing_key:
312
312
  specification_version: 4
313
313
  summary: ActiveRecord extension to access PostgreSQL advanced resources
314
314
  test_files:
315
- - spec/en.yml
316
- - spec/factories/authors.rb
317
- - spec/factories/comments.rb
318
- - spec/factories/item.rb
319
- - spec/factories/posts.rb
320
- - spec/factories/tags.rb
321
- - spec/factories/texts.rb
322
- - spec/factories/users.rb
323
- - spec/factories/videos.rb
324
- - spec/mocks/cache_query.rb
325
- - spec/mocks/create_table.rb
326
- - spec/models/activity.rb
327
- - spec/models/activity_book.rb
328
- - spec/models/activity_post.rb
329
315
  - spec/models/activity_post/sample.rb
316
+ - spec/models/activity.rb
330
317
  - spec/models/author.rb
331
318
  - spec/models/author_journalist.rb
332
319
  - spec/models/comment.rb
333
320
  - spec/models/course.rb
321
+ - spec/models/post.rb
322
+ - spec/models/text.rb
323
+ - spec/models/user.rb
324
+ - spec/models/activity_book.rb
325
+ - spec/models/activity_post.rb
334
326
  - spec/models/geometry.rb
335
327
  - spec/models/guest_comment.rb
336
- - spec/models/item.rb
337
- - spec/models/post.rb
338
328
  - spec/models/tag.rb
339
- - spec/models/text.rb
340
329
  - spec/models/time_keeper.rb
341
- - spec/models/user.rb
342
330
  - spec/models/video.rb
331
+ - spec/models/item.rb
343
332
  - spec/models/question.rb
344
333
  - spec/models/question_select.rb
345
- - spec/spec_helper.rb
346
- - spec/tests/arel_spec.rb
347
- - spec/tests/auxiliary_statement_spec.rb
348
- - spec/tests/belongs_to_many_spec.rb
334
+ - spec/factories/authors.rb
335
+ - spec/factories/comments.rb
336
+ - spec/factories/posts.rb
337
+ - spec/factories/tags.rb
338
+ - spec/factories/texts.rb
339
+ - spec/factories/users.rb
340
+ - spec/factories/videos.rb
341
+ - spec/factories/item.rb
342
+ - spec/tests/geometric_builder_spec.rb
343
+ - spec/tests/enum_spec.rb
344
+ - spec/tests/range_spec.rb
345
+ - spec/tests/table_inheritance_spec.rb
349
346
  - spec/tests/collector_spec.rb
350
347
  - spec/tests/distinct_on_spec.rb
351
- - spec/tests/enum_set_spec.rb
352
- - spec/tests/enum_spec.rb
353
- - spec/tests/geometric_builder_spec.rb
354
- - spec/tests/has_many_spec.rb
355
- - spec/tests/insert_all_spec.rb
356
348
  - spec/tests/interval_spec.rb
357
349
  - spec/tests/lazy_spec.rb
358
- - spec/tests/period_spec.rb
359
350
  - spec/tests/quoting_spec.rb
360
- - spec/tests/range_spec.rb
361
351
  - spec/tests/relation_spec.rb
362
- - spec/tests/table_inheritance_spec.rb
352
+ - spec/tests/auxiliary_statement_spec.rb
353
+ - spec/tests/belongs_to_many_spec.rb
354
+ - spec/tests/enum_set_spec.rb
355
+ - spec/tests/has_many_spec.rb
356
+ - spec/tests/insert_all_spec.rb
357
+ - spec/tests/arel_spec.rb
358
+ - spec/tests/period_spec.rb
359
+ - spec/mocks/cache_query.rb
360
+ - spec/mocks/create_table.rb
361
+ - spec/en.yml
362
+ - spec/spec_helper.rb
363
363
  - spec/schema.rb