jobly 0.5.3 → 0.5.8

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
2
  SHA256:
3
- metadata.gz: 7695f5a541945de3898c9297ff0158e1902ffd6ccc71a0d4ed4335d059f8b188
4
- data.tar.gz: 9799496bd85ef128c35263b1a84c67d3df56d090ab1d619d2d883deb587741ca
3
+ metadata.gz: f35017a905b84ee3c8009dbc307e3f790bf935345a879f957d1c9229763f7956
4
+ data.tar.gz: 2475f17453db7e5e5c75db80a7fa7b2d3d7086a1918c7433be506689c9ccb6d5
5
5
  SHA512:
6
- metadata.gz: 111e5173095749cb0f4e5562caed5f6e2e40b9fbb1df0a1c08405ea7c56e8957c0bf116eeb3ce8e64d9885ec7f1dbd1d9c4c60e8da3af9ba7fa6d8a03523ea45
7
- data.tar.gz: 032c5a3bf69acdd5a5af76586606b32549f239a9452d33d877ee2ea738add0ace86bbc61fb249d5a46040c31708ed1a3936accd165c7b98846dce6d0863763c8
6
+ metadata.gz: 930202c34a62f26ecefef9cf2f0847f6a767d8ff7406f145ed45c345c58dbaae1ead2c2d787c2b05ddc9e6ef6db92785efe2081ff630498f1514a790a6a73117
7
+ data.tar.gz: 7e48a6455f7d7e66e2f91d4dc222fffd271ff839f311b3327449d0012b35edd736129fc62129d125e33795e529fa010cdebaad8d52e4be7a5f310c176db029c3
data/README.md CHANGED
@@ -8,7 +8,7 @@ Jobly
8
8
  Compact job server with API, CLI, Web UI and a Sidekiq heart.
9
9
 
10
10
  [![Gem Version](https://badge.fury.io/rb/jobly.svg)](https://badge.fury.io/rb/jobly)
11
- [![Build Status](https://travis-ci.com/DannyBen/jobly.svg?branch=master)](https://travis-ci.com/DannyBen/jobly)
11
+ [![Build Status](https://github.com/DannyBen/jobly/workflows/Test/badge.svg)](https://github.com/DannyBen/jobly/actions?query=workflow%3ATest)
12
12
  [![Maintainability](https://api.codeclimate.com/v1/badges/b3932ebd153d831583e2/maintainability)](https://codeclimate.com/github/DannyBen/jobly/maintainability)
13
13
 
14
14
  </div>
data/bin/jobly CHANGED
@@ -1,8 +1,5 @@
1
1
  #!/usr/bin/env ruby
2
- require 'colsole'
3
2
  require 'pretty_trace/enable-trim'
4
- include Colsole
5
-
6
3
  require 'jobly'
7
4
  require 'jobly/boot'
8
5
 
data/lib/jobly/job.rb CHANGED
@@ -67,7 +67,7 @@ module Jobly
67
67
  end
68
68
 
69
69
  def run_to_completion
70
- params.empty? ? execute : execute(params.to_kwargs)
70
+ params.empty? ? execute : execute(**params.to_kwargs)
71
71
  run_actions :success
72
72
 
73
73
  rescue
@@ -16,4 +16,6 @@ if !{}.respond_to? :transform_keys
16
16
  self.map { |k, v| [(yield k), v] }.to_h
17
17
  end
18
18
  end
19
- end
19
+ end
20
+
21
+ # :nocov:
data/lib/jobly/server.rb CHANGED
@@ -16,6 +16,9 @@ module Jobly
16
16
  mounts.merge! Jobly.mounts if Jobly.mounts
17
17
 
18
18
  Rack::Builder.new do
19
+ use Rack::MethodOverride
20
+ use Rack::Session::Cookie
21
+
19
22
  if Jobly.auth
20
23
  user, pass = Jobly.auth.split ':'
21
24
  use Rack::Auth::Basic, "Jobly" do |username, password|
@@ -1 +1,4 @@
1
1
  # If this file exists, it will be loaded before everything else
2
+ #
3
+ # The gem 'requires' is already included, and can be used here to load
4
+ # directories. See https://github.com/DannyBen/requires.
@@ -8,7 +8,7 @@ export JOBLY_CONFIG_PATH=config
8
8
  export JOBLY_REDIS_URL=redis://localhost:6379/0
9
9
  export JOBLY_STATUS_EXPIRATION=30
10
10
  export JOBLY_JOBS_NAMESPACE=Jobs
11
- export JOBLY_LOG=Jobs
11
+ export JOBLY_LOG=logs/jobs.log
12
12
  export JOBLY_AUTH=admin:secret
13
13
  export JOBLY_SLACK_WEBHOOK=https://hooks.slack.com/services/...
14
14
  export JOBLY_SLACK_CHANNEL=#debug
@@ -1,3 +1,4 @@
1
+ # Job can inherits from your custom Job class (app/job.rb) or from Jobly::Job
1
2
  class Hello < Job
2
3
  def execute(name: 'Bob')
3
4
  total 2
data/lib/jobly/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Jobly
2
- VERSION = "0.5.3"
2
+ VERSION = "0.5.8"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jobly
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.3
4
+ version: 0.5.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Danny Ben Shitrit
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-01-17 00:00:00.000000000 Z
11
+ date: 2021-04-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: http
@@ -50,34 +50,28 @@ dependencies:
50
50
  requirements:
51
51
  - - "~>"
52
52
  - !ruby/object:Gem::Version
53
- version: '4.2'
53
+ version: '5.1'
54
54
  type: :runtime
55
55
  prerelease: false
56
56
  version_requirements: !ruby/object:Gem::Requirement
57
57
  requirements:
58
58
  - - "~>"
59
59
  - !ruby/object:Gem::Version
60
- version: '4.2'
60
+ version: '5.1'
61
61
  - !ruby/object:Gem::Dependency
62
62
  name: rack
63
63
  requirement: !ruby/object:Gem::Requirement
64
64
  requirements:
65
65
  - - "~>"
66
66
  - !ruby/object:Gem::Version
67
- version: '2.0'
68
- - - "<"
69
- - !ruby/object:Gem::Version
70
- version: 2.1.0
67
+ version: '2.2'
71
68
  type: :runtime
72
69
  prerelease: false
73
70
  version_requirements: !ruby/object:Gem::Requirement
74
71
  requirements:
75
72
  - - "~>"
76
73
  - !ruby/object:Gem::Version
77
- version: '2.0'
78
- - - "<"
79
- - !ruby/object:Gem::Version
80
- version: 2.1.0
74
+ version: '2.2'
81
75
  - !ruby/object:Gem::Dependency
82
76
  name: remote_syslog_logger
83
77
  requirement: !ruby/object:Gem::Requirement
@@ -327,7 +321,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
327
321
  - !ruby/object:Gem::Version
328
322
  version: '0'
329
323
  requirements: []
330
- rubygems_version: 3.0.3
324
+ rubygems_version: 3.2.16
331
325
  signing_key:
332
326
  specification_version: 4
333
327
  summary: Compact job server with API, CLI, Web UI and a Sidekiq heart