ransack 2.3.0 → 2.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +18 -20
- data/CHANGELOG.md +9 -1
- data/Gemfile +17 -5
- data/README.md +25 -31
- data/lib/ransack.rb +1 -2
- data/lib/ransack/adapters/active_record/context.rb +11 -78
- data/lib/ransack/adapters/active_record/ransack/constants.rb +12 -0
- data/lib/ransack/adapters/active_record/ransack/context.rb +1 -6
- data/lib/ransack/adapters/active_record/ransack/nodes/condition.rb +1 -1
- data/lib/ransack/constants.rb +0 -3
- data/lib/ransack/helpers/form_builder.rb +5 -11
- data/lib/ransack/locale/sk.yml +70 -0
- data/lib/ransack/nodes/condition.rb +8 -0
- data/lib/ransack/predicate.rb +2 -1
- data/lib/ransack/version.rb +1 -1
- data/polyamorous/lib/polyamorous.rb +2 -7
- data/polyamorous/lib/polyamorous/{activerecord_5.2.1_ruby_2 → activerecord_5.2_ruby_2}/join_association.rb +0 -2
- data/polyamorous/lib/polyamorous/{activerecord_5.2.1_ruby_2 → activerecord_5.2_ruby_2}/join_dependency.rb +0 -2
- data/polyamorous/lib/polyamorous/{activerecord_5.2.0_ruby_2 → activerecord_5.2_ruby_2}/reflection.rb +0 -0
- data/polyamorous/lib/polyamorous/activerecord_6.0_ruby_2/join_association.rb +1 -1
- data/polyamorous/lib/polyamorous/activerecord_6.0_ruby_2/reflection.rb +1 -1
- data/polyamorous/polyamorous.gemspec +1 -9
- data/ransack.gemspec +3 -12
- data/spec/helpers/polyamorous_helper.rb +1 -10
- data/spec/ransack/predicate_spec.rb +38 -0
- data/spec/ransack/search_spec.rb +1 -8
- data/spec/spec_helper.rb +2 -0
- data/spec/support/schema.rb +3 -1
- metadata +14 -146
- 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.1_ruby_2/reflection.rb +0 -2
@@ -0,0 +1,70 @@
|
|
1
|
+
sk:
|
2
|
+
ransack:
|
3
|
+
search: "vyhľadávanie"
|
4
|
+
predicate: "predikát"
|
5
|
+
and: "a"
|
6
|
+
or: "alebo"
|
7
|
+
any: "akýkoľvek"
|
8
|
+
all: "každý"
|
9
|
+
combinator: "kombinátor"
|
10
|
+
attribute: "atribút"
|
11
|
+
value: "hodnota"
|
12
|
+
condition: "podmienka"
|
13
|
+
sort: "poradie"
|
14
|
+
asc: "vzostupne"
|
15
|
+
desc: "zostupne"
|
16
|
+
predicates:
|
17
|
+
eq: "sa rovná"
|
18
|
+
eq_any: "sa rovná akémukoľvek"
|
19
|
+
eq_all: "sa rovná všetkým"
|
20
|
+
not_eq: "sa nerovná"
|
21
|
+
not_eq_any: "sa nerovná akémukoľvek"
|
22
|
+
not_eq_all: "sa nerovná všetkým"
|
23
|
+
matches: "zodpovedá"
|
24
|
+
matches_any: "zodpovedá akémukoľvek"
|
25
|
+
matches_all: "zodpovedá všetkým"
|
26
|
+
does_not_match: "nezodpovedá"
|
27
|
+
does_not_match_any: "nezodpovedá akémukoľvek"
|
28
|
+
does_not_match_all: "nezodpovedá všetkým"
|
29
|
+
lt: "menší ako"
|
30
|
+
lt_any: "menší ako akýkoľvek"
|
31
|
+
lt_all: "menší ako všetky"
|
32
|
+
lteq: "menší alebo rovný"
|
33
|
+
lteq_any: "menší alebo rovný akémukoľvek"
|
34
|
+
lteq_all: "menší alebo rovný všetkým"
|
35
|
+
gt: "väčší ako"
|
36
|
+
gt_any: "väčší ako akýkoľvek"
|
37
|
+
gt_all: "väčší ako všetky"
|
38
|
+
gteq: "väčší alebo rovný"
|
39
|
+
gteq_any: "väčší alebo rovný akémukoľvek"
|
40
|
+
gteq_all: "väčší alebo rovný všetkým"
|
41
|
+
in: "v"
|
42
|
+
in_any: "v akejkoľvek"
|
43
|
+
in_all: "vo všetkých"
|
44
|
+
not_in: "nie je v"
|
45
|
+
not_in_any: "nie je v akejkoľvek"
|
46
|
+
not_in_all: "nie je vo všetkých"
|
47
|
+
cont: "obsahuje"
|
48
|
+
cont_any: "obsahuje akúkoľvek"
|
49
|
+
cont_all: "obsahuje všetky"
|
50
|
+
not_cont: "neobsahuje"
|
51
|
+
not_cont_any: "neobsahuje akúkoľvek"
|
52
|
+
not_cont_all: "neobsahuje všetky"
|
53
|
+
start: "začína na"
|
54
|
+
start_any: "začína s akoukoľvek"
|
55
|
+
start_all: "začína so všetkými"
|
56
|
+
not_start: "nezačíná s"
|
57
|
+
not_start_any: "nezačíná s akoukoľvek"
|
58
|
+
not_start_all: "nezačíná so všetkými"
|
59
|
+
end: "končí s"
|
60
|
+
end_any: "končí s akoukoľvek"
|
61
|
+
end_all: "končí so všetkými"
|
62
|
+
not_end: "nekončí s"
|
63
|
+
not_end_any: "nekončí s akoukoľvek"
|
64
|
+
not_end_all: "nekončí so všetkými"
|
65
|
+
'true': "je pravdivé"
|
66
|
+
'false': "nie je pravdivé"
|
67
|
+
present: "je vyplnené"
|
68
|
+
blank: "je prázdne"
|
69
|
+
'null': "je null"
|
70
|
+
not_null: "nie je null"
|
@@ -255,6 +255,14 @@ module Ransack
|
|
255
255
|
end
|
256
256
|
end
|
257
257
|
|
258
|
+
def attr_value_for_attribute(attr)
|
259
|
+
return attr.attr if ActiveRecord::Base.connection.adapter_name == "PostgreSQL"
|
260
|
+
|
261
|
+
predicate.case_insensitive ? attr.attr.lower : attr.attr
|
262
|
+
rescue
|
263
|
+
attr.attr
|
264
|
+
end
|
265
|
+
|
258
266
|
|
259
267
|
def default_type
|
260
268
|
predicate.type || (attributes.first && attributes.first.type)
|
data/lib/ransack/predicate.rb
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
module Ransack
|
2
2
|
class Predicate
|
3
3
|
attr_reader :name, :arel_predicate, :type, :formatter, :validator,
|
4
|
-
:compound, :wants_array
|
4
|
+
:compound, :wants_array, :case_insensitive
|
5
5
|
|
6
6
|
class << self
|
7
7
|
|
@@ -42,6 +42,7 @@ module Ransack
|
|
42
42
|
@compound = opts[:compound]
|
43
43
|
@wants_array = opts.fetch(:wants_array,
|
44
44
|
@compound || Constants::IN_NOT_IN.include?(@arel_predicate))
|
45
|
+
@case_insensitive = opts[:case_insensitive]
|
45
46
|
end
|
46
47
|
|
47
48
|
def eql?(other)
|
data/lib/ransack/version.rb
CHANGED
@@ -12,16 +12,11 @@ if defined?(::ActiveRecord)
|
|
12
12
|
require 'polyamorous/swapping_reflection_class'
|
13
13
|
|
14
14
|
ar_version = ::ActiveRecord::VERSION::STRING[0,3]
|
15
|
-
|
16
|
-
ar_version = "5.2.1" if ::ActiveRecord::VERSION::STRING >= "5.2.1" && ::ActiveRecord.version < ::Gem::Version.new("6.0")
|
17
|
-
%w(join_association join_dependency).each do |file|
|
15
|
+
%w(join_association join_dependency reflection).each do |file|
|
18
16
|
require "polyamorous/activerecord_#{ar_version}_ruby_2/#{file}"
|
19
17
|
end
|
20
18
|
|
21
|
-
|
22
|
-
require "polyamorous/activerecord_#{ar_version}_ruby_2/reflection.rb"
|
23
|
-
::ActiveRecord::Reflection::AbstractReflection.send(:prepend, Polyamorous::ReflectionExtensions)
|
24
|
-
end
|
19
|
+
ActiveRecord::Reflection::AbstractReflection.send(:prepend, Polyamorous::ReflectionExtensions)
|
25
20
|
|
26
21
|
Polyamorous::JoinDependency.send(:prepend, Polyamorous::JoinDependencyExtensions)
|
27
22
|
Polyamorous::JoinDependency.singleton_class.send(:prepend, Polyamorous::JoinDependencyExtensions::ClassMethods)
|
data/polyamorous/lib/polyamorous/{activerecord_5.2.0_ruby_2 → activerecord_5.2_ruby_2}/reflection.rb
RENAMED
File without changes
|
@@ -1,2 +1,2 @@
|
|
1
1
|
# active_record_6.0_ruby_2/join_association
|
2
|
-
require 'polyamorous/activerecord_5.
|
2
|
+
require 'polyamorous/activerecord_5.2_ruby_2/join_association'
|
@@ -1,2 +1,2 @@
|
|
1
1
|
# active_record_6.0_ruby_2/reflection.rb
|
2
|
-
require 'polyamorous/activerecord_5.
|
2
|
+
require 'polyamorous/activerecord_5.2_ruby_2/reflection'
|
@@ -18,18 +18,10 @@ Gem::Specification.new do |s|
|
|
18
18
|
associations.
|
19
19
|
}
|
20
20
|
|
21
|
-
s.add_dependency 'activerecord', '>= 5.
|
22
|
-
s.add_development_dependency 'rspec', '~> 3'
|
23
|
-
s.add_development_dependency 'machinist', '~> 1.0.6'
|
24
|
-
s.add_development_dependency 'faker', '~> 1.6.5'
|
25
|
-
s.add_development_dependency 'sqlite3', '~> 1.3.3'
|
21
|
+
s.add_dependency 'activerecord', '>= 5.2.1'
|
26
22
|
|
27
23
|
s.files = `git ls-files`.split("\n")
|
28
24
|
s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
|
29
25
|
s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
|
30
26
|
s.require_paths = ["lib"]
|
31
|
-
|
32
|
-
# specify any dependencies here; for example:
|
33
|
-
# s.add_development_dependency "rspec"
|
34
|
-
# s.add_runtime_dependency "rest-client"
|
35
27
|
end
|
data/ransack.gemspec
CHANGED
@@ -11,22 +11,13 @@ Gem::Specification.new do |s|
|
|
11
11
|
s.homepage = "https://github.com/activerecord-hackery/ransack"
|
12
12
|
s.summary = %q{Object-based searching for Active Record and Mongoid (currently).}
|
13
13
|
s.description = %q{Ransack is the successor to the MetaSearch gem. It improves and expands upon MetaSearch's functionality, but does not have a 100%-compatible API.}
|
14
|
-
s.required_ruby_version = '>=
|
14
|
+
s.required_ruby_version = '>= 2.3'
|
15
15
|
s.license = 'MIT'
|
16
16
|
|
17
|
-
s.add_dependency '
|
18
|
-
s.add_dependency '
|
19
|
-
s.add_dependency 'activesupport', '>= 5.0'
|
17
|
+
s.add_dependency 'activerecord', '>= 5.2.1'
|
18
|
+
s.add_dependency 'activesupport', '>= 5.2.1'
|
20
19
|
s.add_dependency 'i18n'
|
21
20
|
s.add_dependency 'polyamorous', Ransack::VERSION.to_s
|
22
|
-
s.add_development_dependency 'rspec', '~> 3'
|
23
|
-
s.add_development_dependency 'machinist', '~> 1.0.6'
|
24
|
-
s.add_development_dependency 'faker', '~> 0.9.5'
|
25
|
-
s.add_development_dependency 'sqlite3', ::Gem::Version.new(ENV['RAILS'].gsub(/^v/, '')) >= ::Gem::Version.new('6-0-stable') ? '~> 1.4.1' : '~> 1.3.3'
|
26
|
-
s.add_development_dependency 'pg', '~> 0.21'
|
27
|
-
s.add_development_dependency 'mysql2', '0.3.20'
|
28
|
-
s.add_development_dependency 'pry', '0.10'
|
29
|
-
s.add_development_dependency 'byebug'
|
30
21
|
|
31
22
|
s.files = `git ls-files`.split("\n")
|
32
23
|
|
@@ -7,18 +7,9 @@ module PolyamorousHelper
|
|
7
7
|
def new_join_dependency(klass, associations = {})
|
8
8
|
Polyamorous::JoinDependency.new klass, klass.arel_table, associations, Polyamorous::InnerJoin
|
9
9
|
end
|
10
|
-
elsif ActiveRecord.version > ::Gem::Version.new("5.2.0")
|
11
|
-
def new_join_dependency(klass, associations = {})
|
12
|
-
Polyamorous::JoinDependency.new klass, klass.arel_table, associations
|
13
|
-
end
|
14
|
-
elsif ActiveRecord.version == ::Gem::Version.new("5.2.0")
|
15
|
-
def new_join_dependency(klass, associations = {})
|
16
|
-
alias_tracker = ::ActiveRecord::Associations::AliasTracker.create(klass.connection, klass.table_name, [])
|
17
|
-
Polyamorous::JoinDependency.new klass, klass.arel_table, associations, alias_tracker
|
18
|
-
end
|
19
10
|
else
|
20
11
|
def new_join_dependency(klass, associations = {})
|
21
|
-
Polyamorous::JoinDependency.new klass,
|
12
|
+
Polyamorous::JoinDependency.new klass, klass.arel_table, associations
|
22
13
|
end
|
23
14
|
end
|
24
15
|
|
@@ -159,6 +159,44 @@ module Ransack
|
|
159
159
|
end
|
160
160
|
end
|
161
161
|
|
162
|
+
describe 'i_cont' do
|
163
|
+
it_has_behavior 'wildcard escaping', :name_i_cont,
|
164
|
+
(if ActiveRecord::Base.connection.adapter_name == "PostgreSQL"
|
165
|
+
/"people"."name" ILIKE '%\\%\\.\\_\\\\%'/
|
166
|
+
elsif ActiveRecord::Base.connection.adapter_name == "Mysql2"
|
167
|
+
/LOWER\(`people`.`name`\) LIKE '%\\\\%.\\\\_\\\\\\\\%'/
|
168
|
+
else
|
169
|
+
/LOWER\("people"."name"\) LIKE '%%._\\%'/
|
170
|
+
end) do
|
171
|
+
subject { @s }
|
172
|
+
end
|
173
|
+
|
174
|
+
it 'generates a LIKE query with LOWER(column) and value surrounded by %' do
|
175
|
+
@s.name_i_cont = 'Ric'
|
176
|
+
field = "#{quote_table_name("people")}.#{quote_column_name("name")}"
|
177
|
+
expect(@s.result.to_sql).to match /[LOWER\(]?#{field}\)? I?LIKE '%ric%'/
|
178
|
+
end
|
179
|
+
end
|
180
|
+
|
181
|
+
describe 'not_i_cont' do
|
182
|
+
it_has_behavior 'wildcard escaping', :name_not_i_cont,
|
183
|
+
(if ActiveRecord::Base.connection.adapter_name == "PostgreSQL"
|
184
|
+
/"people"."name" NOT ILIKE '%\\%\\.\\_\\\\%'/
|
185
|
+
elsif ActiveRecord::Base.connection.adapter_name == "Mysql2"
|
186
|
+
/LOWER\(`people`.`name`\) NOT LIKE '%\\\\%.\\\\_\\\\\\\\%'/
|
187
|
+
else
|
188
|
+
/LOWER\("people"."name"\) NOT LIKE '%%._\\%'/
|
189
|
+
end) do
|
190
|
+
subject { @s }
|
191
|
+
end
|
192
|
+
|
193
|
+
it 'generates a NOT LIKE query with LOWER(column) and value surrounded by %' do
|
194
|
+
@s.name_not_i_cont = 'Ric'
|
195
|
+
field = "#{quote_table_name("people")}.#{quote_column_name("name")}"
|
196
|
+
expect(@s.result.to_sql).to match /[LOWER\(]?#{field}\)? NOT I?LIKE '%ric%'/
|
197
|
+
end
|
198
|
+
end
|
199
|
+
|
162
200
|
describe 'start' do
|
163
201
|
it 'generates a LIKE query with value followed by %' do
|
164
202
|
@s.name_start = 'Er'
|
data/spec/ransack/search_spec.rb
CHANGED
@@ -228,7 +228,6 @@ module Ransack
|
|
228
228
|
end
|
229
229
|
|
230
230
|
it 'use appropriate table alias' do
|
231
|
-
skip "Make this spec pass for Rails <5.2" if ::ActiveRecord::VERSION::STRING < '5.2.0'
|
232
231
|
s = Search.new(Person, {
|
233
232
|
name_eq: "person_name_query",
|
234
233
|
articles_title_eq: "person_article_title_query",
|
@@ -251,13 +250,7 @@ module Ransack
|
|
251
250
|
.to include "articles_people.title = 'parents_article_title_query'"
|
252
251
|
end
|
253
252
|
|
254
|
-
|
255
|
-
# commenting out lines 221 and 242 to run the test. Addresses issue #374.
|
256
|
-
# https://github.com/activerecord-hackery/ransack/issues/374
|
257
|
-
#
|
258
|
-
it 'evaluates conditions for multiple `belongs_to` associations to the
|
259
|
-
same table contextually' do
|
260
|
-
skip "Make this spec pass for Rails <5.2" if ::ActiveRecord::VERSION::STRING < '5.2.0'
|
253
|
+
it 'evaluates conditions for multiple `belongs_to` associations to the same table contextually' do
|
261
254
|
s = Search.new(
|
262
255
|
Recommendation,
|
263
256
|
person_name_eq: 'Ernie',
|
data/spec/spec_helper.rb
CHANGED
data/spec/support/schema.rb
CHANGED
@@ -13,7 +13,9 @@ when 'pg', 'postgres', 'postgresql'
|
|
13
13
|
ActiveRecord::Base.establish_connection(
|
14
14
|
adapter: 'postgresql',
|
15
15
|
database: 'ransack',
|
16
|
-
|
16
|
+
username: ENV.fetch("DATABASE_USERNAME") { "postgres" },
|
17
|
+
password: ENV.fetch("DATABASE_PASSWORD") { "" },
|
18
|
+
host: ENV.fetch("DATABASE_HOST") { "localhost" },
|
17
19
|
min_messages: 'warning'
|
18
20
|
)
|
19
21
|
else
|
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.3.
|
4
|
+
version: 2.3.1
|
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: 2020-01-11 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.1
|
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.1
|
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.1
|
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.1
|
58
44
|
- !ruby/object:Gem::Dependency
|
59
45
|
name: i18n
|
60
46
|
requirement: !ruby/object:Gem::Requirement
|
@@ -75,126 +61,14 @@ dependencies:
|
|
75
61
|
requirements:
|
76
62
|
- - '='
|
77
63
|
- !ruby/object:Gem::Version
|
78
|
-
version: 2.3.
|
64
|
+
version: 2.3.1
|
79
65
|
type: :runtime
|
80
66
|
prerelease: false
|
81
67
|
version_requirements: !ruby/object:Gem::Requirement
|
82
68
|
requirements:
|
83
69
|
- - '='
|
84
70
|
- !ruby/object:Gem::Version
|
85
|
-
version: 2.3.
|
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'
|
71
|
+
version: 2.3.1
|
198
72
|
description: Ransack is the successor to the MetaSearch gem. It improves and expands
|
199
73
|
upon MetaSearch's functionality, but does not have a 100%-compatible API.
|
200
74
|
email:
|
@@ -251,6 +125,7 @@ files:
|
|
251
125
|
- lib/ransack/locale/pt-BR.yml
|
252
126
|
- lib/ransack/locale/ro.yml
|
253
127
|
- lib/ransack/locale/ru.yml
|
128
|
+
- lib/ransack/locale/sk.yml
|
254
129
|
- lib/ransack/locale/tr.yml
|
255
130
|
- lib/ransack/locale/zh-CN.yml
|
256
131
|
- lib/ransack/locale/zh-TW.yml
|
@@ -276,16 +151,9 @@ files:
|
|
276
151
|
- logo/ransack.png
|
277
152
|
- logo/ransack.svg
|
278
153
|
- polyamorous/lib/polyamorous.rb
|
279
|
-
- polyamorous/lib/polyamorous/activerecord_5.
|
280
|
-
- polyamorous/lib/polyamorous/activerecord_5.
|
281
|
-
- polyamorous/lib/polyamorous/activerecord_5.
|
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
|
154
|
+
- polyamorous/lib/polyamorous/activerecord_5.2_ruby_2/join_association.rb
|
155
|
+
- polyamorous/lib/polyamorous/activerecord_5.2_ruby_2/join_dependency.rb
|
156
|
+
- polyamorous/lib/polyamorous/activerecord_5.2_ruby_2/reflection.rb
|
289
157
|
- polyamorous/lib/polyamorous/activerecord_6.0_ruby_2/join_association.rb
|
290
158
|
- polyamorous/lib/polyamorous/activerecord_6.0_ruby_2/join_dependency.rb
|
291
159
|
- polyamorous/lib/polyamorous/activerecord_6.0_ruby_2/reflection.rb
|
@@ -334,14 +202,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
334
202
|
requirements:
|
335
203
|
- - ">="
|
336
204
|
- !ruby/object:Gem::Version
|
337
|
-
version: '
|
205
|
+
version: '2.3'
|
338
206
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
339
207
|
requirements:
|
340
208
|
- - ">="
|
341
209
|
- !ruby/object:Gem::Version
|
342
210
|
version: '0'
|
343
211
|
requirements: []
|
344
|
-
rubygems_version: 3.0.
|
212
|
+
rubygems_version: 3.0.3
|
345
213
|
signing_key:
|
346
214
|
specification_version: 4
|
347
215
|
summary: Object-based searching for Active Record and Mongoid (currently).
|