rukawa 0.8.0 → 0.9.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: f20d1b4390ea19285878740c4fd30b118bc52273
4
- data.tar.gz: 487f1bb66ef23f1a6f2b864e4841fb36a5ea50ce
2
+ SHA256:
3
+ metadata.gz: 97d91d9bea7b2d8002df95dbe35657e5c64df0858eaca21d2702d7e45418ac69
4
+ data.tar.gz: 5ca4ab3ab7096472efd24cfc736da7d4c0e1e44b32aff02050a2c87b05b3eb7b
5
5
  SHA512:
6
- metadata.gz: 38211de4f9002c4c126dddd842d58513029172543d8b7518f4cc922a1fd9d0151a31c38562e217fe4b3fc516100c7ff5d801522a1185bcd47949d6a0278cddcd
7
- data.tar.gz: 25c8dd013ad604de427ad5e559d254fea7fd89c372f1e8a1d7f95ffbdbca417a0608b768ca9c5077ab9872116761ed523d2e8ec7b958a633f25298c73c1767bb
6
+ metadata.gz: fa1b3454357c04dd7fe0d8bdc4994b69c4e194cf7dd3a20efc6fd44c52c66614fac32e9bba554988e701e4ebbd79197ccb6e2472ed319d799c6ad8f88bfe9002
7
+ data.tar.gz: 30b42bb55a9ecd0262c2f520a74710f7a83f3b4883f3db2ac23ecc2ff759fbb04f4ecf679f163d6b36389d015c0fc8ef03152ea230172765272ef263642d468a
@@ -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
- [![Build Status](https://travis-ci.org/joker1007/rukawa.svg?branch=master)](https://travis-ci.org/joker1007/rukawa)
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]
@@ -114,7 +114,7 @@ module Rukawa
114
114
  if options[:config]
115
115
  load File.expand_path(options[:config], Dir.pwd)
116
116
  else
117
- load default_config_file if File.exists?(default_config_file)
117
+ load default_config_file if File.exist?(default_config_file)
118
118
  end
119
119
 
120
120
  Rukawa.configure do |c|
@@ -1,3 +1,3 @@
1
1
  module Rukawa
2
- VERSION = "0.8.0"
2
+ VERSION = "0.9.1"
3
3
  end
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", ">= 4"
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", "~> 1.11"
28
- spec.add_development_dependency "rake", "~> 10.0"
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
@@ -3,8 +3,6 @@ Rukawa.configure do |c|
3
3
  c.graph.nodesep = 0.8
4
4
  end
5
5
 
6
- require 'redis-activesupport'
7
-
8
6
  redis_host = ENV["REDIS_HOST"] || "localhost:6379"
9
7
  Rukawa.configure do |c|
10
8
  c.status_store = ActiveSupport::Cache::RedisStore.new(redis_host)
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.8.0
4
+ version: 0.9.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - joker1007
8
- autorequire:
8
+ autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-02-21 00:00:00.000000000 Z
11
+ date: 2023-05-23 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: '4'
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: '4'
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: '1.11'
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: '1.11'
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: '10.0'
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: '10.0'
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
- rubyforge_project:
292
- rubygems_version: 2.6.8
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: []
data/.travis.yml DELETED
@@ -1,8 +0,0 @@
1
- language: ruby
2
- sudo: required
3
- rvm:
4
- - 2.2.5
5
- - 2.3.0
6
- services:
7
- - redis-server
8
- before_install: gem install bundler -v 1.11.2