trailblazer-finder 0.1.4 → 0.2.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +3 -0
- data/.rubocop-https---raw-githubusercontent-com-trailblazer-meta-master-rubocop-yml +101 -0
- data/.rubocop.yml +3 -43
- data/.rubocop_todo.yml +42 -196
- data/.travis.yml +5 -8
- data/Gemfile +2 -2
- data/LICENSE.txt +7 -21
- data/README.md +177 -292
- data/Rakefile +12 -12
- data/lib/trailblazer/finder.rb +48 -23
- data/lib/trailblazer/finder/activity/find.rb +57 -0
- data/lib/trailblazer/finder/activity/prepare.rb +29 -0
- data/lib/trailblazer/finder/activity/prepare/adapters.rb +66 -0
- data/lib/trailblazer/finder/activity/prepare/entity.rb +32 -0
- data/lib/trailblazer/finder/activity/prepare/filters.rb +36 -0
- data/lib/trailblazer/finder/activity/prepare/paging.rb +49 -0
- data/lib/trailblazer/finder/activity/prepare/params.rb +33 -0
- data/lib/trailblazer/finder/activity/prepare/properties.rb +47 -0
- data/lib/trailblazer/finder/activity/prepare/sorting.rb +57 -0
- data/lib/trailblazer/finder/activity/process.rb +18 -0
- data/lib/trailblazer/finder/activity/process/adapters.rb +48 -0
- data/lib/trailblazer/finder/activity/process/filters.rb +28 -0
- data/lib/trailblazer/finder/activity/process/paging.rb +26 -0
- data/lib/trailblazer/finder/activity/process/predicates.rb +30 -0
- data/lib/trailblazer/finder/activity/process/sorting.rb +26 -0
- data/lib/trailblazer/finder/adapters/active_record/paging.rb +9 -8
- data/lib/trailblazer/finder/adapters/active_record/predicates.rb +78 -17
- data/lib/trailblazer/finder/adapters/active_record/sorting.rb +14 -12
- data/lib/trailblazer/finder/adapters/basic/paging.rb +21 -0
- data/lib/trailblazer/finder/adapters/basic/predicates.rb +115 -0
- data/lib/trailblazer/finder/adapters/basic/sorting.rb +40 -0
- data/lib/trailblazer/finder/adapters/kaminari/paging.rb +21 -0
- data/lib/trailblazer/finder/adapters/sequel/paging.rb +9 -8
- data/lib/trailblazer/finder/adapters/sequel/predicates.rb +78 -17
- data/lib/trailblazer/finder/adapters/sequel/sorting.rb +17 -15
- data/lib/trailblazer/finder/adapters/will_paginate/paging.rb +21 -0
- data/lib/trailblazer/finder/base.rb +20 -83
- data/lib/trailblazer/finder/dsl.rb +56 -0
- data/lib/trailblazer/finder/find.rb +28 -15
- data/lib/trailblazer/finder/helpers/basic.rb +44 -0
- data/lib/trailblazer/finder/helpers/sorting.rb +54 -0
- data/lib/trailblazer/finder/utils/array.rb +20 -0
- data/lib/trailblazer/finder/utils/extra.rb +10 -20
- data/lib/trailblazer/finder/utils/hash.rb +36 -0
- data/lib/trailblazer/finder/utils/splitter.rb +16 -17
- data/lib/trailblazer/finder/utils/string.rb +20 -10
- data/lib/trailblazer/finder/version.rb +3 -1
- data/lib/trailblazer/operation/finder.rb +20 -19
- data/spec/spec_helper.rb +5 -11
- data/spec/spec_helper_active_record.rb +11 -12
- data/spec/spec_helper_sequel.rb +4 -4
- data/spec/spec_helper_will_paginate.rb +13 -0
- data/spec/trailblazer/finder/adapters/active_record_spec.rb +267 -0
- data/spec/trailblazer/finder/adapters/basic_spec.rb +251 -0
- data/spec/trailblazer/finder/adapters/kaminari_spec.rb +78 -32
- data/spec/trailblazer/finder/adapters/sequel_spec.rb +267 -0
- data/spec/trailblazer/finder/adapters/will_paginate_spec.rb +81 -40
- data/spec/trailblazer/finder/base_spec.rb +292 -204
- data/spec/trailblazer/finder/dsl_spec.rb +213 -0
- data/spec/trailblazer/finder/utils/hash_spec.rb +26 -0
- data/spec/trailblazer/finder/utils/splitter_spec.rb +39 -0
- data/spec/trailblazer/finder/utils/string_spec.rb +52 -9
- data/spec/trailblazer/operation/finder_spec.rb +35 -32
- data/trailblazer-finder.gemspec +31 -30
- metadata +119 -137
- data/lib/trailblazer/finder/adapters.rb +0 -26
- data/lib/trailblazer/finder/adapters/active_record.rb +0 -32
- data/lib/trailblazer/finder/adapters/data_mapper.rb +0 -32
- data/lib/trailblazer/finder/adapters/data_mapper/paging.rb +0 -20
- data/lib/trailblazer/finder/adapters/data_mapper/predicates.rb +0 -42
- data/lib/trailblazer/finder/adapters/data_mapper/sorting.rb +0 -38
- data/lib/trailblazer/finder/adapters/friendly_id.rb +0 -31
- data/lib/trailblazer/finder/adapters/kaminari.rb +0 -18
- data/lib/trailblazer/finder/adapters/sequel.rb +0 -32
- data/lib/trailblazer/finder/adapters/will_paginate.rb +0 -18
- data/lib/trailblazer/finder/errors/block_ignored.rb +0 -11
- data/lib/trailblazer/finder/errors/invalid_defined_by_value.rb +0 -11
- data/lib/trailblazer/finder/errors/invalid_number.rb +0 -16
- data/lib/trailblazer/finder/errors/missing_entity_type.rb +0 -11
- data/lib/trailblazer/finder/errors/with_ignored.rb +0 -11
- data/lib/trailblazer/finder/features.rb +0 -23
- data/lib/trailblazer/finder/features/paging.rb +0 -55
- data/lib/trailblazer/finder/features/predicate.rb +0 -32
- data/lib/trailblazer/finder/features/sorting.rb +0 -108
- data/lib/trailblazer/finder/filter.rb +0 -66
- data/lib/trailblazer/finder/predicates.rb +0 -39
- data/lib/trailblazer/finder/utils/deep_locate.rb +0 -30
- data/lib/trailblazer/finder/utils/params.rb +0 -28
- data/lib/trailblazer/finder/utils/parse.rb +0 -25
- data/spec/spec_helper_data_mapper.rb +0 -35
- data/spec/support/paging_shared_example.rb +0 -65
- data/spec/support/sorting_shared_example.rb +0 -125
- data/spec/trailblazer/finder/adapters/active_record/base_spec.rb +0 -112
- data/spec/trailblazer/finder/adapters/active_record/paging_spec.rb +0 -64
- data/spec/trailblazer/finder/adapters/active_record/predicates_spec.rb +0 -101
- data/spec/trailblazer/finder/adapters/active_record/sorting_spec.rb +0 -99
- data/spec/trailblazer/finder/adapters/data_mapper/base_spec.rb +0 -112
- data/spec/trailblazer/finder/adapters/data_mapper/paging_spec.rb +0 -64
- data/spec/trailblazer/finder/adapters/data_mapper/predicates_spec.rb +0 -100
- data/spec/trailblazer/finder/adapters/data_mapper/sorting_spec.rb +0 -97
- data/spec/trailblazer/finder/adapters/friendly_id_spec.rb +0 -46
- data/spec/trailblazer/finder/adapters/sequel/base_spec.rb +0 -125
- data/spec/trailblazer/finder/adapters/sequel/paging_spec.rb +0 -64
- data/spec/trailblazer/finder/adapters/sequel/predicates_spec.rb +0 -89
- data/spec/trailblazer/finder/adapters/sequel/sorting_spec.rb +0 -110
- data/spec/trailblazer/finder/adapters_spec.rb +0 -110
- data/spec/trailblazer/finder/features/paging_spec.rb +0 -104
- data/spec/trailblazer/finder/features/predicates_spec.rb +0 -99
- data/spec/trailblazer/finder/features/sorting_spec.rb +0 -96
- data/spec/trailblazer/finder/features_spec.rb +0 -55
- data/spec/trailblazer/finder/filter_spec.rb +0 -133
- data/spec/trailblazer/finder/find_spec.rb +0 -72
- data/spec/trailblazer/finder/utils/extra_spec.rb +0 -41
- data/spec/trailblazer/finder/utils/params_spec.rb +0 -39
- data/spec/trailblazer/finder/utils/parse_spec.rb +0 -33
- data/spec/trailblazer/operation/paging_spec.rb +0 -68
- data/spec/trailblazer/operation/predicates_spec.rb +0 -127
- data/spec/trailblazer/operation/sorting_spec.rb +0 -80
- data/spec/trailblazer/test_spec.rb +0 -41
data/trailblazer-finder.gemspec
CHANGED
@@ -1,39 +1,40 @@
|
|
1
|
-
lib = File.expand_path(
|
1
|
+
lib = File.expand_path("lib", __dir__)
|
2
2
|
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
3
|
-
require
|
3
|
+
require "trailblazer/finder/version"
|
4
4
|
|
5
5
|
Gem::Specification.new do |spec|
|
6
|
-
spec.name =
|
6
|
+
spec.name = "trailblazer-finder"
|
7
7
|
spec.version = Trailblazer::Finder::VERSION
|
8
|
-
spec.
|
9
|
-
spec.
|
10
|
-
spec.summary = %q{Provides DSL for creating trailblazer based finder objects}
|
8
|
+
spec.description = "Trailblazer Finder Objects"
|
9
|
+
spec.summary = "Trailblazer based finder objects. It is designed to be used on its own as a separate gem. It was influenced by popular Ransack gem, but in addition to ActiveRecord, it can be used with Sequel, Hash objects, and RomRB."
|
11
10
|
spec.authors = ["Nick Sutterer", "Marc Tich"]
|
12
11
|
spec.email = ["apotonick@gmail.com", "marc@mudsu.com"]
|
13
|
-
spec.homepage =
|
14
|
-
spec.license =
|
15
|
-
spec.files = `git ls-files`.split(
|
16
|
-
spec.
|
17
|
-
spec.
|
18
|
-
spec.require_paths = ['lib']
|
12
|
+
spec.homepage = "http://trailblazer.to"
|
13
|
+
spec.license = "LGPL-3.0"
|
14
|
+
spec.files = `git ls-files`.split($INPUT_RECORD_SEPARATOR)
|
15
|
+
spec.test_files = spec.files.grep(%r{^(test)/})
|
16
|
+
spec.require_paths = ["lib"]
|
19
17
|
|
20
|
-
spec.
|
21
|
-
spec.
|
22
|
-
spec.add_development_dependency 'sequel'
|
23
|
-
spec.add_development_dependency 'activerecord'
|
24
|
-
spec.add_development_dependency 'sqlite3'
|
25
|
-
spec.add_development_dependency 'will_paginate'
|
26
|
-
spec.add_development_dependency 'kaminari'
|
27
|
-
spec.add_development_dependency 'kaminari-activerecord'
|
28
|
-
spec.add_development_dependency 'rspec', '~> 3.5'
|
29
|
-
spec.add_development_dependency 'rspec-mocks', '~> 3.5'
|
30
|
-
spec.add_development_dependency 'rubocop'
|
31
|
-
spec.add_development_dependency 'rubocop-rspec'
|
32
|
-
spec.add_development_dependency 'data_mapper'
|
33
|
-
spec.add_development_dependency 'dm-sqlite-adapter'
|
34
|
-
spec.add_development_dependency 'simplecov'
|
35
|
-
spec.add_development_dependency 'trailblazer', '>= 2.1.0.beta4'
|
36
|
-
spec.add_development_dependency 'rspec_junit_formatter'
|
18
|
+
spec.add_dependency "dry-types", "~> 0.14.1"
|
19
|
+
spec.add_dependency "trailblazer-activity", "~> 0.7.1"
|
37
20
|
|
38
|
-
spec.
|
21
|
+
spec.add_development_dependency "activerecord"
|
22
|
+
spec.add_development_dependency "bundler"
|
23
|
+
spec.add_development_dependency "kaminari"
|
24
|
+
spec.add_development_dependency "kaminari-activerecord"
|
25
|
+
spec.add_development_dependency "rake"
|
26
|
+
spec.add_development_dependency "rspec", "~> 3.5"
|
27
|
+
spec.add_development_dependency "rspec-mocks", "~> 3.5"
|
28
|
+
spec.add_development_dependency "rspec_junit_formatter"
|
29
|
+
spec.add_development_dependency "rubocop"
|
30
|
+
spec.add_development_dependency "rubocop-rspec"
|
31
|
+
spec.add_development_dependency "sequel"
|
32
|
+
spec.add_development_dependency "simplecov"
|
33
|
+
spec.add_development_dependency "sqlite3"
|
34
|
+
spec.add_development_dependency "trailblazer", "~> 2.1.0.rc1", "< 2.1.0.rc11"
|
35
|
+
spec.add_development_dependency "trailblazer-macro", "~> 2.1.0.rc1", "< 2.1.0.rc11"
|
36
|
+
spec.add_development_dependency "trailblazer-operation", "~> 0.4.1"
|
37
|
+
spec.add_development_dependency "will_paginate"
|
38
|
+
|
39
|
+
spec.required_ruby_version = ">= 2.3.8"
|
39
40
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: trailblazer-finder
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Nick Sutterer
|
@@ -9,38 +9,38 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2019-08-16 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
|
-
name:
|
15
|
+
name: dry-types
|
16
16
|
requirement: !ruby/object:Gem::Requirement
|
17
17
|
requirements:
|
18
|
-
- - "
|
18
|
+
- - "~>"
|
19
19
|
- !ruby/object:Gem::Version
|
20
|
-
version:
|
21
|
-
type: :
|
20
|
+
version: 0.14.1
|
21
|
+
type: :runtime
|
22
22
|
prerelease: false
|
23
23
|
version_requirements: !ruby/object:Gem::Requirement
|
24
24
|
requirements:
|
25
|
-
- - "
|
25
|
+
- - "~>"
|
26
26
|
- !ruby/object:Gem::Version
|
27
|
-
version:
|
27
|
+
version: 0.14.1
|
28
28
|
- !ruby/object:Gem::Dependency
|
29
|
-
name:
|
29
|
+
name: trailblazer-activity
|
30
30
|
requirement: !ruby/object:Gem::Requirement
|
31
31
|
requirements:
|
32
|
-
- - "
|
32
|
+
- - "~>"
|
33
33
|
- !ruby/object:Gem::Version
|
34
|
-
version:
|
35
|
-
type: :
|
34
|
+
version: 0.7.1
|
35
|
+
type: :runtime
|
36
36
|
prerelease: false
|
37
37
|
version_requirements: !ruby/object:Gem::Requirement
|
38
38
|
requirements:
|
39
|
-
- - "
|
39
|
+
- - "~>"
|
40
40
|
- !ruby/object:Gem::Version
|
41
|
-
version:
|
41
|
+
version: 0.7.1
|
42
42
|
- !ruby/object:Gem::Dependency
|
43
|
-
name:
|
43
|
+
name: activerecord
|
44
44
|
requirement: !ruby/object:Gem::Requirement
|
45
45
|
requirements:
|
46
46
|
- - ">="
|
@@ -54,7 +54,7 @@ dependencies:
|
|
54
54
|
- !ruby/object:Gem::Version
|
55
55
|
version: '0'
|
56
56
|
- !ruby/object:Gem::Dependency
|
57
|
-
name:
|
57
|
+
name: bundler
|
58
58
|
requirement: !ruby/object:Gem::Requirement
|
59
59
|
requirements:
|
60
60
|
- - ">="
|
@@ -68,7 +68,7 @@ dependencies:
|
|
68
68
|
- !ruby/object:Gem::Version
|
69
69
|
version: '0'
|
70
70
|
- !ruby/object:Gem::Dependency
|
71
|
-
name:
|
71
|
+
name: kaminari
|
72
72
|
requirement: !ruby/object:Gem::Requirement
|
73
73
|
requirements:
|
74
74
|
- - ">="
|
@@ -82,7 +82,7 @@ dependencies:
|
|
82
82
|
- !ruby/object:Gem::Version
|
83
83
|
version: '0'
|
84
84
|
- !ruby/object:Gem::Dependency
|
85
|
-
name:
|
85
|
+
name: kaminari-activerecord
|
86
86
|
requirement: !ruby/object:Gem::Requirement
|
87
87
|
requirements:
|
88
88
|
- - ">="
|
@@ -96,7 +96,7 @@ dependencies:
|
|
96
96
|
- !ruby/object:Gem::Version
|
97
97
|
version: '0'
|
98
98
|
- !ruby/object:Gem::Dependency
|
99
|
-
name:
|
99
|
+
name: rake
|
100
100
|
requirement: !ruby/object:Gem::Requirement
|
101
101
|
requirements:
|
102
102
|
- - ">="
|
@@ -110,21 +110,21 @@ dependencies:
|
|
110
110
|
- !ruby/object:Gem::Version
|
111
111
|
version: '0'
|
112
112
|
- !ruby/object:Gem::Dependency
|
113
|
-
name:
|
113
|
+
name: rspec
|
114
114
|
requirement: !ruby/object:Gem::Requirement
|
115
115
|
requirements:
|
116
|
-
- - "
|
116
|
+
- - "~>"
|
117
117
|
- !ruby/object:Gem::Version
|
118
|
-
version: '
|
118
|
+
version: '3.5'
|
119
119
|
type: :development
|
120
120
|
prerelease: false
|
121
121
|
version_requirements: !ruby/object:Gem::Requirement
|
122
122
|
requirements:
|
123
|
-
- - "
|
123
|
+
- - "~>"
|
124
124
|
- !ruby/object:Gem::Version
|
125
|
-
version: '
|
125
|
+
version: '3.5'
|
126
126
|
- !ruby/object:Gem::Dependency
|
127
|
-
name: rspec
|
127
|
+
name: rspec-mocks
|
128
128
|
requirement: !ruby/object:Gem::Requirement
|
129
129
|
requirements:
|
130
130
|
- - "~>"
|
@@ -138,19 +138,19 @@ dependencies:
|
|
138
138
|
- !ruby/object:Gem::Version
|
139
139
|
version: '3.5'
|
140
140
|
- !ruby/object:Gem::Dependency
|
141
|
-
name:
|
141
|
+
name: rspec_junit_formatter
|
142
142
|
requirement: !ruby/object:Gem::Requirement
|
143
143
|
requirements:
|
144
|
-
- - "
|
144
|
+
- - ">="
|
145
145
|
- !ruby/object:Gem::Version
|
146
|
-
version: '
|
146
|
+
version: '0'
|
147
147
|
type: :development
|
148
148
|
prerelease: false
|
149
149
|
version_requirements: !ruby/object:Gem::Requirement
|
150
150
|
requirements:
|
151
|
-
- - "
|
151
|
+
- - ">="
|
152
152
|
- !ruby/object:Gem::Version
|
153
|
-
version: '
|
153
|
+
version: '0'
|
154
154
|
- !ruby/object:Gem::Dependency
|
155
155
|
name: rubocop
|
156
156
|
requirement: !ruby/object:Gem::Requirement
|
@@ -180,7 +180,7 @@ dependencies:
|
|
180
180
|
- !ruby/object:Gem::Version
|
181
181
|
version: '0'
|
182
182
|
- !ruby/object:Gem::Dependency
|
183
|
-
name:
|
183
|
+
name: sequel
|
184
184
|
requirement: !ruby/object:Gem::Requirement
|
185
185
|
requirements:
|
186
186
|
- - ">="
|
@@ -194,7 +194,7 @@ dependencies:
|
|
194
194
|
- !ruby/object:Gem::Version
|
195
195
|
version: '0'
|
196
196
|
- !ruby/object:Gem::Dependency
|
197
|
-
name:
|
197
|
+
name: simplecov
|
198
198
|
requirement: !ruby/object:Gem::Requirement
|
199
199
|
requirements:
|
200
200
|
- - ">="
|
@@ -208,7 +208,7 @@ dependencies:
|
|
208
208
|
- !ruby/object:Gem::Version
|
209
209
|
version: '0'
|
210
210
|
- !ruby/object:Gem::Dependency
|
211
|
-
name:
|
211
|
+
name: sqlite3
|
212
212
|
requirement: !ruby/object:Gem::Requirement
|
213
213
|
requirements:
|
214
214
|
- - ">="
|
@@ -225,18 +225,58 @@ dependencies:
|
|
225
225
|
name: trailblazer
|
226
226
|
requirement: !ruby/object:Gem::Requirement
|
227
227
|
requirements:
|
228
|
-
- - "
|
228
|
+
- - "~>"
|
229
|
+
- !ruby/object:Gem::Version
|
230
|
+
version: 2.1.0.rc1
|
231
|
+
- - "<"
|
229
232
|
- !ruby/object:Gem::Version
|
230
|
-
version: 2.1.0.
|
233
|
+
version: 2.1.0.rc11
|
231
234
|
type: :development
|
232
235
|
prerelease: false
|
233
236
|
version_requirements: !ruby/object:Gem::Requirement
|
234
237
|
requirements:
|
235
|
-
- - "
|
238
|
+
- - "~>"
|
239
|
+
- !ruby/object:Gem::Version
|
240
|
+
version: 2.1.0.rc1
|
241
|
+
- - "<"
|
236
242
|
- !ruby/object:Gem::Version
|
237
|
-
version: 2.1.0.
|
243
|
+
version: 2.1.0.rc11
|
238
244
|
- !ruby/object:Gem::Dependency
|
239
|
-
name:
|
245
|
+
name: trailblazer-macro
|
246
|
+
requirement: !ruby/object:Gem::Requirement
|
247
|
+
requirements:
|
248
|
+
- - "~>"
|
249
|
+
- !ruby/object:Gem::Version
|
250
|
+
version: 2.1.0.rc1
|
251
|
+
- - "<"
|
252
|
+
- !ruby/object:Gem::Version
|
253
|
+
version: 2.1.0.rc11
|
254
|
+
type: :development
|
255
|
+
prerelease: false
|
256
|
+
version_requirements: !ruby/object:Gem::Requirement
|
257
|
+
requirements:
|
258
|
+
- - "~>"
|
259
|
+
- !ruby/object:Gem::Version
|
260
|
+
version: 2.1.0.rc1
|
261
|
+
- - "<"
|
262
|
+
- !ruby/object:Gem::Version
|
263
|
+
version: 2.1.0.rc11
|
264
|
+
- !ruby/object:Gem::Dependency
|
265
|
+
name: trailblazer-operation
|
266
|
+
requirement: !ruby/object:Gem::Requirement
|
267
|
+
requirements:
|
268
|
+
- - "~>"
|
269
|
+
- !ruby/object:Gem::Version
|
270
|
+
version: 0.4.1
|
271
|
+
type: :development
|
272
|
+
prerelease: false
|
273
|
+
version_requirements: !ruby/object:Gem::Requirement
|
274
|
+
requirements:
|
275
|
+
- - "~>"
|
276
|
+
- !ruby/object:Gem::Version
|
277
|
+
version: 0.4.1
|
278
|
+
- !ruby/object:Gem::Dependency
|
279
|
+
name: will_paginate
|
240
280
|
requirement: !ruby/object:Gem::Requirement
|
241
281
|
requirements:
|
242
282
|
- - ">="
|
@@ -249,7 +289,7 @@ dependencies:
|
|
249
289
|
- - ">="
|
250
290
|
- !ruby/object:Gem::Version
|
251
291
|
version: '0'
|
252
|
-
description: Trailblazer Finder
|
292
|
+
description: Trailblazer Finder Objects
|
253
293
|
email:
|
254
294
|
- apotonick@gmail.com
|
255
295
|
- marc@mudsu.com
|
@@ -258,6 +298,7 @@ extensions: []
|
|
258
298
|
extra_rdoc_files: []
|
259
299
|
files:
|
260
300
|
- ".gitignore"
|
301
|
+
- ".rubocop-https---raw-githubusercontent-com-trailblazer-meta-master-rubocop-yml"
|
261
302
|
- ".rubocop.yml"
|
262
303
|
- ".rubocop_todo.yml"
|
263
304
|
- ".travis.yml"
|
@@ -267,85 +308,63 @@ files:
|
|
267
308
|
- README.md
|
268
309
|
- Rakefile
|
269
310
|
- lib/trailblazer/finder.rb
|
270
|
-
- lib/trailblazer/finder/
|
271
|
-
- lib/trailblazer/finder/
|
311
|
+
- lib/trailblazer/finder/activity/find.rb
|
312
|
+
- lib/trailblazer/finder/activity/prepare.rb
|
313
|
+
- lib/trailblazer/finder/activity/prepare/adapters.rb
|
314
|
+
- lib/trailblazer/finder/activity/prepare/entity.rb
|
315
|
+
- lib/trailblazer/finder/activity/prepare/filters.rb
|
316
|
+
- lib/trailblazer/finder/activity/prepare/paging.rb
|
317
|
+
- lib/trailblazer/finder/activity/prepare/params.rb
|
318
|
+
- lib/trailblazer/finder/activity/prepare/properties.rb
|
319
|
+
- lib/trailblazer/finder/activity/prepare/sorting.rb
|
320
|
+
- lib/trailblazer/finder/activity/process.rb
|
321
|
+
- lib/trailblazer/finder/activity/process/adapters.rb
|
322
|
+
- lib/trailblazer/finder/activity/process/filters.rb
|
323
|
+
- lib/trailblazer/finder/activity/process/paging.rb
|
324
|
+
- lib/trailblazer/finder/activity/process/predicates.rb
|
325
|
+
- lib/trailblazer/finder/activity/process/sorting.rb
|
272
326
|
- lib/trailblazer/finder/adapters/active_record/paging.rb
|
273
327
|
- lib/trailblazer/finder/adapters/active_record/predicates.rb
|
274
328
|
- lib/trailblazer/finder/adapters/active_record/sorting.rb
|
275
|
-
- lib/trailblazer/finder/adapters/
|
276
|
-
- lib/trailblazer/finder/adapters/
|
277
|
-
- lib/trailblazer/finder/adapters/
|
278
|
-
- lib/trailblazer/finder/adapters/
|
279
|
-
- lib/trailblazer/finder/adapters/friendly_id.rb
|
280
|
-
- lib/trailblazer/finder/adapters/kaminari.rb
|
281
|
-
- lib/trailblazer/finder/adapters/sequel.rb
|
329
|
+
- lib/trailblazer/finder/adapters/basic/paging.rb
|
330
|
+
- lib/trailblazer/finder/adapters/basic/predicates.rb
|
331
|
+
- lib/trailblazer/finder/adapters/basic/sorting.rb
|
332
|
+
- lib/trailblazer/finder/adapters/kaminari/paging.rb
|
282
333
|
- lib/trailblazer/finder/adapters/sequel/paging.rb
|
283
334
|
- lib/trailblazer/finder/adapters/sequel/predicates.rb
|
284
335
|
- lib/trailblazer/finder/adapters/sequel/sorting.rb
|
285
|
-
- lib/trailblazer/finder/adapters/will_paginate.rb
|
336
|
+
- lib/trailblazer/finder/adapters/will_paginate/paging.rb
|
286
337
|
- lib/trailblazer/finder/base.rb
|
287
|
-
- lib/trailblazer/finder/
|
288
|
-
- lib/trailblazer/finder/errors/invalid_defined_by_value.rb
|
289
|
-
- lib/trailblazer/finder/errors/invalid_number.rb
|
290
|
-
- lib/trailblazer/finder/errors/missing_entity_type.rb
|
291
|
-
- lib/trailblazer/finder/errors/with_ignored.rb
|
292
|
-
- lib/trailblazer/finder/features.rb
|
293
|
-
- lib/trailblazer/finder/features/paging.rb
|
294
|
-
- lib/trailblazer/finder/features/predicate.rb
|
295
|
-
- lib/trailblazer/finder/features/sorting.rb
|
296
|
-
- lib/trailblazer/finder/filter.rb
|
338
|
+
- lib/trailblazer/finder/dsl.rb
|
297
339
|
- lib/trailblazer/finder/find.rb
|
298
|
-
- lib/trailblazer/finder/
|
299
|
-
- lib/trailblazer/finder/
|
340
|
+
- lib/trailblazer/finder/helpers/basic.rb
|
341
|
+
- lib/trailblazer/finder/helpers/sorting.rb
|
342
|
+
- lib/trailblazer/finder/utils/array.rb
|
300
343
|
- lib/trailblazer/finder/utils/extra.rb
|
301
|
-
- lib/trailblazer/finder/utils/
|
302
|
-
- lib/trailblazer/finder/utils/parse.rb
|
344
|
+
- lib/trailblazer/finder/utils/hash.rb
|
303
345
|
- lib/trailblazer/finder/utils/splitter.rb
|
304
346
|
- lib/trailblazer/finder/utils/string.rb
|
305
347
|
- lib/trailblazer/finder/version.rb
|
306
348
|
- lib/trailblazer/operation/finder.rb
|
307
349
|
- spec/spec_helper.rb
|
308
350
|
- spec/spec_helper_active_record.rb
|
309
|
-
- spec/spec_helper_data_mapper.rb
|
310
351
|
- spec/spec_helper_sequel.rb
|
311
|
-
- spec/
|
312
|
-
- spec/
|
313
|
-
- spec/trailblazer/finder/adapters/
|
314
|
-
- spec/trailblazer/finder/adapters/active_record/paging_spec.rb
|
315
|
-
- spec/trailblazer/finder/adapters/active_record/predicates_spec.rb
|
316
|
-
- spec/trailblazer/finder/adapters/active_record/sorting_spec.rb
|
317
|
-
- spec/trailblazer/finder/adapters/data_mapper/base_spec.rb
|
318
|
-
- spec/trailblazer/finder/adapters/data_mapper/paging_spec.rb
|
319
|
-
- spec/trailblazer/finder/adapters/data_mapper/predicates_spec.rb
|
320
|
-
- spec/trailblazer/finder/adapters/data_mapper/sorting_spec.rb
|
321
|
-
- spec/trailblazer/finder/adapters/friendly_id_spec.rb
|
352
|
+
- spec/spec_helper_will_paginate.rb
|
353
|
+
- spec/trailblazer/finder/adapters/active_record_spec.rb
|
354
|
+
- spec/trailblazer/finder/adapters/basic_spec.rb
|
322
355
|
- spec/trailblazer/finder/adapters/kaminari_spec.rb
|
323
|
-
- spec/trailblazer/finder/adapters/
|
324
|
-
- spec/trailblazer/finder/adapters/sequel/paging_spec.rb
|
325
|
-
- spec/trailblazer/finder/adapters/sequel/predicates_spec.rb
|
326
|
-
- spec/trailblazer/finder/adapters/sequel/sorting_spec.rb
|
356
|
+
- spec/trailblazer/finder/adapters/sequel_spec.rb
|
327
357
|
- spec/trailblazer/finder/adapters/will_paginate_spec.rb
|
328
|
-
- spec/trailblazer/finder/adapters_spec.rb
|
329
358
|
- spec/trailblazer/finder/base_spec.rb
|
330
|
-
- spec/trailblazer/finder/
|
331
|
-
- spec/trailblazer/finder/
|
332
|
-
- spec/trailblazer/finder/
|
333
|
-
- spec/trailblazer/finder/features_spec.rb
|
334
|
-
- spec/trailblazer/finder/filter_spec.rb
|
335
|
-
- spec/trailblazer/finder/find_spec.rb
|
336
|
-
- spec/trailblazer/finder/utils/extra_spec.rb
|
337
|
-
- spec/trailblazer/finder/utils/params_spec.rb
|
338
|
-
- spec/trailblazer/finder/utils/parse_spec.rb
|
359
|
+
- spec/trailblazer/finder/dsl_spec.rb
|
360
|
+
- spec/trailblazer/finder/utils/hash_spec.rb
|
361
|
+
- spec/trailblazer/finder/utils/splitter_spec.rb
|
339
362
|
- spec/trailblazer/finder/utils/string_spec.rb
|
340
363
|
- spec/trailblazer/operation/finder_spec.rb
|
341
|
-
- spec/trailblazer/operation/paging_spec.rb
|
342
|
-
- spec/trailblazer/operation/predicates_spec.rb
|
343
|
-
- spec/trailblazer/operation/sorting_spec.rb
|
344
|
-
- spec/trailblazer/test_spec.rb
|
345
364
|
- trailblazer-finder.gemspec
|
346
365
|
homepage: http://trailblazer.to
|
347
366
|
licenses:
|
348
|
-
-
|
367
|
+
- LGPL-3.0
|
349
368
|
metadata: {}
|
350
369
|
post_install_message:
|
351
370
|
rdoc_options: []
|
@@ -355,54 +374,17 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
355
374
|
requirements:
|
356
375
|
- - ">="
|
357
376
|
- !ruby/object:Gem::Version
|
358
|
-
version: 2.
|
377
|
+
version: 2.3.8
|
359
378
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
360
379
|
requirements:
|
361
380
|
- - ">="
|
362
381
|
- !ruby/object:Gem::Version
|
363
382
|
version: '0'
|
364
383
|
requirements: []
|
365
|
-
|
366
|
-
rubygems_version: 2.7.6
|
384
|
+
rubygems_version: 3.0.3
|
367
385
|
signing_key:
|
368
386
|
specification_version: 4
|
369
|
-
summary:
|
370
|
-
|
371
|
-
|
372
|
-
|
373
|
-
- spec/spec_helper_data_mapper.rb
|
374
|
-
- spec/spec_helper_sequel.rb
|
375
|
-
- spec/support/paging_shared_example.rb
|
376
|
-
- spec/support/sorting_shared_example.rb
|
377
|
-
- spec/trailblazer/finder/adapters/active_record/base_spec.rb
|
378
|
-
- spec/trailblazer/finder/adapters/active_record/paging_spec.rb
|
379
|
-
- spec/trailblazer/finder/adapters/active_record/predicates_spec.rb
|
380
|
-
- spec/trailblazer/finder/adapters/active_record/sorting_spec.rb
|
381
|
-
- spec/trailblazer/finder/adapters/data_mapper/base_spec.rb
|
382
|
-
- spec/trailblazer/finder/adapters/data_mapper/paging_spec.rb
|
383
|
-
- spec/trailblazer/finder/adapters/data_mapper/predicates_spec.rb
|
384
|
-
- spec/trailblazer/finder/adapters/data_mapper/sorting_spec.rb
|
385
|
-
- spec/trailblazer/finder/adapters/friendly_id_spec.rb
|
386
|
-
- spec/trailblazer/finder/adapters/kaminari_spec.rb
|
387
|
-
- spec/trailblazer/finder/adapters/sequel/base_spec.rb
|
388
|
-
- spec/trailblazer/finder/adapters/sequel/paging_spec.rb
|
389
|
-
- spec/trailblazer/finder/adapters/sequel/predicates_spec.rb
|
390
|
-
- spec/trailblazer/finder/adapters/sequel/sorting_spec.rb
|
391
|
-
- spec/trailblazer/finder/adapters/will_paginate_spec.rb
|
392
|
-
- spec/trailblazer/finder/adapters_spec.rb
|
393
|
-
- spec/trailblazer/finder/base_spec.rb
|
394
|
-
- spec/trailblazer/finder/features/paging_spec.rb
|
395
|
-
- spec/trailblazer/finder/features/predicates_spec.rb
|
396
|
-
- spec/trailblazer/finder/features/sorting_spec.rb
|
397
|
-
- spec/trailblazer/finder/features_spec.rb
|
398
|
-
- spec/trailblazer/finder/filter_spec.rb
|
399
|
-
- spec/trailblazer/finder/find_spec.rb
|
400
|
-
- spec/trailblazer/finder/utils/extra_spec.rb
|
401
|
-
- spec/trailblazer/finder/utils/params_spec.rb
|
402
|
-
- spec/trailblazer/finder/utils/parse_spec.rb
|
403
|
-
- spec/trailblazer/finder/utils/string_spec.rb
|
404
|
-
- spec/trailblazer/operation/finder_spec.rb
|
405
|
-
- spec/trailblazer/operation/paging_spec.rb
|
406
|
-
- spec/trailblazer/operation/predicates_spec.rb
|
407
|
-
- spec/trailblazer/operation/sorting_spec.rb
|
408
|
-
- spec/trailblazer/test_spec.rb
|
387
|
+
summary: Trailblazer based finder objects. It is designed to be used on its own as
|
388
|
+
a separate gem. It was influenced by popular Ransack gem, but in addition to ActiveRecord,
|
389
|
+
it can be used with Sequel, Hash objects, and RomRB.
|
390
|
+
test_files: []
|