where_exists 2.0.2 → 2.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/where_exists/version.rb +1 -1
- data/lib/where_exists.rb +2 -2
- data/test/test_helper.rb +8 -2
- metadata +11 -11
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2672c87a3629ce64f83c523c9bf2173c7e774ca166cfae0dab02f4c34b19b784
|
4
|
+
data.tar.gz: 558b92ba576527a014c8dfa15995065c63d472a5d2276527591ed1b6d2200323
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 697c4c5bec923c07b7c5e93bedea35f4b562e8c324b48b35e0369d8cf34161e97ebb94d00d0ae43b167b89b8bf37b187f81bdc7a5600ecf3d342ff6e2a2ca2d4
|
7
|
+
data.tar.gz: 59bf0c84791ffc072773b042600824bb317e6beb20f479b9df31a7bf1b6dd4cb51034bd97c52137102e4704f049efd7b8f20cf14ea25770560f3d65847053d6e
|
data/lib/where_exists/version.rb
CHANGED
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
|
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
|
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
|
-
|
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__) +
|
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.
|
4
|
+
version: 2.0.4
|
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:
|
11
|
+
date: 2023-10-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activerecord
|
@@ -19,7 +19,7 @@ dependencies:
|
|
19
19
|
version: '5.2'
|
20
20
|
- - "<"
|
21
21
|
- !ruby/object:Gem::Version
|
22
|
-
version: '
|
22
|
+
version: '8'
|
23
23
|
type: :runtime
|
24
24
|
prerelease: false
|
25
25
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -29,7 +29,7 @@ dependencies:
|
|
29
29
|
version: '5.2'
|
30
30
|
- - "<"
|
31
31
|
- !ruby/object:Gem::Version
|
32
|
-
version: '
|
32
|
+
version: '8'
|
33
33
|
- !ruby/object:Gem::Dependency
|
34
34
|
name: sqlite3
|
35
35
|
requirement: !ruby/object:Gem::Requirement
|
@@ -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.
|
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
|