async-graph 0.1.0 → 0.1.1

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f23474b45b79529d8bed62b984c0329017e85daee7521bddf070558cc1f7ff92
4
- data.tar.gz: b26664dbb15b6ba75b04e8ad07ac7ea7e6c39f0d532ac24f0b2f007647f2c6e0
3
+ metadata.gz: d3e3bf481043bd72452272103c97734117490058de259428a68eef31fd264d02
4
+ data.tar.gz: fe632f6b44ae151a7a84de797f87dcbabfea0fa657f1f2fc89e44346ae2f0a04
5
5
  SHA512:
6
- metadata.gz: 64933573224dc275532309ede2a9e6a699115ae6e52a6389171249412a9b9dd2786d728ec803bf06f7d9483d910fdd5ae048e299cf0151b7857df758f9ec6ac2
7
- data.tar.gz: e81029fc6bb0a4b7a14b470beb7b885dc9d5692ed77c1dde69bfa7d88580b6450279c61c77e3c4433ea54cb2360857fe3d3ad9837551c5539b7f109684940892
6
+ metadata.gz: be4936d2a7d36d3935d179d74b7bf5715c1065f30e825b5e1a2e0ab04ee1f6cbbf528e736967c8c099df55d0b59bb72f39d4d906d964a84e67c9666215637edb
7
+ data.tar.gz: cde66865264df5b7d647c2d6704d8fed789c54e25ab7b3c27fe57c2d52e8ca63c01218bcf38d6db0b95d45a825e2641dd90a34db88d388e2426d5cd0861dfba4
data/.gitignore CHANGED
@@ -5,3 +5,4 @@
5
5
  /.idea/workspace.xml
6
6
  /examples/*.json
7
7
  /*.gem
8
+ /*.iml
data/README.erb CHANGED
@@ -1,6 +1,6 @@
1
1
  # AsyncGraph
2
2
 
3
- AsyncGraph is a small Ruby runtime for graph-style workflows that suspend on external work,
3
+ AsyncGraph is a Ruby runtime for graph-style workflows that suspend on external work,
4
4
  store jobs outside the graph, and resume on later passes. It supports:
5
5
 
6
6
  - single-step graph execution
@@ -17,7 +17,7 @@ gem install async-graph
17
17
  ## Example
18
18
 
19
19
  ```ruby
20
- require "async_graph"
20
+ require 'async-graph'
21
21
 
22
22
  graph = AsyncGraph::Graph.new do
23
23
  node :fetch_user do |state, await|
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # AsyncGraph
2
2
 
3
- AsyncGraph is a small Ruby runtime for graph-style workflows that suspend on external work,
3
+ AsyncGraph is a Ruby runtime for graph-style workflows that suspend on external work,
4
4
  store jobs outside the graph, and resume on later passes. It supports:
5
5
 
6
6
  - single-step graph execution
@@ -17,7 +17,7 @@ gem install async-graph
17
17
  ## Example
18
18
 
19
19
  ```ruby
20
- require "async_graph"
20
+ require 'async-graph'
21
21
 
22
22
  graph = AsyncGraph::Graph.new do
23
23
  node :fetch_user do |state, await|
data/Rakefile CHANGED
@@ -4,7 +4,7 @@ require "erb"
4
4
  require "fileutils"
5
5
  require "rspec/core/rake_task"
6
6
  require "rubocop/rake_task"
7
- require_relative "lib/async_graph/version"
7
+ require_relative "lib/async-graph/version"
8
8
 
9
9
  RSpec::Core::RakeTask.new(:spec)
10
10
  RuboCop::RakeTask.new
data/async-graph.gemspec CHANGED
@@ -1,13 +1,13 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require_relative "lib/async_graph/version"
3
+ require_relative "lib/async-graph/version"
4
4
 
5
5
  Gem::Specification.new do |spec|
6
6
  spec.name = "async-graph"
7
7
  spec.version = AsyncGraph::VERSION
8
- spec.summary = "Small async graph runtime with external job scheduling"
8
+ spec.summary = "Async Graph runtime with external job scheduling"
9
9
  spec.description = "A minimal Ruby graph runtime that suspends on external work and resumes later."
10
- spec.authors = ["Author"]
10
+ spec.authors = ["Artem Borodkin"]
11
11
  spec.email = ["author@email.address"]
12
12
  spec.files = Dir[
13
13
  "{bin,examples,lib,spec}/**/*",
@@ -25,8 +25,8 @@ Gem::Specification.new do |spec|
25
25
  spec.require_paths = ["lib"]
26
26
  spec.homepage = "https://rubygems.org/gems/async-graph"
27
27
  spec.license = "MIT"
28
- spec.metadata = { "source_code_uri" => "https://github.com/example/async-graph" }
29
- spec.required_ruby_version = ">= #{File.read(File.join(__dir__, ".ruby-version")).strip}"
28
+ spec.metadata = { "source_code_uri" => "https://github.com/artyomb/async-graph" }
29
+ # spec.required_ruby_version = ">= #{File.read(File.join(__dir__, ".ruby-version")).strip}"
30
30
 
31
31
  spec.add_development_dependency "rake", "~> 13.0"
32
32
  spec.add_development_dependency "rspec", "~> 3.10"
data/bin/console CHANGED
@@ -2,7 +2,7 @@
2
2
  # frozen_string_literal: true
3
3
 
4
4
  require "bundler/setup"
5
- require "async_graph"
5
+ require "async-graph"
6
6
  require "irb"
7
7
 
8
8
  IRB.start(__FILE__)
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require_relative "../lib/async_graph"
3
+ require_relative "../lib/async-graph"
4
4
 
5
5
  GRAPH = AsyncGraph::Graph.new do
6
6
  node :split do
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module AsyncGraph
4
- VERSION = "0.1.0"
4
+ VERSION = "0.1.1"
5
5
  end
@@ -0,0 +1,4 @@
1
+ # frozen_string_literal: true
2
+
3
+ require_relative "async-graph/version"
4
+ require_relative "async-graph/graph"
data/spec/spec_helper.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require "async_graph"
3
+ require "async-graph"
metadata CHANGED
@@ -1,10 +1,10 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: async-graph
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
- - Author
7
+ - Artem Borodkin
8
8
  bindir: bin
9
9
  cert_chain: []
10
10
  date: 1980-01-02 00:00:00.000000000 Z
@@ -116,20 +116,18 @@ files:
116
116
  - examples/app_graph.rb
117
117
  - examples/execute_jobs.rb
118
118
  - examples/graph_run.rb
119
- - examples/graph_states.json
120
- - examples/jobs.json
121
119
  - examples/reset.rb
122
120
  - examples/run.sh
123
- - lib/async_graph.rb
124
- - lib/async_graph/graph.rb
125
- - lib/async_graph/version.rb
121
+ - lib/async-graph.rb
122
+ - lib/async-graph/graph.rb
123
+ - lib/async-graph/version.rb
126
124
  - spec/async_graph_spec.rb
127
125
  - spec/spec_helper.rb
128
126
  homepage: https://rubygems.org/gems/async-graph
129
127
  licenses:
130
128
  - MIT
131
129
  metadata:
132
- source_code_uri: https://github.com/example/async-graph
130
+ source_code_uri: https://github.com/artyomb/async-graph
133
131
  rdoc_options: []
134
132
  require_paths:
135
133
  - lib
@@ -137,7 +135,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
137
135
  requirements:
138
136
  - - ">="
139
137
  - !ruby/object:Gem::Version
140
- version: 3.4.4
138
+ version: '0'
141
139
  required_rubygems_version: !ruby/object:Gem::Requirement
142
140
  requirements:
143
141
  - - ">="
@@ -146,5 +144,5 @@ required_rubygems_version: !ruby/object:Gem::Requirement
146
144
  requirements: []
147
145
  rubygems_version: 3.6.7
148
146
  specification_version: 4
149
- summary: Small async graph runtime with external job scheduling
147
+ summary: Async Graph runtime with external job scheduling
150
148
  test_files: []
@@ -1,42 +0,0 @@
1
- {
2
- "graphs": [
3
- {
4
- "graph_uid": "graph-1",
5
- "status": "finished",
6
- "tokens": [],
7
- "joins": {},
8
- "result": {
9
- "user_id": 7,
10
- "left_ready": true,
11
- "right_ready": true,
12
- "left": {
13
- "id": 7,
14
- "name": "Ada-7"
15
- },
16
- "right": {
17
- "score": 70
18
- },
19
- "message": "Ada-7 score=70"
20
- }
21
- },
22
- {
23
- "graph_uid": "graph-2",
24
- "status": "finished",
25
- "tokens": [],
26
- "joins": {},
27
- "result": {
28
- "user_id": 8,
29
- "left_ready": true,
30
- "right_ready": true,
31
- "left": {
32
- "id": 8,
33
- "name": "Ada-8"
34
- },
35
- "right": {
36
- "score": 80
37
- },
38
- "message": "Ada-8 score=80"
39
- }
40
- }
41
- ]
42
- }
data/examples/jobs.json DELETED
@@ -1,50 +0,0 @@
1
- {
2
- "jobs": [
3
- {
4
- "job_uid": "job-1",
5
- "kind": "fetch_profile",
6
- "payload": {
7
- "user_id": 7
8
- },
9
- "status": "done",
10
- "result": {
11
- "id": 7,
12
- "name": "Ada-7"
13
- }
14
- },
15
- {
16
- "job_uid": "job-2",
17
- "kind": "fetch_score",
18
- "payload": {
19
- "user_id": 7
20
- },
21
- "status": "done",
22
- "result": {
23
- "score": 70
24
- }
25
- },
26
- {
27
- "job_uid": "job-3",
28
- "kind": "fetch_profile",
29
- "payload": {
30
- "user_id": 8
31
- },
32
- "status": "done",
33
- "result": {
34
- "id": 8,
35
- "name": "Ada-8"
36
- }
37
- },
38
- {
39
- "job_uid": "job-4",
40
- "kind": "fetch_score",
41
- "payload": {
42
- "user_id": 8
43
- },
44
- "status": "done",
45
- "result": {
46
- "score": 80
47
- }
48
- }
49
- ]
50
- }
data/lib/async_graph.rb DELETED
@@ -1,4 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require_relative "async_graph/version"
4
- require_relative "async_graph/graph"
File without changes