where_exists 2.0.2 → 2.0.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: d9957b5787ab2fda2505560b01ffeca8f2e1d24bf0d0d38e09f4f25969a30ab6
4
- data.tar.gz: 4718917be7477f54afb0e322a588adadb4d2d375c6b7938d922b89ef0629ea27
3
+ metadata.gz: 15979f86fa103995db4baecef959d5b401f32471a1aae8fcc126191f8938b1b9
4
+ data.tar.gz: 74ea2303b2851d8c07041cb33f06493b23db39be619c7a17882fc84e33473632
5
5
  SHA512:
6
- metadata.gz: 839de9969500c67df98512ee5f5043b4d34a8e337263e3dcc79dd081e6730a0b1bb6bce3c632a764372d6dabe143f9b3c7ffcbc55092f55727d8746d40eafaf3
7
- data.tar.gz: a4c38490f6caf945889d2f92075e1069cef92706524c299bd4d800c4b856fd62fda39738539fee816daa955a5ef3908e49c7aed9ed4e3be97af6bf8c419f3b07
6
+ metadata.gz: fca8f47b863efa329a1a9fed4d66d5c8319daa1b370eb5e0618dd06c61ef224641372c2eb339c9af3ce36f78669b337fcca7a78363cdcc752fe868bc9021ca8e
7
+ data.tar.gz: 7e7bc8a06cc1c3aa3d16b00fc9fd2919cdb0986a93b7d2643cf25798f705d31db7b84790939b8b89cd0ff945e37aac7ea30052701d3c10588fa8b3b4bc864e51
@@ -1,3 +1,3 @@
1
1
  module WhereExists
2
- VERSION = "2.0.2"
2
+ VERSION = "2.0.3"
3
3
  end
data/lib/where_exists.rb CHANGED
@@ -48,7 +48,7 @@ module WhereExists
48
48
  rescue
49
49
  inspection = association.macro
50
50
  end
51
- raise ArgumentError.new("where_exists: not supported association #{inspection}")
51
+ raise ArgumentError.new("where_exists: not supported association - #{inspection}")
52
52
  end
53
53
 
54
54
  queries_sql =
@@ -121,7 +121,7 @@ module WhereExists
121
121
  rescue
122
122
  inspection = association.macro
123
123
  end
124
- raise ArgumentError.new("where_exists: not supported association #{inspection}")
124
+ raise ArgumentError.new("where_exists: not supported association - #{inspection}")
125
125
  end
126
126
  end
127
127
 
data/test/test_helper.rb CHANGED
@@ -5,10 +5,16 @@ Bundler.require(:default)
5
5
  require 'active_record'
6
6
  require File.dirname(__FILE__) + '/../lib/where_exists'
7
7
 
8
- ActiveRecord::Base.default_timezone = :utc
8
+ # Rails < 7.1
9
+ if ActiveRecord::Base.respond_to?(:default_timezone=)
10
+ ActiveRecord::Base.default_timezone = :utc
11
+ else
12
+ ActiveRecord.default_timezone = :utc
13
+ end
14
+
9
15
  ActiveRecord::Base.time_zone_aware_attributes = true
10
16
 
11
17
  ActiveRecord::Base.establish_connection(
12
18
  :adapter => 'sqlite3',
13
- :database => File.dirname(__FILE__) + "/db/test.db"
19
+ :database => File.dirname(__FILE__) + '/db/test.db'
14
20
  )
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: where_exists
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.2
4
+ version: 2.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Eugene Zolotarev
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-10-31 00:00:00.000000000 Z
11
+ date: 2023-10-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord
@@ -17,7 +17,7 @@ dependencies:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
19
  version: '5.2'
20
- - - "<"
20
+ - - "<="
21
21
  - !ruby/object:Gem::Version
22
22
  version: '7.1'
23
23
  type: :runtime
@@ -27,7 +27,7 @@ dependencies:
27
27
  - - ">="
28
28
  - !ruby/object:Gem::Version
29
29
  version: '5.2'
30
- - - "<"
30
+ - - "<="
31
31
  - !ruby/object:Gem::Version
32
32
  version: '7.1'
33
33
  - !ruby/object:Gem::Dependency
@@ -124,7 +124,7 @@ homepage: http://github.com/eugzol/where_exists
124
124
  licenses:
125
125
  - MIT
126
126
  metadata: {}
127
- post_install_message:
127
+ post_install_message:
128
128
  rdoc_options: []
129
129
  require_paths:
130
130
  - lib
@@ -139,16 +139,16 @@ required_rubygems_version: !ruby/object:Gem::Requirement
139
139
  - !ruby/object:Gem::Version
140
140
  version: '0'
141
141
  requirements: []
142
- rubygems_version: 3.1.6
143
- signing_key:
142
+ rubygems_version: 3.4.6
143
+ signing_key:
144
144
  specification_version: 4
145
145
  summary: "#where_exists extension of ActiveRecord"
146
146
  test_files:
147
- - test/documentation_test.rb
148
147
  - test/belongs_to_polymorphic_test.rb
149
148
  - test/belongs_to_test.rb
149
+ - test/documentation_test.rb
150
+ - test/has_and_belongs_to_many.rb
150
151
  - test/has_many_polymorphic_test.rb
152
+ - test/has_many_test.rb
151
153
  - test/has_many_through_test.rb
152
154
  - test/test_helper.rb
153
- - test/has_and_belongs_to_many.rb
154
- - test/has_many_test.rb