dwf 0.1.1 → 0.1.2
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 +4 -4
- data/.gitignore +1 -1
- data/README.md +9 -3
- data/dwf.gemspec +1 -1
- data/lib/dwf.rb +0 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 318788f2a1f0820af97211b73ee08e771e23d986073b470858f752005b4cab8b
|
4
|
+
data.tar.gz: e7c8ae57c3cd2180e890077cf8acc8c63ea93fab73c4bddf62374cc7f98a96be
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c564de1939d9b93f5ee7fd1c65bec7ac166c7d0997792a6d1031ec6beb7541e2fb2d94935df29948ff2e7e0ac45a962dee8e47ec524192f5c406748d4ca48af7
|
7
|
+
data.tar.gz: '079decbb4e369b9518d6de5ffd3a37f76ae1df1628ba46bac239fd05c1d30e40dfa203593faee106913eea1ac33a010ce4c895e80e19f17f504374c7ae17941b'
|
data/.gitignore
CHANGED
data/README.md
CHANGED
@@ -1,13 +1,17 @@
|
|
1
1
|
# DSL playground
|
2
2
|
[Gush](https://github.com/chaps-io/gush) cloned without [ActiveJob](https://guides.rubyonrails.org/active_job_basics.html) but requried [Sidekiq](https://github.com/mperham/sidekiq). This project is for researching DSL purpose
|
3
3
|
|
4
|
+
# Installation
|
5
|
+
```ruby
|
6
|
+
gem 'dwf', '~> 0.1.1'
|
7
|
+
```
|
4
8
|
# Execute flow
|
5
9
|
## Declare jobs
|
6
10
|
|
7
11
|
```ruby
|
8
|
-
|
12
|
+
require 'dwf'
|
9
13
|
|
10
|
-
class A <
|
14
|
+
class A < Dwf::Item
|
11
15
|
def perform
|
12
16
|
puts "#{self.class.name} Working"
|
13
17
|
sleep 2
|
@@ -23,7 +27,9 @@ class D < E; end
|
|
23
27
|
|
24
28
|
## Declare flow
|
25
29
|
```ruby
|
26
|
-
|
30
|
+
require 'dwf'
|
31
|
+
|
32
|
+
class TestWf < Dwf::Workflow
|
27
33
|
def configure
|
28
34
|
run A
|
29
35
|
run B, after: A
|
data/dwf.gemspec
CHANGED
data/lib/dwf.rb
CHANGED