flows 0.2.0 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +4 -1
- data/Gemfile.lock +1 -1
- data/lib/flows/implicit_build.rb +16 -0
- data/lib/flows/operation.rb +3 -0
- data/lib/flows/railway.rb +3 -0
- data/lib/flows/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: be39f457170b0b70b8c54073f5ae4c75c19ee90fdfa0a5d4e8e8bd6762d910ae
|
4
|
+
data.tar.gz: e3bb541f406ae2c935273a9a915cd19ef6f680b165c01ed9acd59d3cc5665100
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4c4a2444bb62c7f4e1f40d9a7c45e060154fdfb434a1fa80557b322bead0a6b1e890f2cca6643b0d07b6ecb337a888839dee05838d096b9024073a39fb3871b1
|
7
|
+
data.tar.gz: fc9c68ec2cf6b7c507db598fdd6615b07f12b618cedcba5a86012966d26d5f7829908c98fbc4c7dfbfe3265d83f13d7b9f3c2cce4b4e0141cf969955a3931fec
|
data/.gitignore
CHANGED
data/Gemfile.lock
CHANGED
@@ -0,0 +1,16 @@
|
|
1
|
+
module Flows
|
2
|
+
# Module to extend Operation and Railway. Adds implicit building feature.
|
3
|
+
module ImplicitBuild
|
4
|
+
attr_reader :default_build
|
5
|
+
|
6
|
+
def self.extended(mod)
|
7
|
+
mod.instance_variable_set(:@default_build, nil)
|
8
|
+
end
|
9
|
+
|
10
|
+
def call(**params)
|
11
|
+
@default_build ||= new
|
12
|
+
|
13
|
+
default_build.call(**params)
|
14
|
+
end
|
15
|
+
end
|
16
|
+
end
|
data/lib/flows/operation.rb
CHANGED
@@ -4,11 +4,14 @@ require_relative 'operation/dsl'
|
|
4
4
|
require_relative 'operation/builder'
|
5
5
|
require_relative 'operation/executor'
|
6
6
|
|
7
|
+
require_relative 'implicit_build'
|
8
|
+
|
7
9
|
module Flows
|
8
10
|
# Operation DSL
|
9
11
|
module Operation
|
10
12
|
def self.included(mod)
|
11
13
|
mod.extend ::Flows::Operation::DSL
|
14
|
+
mod.extend ::Flows::ImplicitBuild
|
12
15
|
end
|
13
16
|
|
14
17
|
include ::Flows::Result::Helpers
|
data/lib/flows/railway.rb
CHANGED
@@ -4,11 +4,14 @@ require_relative './railway/dsl'
|
|
4
4
|
require_relative './railway/builder'
|
5
5
|
require_relative './railway/executor'
|
6
6
|
|
7
|
+
require_relative './implicit_build'
|
8
|
+
|
7
9
|
module Flows
|
8
10
|
# Railway DSL
|
9
11
|
module Railway
|
10
12
|
def self.included(mod)
|
11
13
|
mod.extend ::Flows::Railway::DSL
|
14
|
+
mod.extend ::Flows::ImplicitBuild
|
12
15
|
end
|
13
16
|
|
14
17
|
include ::Flows::Result::Helpers
|
data/lib/flows/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: flows
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Roman Kolesnev
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-10-
|
11
|
+
date: 2019-10-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -284,6 +284,7 @@ files:
|
|
284
284
|
- lefthook.yml
|
285
285
|
- lib/flows.rb
|
286
286
|
- lib/flows/flow.rb
|
287
|
+
- lib/flows/implicit_build.rb
|
287
288
|
- lib/flows/node.rb
|
288
289
|
- lib/flows/operation.rb
|
289
290
|
- lib/flows/operation/builder.rb
|