rukawa 0.8.0 → 0.9.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/.github/workflows/test.yml +41 -0
- data/README.md +1 -2
- data/lib/rukawa/cli.rb +1 -1
- data/lib/rukawa/version.rb +1 -1
- data/rukawa.gemspec +4 -4
- data/sample/rukawa.rb +0 -2
- metadata +27 -28
- data/.travis.yml +0 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: f433f168b831f2b1c30a55129c711382b2519c5e2de79f669486cff353aa344a
|
4
|
+
data.tar.gz: 28c8226bf65d6f747723650a60786fd966e1e758a5d3145efcde7318e19208ea
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 452a7bfd1726c3992f1788ae457a1208247ccdac4e6e7ce9b79b069c942c8d7a176ea1908ef481479e730d751089b9880ec39eb66b0449f018ab1fac9b6b9bda
|
7
|
+
data.tar.gz: 8a86b7ca28ea37638c0b92bb5747bd55f6ca347683d9285a368898c8a92a569b72b8e2a387a701e4292a1a887302880f4bade96c2808f061f726b0a2ddb8748f
|
@@ -0,0 +1,41 @@
|
|
1
|
+
name: test
|
2
|
+
|
3
|
+
on:
|
4
|
+
push:
|
5
|
+
branches:
|
6
|
+
- '*'
|
7
|
+
|
8
|
+
pull_request:
|
9
|
+
# schedule:
|
10
|
+
# cron: '0 0 * * 0' # every Sunday at 00:00 (UTC)
|
11
|
+
|
12
|
+
jobs:
|
13
|
+
build:
|
14
|
+
runs-on: ubuntu-latest
|
15
|
+
name: Ruby ${{ matrix.ruby }}
|
16
|
+
strategy:
|
17
|
+
matrix:
|
18
|
+
ruby:
|
19
|
+
- '3.0'
|
20
|
+
- '3.1'
|
21
|
+
- '3.2'
|
22
|
+
services:
|
23
|
+
redis:
|
24
|
+
image: redis
|
25
|
+
options: >-
|
26
|
+
--health-cmd "redis-cli ping"
|
27
|
+
--health-interval 10s
|
28
|
+
--health-timeout 5s
|
29
|
+
--health-retries 5
|
30
|
+
ports:
|
31
|
+
- 6379:6379
|
32
|
+
|
33
|
+
steps:
|
34
|
+
- uses: actions/checkout@v2
|
35
|
+
- name: Set up Ruby
|
36
|
+
uses: ruby/setup-ruby@v1
|
37
|
+
with:
|
38
|
+
ruby-version: ${{ matrix.ruby }}
|
39
|
+
bundler-cache: true
|
40
|
+
- run: bundle exec rake spec
|
41
|
+
|
data/README.md
CHANGED
@@ -1,7 +1,6 @@
|
|
1
|
-
[![Stories in Ready](https://badge.waffle.io/joker1007/rukawa.png?label=ready&title=Ready)](https://waffle.io/joker1007/rukawa)
|
2
1
|
# Rukawa
|
3
2
|
[![Gem Version](https://badge.fury.io/rb/rukawa.svg)](https://badge.fury.io/rb/rukawa)
|
4
|
-
[![
|
3
|
+
[![test](https://github.com/joker1007/rukawa/actions/workflows/test.yml/badge.svg)](https://github.com/joker1007/rukawa/actions/workflows/test.yml)
|
5
4
|
[![Code Climate](https://codeclimate.com/github/joker1007/rukawa/badges/gpa.svg)](https://codeclimate.com/github/joker1007/rukawa)
|
6
5
|
|
7
6
|
Rukawa = (流川)
|
data/lib/rukawa/cli.rb
CHANGED
@@ -35,7 +35,7 @@ module Rukawa
|
|
35
35
|
|
36
36
|
job_net_class = get_class(job_net_name)
|
37
37
|
job_classes = job_name.map { |name| get_class(name) }
|
38
|
-
job_net = job_net_class.new(resume_job_classes: job_classes)
|
38
|
+
job_net = job_net_class.new(variables: variables, resume_job_classes: job_classes)
|
39
39
|
result = Runner.run(job_net, options[:batch], options[:refresh_interval])
|
40
40
|
|
41
41
|
if options[:dot]
|
data/lib/rukawa/version.rb
CHANGED
data/rukawa.gemspec
CHANGED
@@ -18,18 +18,18 @@ Gem::Specification.new do |spec|
|
|
18
18
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
19
19
|
spec.require_paths = ["lib"]
|
20
20
|
|
21
|
-
spec.add_runtime_dependency "activesupport", ">=
|
21
|
+
spec.add_runtime_dependency "activesupport", ">= 6"
|
22
|
+
spec.add_runtime_dependency "redis"
|
22
23
|
spec.add_runtime_dependency "concurrent-ruby"
|
23
24
|
spec.add_runtime_dependency "thor"
|
24
25
|
spec.add_runtime_dependency "terminal-table"
|
25
26
|
spec.add_runtime_dependency "paint"
|
26
27
|
|
27
|
-
spec.add_development_dependency "bundler", "~>
|
28
|
-
spec.add_development_dependency "rake", "~>
|
28
|
+
spec.add_development_dependency "bundler", "~> 2.0"
|
29
|
+
spec.add_development_dependency "rake", "~> 13.0"
|
29
30
|
spec.add_development_dependency "rspec", "~> 3.0"
|
30
31
|
spec.add_development_dependency "rspec-power_assert"
|
31
32
|
spec.add_development_dependency "rspec-parameterized"
|
32
|
-
spec.add_development_dependency "redis-activesupport"
|
33
33
|
spec.add_development_dependency "activejob"
|
34
34
|
spec.add_development_dependency "sucker_punch"
|
35
35
|
spec.add_development_dependency "aws-sdk", "~> 2.0"
|
data/sample/rukawa.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rukawa
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.9.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- joker1007
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2023-04-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -16,14 +16,28 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '
|
19
|
+
version: '6'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - ">="
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: '
|
26
|
+
version: '6'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: redis
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - ">="
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '0'
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - ">="
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '0'
|
27
41
|
- !ruby/object:Gem::Dependency
|
28
42
|
name: concurrent-ruby
|
29
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -86,28 +100,28 @@ dependencies:
|
|
86
100
|
requirements:
|
87
101
|
- - "~>"
|
88
102
|
- !ruby/object:Gem::Version
|
89
|
-
version: '
|
103
|
+
version: '2.0'
|
90
104
|
type: :development
|
91
105
|
prerelease: false
|
92
106
|
version_requirements: !ruby/object:Gem::Requirement
|
93
107
|
requirements:
|
94
108
|
- - "~>"
|
95
109
|
- !ruby/object:Gem::Version
|
96
|
-
version: '
|
110
|
+
version: '2.0'
|
97
111
|
- !ruby/object:Gem::Dependency
|
98
112
|
name: rake
|
99
113
|
requirement: !ruby/object:Gem::Requirement
|
100
114
|
requirements:
|
101
115
|
- - "~>"
|
102
116
|
- !ruby/object:Gem::Version
|
103
|
-
version: '
|
117
|
+
version: '13.0'
|
104
118
|
type: :development
|
105
119
|
prerelease: false
|
106
120
|
version_requirements: !ruby/object:Gem::Requirement
|
107
121
|
requirements:
|
108
122
|
- - "~>"
|
109
123
|
- !ruby/object:Gem::Version
|
110
|
-
version: '
|
124
|
+
version: '13.0'
|
111
125
|
- !ruby/object:Gem::Dependency
|
112
126
|
name: rspec
|
113
127
|
requirement: !ruby/object:Gem::Requirement
|
@@ -150,20 +164,6 @@ dependencies:
|
|
150
164
|
- - ">="
|
151
165
|
- !ruby/object:Gem::Version
|
152
166
|
version: '0'
|
153
|
-
- !ruby/object:Gem::Dependency
|
154
|
-
name: redis-activesupport
|
155
|
-
requirement: !ruby/object:Gem::Requirement
|
156
|
-
requirements:
|
157
|
-
- - ">="
|
158
|
-
- !ruby/object:Gem::Version
|
159
|
-
version: '0'
|
160
|
-
type: :development
|
161
|
-
prerelease: false
|
162
|
-
version_requirements: !ruby/object:Gem::Requirement
|
163
|
-
requirements:
|
164
|
-
- - ">="
|
165
|
-
- !ruby/object:Gem::Version
|
166
|
-
version: '0'
|
167
167
|
- !ruby/object:Gem::Dependency
|
168
168
|
name: activejob
|
169
169
|
requirement: !ruby/object:Gem::Requirement
|
@@ -228,9 +228,9 @@ executables:
|
|
228
228
|
extensions: []
|
229
229
|
extra_rdoc_files: []
|
230
230
|
files:
|
231
|
+
- ".github/workflows/test.yml"
|
231
232
|
- ".gitignore"
|
232
233
|
- ".rspec"
|
233
|
-
- ".travis.yml"
|
234
234
|
- Gemfile
|
235
235
|
- LICENSE.txt
|
236
236
|
- README.md
|
@@ -273,7 +273,7 @@ files:
|
|
273
273
|
homepage: https://github.com/joker1007/rukawa
|
274
274
|
licenses: []
|
275
275
|
metadata: {}
|
276
|
-
post_install_message:
|
276
|
+
post_install_message:
|
277
277
|
rdoc_options: []
|
278
278
|
require_paths:
|
279
279
|
- lib
|
@@ -288,9 +288,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
288
288
|
- !ruby/object:Gem::Version
|
289
289
|
version: '0'
|
290
290
|
requirements: []
|
291
|
-
|
292
|
-
|
293
|
-
signing_key:
|
291
|
+
rubygems_version: 3.4.10
|
292
|
+
signing_key:
|
294
293
|
specification_version: 4
|
295
294
|
summary: Hyper simple job workflow engine
|
296
295
|
test_files: []
|