hydrangea 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/.gitignore +9 -0
- data/.rspec +2 -0
- data/Gemfile +4 -0
- data/LICENSE +21 -0
- data/README.md +41 -0
- data/Rakefile +6 -0
- data/bin/console +14 -0
- data/bin/setup +7 -0
- data/hydrangea.gemspec +25 -0
- data/lib/hydrangea.rb +14 -0
- data/lib/hydrangea/action_error.rb +3 -0
- data/lib/hydrangea/constants.rb +9 -0
- data/lib/hydrangea/flow.rb +37 -0
- data/lib/hydrangea/graph.rb +19 -0
- data/lib/hydrangea/graph_partition.rb +32 -0
- data/lib/hydrangea/graph_transform.rb +44 -0
- data/lib/hydrangea/list_of_nodes.rb +10 -0
- data/lib/hydrangea/many_nodes.rb +42 -0
- data/lib/hydrangea/node.rb +33 -0
- data/lib/hydrangea/nodes_by_value.rb +14 -0
- data/lib/hydrangea/partial_graph_transform.rb +11 -0
- data/lib/hydrangea/single_node.rb +25 -0
- data/lib/hydrangea/version.rb +3 -0
- metadata +123 -0
checksums.yaml
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
---
|
|
2
|
+
SHA1:
|
|
3
|
+
metadata.gz: 3fc4d948acc329a7afc68a8cde43c21cabd3c533
|
|
4
|
+
data.tar.gz: f9628b04516dfe6a6455caecfff976d7b2ad8e4c
|
|
5
|
+
SHA512:
|
|
6
|
+
metadata.gz: fcc41e14c19ccffdb2cd79a3c4e1593470a809783a651d41dee91af66fa031560c1c0c03b9e4c27d02b32fbd6e14c4b5c212c2d6be6eb014a57ee9786a66c32d
|
|
7
|
+
data.tar.gz: 0eb0a1adc2724d8fcbf8ecc3d7bed08bc33767bef77eb3a4b4d86a4fd0525ca28cdfcc239b6964837d7ca418a62e6e1c9991431b2f70438f4c719e627a877708
|
data/.gitignore
ADDED
data/.rspec
ADDED
data/Gemfile
ADDED
data/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
The MIT License (MIT)
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2016 David Feldman
|
|
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 all
|
|
13
|
+
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 THE
|
|
21
|
+
SOFTWARE.
|
data/README.md
ADDED
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
# Hydrangea
|
|
2
|
+
|
|
3
|
+
Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/hydrangea`. To experiment with that code, run `bin/console` for an interactive prompt.
|
|
4
|
+
|
|
5
|
+
TODO: Delete this and the text above, and describe your gem
|
|
6
|
+
|
|
7
|
+
## Installation
|
|
8
|
+
|
|
9
|
+
Add this line to your application's Gemfile:
|
|
10
|
+
|
|
11
|
+
```ruby
|
|
12
|
+
gem 'hydrangea'
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
And then execute:
|
|
16
|
+
|
|
17
|
+
$ bundle
|
|
18
|
+
|
|
19
|
+
Or install it yourself as:
|
|
20
|
+
|
|
21
|
+
$ gem install hydrangea
|
|
22
|
+
|
|
23
|
+
## Usage
|
|
24
|
+
|
|
25
|
+
TODO: Write usage instructions here
|
|
26
|
+
|
|
27
|
+
## Development
|
|
28
|
+
|
|
29
|
+
After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
|
|
30
|
+
|
|
31
|
+
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).
|
|
32
|
+
|
|
33
|
+
## Contributing
|
|
34
|
+
|
|
35
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/hydrangea.
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
## License
|
|
39
|
+
|
|
40
|
+
The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
|
|
41
|
+
|
data/Rakefile
ADDED
data/bin/console
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
#!/usr/bin/env ruby
|
|
2
|
+
|
|
3
|
+
require "bundler/setup"
|
|
4
|
+
require "hydrangea"
|
|
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/hydrangea.gemspec
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
lib = File.expand_path('../lib', __FILE__)
|
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
4
|
+
require 'hydrangea/version'
|
|
5
|
+
|
|
6
|
+
Gem::Specification.new do |spec|
|
|
7
|
+
spec.name = "hydrangea"
|
|
8
|
+
spec.version = Hydrangea::VERSION
|
|
9
|
+
spec.authors = ["David Feldman"]
|
|
10
|
+
spec.email = ["dbfeldman@gmail.com"]
|
|
11
|
+
|
|
12
|
+
spec.summary = "Flow control for batch operations"
|
|
13
|
+
spec.description = "Hydrangea provides better flow control for batch operations"
|
|
14
|
+
spec.homepage = "https://github.com/fledman/hydrangea"
|
|
15
|
+
spec.license = "MIT"
|
|
16
|
+
|
|
17
|
+
spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
|
18
|
+
spec.bindir = "exe"
|
|
19
|
+
spec.require_paths = ["lib"]
|
|
20
|
+
|
|
21
|
+
spec.add_development_dependency "bundler", "~> 1.10"
|
|
22
|
+
spec.add_development_dependency "rake", "~> 10.0"
|
|
23
|
+
spec.add_development_dependency "rspec", "~> 3.4"
|
|
24
|
+
spec.add_development_dependency "pry", "~>0.10"
|
|
25
|
+
end
|
data/lib/hydrangea.rb
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
require "hydrangea/version"
|
|
2
|
+
require "hydrangea/constants"
|
|
3
|
+
require "hydrangea/node"
|
|
4
|
+
require "hydrangea/graph"
|
|
5
|
+
require "hydrangea/flow"
|
|
6
|
+
|
|
7
|
+
module Hydrangea
|
|
8
|
+
def self.source(*values)
|
|
9
|
+
Flow.new(
|
|
10
|
+
Graph.new(
|
|
11
|
+
values.map{ |v|
|
|
12
|
+
Node.new(state: SUCCESS, value: v) }))
|
|
13
|
+
end
|
|
14
|
+
end
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
require 'hydrangea/single_node'
|
|
2
|
+
require 'hydrangea/list_of_nodes'
|
|
3
|
+
require 'hydrangea/nodes_by_value'
|
|
4
|
+
require 'hydrangea/graph_partition'
|
|
5
|
+
require 'hydrangea/partial_graph_transform'
|
|
6
|
+
|
|
7
|
+
module Hydrangea
|
|
8
|
+
class Flow
|
|
9
|
+
def initialize(graph)
|
|
10
|
+
@graph = graph
|
|
11
|
+
end
|
|
12
|
+
|
|
13
|
+
def map_each(states = SUCCESS)
|
|
14
|
+
pgt = PartialGraphTransform.new(@graph, states)
|
|
15
|
+
pgt.untransformed.each do |node|
|
|
16
|
+
yield SingleNode.new(pgt, node)
|
|
17
|
+
end
|
|
18
|
+
self.class.new(pgt.finish)
|
|
19
|
+
end
|
|
20
|
+
|
|
21
|
+
def map_list(states = SUCCESS)
|
|
22
|
+
pgt = PartialGraphTransform.new(@graph, states)
|
|
23
|
+
yield ListOfNodes.new(pgt)
|
|
24
|
+
self.class.new(pgt.finish)
|
|
25
|
+
end
|
|
26
|
+
|
|
27
|
+
def map_values(states = SUCCESS)
|
|
28
|
+
pgt = PartialGraphTransform.new(@graph, states)
|
|
29
|
+
yield NodesByValue.new(pgt)
|
|
30
|
+
self.class.new(pgt.finish)
|
|
31
|
+
end
|
|
32
|
+
|
|
33
|
+
def sink(states = SUCCESS)
|
|
34
|
+
GraphPartition[states].select(@graph)
|
|
35
|
+
end
|
|
36
|
+
end
|
|
37
|
+
end
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
require 'set'
|
|
2
|
+
require 'forwardable'
|
|
3
|
+
|
|
4
|
+
module Hydrangea
|
|
5
|
+
class Graph
|
|
6
|
+
extend Forwardable
|
|
7
|
+
|
|
8
|
+
def_delegators :@nodes, :each, :to_set
|
|
9
|
+
|
|
10
|
+
def initialize(nodes)
|
|
11
|
+
@nodes = case nodes
|
|
12
|
+
when Set then nodes.to_a
|
|
13
|
+
when Array then nodes.dup
|
|
14
|
+
else nodes.each.to_a
|
|
15
|
+
end
|
|
16
|
+
end
|
|
17
|
+
|
|
18
|
+
end
|
|
19
|
+
end
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
require 'hydrangea/constants'
|
|
2
|
+
|
|
3
|
+
module Hydrangea
|
|
4
|
+
class GraphPartition
|
|
5
|
+
def self.[](state_arg)
|
|
6
|
+
@instances ||= {}
|
|
7
|
+
@instances[state_arg] ||= new(state_arg)
|
|
8
|
+
end
|
|
9
|
+
|
|
10
|
+
private_class_method :new
|
|
11
|
+
|
|
12
|
+
def initialize(state_arg)
|
|
13
|
+
@lookup = ALL if state_arg == :all || state_arg == 'all'
|
|
14
|
+
@lookup ||= Array(state_arg).reduce(Set.new) do |set,state|
|
|
15
|
+
invalid_state_arg(state) unless ALL.include?(state)
|
|
16
|
+
set << state
|
|
17
|
+
end
|
|
18
|
+
end
|
|
19
|
+
|
|
20
|
+
def select(graph)
|
|
21
|
+
graph.each.select{ |node| @lookup.include?(node.state) }
|
|
22
|
+
end
|
|
23
|
+
|
|
24
|
+
def reject(graph)
|
|
25
|
+
graph.each.reject{ |node| @lookup.include?(node.state) }
|
|
26
|
+
end
|
|
27
|
+
|
|
28
|
+
def invalid_state_arg(arg)
|
|
29
|
+
raise ArgumentError, "not a valid graph state: #{arg.inspect}"
|
|
30
|
+
end
|
|
31
|
+
end
|
|
32
|
+
end
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
require 'hydrangea/graph'
|
|
2
|
+
require 'hydrangea/node'
|
|
3
|
+
require 'hydrangea/action_error'
|
|
4
|
+
|
|
5
|
+
module Hydrangea
|
|
6
|
+
class GraphTransform
|
|
7
|
+
def initialize(graph)
|
|
8
|
+
@before = graph.to_set
|
|
9
|
+
@after = Set.new
|
|
10
|
+
end
|
|
11
|
+
|
|
12
|
+
def transform(node:, new_state:, new_value:)
|
|
13
|
+
mark_completed(node)
|
|
14
|
+
@after << Node.new(state: new_state, value: new_value, previous: node)
|
|
15
|
+
self
|
|
16
|
+
end
|
|
17
|
+
|
|
18
|
+
def pass(node:)
|
|
19
|
+
mark_completed(node)
|
|
20
|
+
@after << node
|
|
21
|
+
self
|
|
22
|
+
end
|
|
23
|
+
|
|
24
|
+
def untransformed
|
|
25
|
+
@before.to_a
|
|
26
|
+
end
|
|
27
|
+
|
|
28
|
+
def finish
|
|
29
|
+
if @before.empty?
|
|
30
|
+
Graph.new(@after)
|
|
31
|
+
else
|
|
32
|
+
size = @before.size
|
|
33
|
+
raise ActionError, "REPLACE ME - NOT COMPLETE (#{size})"
|
|
34
|
+
end
|
|
35
|
+
end
|
|
36
|
+
|
|
37
|
+
private
|
|
38
|
+
|
|
39
|
+
def mark_completed(node)
|
|
40
|
+
return if @before.delete?(node)
|
|
41
|
+
raise ActionError, "REPLACE ME - ALREADY COMPLETE"
|
|
42
|
+
end
|
|
43
|
+
end
|
|
44
|
+
end
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
require 'forwardable'
|
|
2
|
+
require 'hydrangea/constants'
|
|
3
|
+
|
|
4
|
+
module Hydrangea
|
|
5
|
+
class ManyNodes
|
|
6
|
+
extend Forwardable
|
|
7
|
+
include Enumerable
|
|
8
|
+
|
|
9
|
+
def_delegators :@nodes, :[], :each
|
|
10
|
+
|
|
11
|
+
{ succeed: SUCCESS, fail: FAILURE, error: ERRORED }.each do |msg,state|
|
|
12
|
+
define_method(msg) do |with, node_arg, *more|
|
|
13
|
+
for_nodes(node_arg, more) do |node|
|
|
14
|
+
@transform.transform(node: node, new_state: state, new_value: with)
|
|
15
|
+
end
|
|
16
|
+
end
|
|
17
|
+
end
|
|
18
|
+
|
|
19
|
+
def pass(node_arg, *more)
|
|
20
|
+
for_nodes(node_arg, more){ |node| @transform.pass(node: node) }
|
|
21
|
+
end
|
|
22
|
+
|
|
23
|
+
private
|
|
24
|
+
|
|
25
|
+
def for_nodes(node_arg, more)
|
|
26
|
+
nodes = [node_arg] + more unless more.empty?
|
|
27
|
+
nodes ||= case node_arg
|
|
28
|
+
when :rest, 'rest' then @transform.untransformed
|
|
29
|
+
when Set then node_arg.to_a
|
|
30
|
+
when Array then node_arg
|
|
31
|
+
else [node_arg]
|
|
32
|
+
end
|
|
33
|
+
nodes.each do |node|
|
|
34
|
+
node.is_a?(Node) ? yield(node) : not_a_node_error(node)
|
|
35
|
+
end
|
|
36
|
+
end
|
|
37
|
+
|
|
38
|
+
def not_a_node_error(node)
|
|
39
|
+
raise ArgumentError, "expected a Node, got #{node.inspect}"
|
|
40
|
+
end
|
|
41
|
+
end
|
|
42
|
+
end
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
module Hydrangea
|
|
2
|
+
class Node
|
|
3
|
+
attr_reader :state, :value, :previous, :first
|
|
4
|
+
|
|
5
|
+
def initialize(state:, value:, previous: nil)
|
|
6
|
+
@state, @value, @previous = state, value, previous
|
|
7
|
+
@first = previous && previous.first || self
|
|
8
|
+
end
|
|
9
|
+
|
|
10
|
+
def history(&transform)
|
|
11
|
+
node, history = self, []
|
|
12
|
+
transform ||= :itself.to_proc
|
|
13
|
+
loop do
|
|
14
|
+
history << transform[node]
|
|
15
|
+
break if node.previous.nil?
|
|
16
|
+
node = node.previous
|
|
17
|
+
end
|
|
18
|
+
history
|
|
19
|
+
end
|
|
20
|
+
|
|
21
|
+
def to_a
|
|
22
|
+
[state,value]
|
|
23
|
+
end
|
|
24
|
+
|
|
25
|
+
def to_s
|
|
26
|
+
"(#{to_a.map(&:inspect).join(',')})"
|
|
27
|
+
end
|
|
28
|
+
|
|
29
|
+
def inspect
|
|
30
|
+
"#<#{self.class.name}#{to_s}>"
|
|
31
|
+
end
|
|
32
|
+
end
|
|
33
|
+
end
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
require 'hydrangea/many_nodes'
|
|
2
|
+
|
|
3
|
+
module Hydrangea
|
|
4
|
+
class NodesByValue < ManyNodes
|
|
5
|
+
def initialize(transform)
|
|
6
|
+
@transform = transform
|
|
7
|
+
@nodes = transform.untransformed.reduce({}) { |h,n| h[n.value] = n; h }
|
|
8
|
+
end
|
|
9
|
+
|
|
10
|
+
def nodes
|
|
11
|
+
map(&:last)
|
|
12
|
+
end
|
|
13
|
+
end
|
|
14
|
+
end
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
require 'hydrangea/graph_transform'
|
|
2
|
+
require 'hydrangea/graph_partition'
|
|
3
|
+
|
|
4
|
+
module Hydrangea
|
|
5
|
+
class PartialGraphTransform < GraphTransform
|
|
6
|
+
def initialize(nodes, states)
|
|
7
|
+
super(nodes)
|
|
8
|
+
GraphPartition[states].reject(@before).each{ |n| pass(node: n) }
|
|
9
|
+
end
|
|
10
|
+
end
|
|
11
|
+
end
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
require 'forwardable'
|
|
2
|
+
require 'hydrangea/constants'
|
|
3
|
+
|
|
4
|
+
module Hydrangea
|
|
5
|
+
class SingleNode
|
|
6
|
+
extend Forwardable
|
|
7
|
+
|
|
8
|
+
attr_reader :node
|
|
9
|
+
def_delegators :@node, :state, :value
|
|
10
|
+
|
|
11
|
+
def initialize(transform, node)
|
|
12
|
+
@transform, @node = transform, node
|
|
13
|
+
end
|
|
14
|
+
|
|
15
|
+
{ succeed: SUCCESS, fail: FAILURE, error: ERRORED }.each do |msg,state|
|
|
16
|
+
define_method(msg) do |with|
|
|
17
|
+
@transform.transform(node: node, new_state: state, new_value: with)
|
|
18
|
+
end
|
|
19
|
+
end
|
|
20
|
+
|
|
21
|
+
def pass
|
|
22
|
+
@transform.pass(node: node)
|
|
23
|
+
end
|
|
24
|
+
end
|
|
25
|
+
end
|
metadata
ADDED
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
|
2
|
+
name: hydrangea
|
|
3
|
+
version: !ruby/object:Gem::Version
|
|
4
|
+
version: 0.1.0
|
|
5
|
+
platform: ruby
|
|
6
|
+
authors:
|
|
7
|
+
- David Feldman
|
|
8
|
+
autorequire:
|
|
9
|
+
bindir: exe
|
|
10
|
+
cert_chain: []
|
|
11
|
+
date: 2016-06-02 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.10'
|
|
20
|
+
type: :development
|
|
21
|
+
prerelease: false
|
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
23
|
+
requirements:
|
|
24
|
+
- - "~>"
|
|
25
|
+
- !ruby/object:Gem::Version
|
|
26
|
+
version: '1.10'
|
|
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: rspec
|
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
|
44
|
+
requirements:
|
|
45
|
+
- - "~>"
|
|
46
|
+
- !ruby/object:Gem::Version
|
|
47
|
+
version: '3.4'
|
|
48
|
+
type: :development
|
|
49
|
+
prerelease: false
|
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
51
|
+
requirements:
|
|
52
|
+
- - "~>"
|
|
53
|
+
- !ruby/object:Gem::Version
|
|
54
|
+
version: '3.4'
|
|
55
|
+
- !ruby/object:Gem::Dependency
|
|
56
|
+
name: pry
|
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
|
58
|
+
requirements:
|
|
59
|
+
- - "~>"
|
|
60
|
+
- !ruby/object:Gem::Version
|
|
61
|
+
version: '0.10'
|
|
62
|
+
type: :development
|
|
63
|
+
prerelease: false
|
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
65
|
+
requirements:
|
|
66
|
+
- - "~>"
|
|
67
|
+
- !ruby/object:Gem::Version
|
|
68
|
+
version: '0.10'
|
|
69
|
+
description: Hydrangea provides better flow control for batch operations
|
|
70
|
+
email:
|
|
71
|
+
- dbfeldman@gmail.com
|
|
72
|
+
executables: []
|
|
73
|
+
extensions: []
|
|
74
|
+
extra_rdoc_files: []
|
|
75
|
+
files:
|
|
76
|
+
- ".gitignore"
|
|
77
|
+
- ".rspec"
|
|
78
|
+
- Gemfile
|
|
79
|
+
- LICENSE
|
|
80
|
+
- README.md
|
|
81
|
+
- Rakefile
|
|
82
|
+
- bin/console
|
|
83
|
+
- bin/setup
|
|
84
|
+
- hydrangea.gemspec
|
|
85
|
+
- lib/hydrangea.rb
|
|
86
|
+
- lib/hydrangea/action_error.rb
|
|
87
|
+
- lib/hydrangea/constants.rb
|
|
88
|
+
- lib/hydrangea/flow.rb
|
|
89
|
+
- lib/hydrangea/graph.rb
|
|
90
|
+
- lib/hydrangea/graph_partition.rb
|
|
91
|
+
- lib/hydrangea/graph_transform.rb
|
|
92
|
+
- lib/hydrangea/list_of_nodes.rb
|
|
93
|
+
- lib/hydrangea/many_nodes.rb
|
|
94
|
+
- lib/hydrangea/node.rb
|
|
95
|
+
- lib/hydrangea/nodes_by_value.rb
|
|
96
|
+
- lib/hydrangea/partial_graph_transform.rb
|
|
97
|
+
- lib/hydrangea/single_node.rb
|
|
98
|
+
- lib/hydrangea/version.rb
|
|
99
|
+
homepage: https://github.com/fledman/hydrangea
|
|
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.4.5.1
|
|
120
|
+
signing_key:
|
|
121
|
+
specification_version: 4
|
|
122
|
+
summary: Flow control for batch operations
|
|
123
|
+
test_files: []
|