process_handler 4.0.0 → 4.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/ci.yml +25 -0
- data/.ruby-version +1 -1
- data/README.md +1 -1
- data/lib/salemove/process_handler/cron_process.rb +1 -1
- data/lib/salemove/process_handler/pivot_process.rb +1 -1
- data/lib/salemove/process_handler/version.rb +1 -1
- data/spec/process_handler/cron_process_spec.rb +2 -2
- metadata +4 -5
- data/.travis.yml +0 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e99facc49cfc6587f45cf03e92d33a940b4a0648e5a29dfce3714915d603e5b8
|
4
|
+
data.tar.gz: b63e820420d30df0b726d798559a39400afb4c5d09bd6b214438dd335b71e065
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 876e10d01a71da7f8c979f28702982c1bd4181dace88cf31b3ff30a198005a8d2270ca44f04baa8857ba99d598a54f652dd20e9e188b9174c2b5e11ea65709d3
|
7
|
+
data.tar.gz: b38719bc732eec253a91827c861b38f65655b327d556e1b093a257707b55268fdf652c5195f4e4a19ebcc70a280963978611ead196d21b42b85e8d1ce9fe10cd
|
@@ -0,0 +1,25 @@
|
|
1
|
+
name: Ruby
|
2
|
+
|
3
|
+
on:
|
4
|
+
push:
|
5
|
+
branches: [ master ]
|
6
|
+
pull_request:
|
7
|
+
branches: [ master ]
|
8
|
+
|
9
|
+
jobs:
|
10
|
+
test:
|
11
|
+
runs-on: ubuntu-latest
|
12
|
+
strategy:
|
13
|
+
matrix:
|
14
|
+
ruby-version: ['2.1']
|
15
|
+
steps:
|
16
|
+
- uses: actions/checkout@v3
|
17
|
+
with:
|
18
|
+
submodules: true
|
19
|
+
- name: Set up Ruby
|
20
|
+
uses: ruby/setup-ruby@v1
|
21
|
+
with:
|
22
|
+
ruby-version: ${{ matrix.ruby-version }}
|
23
|
+
bundler-cache: true
|
24
|
+
- name: Run lint & tests
|
25
|
+
run: bundle exec rake
|
data/.ruby-version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
2.
|
1
|
+
2.7.2
|
data/README.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# ProcessHandler
|
2
2
|
|
3
|
-
[![Build Status](https://
|
3
|
+
[![Build Status](https://github.com/salemove/process_handler/actions/workflows/ci.yml/badge.svg?branch=master)](https://github.com/salemove/process_handler/actions/workflows/ci.yml?query=branch%3Amaster)
|
4
4
|
[![Code Climate](https://codeclimate.com/github/salemove/process_handler/badges/gpa.svg)](https://codeclimate.com/github/salemove/process_handler)
|
5
5
|
|
6
6
|
ProcessHandler helps to spawn and manage services. There are multiple types of processes. Every process knows how to handle `SIGINT` and `SIGTERM` signals.
|
@@ -177,7 +177,7 @@ module Salemove
|
|
177
177
|
end
|
178
178
|
|
179
179
|
def delegate_to_service(input)
|
180
|
-
result = @benchmarker.call(input) { @service.call(input) }
|
180
|
+
result = @benchmarker.call(input) { @service.call(**input) }
|
181
181
|
|
182
182
|
unless result.respond_to?(:fulfilled?)
|
183
183
|
log_processed_request(input, result)
|
@@ -42,7 +42,7 @@ describe ProcessHandler::CronProcess do
|
|
42
42
|
end
|
43
43
|
|
44
44
|
describe 'scheduler' do
|
45
|
-
let(:process) { ProcessHandler::CronProcess.new(scheduler_options: {frequency: 0.1}) }
|
45
|
+
let(:process) { ProcessHandler::CronProcess.new(**{scheduler_options: {frequency: 0.1}}) }
|
46
46
|
let(:messages) { [] }
|
47
47
|
let(:queue) { Queue.new }
|
48
48
|
|
@@ -60,7 +60,7 @@ describe ProcessHandler::CronProcess do
|
|
60
60
|
end
|
61
61
|
|
62
62
|
describe 'exception handler' do
|
63
|
-
let(:process) { ProcessHandler::CronProcess.new(params) }
|
63
|
+
let(:process) { ProcessHandler::CronProcess.new(**params) }
|
64
64
|
let(:params) {{ notifier_factory: notifier_factory,
|
65
65
|
scheduler_options: {frequency: 0.2} }}
|
66
66
|
let(:notifier_factory) { double('NotifierFactory') }
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: process_handler
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.
|
4
|
+
version: 4.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- SaleMove TechMovers
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2023-01-18 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: This gem helps to monitor and manage processes
|
14
14
|
email:
|
@@ -17,10 +17,10 @@ executables: []
|
|
17
17
|
extensions: []
|
18
18
|
extra_rdoc_files: []
|
19
19
|
files:
|
20
|
+
- ".github/workflows/ci.yml"
|
20
21
|
- ".gitignore"
|
21
22
|
- ".ruby-gemset"
|
22
23
|
- ".ruby-version"
|
23
|
-
- ".travis.yml"
|
24
24
|
- Gemfile
|
25
25
|
- LICENSE
|
26
26
|
- README.md
|
@@ -60,8 +60,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
60
60
|
- !ruby/object:Gem::Version
|
61
61
|
version: '0'
|
62
62
|
requirements: []
|
63
|
-
|
64
|
-
rubygems_version: 2.7.6
|
63
|
+
rubygems_version: 3.1.4
|
65
64
|
signing_key:
|
66
65
|
specification_version: 4
|
67
66
|
summary: ''
|