carry_out 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.coveralls.yml +1 -0
- data/.gitignore +9 -0
- data/.travis.yml +5 -0
- data/CODE_OF_CONDUCT.md +49 -0
- data/Gemfile +4 -0
- data/LICENSE.txt +21 -0
- data/README.md +129 -0
- data/Rakefile +10 -0
- data/bin/console +14 -0
- data/bin/setup +8 -0
- data/carry_out.gemspec +31 -0
- data/lib/carry_out/error.rb +11 -0
- data/lib/carry_out/plan.rb +80 -0
- data/lib/carry_out/plan_node.rb +49 -0
- data/lib/carry_out/result.rb +27 -0
- data/lib/carry_out/result_manipulator.rb +13 -0
- data/lib/carry_out/unit.rb +36 -0
- data/lib/carry_out/unit_error.rb +9 -0
- data/lib/carry_out/version.rb +3 -0
- data/lib/carry_out.rb +15 -0
- metadata +123 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 23c83d41577d5ded2aed464a837500e437cdcc4a
|
4
|
+
data.tar.gz: 7dcc7d36ad98c067350a57be5b4138031cf96bb8
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: a594a27b2a0c569ce1a4cce37f3467b64df623b78e06545cf638883b94fac55382bf1ed6491fce49c31f65de833b9f18d64a7fbd1ef6f2321ab8768e2055a2d4
|
7
|
+
data.tar.gz: e080d44e2802c491bf9cb03117b4f01b9ddbfc2a89656e7daadfa8909fec6ee7a73120b339d443efc542a65be49c65a6ad94772363aca9df8804a7b72ca91a8a
|
data/.coveralls.yml
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
service_name: travis-ci
|
data/.gitignore
ADDED
data/.travis.yml
ADDED
data/CODE_OF_CONDUCT.md
ADDED
@@ -0,0 +1,49 @@
|
|
1
|
+
# Contributor Code of Conduct
|
2
|
+
|
3
|
+
As contributors and maintainers of this project, and in the interest of
|
4
|
+
fostering an open and welcoming community, we pledge to respect all people who
|
5
|
+
contribute through reporting issues, posting feature requests, updating
|
6
|
+
documentation, submitting pull requests or patches, and other activities.
|
7
|
+
|
8
|
+
We are committed to making participation in this project a harassment-free
|
9
|
+
experience for everyone, regardless of level of experience, gender, gender
|
10
|
+
identity and expression, sexual orientation, disability, personal appearance,
|
11
|
+
body size, race, ethnicity, age, religion, or nationality.
|
12
|
+
|
13
|
+
Examples of unacceptable behavior by participants include:
|
14
|
+
|
15
|
+
* The use of sexualized language or imagery
|
16
|
+
* Personal attacks
|
17
|
+
* Trolling or insulting/derogatory comments
|
18
|
+
* Public or private harassment
|
19
|
+
* Publishing other's private information, such as physical or electronic
|
20
|
+
addresses, without explicit permission
|
21
|
+
* Other unethical or unprofessional conduct
|
22
|
+
|
23
|
+
Project maintainers have the right and responsibility to remove, edit, or
|
24
|
+
reject comments, commits, code, wiki edits, issues, and other contributions
|
25
|
+
that are not aligned to this Code of Conduct, or to ban temporarily or
|
26
|
+
permanently any contributor for other behaviors that they deem inappropriate,
|
27
|
+
threatening, offensive, or harmful.
|
28
|
+
|
29
|
+
By adopting this Code of Conduct, project maintainers commit themselves to
|
30
|
+
fairly and consistently applying these principles to every aspect of managing
|
31
|
+
this project. Project maintainers who do not follow or enforce the Code of
|
32
|
+
Conduct may be permanently removed from the project team.
|
33
|
+
|
34
|
+
This code of conduct applies both within project spaces and in public spaces
|
35
|
+
when an individual is representing the project or its community.
|
36
|
+
|
37
|
+
Instances of abusive, harassing, or otherwise unacceptable behavior may be
|
38
|
+
reported by contacting a project maintainer at ryan.fields@twoleftbeats.com. All
|
39
|
+
complaints will be reviewed and investigated and will result in a response that
|
40
|
+
is deemed necessary and appropriate to the circumstances. Maintainers are
|
41
|
+
obligated to maintain confidentiality with regard to the reporter of an
|
42
|
+
incident.
|
43
|
+
|
44
|
+
This Code of Conduct is adapted from the [Contributor Covenant][homepage],
|
45
|
+
version 1.3.0, available at
|
46
|
+
[http://contributor-covenant.org/version/1/3/0/][version]
|
47
|
+
|
48
|
+
[homepage]: http://contributor-covenant.org
|
49
|
+
[version]: http://contributor-covenant.org/version/1/3/0/
|
data/Gemfile
ADDED
data/LICENSE.txt
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) 2017 Ryan Fields
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
7
|
+
in the Software without restriction, including without limitation the rights
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
10
|
+
furnished to do so, subject to the following conditions:
|
11
|
+
|
12
|
+
The above copyright notice and this permission notice shall be included in
|
13
|
+
all copies or substantial portions of the Software.
|
14
|
+
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
21
|
+
THE SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,129 @@
|
|
1
|
+
# CarryOut
|
2
|
+
|
3
|
+
CarryOut facilitates connecting single-purpose units of logic into larger workflows via a small DSL. Each unit can further extend the DSL with parameter methods. Artifacts and errors are collected as the workflow executes and are returned in a result bundle upon completion.
|
4
|
+
|
5
|
+
[![Build Status](https://travis-ci.org/ryanfields/carry_out.svg?branch=master)](https://travis-ci.org/ryanfields/carry_out) [![Coverage Status](https://coveralls.io/repos/github/ryanfields/carry_out/badge.svg?branch=master)](https://coveralls.io/github/ryanfields/carry_out?branch=master)
|
6
|
+
|
7
|
+
## Installation
|
8
|
+
|
9
|
+
Add this line to your application's Gemfile:
|
10
|
+
|
11
|
+
```ruby
|
12
|
+
gem 'carry_out'
|
13
|
+
```
|
14
|
+
|
15
|
+
And then execute:
|
16
|
+
|
17
|
+
$ bundle
|
18
|
+
|
19
|
+
Or install it yourself as:
|
20
|
+
|
21
|
+
$ gem install carry_out
|
22
|
+
|
23
|
+
## Usage
|
24
|
+
|
25
|
+
Execution units extend CarryOut::Unit and should implement ```CarryOut::Unit#execute(result)```.
|
26
|
+
```ruby
|
27
|
+
class SayHello < CarryOut::Unit
|
28
|
+
def execute(result)
|
29
|
+
puts "Hello, World!"
|
30
|
+
end
|
31
|
+
end
|
32
|
+
```
|
33
|
+
|
34
|
+
CarryOut can then be used to create an execution plan using the unit.
|
35
|
+
```ruby
|
36
|
+
plan = CarryOut.will(SayHello)
|
37
|
+
```
|
38
|
+
|
39
|
+
Run the plan using:
|
40
|
+
```
|
41
|
+
result = plan.execute
|
42
|
+
```
|
43
|
+
|
44
|
+
### Parameters
|
45
|
+
Execution units can be passed parameters statically during plan creation, or dynamically via a block.
|
46
|
+
|
47
|
+
Redefine the example above to greet someone by name:
|
48
|
+
```ruby
|
49
|
+
class SayHello < CarryOut::Unit
|
50
|
+
parameter :to, :name
|
51
|
+
|
52
|
+
def execute(result)
|
53
|
+
puts "Hello, #{@name}!"
|
54
|
+
end
|
55
|
+
end
|
56
|
+
```
|
57
|
+
|
58
|
+
Define the plan as:
|
59
|
+
```ruby
|
60
|
+
plan = CarryOut
|
61
|
+
.will(SayHello)
|
62
|
+
.to("Ryan")
|
63
|
+
|
64
|
+
# or
|
65
|
+
|
66
|
+
plan = CarryOut
|
67
|
+
.will(SayHello)
|
68
|
+
.to { "Ryan" }
|
69
|
+
```
|
70
|
+
|
71
|
+
And execute the same way as above.
|
72
|
+
|
73
|
+
### Artifacts and References
|
74
|
+
Execution units can publish artifacts to the plan's result. Parameter blocks can be used to pass these artifacts on to subsequent execution units in the plan.
|
75
|
+
|
76
|
+
```ruby
|
77
|
+
class AddToCart < CarryOut::Unit
|
78
|
+
parameter :items
|
79
|
+
|
80
|
+
def execute(result)
|
81
|
+
result.add :contents, @items
|
82
|
+
end
|
83
|
+
end
|
84
|
+
|
85
|
+
class CalculateSubtotal < CarryOut::Unit
|
86
|
+
parameters :items
|
87
|
+
|
88
|
+
def execut(result)
|
89
|
+
subtotal = items.inject { |sum, item| sum + item.price }
|
90
|
+
result.add :subtotal, subtotal
|
91
|
+
end
|
92
|
+
end
|
93
|
+
```
|
94
|
+
```ruby
|
95
|
+
plan = CarryOut
|
96
|
+
.will(AddToCart, as: :cart)
|
97
|
+
.items([ item1, item2, item3])
|
98
|
+
.then(CalculateSubtotal, as: :invoice)
|
99
|
+
.items { |refs| refs[:cart][:contents] }
|
100
|
+
|
101
|
+
plan.execute do |result|
|
102
|
+
puts "Subtotal: #{result.artifacts[:invoice][:subtotal]}"
|
103
|
+
end
|
104
|
+
```
|
105
|
+
|
106
|
+
## Motivation
|
107
|
+
|
108
|
+
I've been trying to keep my Rails controllers clean, but I prefer to avoid shoving inter-model business logic inside database models. The recommendation I most frequently run into is to move that kind of logic into something akin to service objects. I like that idea, but I want to keep my services small and composable, and I want to separate the "what" from the "how" of my logic.
|
109
|
+
|
110
|
+
CarryOut is designed to be a consistent layer of glue between single-purpose or "simple-purpose" units of business logic. CarryOut describes what needs to be done and what inputs are to be used. The units themselves worry about how to perform the actual work. These units tend to have names that describe their intent. They remain small and easier to test. What ends up in my controllers is a process description that that can be comprehended at a glance and remains fairly agnostic to the underlying details of my chosen ORM, job queue, message queue, etc.
|
111
|
+
|
112
|
+
I'm building up CarryOut alongside a new Rails application, but my intent is for CarryOut to remain just as useful outside of Rails. At present, it isn't bound in any way to things like ActiveRecord. If those sorts of bindings emerge, I'll provide an add-on gem or an alternate require.
|
113
|
+
|
114
|
+
CarryOut's workflows don't support asynchronous execution units yet. The workflows can't branch or loop. These are features I hope to provide in the future. Feature requests are welcome.
|
115
|
+
|
116
|
+
## Development
|
117
|
+
|
118
|
+
After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake test` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
|
119
|
+
|
120
|
+
To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
|
121
|
+
|
122
|
+
## Contributing
|
123
|
+
|
124
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/ryanfields/carry_out. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
|
125
|
+
|
126
|
+
## License
|
127
|
+
|
128
|
+
The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
|
129
|
+
|
data/Rakefile
ADDED
data/bin/console
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
|
3
|
+
require "bundler/setup"
|
4
|
+
require "carry_out"
|
5
|
+
|
6
|
+
# You can add fixtures and/or initialization code here to make experimenting
|
7
|
+
# with your gem easier. You can also use a different console, if you like.
|
8
|
+
|
9
|
+
# (If you use this, don't forget to add pry to your Gemfile!)
|
10
|
+
# require "pry"
|
11
|
+
# Pry.start
|
12
|
+
|
13
|
+
require "irb"
|
14
|
+
IRB.start
|
data/bin/setup
ADDED
data/carry_out.gemspec
ADDED
@@ -0,0 +1,31 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
lib = File.expand_path('../lib', __FILE__)
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
+
require 'carry_out/version'
|
5
|
+
|
6
|
+
Gem::Specification.new do |spec|
|
7
|
+
spec.name = "carry_out"
|
8
|
+
spec.version = CarryOut::VERSION
|
9
|
+
spec.authors = ["Ryan Fields"]
|
10
|
+
spec.email = ["ryan.fields@twoleftbeats.com"]
|
11
|
+
|
12
|
+
spec.summary = %q{Compose units of logic into an executable workflow.}
|
13
|
+
spec.description = <<-EOF
|
14
|
+
CarryOut connects units of logic into workflows. Each unit can extend
|
15
|
+
the DSL with parameter methods. Artifacts and errors are collected as
|
16
|
+
the workflow executes and are returned in a result bundle upon completion.
|
17
|
+
EOF
|
18
|
+
|
19
|
+
spec.homepage = "https://github.com/ryanfields/carry_out"
|
20
|
+
spec.license = "MIT"
|
21
|
+
|
22
|
+
spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
23
|
+
spec.bindir = "exe"
|
24
|
+
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
25
|
+
spec.require_paths = ["lib"]
|
26
|
+
|
27
|
+
spec.add_development_dependency "bundler", "~> 1.12"
|
28
|
+
spec.add_development_dependency "rake", "~> 10.0"
|
29
|
+
spec.add_development_dependency "minitest", "~> 5.0"
|
30
|
+
spec.add_development_dependency "coveralls"
|
31
|
+
end
|
@@ -0,0 +1,80 @@
|
|
1
|
+
module CarryOut
|
2
|
+
class Plan
|
3
|
+
|
4
|
+
def initialize(unit = nil, options = {})
|
5
|
+
@nodes = {}
|
6
|
+
@previously_added_node = nil
|
7
|
+
@initial_node_key = add_node(PlanNode.new)
|
8
|
+
|
9
|
+
unless unit.nil?
|
10
|
+
self.then(unit, options)
|
11
|
+
end
|
12
|
+
end
|
13
|
+
|
14
|
+
def execute(&block)
|
15
|
+
node = @nodes[@initial_node_key]
|
16
|
+
label = node.next unless node.nil?
|
17
|
+
|
18
|
+
Result.new.tap do |result|
|
19
|
+
while node = @nodes[label] do
|
20
|
+
begin
|
21
|
+
node.execute(ResultManipulator.new(result, label), result.artifacts)
|
22
|
+
rescue UnitError => error
|
23
|
+
result.add(label, CarryOut::Error.new(error.error.message, error.error))
|
24
|
+
break
|
25
|
+
end
|
26
|
+
|
27
|
+
label = node.next
|
28
|
+
end
|
29
|
+
|
30
|
+
unless block.nil?
|
31
|
+
block.call(result)
|
32
|
+
end
|
33
|
+
end
|
34
|
+
end
|
35
|
+
|
36
|
+
def then(unit, options = {})
|
37
|
+
add_node(PlanNode.new(unit), options[:as])
|
38
|
+
self
|
39
|
+
end
|
40
|
+
|
41
|
+
def method_missing(method, *args, &block)
|
42
|
+
if @previously_added_node
|
43
|
+
@previously_added_node.send(method, *args, &block)
|
44
|
+
self
|
45
|
+
else
|
46
|
+
super
|
47
|
+
end
|
48
|
+
end
|
49
|
+
|
50
|
+
def respond_to?(method)
|
51
|
+
(@previously_added_node && @previously_added_node.respond_to?(method)) || super
|
52
|
+
end
|
53
|
+
|
54
|
+
private
|
55
|
+
def add_node(node, as = nil)
|
56
|
+
label = (as || generate_node_name)
|
57
|
+
|
58
|
+
if as.nil?
|
59
|
+
until @nodes[label].nil?
|
60
|
+
label = generate_node_name
|
61
|
+
end
|
62
|
+
end
|
63
|
+
|
64
|
+
unless @previously_added_node.nil?
|
65
|
+
@previously_added_node.next = label
|
66
|
+
end
|
67
|
+
|
68
|
+
@nodes[label] = node
|
69
|
+
@previously_added_node = node
|
70
|
+
|
71
|
+
label
|
72
|
+
end
|
73
|
+
|
74
|
+
def generate_node_name
|
75
|
+
id = @next_node_id ||= 1
|
76
|
+
@next_node_id += 1
|
77
|
+
"node_#{id}".to_sym
|
78
|
+
end
|
79
|
+
end
|
80
|
+
end
|
@@ -0,0 +1,49 @@
|
|
1
|
+
module CarryOut
|
2
|
+
class PlanNode
|
3
|
+
attr_reader :next
|
4
|
+
|
5
|
+
def initialize(klass = nil)
|
6
|
+
@unitClass = klass
|
7
|
+
@messages = []
|
8
|
+
end
|
9
|
+
|
10
|
+
def method_missing(method, *args, &block)
|
11
|
+
if args.length == 1 || (args.length == 0 && !block.nil?)
|
12
|
+
if @unitClass.instance_methods.include?(method)
|
13
|
+
@messages << { method: method, argument: args.first, block: block }
|
14
|
+
else
|
15
|
+
raise NoMethodError.new("#{@unitClass} instances do not respond to `#{method}'", method, *args)
|
16
|
+
end
|
17
|
+
else
|
18
|
+
super
|
19
|
+
end
|
20
|
+
end
|
21
|
+
|
22
|
+
def raises?(klass)
|
23
|
+
@unitClass.raises?(klass)
|
24
|
+
end
|
25
|
+
|
26
|
+
def respond_to?(method)
|
27
|
+
@unitClass.instance_methods.include?(method) || super
|
28
|
+
end
|
29
|
+
|
30
|
+
def execute(result, artifacts)
|
31
|
+
unit = @unitClass.new
|
32
|
+
|
33
|
+
@messages.each do |message|
|
34
|
+
arg = message[:block] ? message[:block].call(artifacts) : message[:argument]
|
35
|
+
unit.send(message[:method], arg)
|
36
|
+
end
|
37
|
+
|
38
|
+
begin
|
39
|
+
unit.execute(result)
|
40
|
+
rescue StandardError => error
|
41
|
+
raise UnitError.new(error)
|
42
|
+
end
|
43
|
+
end
|
44
|
+
|
45
|
+
def next=(value)
|
46
|
+
@next = value.to_sym
|
47
|
+
end
|
48
|
+
end
|
49
|
+
end
|
@@ -0,0 +1,27 @@
|
|
1
|
+
module CarryOut
|
2
|
+
class Result
|
3
|
+
|
4
|
+
def add(group, label, object = nil)
|
5
|
+
if label.kind_of?(CarryOut::Error)
|
6
|
+
add_error(group, label)
|
7
|
+
else
|
8
|
+
group = artifacts[group] ||= {}
|
9
|
+
group[label] = object
|
10
|
+
end
|
11
|
+
end
|
12
|
+
|
13
|
+
def artifacts
|
14
|
+
@artifacts ||= {}
|
15
|
+
end
|
16
|
+
|
17
|
+
def errors
|
18
|
+
@errors ||= {}
|
19
|
+
end
|
20
|
+
|
21
|
+
private
|
22
|
+
def add_error(group, error)
|
23
|
+
group = errors[group] ||= []
|
24
|
+
group << error
|
25
|
+
end
|
26
|
+
end
|
27
|
+
end
|
@@ -0,0 +1,36 @@
|
|
1
|
+
module CarryOut
|
2
|
+
class Unit
|
3
|
+
|
4
|
+
def execute(result)
|
5
|
+
end
|
6
|
+
|
7
|
+
def self.parameter(method_name, var = nil)
|
8
|
+
unless var.nil?
|
9
|
+
define_method(method_name.to_sym) do |value|
|
10
|
+
instance_variable_set("@#{var.to_s}", value)
|
11
|
+
self
|
12
|
+
end
|
13
|
+
end
|
14
|
+
|
15
|
+
var = (var || method_name).to_s
|
16
|
+
instance_var = "@#{var}"
|
17
|
+
|
18
|
+
unless self.respond_to?(var)
|
19
|
+
define_method(var) do |*args|
|
20
|
+
if args.length > 0
|
21
|
+
instance_variable_set(instance_var, args.first)
|
22
|
+
return self
|
23
|
+
end
|
24
|
+
|
25
|
+
instance_variable_get(instance_var)
|
26
|
+
end
|
27
|
+
end
|
28
|
+
|
29
|
+
unless self.respond_to?("#{var}=")
|
30
|
+
define_method("#{var}=") do |value|
|
31
|
+
instance_variable_set(instance_var, value)
|
32
|
+
end
|
33
|
+
end
|
34
|
+
end
|
35
|
+
end
|
36
|
+
end
|
data/lib/carry_out.rb
ADDED
@@ -0,0 +1,15 @@
|
|
1
|
+
require "carry_out/version"
|
2
|
+
|
3
|
+
require "carry_out/error"
|
4
|
+
require "carry_out/plan"
|
5
|
+
require "carry_out/plan_node"
|
6
|
+
require "carry_out/result"
|
7
|
+
require "carry_out/result_manipulator"
|
8
|
+
require "carry_out/unit"
|
9
|
+
require "carry_out/unit_error"
|
10
|
+
|
11
|
+
module CarryOut
|
12
|
+
def self.will(*args)
|
13
|
+
Plan.new(*args)
|
14
|
+
end
|
15
|
+
end
|
metadata
ADDED
@@ -0,0 +1,123 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: carry_out
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Ryan Fields
|
8
|
+
autorequire:
|
9
|
+
bindir: exe
|
10
|
+
cert_chain: []
|
11
|
+
date: 2017-03-23 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: bundler
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '1.12'
|
20
|
+
type: :development
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '1.12'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: rake
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '10.0'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '10.0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: minitest
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "~>"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '5.0'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "~>"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '5.0'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: coveralls
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - ">="
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0'
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - ">="
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '0'
|
69
|
+
description: |2
|
70
|
+
CarryOut connects units of logic into workflows. Each unit can extend
|
71
|
+
the DSL with parameter methods. Artifacts and errors are collected as
|
72
|
+
the workflow executes and are returned in a result bundle upon completion.
|
73
|
+
email:
|
74
|
+
- ryan.fields@twoleftbeats.com
|
75
|
+
executables: []
|
76
|
+
extensions: []
|
77
|
+
extra_rdoc_files: []
|
78
|
+
files:
|
79
|
+
- ".coveralls.yml"
|
80
|
+
- ".gitignore"
|
81
|
+
- ".travis.yml"
|
82
|
+
- CODE_OF_CONDUCT.md
|
83
|
+
- Gemfile
|
84
|
+
- LICENSE.txt
|
85
|
+
- README.md
|
86
|
+
- Rakefile
|
87
|
+
- bin/console
|
88
|
+
- bin/setup
|
89
|
+
- carry_out.gemspec
|
90
|
+
- lib/carry_out.rb
|
91
|
+
- lib/carry_out/error.rb
|
92
|
+
- lib/carry_out/plan.rb
|
93
|
+
- lib/carry_out/plan_node.rb
|
94
|
+
- lib/carry_out/result.rb
|
95
|
+
- lib/carry_out/result_manipulator.rb
|
96
|
+
- lib/carry_out/unit.rb
|
97
|
+
- lib/carry_out/unit_error.rb
|
98
|
+
- lib/carry_out/version.rb
|
99
|
+
homepage: https://github.com/ryanfields/carry_out
|
100
|
+
licenses:
|
101
|
+
- MIT
|
102
|
+
metadata: {}
|
103
|
+
post_install_message:
|
104
|
+
rdoc_options: []
|
105
|
+
require_paths:
|
106
|
+
- lib
|
107
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
108
|
+
requirements:
|
109
|
+
- - ">="
|
110
|
+
- !ruby/object:Gem::Version
|
111
|
+
version: '0'
|
112
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
113
|
+
requirements:
|
114
|
+
- - ">="
|
115
|
+
- !ruby/object:Gem::Version
|
116
|
+
version: '0'
|
117
|
+
requirements: []
|
118
|
+
rubyforge_project:
|
119
|
+
rubygems_version: 2.6.6
|
120
|
+
signing_key:
|
121
|
+
specification_version: 4
|
122
|
+
summary: Compose units of logic into an executable workflow.
|
123
|
+
test_files: []
|