ransack 2.3.0 → 2.4.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/FUNDING.yml +3 -0
- data/.github/SECURITY.md +12 -0
- data/.github/workflows/cronjob.yml +105 -0
- data/.github/workflows/rubocop.yml +20 -0
- data/.github/workflows/test.yml +154 -0
- data/.rubocop.yml +44 -0
- data/CHANGELOG.md +31 -1
- data/CONTRIBUTING.md +13 -11
- data/Gemfile +19 -5
- data/README.md +119 -54
- data/bug_report_templates/test-ransack-scope-and-column-same-name.rb +78 -0
- data/bug_report_templates/test-ransacker-arel-present-predicate.rb +71 -0
- data/docs/img/create_release.png +0 -0
- data/docs/release_process.md +20 -0
- data/{polyamorous/lib/polyamorous/activerecord_5.2.1_ruby_2 → lib/polyamorous/activerecord_5.2_ruby_2}/join_association.rb +4 -2
- data/{polyamorous/lib/polyamorous/activerecord_5.2.1_ruby_2 → lib/polyamorous/activerecord_5.2_ruby_2}/join_dependency.rb +0 -2
- data/lib/polyamorous/activerecord_5.2_ruby_2/reflection.rb +11 -0
- data/lib/polyamorous/activerecord_6.0_ruby_2/join_association.rb +1 -0
- data/{polyamorous/lib → lib}/polyamorous/activerecord_6.0_ruby_2/join_dependency.rb +0 -1
- data/lib/polyamorous/activerecord_6.0_ruby_2/reflection.rb +1 -0
- data/lib/polyamorous/activerecord_6.1_ruby_2/join_association.rb +74 -0
- data/lib/polyamorous/activerecord_6.1_ruby_2/join_dependency.rb +93 -0
- data/{polyamorous/lib → lib}/polyamorous/activerecord_6.1_ruby_2/reflection.rb +0 -1
- data/lib/polyamorous/activerecord_6.2_ruby_2/join_association.rb +1 -0
- data/lib/polyamorous/activerecord_6.2_ruby_2/join_dependency.rb +1 -0
- data/lib/polyamorous/activerecord_6.2_ruby_2/reflection.rb +1 -0
- data/{polyamorous/lib → lib}/polyamorous/join.rb +0 -0
- data/{polyamorous/lib → lib/polyamorous}/polyamorous.rb +3 -8
- data/{polyamorous/lib → lib}/polyamorous/swapping_reflection_class.rb +0 -0
- data/{polyamorous/lib → lib}/polyamorous/tree_node.rb +0 -0
- data/lib/ransack.rb +3 -4
- data/lib/ransack/adapters/active_record/base.rb +4 -0
- data/lib/ransack/adapters/active_record/context.rb +51 -80
- data/lib/ransack/adapters/active_record/ransack/constants.rb +13 -1
- data/lib/ransack/adapters/active_record/ransack/context.rb +2 -6
- data/lib/ransack/adapters/active_record/ransack/nodes/condition.rb +11 -4
- data/lib/ransack/configuration.rb +17 -1
- data/lib/ransack/constants.rb +2 -5
- data/lib/ransack/helpers.rb +1 -1
- data/lib/ransack/helpers/form_builder.rb +8 -14
- data/lib/ransack/locale/sk.yml +70 -0
- data/lib/ransack/nodes/attribute.rb +1 -1
- data/lib/ransack/nodes/condition.rb +7 -1
- data/lib/ransack/nodes/grouping.rb +1 -1
- data/lib/ransack/nodes/sort.rb +1 -1
- data/lib/ransack/nodes/value.rb +1 -1
- data/lib/ransack/predicate.rb +2 -1
- data/lib/ransack/search.rb +3 -1
- data/lib/ransack/translate.rb +3 -3
- data/lib/ransack/version.rb +1 -1
- data/ransack.gemspec +8 -23
- data/spec/blueprints/articles.rb +1 -1
- data/spec/blueprints/comments.rb +1 -1
- data/spec/blueprints/notes.rb +1 -1
- data/spec/blueprints/tags.rb +1 -1
- data/spec/console.rb +5 -5
- data/spec/helpers/polyamorous_helper.rb +1 -10
- data/spec/helpers/ransack_helper.rb +1 -1
- data/spec/{ransack → polyamorous}/join_association_spec.rb +7 -0
- data/spec/{ransack → polyamorous}/join_dependency_spec.rb +0 -0
- data/spec/{ransack → polyamorous}/join_spec.rb +0 -0
- data/spec/ransack/adapters/active_record/base_spec.rb +9 -6
- data/spec/ransack/adapters/active_record/context_spec.rb +19 -18
- data/spec/ransack/configuration_spec.rb +10 -0
- data/spec/ransack/helpers/form_helper_spec.rb +16 -16
- data/spec/ransack/nodes/grouping_spec.rb +2 -2
- data/spec/ransack/predicate_spec.rb +39 -1
- data/spec/ransack/search_spec.rb +105 -17
- data/spec/spec_helper.rb +9 -5
- data/spec/support/schema.rb +8 -3
- metadata +41 -177
- data/.travis.yml +0 -49
- data/polyamorous/lib/polyamorous/activerecord_5.0_ruby_2/join_association.rb +0 -2
- data/polyamorous/lib/polyamorous/activerecord_5.0_ruby_2/join_dependency.rb +0 -2
- data/polyamorous/lib/polyamorous/activerecord_5.1_ruby_2/join_association.rb +0 -31
- data/polyamorous/lib/polyamorous/activerecord_5.1_ruby_2/join_dependency.rb +0 -112
- data/polyamorous/lib/polyamorous/activerecord_5.2.0_ruby_2/join_association.rb +0 -31
- data/polyamorous/lib/polyamorous/activerecord_5.2.0_ruby_2/join_dependency.rb +0 -112
- data/polyamorous/lib/polyamorous/activerecord_5.2.0_ruby_2/reflection.rb +0 -12
- data/polyamorous/lib/polyamorous/activerecord_5.2.1_ruby_2/reflection.rb +0 -2
- data/polyamorous/lib/polyamorous/activerecord_6.0_ruby_2/join_association.rb +0 -2
- data/polyamorous/lib/polyamorous/activerecord_6.0_ruby_2/reflection.rb +0 -2
- data/polyamorous/lib/polyamorous/activerecord_6.1_ruby_2/join_association.rb +0 -2
- data/polyamorous/lib/polyamorous/activerecord_6.1_ruby_2/join_dependency.rb +0 -2
- data/polyamorous/lib/polyamorous/version.rb +0 -3
- data/polyamorous/polyamorous.gemspec +0 -35
data/spec/spec_helper.rb
CHANGED
@@ -1,7 +1,10 @@
|
|
1
1
|
require 'machinist/active_record'
|
2
|
+
require 'polyamorous/polyamorous'
|
2
3
|
require 'sham'
|
3
4
|
require 'faker'
|
4
5
|
require 'ransack'
|
6
|
+
require 'action_controller'
|
7
|
+
require 'ransack/helpers'
|
5
8
|
require 'pry'
|
6
9
|
require 'simplecov'
|
7
10
|
require 'byebug'
|
@@ -14,16 +17,17 @@ I18n.load_path += Dir[File.join(File.dirname(__FILE__), 'support', '*.yml')]
|
|
14
17
|
Dir[File.expand_path('../{helpers,support,blueprints}/*.rb', __FILE__)]
|
15
18
|
.each { |f| require f }
|
16
19
|
|
20
|
+
Faker::Config.random = Random.new(0)
|
17
21
|
Sham.define do
|
18
22
|
name { Faker::Name.name }
|
19
23
|
title { Faker::Lorem.sentence }
|
20
24
|
body { Faker::Lorem.paragraph }
|
21
25
|
salary { |index| 30000 + (index * 1000) }
|
22
|
-
tag_name { Faker::Lorem.words(3).join(' ') }
|
23
|
-
note { Faker::Lorem.words(7).join(' ') }
|
24
|
-
only_admin { Faker::Lorem.words(3).join(' ') }
|
25
|
-
only_search { Faker::Lorem.words(3).join(' ') }
|
26
|
-
only_sort { Faker::Lorem.words(3).join(' ') }
|
26
|
+
tag_name { Faker::Lorem.words(number: 3).join(' ') }
|
27
|
+
note { Faker::Lorem.words(number: 7).join(' ') }
|
28
|
+
only_admin { Faker::Lorem.words(number: 3).join(' ') }
|
29
|
+
only_search { Faker::Lorem.words(number: 3).join(' ') }
|
30
|
+
only_sort { Faker::Lorem.words(number: 3).join(' ') }
|
27
31
|
notable_id { |id| id }
|
28
32
|
end
|
29
33
|
|
data/spec/support/schema.rb
CHANGED
@@ -6,6 +6,8 @@ when 'mysql', 'mysql2'
|
|
6
6
|
ActiveRecord::Base.establish_connection(
|
7
7
|
adapter: 'mysql2',
|
8
8
|
database: 'ransack',
|
9
|
+
username: ENV.fetch("MYSQL_USERNAME") { "root" },
|
10
|
+
password: ENV.fetch("MYSQL_PASSWORD") { "" },
|
9
11
|
encoding: 'utf8'
|
10
12
|
)
|
11
13
|
when 'pg', 'postgres', 'postgresql'
|
@@ -13,7 +15,9 @@ when 'pg', 'postgres', 'postgresql'
|
|
13
15
|
ActiveRecord::Base.establish_connection(
|
14
16
|
adapter: 'postgresql',
|
15
17
|
database: 'ransack',
|
16
|
-
|
18
|
+
username: ENV.fetch("DATABASE_USERNAME") { "postgres" },
|
19
|
+
password: ENV.fetch("DATABASE_PASSWORD") { "" },
|
20
|
+
host: ENV.fetch("DATABASE_HOST") { "localhost" },
|
17
21
|
min_messages: 'warning'
|
18
22
|
)
|
19
23
|
else
|
@@ -83,7 +87,6 @@ class Person < ActiveRecord::Base
|
|
83
87
|
)
|
84
88
|
end
|
85
89
|
|
86
|
-
|
87
90
|
ransacker :sql_literal_id do
|
88
91
|
Arel.sql('people.id')
|
89
92
|
end
|
@@ -106,7 +109,6 @@ class Person < ActiveRecord::Base
|
|
106
109
|
Arel.sql(query)
|
107
110
|
end
|
108
111
|
|
109
|
-
|
110
112
|
def self.ransackable_attributes(auth_object = nil)
|
111
113
|
if auth_object == :admin
|
112
114
|
super - ['only_sort']
|
@@ -162,6 +164,8 @@ end
|
|
162
164
|
class Comment < ActiveRecord::Base
|
163
165
|
belongs_to :article
|
164
166
|
belongs_to :person
|
167
|
+
|
168
|
+
default_scope { where(disabled: false) }
|
165
169
|
end
|
166
170
|
|
167
171
|
class Tag < ActiveRecord::Base
|
@@ -207,6 +211,7 @@ module Schema
|
|
207
211
|
t.integer :article_id
|
208
212
|
t.integer :person_id
|
209
213
|
t.text :body
|
214
|
+
t.boolean :disabled, default: false
|
210
215
|
end
|
211
216
|
|
212
217
|
create_table :tags, force: true do |t|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ransack
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.4.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ernie Miller
|
@@ -11,50 +11,36 @@ authors:
|
|
11
11
|
autorequire:
|
12
12
|
bindir: bin
|
13
13
|
cert_chain: []
|
14
|
-
date:
|
14
|
+
date: 2021-01-23 00:00:00.000000000 Z
|
15
15
|
dependencies:
|
16
|
-
- !ruby/object:Gem::Dependency
|
17
|
-
name: actionpack
|
18
|
-
requirement: !ruby/object:Gem::Requirement
|
19
|
-
requirements:
|
20
|
-
- - ">="
|
21
|
-
- !ruby/object:Gem::Version
|
22
|
-
version: '5.0'
|
23
|
-
type: :runtime
|
24
|
-
prerelease: false
|
25
|
-
version_requirements: !ruby/object:Gem::Requirement
|
26
|
-
requirements:
|
27
|
-
- - ">="
|
28
|
-
- !ruby/object:Gem::Version
|
29
|
-
version: '5.0'
|
30
16
|
- !ruby/object:Gem::Dependency
|
31
17
|
name: activerecord
|
32
18
|
requirement: !ruby/object:Gem::Requirement
|
33
19
|
requirements:
|
34
20
|
- - ">="
|
35
21
|
- !ruby/object:Gem::Version
|
36
|
-
version:
|
22
|
+
version: 5.2.4
|
37
23
|
type: :runtime
|
38
24
|
prerelease: false
|
39
25
|
version_requirements: !ruby/object:Gem::Requirement
|
40
26
|
requirements:
|
41
27
|
- - ">="
|
42
28
|
- !ruby/object:Gem::Version
|
43
|
-
version:
|
29
|
+
version: 5.2.4
|
44
30
|
- !ruby/object:Gem::Dependency
|
45
31
|
name: activesupport
|
46
32
|
requirement: !ruby/object:Gem::Requirement
|
47
33
|
requirements:
|
48
34
|
- - ">="
|
49
35
|
- !ruby/object:Gem::Version
|
50
|
-
version:
|
36
|
+
version: 5.2.4
|
51
37
|
type: :runtime
|
52
38
|
prerelease: false
|
53
39
|
version_requirements: !ruby/object:Gem::Requirement
|
54
40
|
requirements:
|
55
41
|
- - ">="
|
56
42
|
- !ruby/object:Gem::Version
|
57
|
-
version:
|
43
|
+
version: 5.2.4
|
58
44
|
- !ruby/object:Gem::Dependency
|
59
45
|
name: i18n
|
60
46
|
requirement: !ruby/object:Gem::Requirement
|
@@ -69,132 +55,6 @@ dependencies:
|
|
69
55
|
- - ">="
|
70
56
|
- !ruby/object:Gem::Version
|
71
57
|
version: '0'
|
72
|
-
- !ruby/object:Gem::Dependency
|
73
|
-
name: polyamorous
|
74
|
-
requirement: !ruby/object:Gem::Requirement
|
75
|
-
requirements:
|
76
|
-
- - '='
|
77
|
-
- !ruby/object:Gem::Version
|
78
|
-
version: 2.3.0
|
79
|
-
type: :runtime
|
80
|
-
prerelease: false
|
81
|
-
version_requirements: !ruby/object:Gem::Requirement
|
82
|
-
requirements:
|
83
|
-
- - '='
|
84
|
-
- !ruby/object:Gem::Version
|
85
|
-
version: 2.3.0
|
86
|
-
- !ruby/object:Gem::Dependency
|
87
|
-
name: rspec
|
88
|
-
requirement: !ruby/object:Gem::Requirement
|
89
|
-
requirements:
|
90
|
-
- - "~>"
|
91
|
-
- !ruby/object:Gem::Version
|
92
|
-
version: '3'
|
93
|
-
type: :development
|
94
|
-
prerelease: false
|
95
|
-
version_requirements: !ruby/object:Gem::Requirement
|
96
|
-
requirements:
|
97
|
-
- - "~>"
|
98
|
-
- !ruby/object:Gem::Version
|
99
|
-
version: '3'
|
100
|
-
- !ruby/object:Gem::Dependency
|
101
|
-
name: machinist
|
102
|
-
requirement: !ruby/object:Gem::Requirement
|
103
|
-
requirements:
|
104
|
-
- - "~>"
|
105
|
-
- !ruby/object:Gem::Version
|
106
|
-
version: 1.0.6
|
107
|
-
type: :development
|
108
|
-
prerelease: false
|
109
|
-
version_requirements: !ruby/object:Gem::Requirement
|
110
|
-
requirements:
|
111
|
-
- - "~>"
|
112
|
-
- !ruby/object:Gem::Version
|
113
|
-
version: 1.0.6
|
114
|
-
- !ruby/object:Gem::Dependency
|
115
|
-
name: faker
|
116
|
-
requirement: !ruby/object:Gem::Requirement
|
117
|
-
requirements:
|
118
|
-
- - "~>"
|
119
|
-
- !ruby/object:Gem::Version
|
120
|
-
version: 0.9.5
|
121
|
-
type: :development
|
122
|
-
prerelease: false
|
123
|
-
version_requirements: !ruby/object:Gem::Requirement
|
124
|
-
requirements:
|
125
|
-
- - "~>"
|
126
|
-
- !ruby/object:Gem::Version
|
127
|
-
version: 0.9.5
|
128
|
-
- !ruby/object:Gem::Dependency
|
129
|
-
name: sqlite3
|
130
|
-
requirement: !ruby/object:Gem::Requirement
|
131
|
-
requirements:
|
132
|
-
- - "~>"
|
133
|
-
- !ruby/object:Gem::Version
|
134
|
-
version: 1.4.1
|
135
|
-
type: :development
|
136
|
-
prerelease: false
|
137
|
-
version_requirements: !ruby/object:Gem::Requirement
|
138
|
-
requirements:
|
139
|
-
- - "~>"
|
140
|
-
- !ruby/object:Gem::Version
|
141
|
-
version: 1.4.1
|
142
|
-
- !ruby/object:Gem::Dependency
|
143
|
-
name: pg
|
144
|
-
requirement: !ruby/object:Gem::Requirement
|
145
|
-
requirements:
|
146
|
-
- - "~>"
|
147
|
-
- !ruby/object:Gem::Version
|
148
|
-
version: '0.21'
|
149
|
-
type: :development
|
150
|
-
prerelease: false
|
151
|
-
version_requirements: !ruby/object:Gem::Requirement
|
152
|
-
requirements:
|
153
|
-
- - "~>"
|
154
|
-
- !ruby/object:Gem::Version
|
155
|
-
version: '0.21'
|
156
|
-
- !ruby/object:Gem::Dependency
|
157
|
-
name: mysql2
|
158
|
-
requirement: !ruby/object:Gem::Requirement
|
159
|
-
requirements:
|
160
|
-
- - '='
|
161
|
-
- !ruby/object:Gem::Version
|
162
|
-
version: 0.3.20
|
163
|
-
type: :development
|
164
|
-
prerelease: false
|
165
|
-
version_requirements: !ruby/object:Gem::Requirement
|
166
|
-
requirements:
|
167
|
-
- - '='
|
168
|
-
- !ruby/object:Gem::Version
|
169
|
-
version: 0.3.20
|
170
|
-
- !ruby/object:Gem::Dependency
|
171
|
-
name: pry
|
172
|
-
requirement: !ruby/object:Gem::Requirement
|
173
|
-
requirements:
|
174
|
-
- - '='
|
175
|
-
- !ruby/object:Gem::Version
|
176
|
-
version: '0.10'
|
177
|
-
type: :development
|
178
|
-
prerelease: false
|
179
|
-
version_requirements: !ruby/object:Gem::Requirement
|
180
|
-
requirements:
|
181
|
-
- - '='
|
182
|
-
- !ruby/object:Gem::Version
|
183
|
-
version: '0.10'
|
184
|
-
- !ruby/object:Gem::Dependency
|
185
|
-
name: byebug
|
186
|
-
requirement: !ruby/object:Gem::Requirement
|
187
|
-
requirements:
|
188
|
-
- - ">="
|
189
|
-
- !ruby/object:Gem::Version
|
190
|
-
version: '0'
|
191
|
-
type: :development
|
192
|
-
prerelease: false
|
193
|
-
version_requirements: !ruby/object:Gem::Requirement
|
194
|
-
requirements:
|
195
|
-
- - ">="
|
196
|
-
- !ruby/object:Gem::Version
|
197
|
-
version: '0'
|
198
58
|
description: Ransack is the successor to the MetaSearch gem. It improves and expands
|
199
59
|
upon MetaSearch's functionality, but does not have a 100%-compatible API.
|
200
60
|
email:
|
@@ -206,14 +66,39 @@ executables: []
|
|
206
66
|
extensions: []
|
207
67
|
extra_rdoc_files: []
|
208
68
|
files:
|
69
|
+
- ".github/FUNDING.yml"
|
70
|
+
- ".github/SECURITY.md"
|
71
|
+
- ".github/workflows/cronjob.yml"
|
72
|
+
- ".github/workflows/rubocop.yml"
|
73
|
+
- ".github/workflows/test.yml"
|
209
74
|
- ".gitignore"
|
210
|
-
- ".
|
75
|
+
- ".rubocop.yml"
|
211
76
|
- CHANGELOG.md
|
212
77
|
- CONTRIBUTING.md
|
213
78
|
- Gemfile
|
214
79
|
- LICENSE
|
215
80
|
- README.md
|
216
81
|
- Rakefile
|
82
|
+
- bug_report_templates/test-ransack-scope-and-column-same-name.rb
|
83
|
+
- bug_report_templates/test-ransacker-arel-present-predicate.rb
|
84
|
+
- docs/img/create_release.png
|
85
|
+
- docs/release_process.md
|
86
|
+
- lib/polyamorous/activerecord_5.2_ruby_2/join_association.rb
|
87
|
+
- lib/polyamorous/activerecord_5.2_ruby_2/join_dependency.rb
|
88
|
+
- lib/polyamorous/activerecord_5.2_ruby_2/reflection.rb
|
89
|
+
- lib/polyamorous/activerecord_6.0_ruby_2/join_association.rb
|
90
|
+
- lib/polyamorous/activerecord_6.0_ruby_2/join_dependency.rb
|
91
|
+
- lib/polyamorous/activerecord_6.0_ruby_2/reflection.rb
|
92
|
+
- lib/polyamorous/activerecord_6.1_ruby_2/join_association.rb
|
93
|
+
- lib/polyamorous/activerecord_6.1_ruby_2/join_dependency.rb
|
94
|
+
- lib/polyamorous/activerecord_6.1_ruby_2/reflection.rb
|
95
|
+
- lib/polyamorous/activerecord_6.2_ruby_2/join_association.rb
|
96
|
+
- lib/polyamorous/activerecord_6.2_ruby_2/join_dependency.rb
|
97
|
+
- lib/polyamorous/activerecord_6.2_ruby_2/reflection.rb
|
98
|
+
- lib/polyamorous/join.rb
|
99
|
+
- lib/polyamorous/polyamorous.rb
|
100
|
+
- lib/polyamorous/swapping_reflection_class.rb
|
101
|
+
- lib/polyamorous/tree_node.rb
|
217
102
|
- lib/ransack.rb
|
218
103
|
- lib/ransack/adapters.rb
|
219
104
|
- lib/ransack/adapters/active_record.rb
|
@@ -251,6 +136,7 @@ files:
|
|
251
136
|
- lib/ransack/locale/pt-BR.yml
|
252
137
|
- lib/ransack/locale/ro.yml
|
253
138
|
- lib/ransack/locale/ru.yml
|
139
|
+
- lib/ransack/locale/sk.yml
|
254
140
|
- lib/ransack/locale/tr.yml
|
255
141
|
- lib/ransack/locale/zh-CN.yml
|
256
142
|
- lib/ransack/locale/zh-TW.yml
|
@@ -275,28 +161,6 @@ files:
|
|
275
161
|
- logo/ransack-v.svg
|
276
162
|
- logo/ransack.png
|
277
163
|
- logo/ransack.svg
|
278
|
-
- polyamorous/lib/polyamorous.rb
|
279
|
-
- polyamorous/lib/polyamorous/activerecord_5.0_ruby_2/join_association.rb
|
280
|
-
- polyamorous/lib/polyamorous/activerecord_5.0_ruby_2/join_dependency.rb
|
281
|
-
- polyamorous/lib/polyamorous/activerecord_5.1_ruby_2/join_association.rb
|
282
|
-
- polyamorous/lib/polyamorous/activerecord_5.1_ruby_2/join_dependency.rb
|
283
|
-
- polyamorous/lib/polyamorous/activerecord_5.2.0_ruby_2/join_association.rb
|
284
|
-
- polyamorous/lib/polyamorous/activerecord_5.2.0_ruby_2/join_dependency.rb
|
285
|
-
- polyamorous/lib/polyamorous/activerecord_5.2.0_ruby_2/reflection.rb
|
286
|
-
- polyamorous/lib/polyamorous/activerecord_5.2.1_ruby_2/join_association.rb
|
287
|
-
- polyamorous/lib/polyamorous/activerecord_5.2.1_ruby_2/join_dependency.rb
|
288
|
-
- polyamorous/lib/polyamorous/activerecord_5.2.1_ruby_2/reflection.rb
|
289
|
-
- polyamorous/lib/polyamorous/activerecord_6.0_ruby_2/join_association.rb
|
290
|
-
- polyamorous/lib/polyamorous/activerecord_6.0_ruby_2/join_dependency.rb
|
291
|
-
- polyamorous/lib/polyamorous/activerecord_6.0_ruby_2/reflection.rb
|
292
|
-
- polyamorous/lib/polyamorous/activerecord_6.1_ruby_2/join_association.rb
|
293
|
-
- polyamorous/lib/polyamorous/activerecord_6.1_ruby_2/join_dependency.rb
|
294
|
-
- polyamorous/lib/polyamorous/activerecord_6.1_ruby_2/reflection.rb
|
295
|
-
- polyamorous/lib/polyamorous/join.rb
|
296
|
-
- polyamorous/lib/polyamorous/swapping_reflection_class.rb
|
297
|
-
- polyamorous/lib/polyamorous/tree_node.rb
|
298
|
-
- polyamorous/lib/polyamorous/version.rb
|
299
|
-
- polyamorous/polyamorous.gemspec
|
300
164
|
- ransack.gemspec
|
301
165
|
- spec/blueprints/articles.rb
|
302
166
|
- spec/blueprints/comments.rb
|
@@ -306,14 +170,14 @@ files:
|
|
306
170
|
- spec/console.rb
|
307
171
|
- spec/helpers/polyamorous_helper.rb
|
308
172
|
- spec/helpers/ransack_helper.rb
|
173
|
+
- spec/polyamorous/join_association_spec.rb
|
174
|
+
- spec/polyamorous/join_dependency_spec.rb
|
175
|
+
- spec/polyamorous/join_spec.rb
|
309
176
|
- spec/ransack/adapters/active_record/base_spec.rb
|
310
177
|
- spec/ransack/adapters/active_record/context_spec.rb
|
311
178
|
- spec/ransack/configuration_spec.rb
|
312
179
|
- spec/ransack/helpers/form_builder_spec.rb
|
313
180
|
- spec/ransack/helpers/form_helper_spec.rb
|
314
|
-
- spec/ransack/join_association_spec.rb
|
315
|
-
- spec/ransack/join_dependency_spec.rb
|
316
|
-
- spec/ransack/join_spec.rb
|
317
181
|
- spec/ransack/nodes/condition_spec.rb
|
318
182
|
- spec/ransack/nodes/grouping_spec.rb
|
319
183
|
- spec/ransack/predicate_spec.rb
|
@@ -334,14 +198,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
334
198
|
requirements:
|
335
199
|
- - ">="
|
336
200
|
- !ruby/object:Gem::Version
|
337
|
-
version: '
|
201
|
+
version: '2.6'
|
338
202
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
339
203
|
requirements:
|
340
204
|
- - ">="
|
341
205
|
- !ruby/object:Gem::Version
|
342
206
|
version: '0'
|
343
207
|
requirements: []
|
344
|
-
rubygems_version: 3.0.
|
208
|
+
rubygems_version: 3.0.3
|
345
209
|
signing_key:
|
346
210
|
specification_version: 4
|
347
211
|
summary: Object-based searching for Active Record and Mongoid (currently).
|
@@ -354,14 +218,14 @@ test_files:
|
|
354
218
|
- spec/console.rb
|
355
219
|
- spec/helpers/polyamorous_helper.rb
|
356
220
|
- spec/helpers/ransack_helper.rb
|
221
|
+
- spec/polyamorous/join_association_spec.rb
|
222
|
+
- spec/polyamorous/join_dependency_spec.rb
|
223
|
+
- spec/polyamorous/join_spec.rb
|
357
224
|
- spec/ransack/adapters/active_record/base_spec.rb
|
358
225
|
- spec/ransack/adapters/active_record/context_spec.rb
|
359
226
|
- spec/ransack/configuration_spec.rb
|
360
227
|
- spec/ransack/helpers/form_builder_spec.rb
|
361
228
|
- spec/ransack/helpers/form_helper_spec.rb
|
362
|
-
- spec/ransack/join_association_spec.rb
|
363
|
-
- spec/ransack/join_dependency_spec.rb
|
364
|
-
- spec/ransack/join_spec.rb
|
365
229
|
- spec/ransack/nodes/condition_spec.rb
|
366
230
|
- spec/ransack/nodes/grouping_spec.rb
|
367
231
|
- spec/ransack/predicate_spec.rb
|
data/.travis.yml
DELETED
@@ -1,49 +0,0 @@
|
|
1
|
-
language: ruby
|
2
|
-
|
3
|
-
sudo: false
|
4
|
-
|
5
|
-
rvm:
|
6
|
-
- 2.6.0
|
7
|
-
|
8
|
-
services:
|
9
|
-
- mysql
|
10
|
-
|
11
|
-
env:
|
12
|
-
- RAILS=6-0-stable DB=sqlite3
|
13
|
-
- RAILS=6-0-stable DB=mysql
|
14
|
-
- RAILS=6-0-stable DB=postgres
|
15
|
-
|
16
|
-
- RAILS=v6.0.0 DB=sqlite3
|
17
|
-
- RAILS=v6.0.0 DB=mysql
|
18
|
-
- RAILS=v6.0.0 DB=postgres
|
19
|
-
|
20
|
-
- RAILS=5-2-stable DB=sqlite3
|
21
|
-
- RAILS=5-2-stable DB=mysql
|
22
|
-
- RAILS=5-2-stable DB=postgres
|
23
|
-
|
24
|
-
- RAILS=v5.2.1 DB=sqlite3
|
25
|
-
- RAILS=v5.2.1 DB=mysql
|
26
|
-
- RAILS=v5.2.1 DB=postgres
|
27
|
-
|
28
|
-
- RAILS=v5.2.0 DB=sqlite3
|
29
|
-
- RAILS=v5.2.0 DB=mysql
|
30
|
-
- RAILS=v5.2.0 DB=postgres
|
31
|
-
|
32
|
-
- RAILS=5-1-stable DB=sqlite3
|
33
|
-
- RAILS=5-1-stable DB=mysql
|
34
|
-
- RAILS=5-1-stable DB=postgres
|
35
|
-
|
36
|
-
matrix:
|
37
|
-
allow_failures:
|
38
|
-
- env: RAILS=5-2-stable DB=sqlite3
|
39
|
-
- env: RAILS=5-2-stable DB=mysql
|
40
|
-
- env: RAILS=5-2-stable DB=postgres
|
41
|
-
before_script:
|
42
|
-
- mysql -e 'create database ransack collate utf8_general_ci;'
|
43
|
-
- mysql -e 'use ransack;show variables like "%character%";show variables like "%collation%";'
|
44
|
-
- psql -c 'create database ransack;' -U postgres
|
45
|
-
|
46
|
-
addons:
|
47
|
-
code_climate:
|
48
|
-
repo_token: 8b701c4364d51a0217105e08c06922d600cec3d9e60d546a89e3ddfe46e0664e
|
49
|
-
postgresql: "9.6"
|