trailblazer-finder 0.10.0 → 0.10.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGES.md +3 -0
- data/lib/trailblazer/finder.rb +3 -3
- data/lib/trailblazer/finder/{activity → activities}/find.rb +1 -1
- data/lib/trailblazer/finder/{activity → activities}/prepare.rb +2 -2
- data/lib/trailblazer/finder/{activity → activities}/prepare_adapters.rb +1 -1
- data/lib/trailblazer/finder/{activity → activities}/prepare_entity.rb +1 -1
- data/lib/trailblazer/finder/{activity → activities}/prepare_filters.rb +1 -1
- data/lib/trailblazer/finder/{activity → activities}/prepare_paging.rb +1 -1
- data/lib/trailblazer/finder/{activity → activities}/prepare_params.rb +1 -1
- data/lib/trailblazer/finder/{activity → activities}/prepare_properties.rb +1 -1
- data/lib/trailblazer/finder/{activity → activities}/prepare_sorting.rb +1 -1
- data/lib/trailblazer/finder/{activity → activities}/process.rb +1 -1
- data/lib/trailblazer/finder/{activity → activities}/process_adapters.rb +1 -1
- data/lib/trailblazer/finder/{activity → activities}/process_filters.rb +1 -1
- data/lib/trailblazer/finder/{activity → activities}/process_paging.rb +1 -1
- data/lib/trailblazer/finder/{activity → activities}/process_predicates.rb +1 -1
- data/lib/trailblazer/finder/{activity → activities}/process_sorting.rb +1 -1
- data/lib/trailblazer/finder/base.rb +1 -1
- data/lib/trailblazer/finder/version.rb +1 -1
- metadata +16 -16
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 691fee589f1865e7704d021751dfedfa6be1c51950f5812b09de57493ac2d6e4
|
4
|
+
data.tar.gz: 1919763290c8173d600c4722fa6c1c43a4be4bd70715cc1d05efb963ba5af78b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3215baeb3874a0aafe6eb0f4c65f28848ebb08806f26a76e195eb8b9fc9bf8e087a6f64e126ca5d7f0981c42f1cedde892e27e8d882ed799d7ee9e84771d05d8
|
7
|
+
data.tar.gz: ec4f69e4f75bac9d921bf503381afab35073d0806c65dfd1b1af4382e82ae51f9199098366898429f0dd3f6c22da2dd7977b17bcd8f5b03d08f1a0748cbf19d4
|
data/CHANGES.md
CHANGED
data/lib/trailblazer/finder.rb
CHANGED
@@ -21,9 +21,9 @@ require "trailblazer/finder/adapters/sequel/sorting"
|
|
21
21
|
require "trailblazer/finder/adapters/basic/predicates"
|
22
22
|
require "trailblazer/finder/adapters/basic/paging"
|
23
23
|
require "trailblazer/finder/adapters/basic/sorting"
|
24
|
-
require "trailblazer/finder/
|
25
|
-
require "trailblazer/finder/
|
26
|
-
require "trailblazer/finder/
|
24
|
+
require "trailblazer/finder/activities/prepare"
|
25
|
+
require "trailblazer/finder/activities/process"
|
26
|
+
require "trailblazer/finder/activities/find"
|
27
27
|
require "trailblazer/finder/helpers/basic"
|
28
28
|
require "trailblazer/finder/helpers/sorting"
|
29
29
|
require "trailblazer/finder/dsl"
|
@@ -10,12 +10,12 @@ require_relative "prepare_sorting"
|
|
10
10
|
|
11
11
|
module Trailblazer
|
12
12
|
class Finder
|
13
|
-
module
|
13
|
+
module Activities
|
14
14
|
# Prepare Activity
|
15
15
|
class Prepare < Trailblazer::Activity::Railway
|
16
16
|
def clean_ctx((ctx, flow_options), **)
|
17
17
|
ctx.delete(:options)
|
18
|
-
[
|
18
|
+
[Activity::Right, [ctx, flow_options]]
|
19
19
|
end
|
20
20
|
|
21
21
|
step Subprocess(PrepareAdapters)
|
@@ -17,7 +17,7 @@ module Trailblazer
|
|
17
17
|
def initialize(options = {}) # rubocop:disable Style/OptionHash
|
18
18
|
config = self.class.config
|
19
19
|
ctx = {config: config, options: options}
|
20
|
-
@signal, (ctx, *) =
|
20
|
+
@signal, (ctx, *) = Activities::Find.call([ctx, {}])
|
21
21
|
@options = options
|
22
22
|
@errors = ctx[:errors] || {}
|
23
23
|
@find = ctx[:finder]
|
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.10.
|
4
|
+
version: 0.10.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Nick Sutterer
|
@@ -283,21 +283,21 @@ files:
|
|
283
283
|
- README.md
|
284
284
|
- Rakefile
|
285
285
|
- lib/trailblazer/finder.rb
|
286
|
-
- lib/trailblazer/finder/
|
287
|
-
- lib/trailblazer/finder/
|
288
|
-
- lib/trailblazer/finder/
|
289
|
-
- lib/trailblazer/finder/
|
290
|
-
- lib/trailblazer/finder/
|
291
|
-
- lib/trailblazer/finder/
|
292
|
-
- lib/trailblazer/finder/
|
293
|
-
- lib/trailblazer/finder/
|
294
|
-
- lib/trailblazer/finder/
|
295
|
-
- lib/trailblazer/finder/
|
296
|
-
- lib/trailblazer/finder/
|
297
|
-
- lib/trailblazer/finder/
|
298
|
-
- lib/trailblazer/finder/
|
299
|
-
- lib/trailblazer/finder/
|
300
|
-
- lib/trailblazer/finder/
|
286
|
+
- lib/trailblazer/finder/activities/find.rb
|
287
|
+
- lib/trailblazer/finder/activities/prepare.rb
|
288
|
+
- lib/trailblazer/finder/activities/prepare_adapters.rb
|
289
|
+
- lib/trailblazer/finder/activities/prepare_entity.rb
|
290
|
+
- lib/trailblazer/finder/activities/prepare_filters.rb
|
291
|
+
- lib/trailblazer/finder/activities/prepare_paging.rb
|
292
|
+
- lib/trailblazer/finder/activities/prepare_params.rb
|
293
|
+
- lib/trailblazer/finder/activities/prepare_properties.rb
|
294
|
+
- lib/trailblazer/finder/activities/prepare_sorting.rb
|
295
|
+
- lib/trailblazer/finder/activities/process.rb
|
296
|
+
- lib/trailblazer/finder/activities/process_adapters.rb
|
297
|
+
- lib/trailblazer/finder/activities/process_filters.rb
|
298
|
+
- lib/trailblazer/finder/activities/process_paging.rb
|
299
|
+
- lib/trailblazer/finder/activities/process_predicates.rb
|
300
|
+
- lib/trailblazer/finder/activities/process_sorting.rb
|
301
301
|
- lib/trailblazer/finder/adapters/active_record/paging.rb
|
302
302
|
- lib/trailblazer/finder/adapters/active_record/predicates.rb
|
303
303
|
- lib/trailblazer/finder/adapters/active_record/sorting.rb
|