dwf 0.1.8 → 0.1.9

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: 395f410168239441a56db548cccc50d729433bedcc9fd0d4c3ae15fea09c1019
4
- data.tar.gz: 5a944cc497760afe6b92f38772d594d56f15837ab51495609dba24f7578af309
3
+ metadata.gz: d37bac690df59157001462d6017a8a63d3956a280689de789d9a99163a476832
4
+ data.tar.gz: 935d76e99ff5ca109f00be80c01950c20272969f556fc70d0e1ef5c026c024e4
5
5
  SHA512:
6
- metadata.gz: 0123f65c0242c905c93e0998365a43b4193432c6e5b74af4a33422e7b489424294a70c68cf4e42feb627ecc038429e0dba6dc54af80acd1dc7628c2b56ff532c
7
- data.tar.gz: 674a7144dc944d878cfddb549254985dc0a136fd84069df184a44c8a375f6ccc47e9be3d6b445f6bfcc83af8f52ed6b23fa9687f23714e49b30e24a6bbdea1de
6
+ metadata.gz: c105d178cd44f12577ee9eeed5065768a23adc508da7d686e50c46d26e4eed9c160dc71b10942ab8041e38f6c732384742f40fa9d3076e0a924fbdfb1cd62845
7
+ data.tar.gz: ad9c6f1041f092847364e91408887be311435be62e0502ab54f2b408c92fc598a879792eabb00c81b05d5c97fb37ea4a19136765d54b0d4efe9dbdb9ad2f64b5
data/CHANGELOG.md CHANGED
@@ -1,5 +1,10 @@
1
1
  # Changelog
2
2
  All notable changes to this project will be documented in this file.
3
+ ## 0.1.9
4
+ ### Added
5
+ ### Fixed
6
+ - fix incorrect argument at configuration
7
+
3
8
  ## 0.1.8
4
9
  ### Added
5
10
  - add pinlining feature
data/README.md CHANGED
@@ -4,7 +4,7 @@
4
4
  # Installation
5
5
  ## 1. Add `dwf` to Gemfile
6
6
  ```ruby
7
- gem 'dwf', '~> 0.1.6'
7
+ gem 'dwf', '~> 0.1.9'
8
8
  ```
9
9
  ## 2. Execute flow
10
10
  ### Declare jobs
@@ -72,13 +72,14 @@ D Finished
72
72
  ```
73
73
 
74
74
  # Config redis and default queue
75
+ `dwf` uses redis as the key value stograge through [redis-rb](https://github.com/redis/redis-rb), So you can pass redis configuration by `redis_opts`
75
76
  ```ruby
76
77
  Dwf.config do |config|
77
78
  SENTINELS = [
78
79
  { host: "127.0.0.1", port: 26380 },
79
80
  { host: "127.0.0.1", port: 26381 }
80
81
  ]
81
- config.opts = { host: 'mymaster', sentinels: SENTINELS, role: :master }
82
+ config.redis_opts = { host: 'mymaster', sentinels: SENTINELS, role: :master }
82
83
  config.namespace = 'dwf'
83
84
  end
84
85
  ```
@@ -123,8 +124,8 @@ end
123
124
  - [x] Support with build-in callback
124
125
  - [x] Add github workflow
125
126
  - [x] Redis configurable
127
+ - [x] Pinelining
126
128
  - [ ] [WIP] Test
127
- - [ ] Transfer output through each node
128
129
  - [ ] Support [Resque](https://github.com/resque/resque)
129
130
 
130
131
  # References
data/dwf.gemspec CHANGED
@@ -6,7 +6,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
6
6
 
7
7
  Gem::Specification.new do |spec|
8
8
  spec.name = "dwf"
9
- spec.version = '0.1.8'
9
+ spec.version = '0.1.9'
10
10
  spec.authors = ["dthtien"]
11
11
  spec.email = ["tiendt2311@gmail.com"]
12
12
 
@@ -9,7 +9,7 @@ module Dwf
9
9
 
10
10
  def initialize(hash = {})
11
11
  @namespace = hash.fetch(:namespace, NAMESPACE)
12
- @redis_opts = hash.fetch(:redis_url, REDIS_OPTS)
12
+ @redis_opts = hash.fetch(:redis_opts, REDIS_OPTS)
13
13
  end
14
14
  end
15
15
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dwf
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.8
4
+ version: 0.1.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - dthtien
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-09-09 00:00:00.000000000 Z
11
+ date: 2021-09-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: byebug