jobly 0.5.1 → 0.5.6

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: 19a36c80fdd58187000786fce4d687ff9175acc2d9f7119d5d150ac272d740a2
4
- data.tar.gz: 448fdc28e33e936ac5740951d8a149d2b4871f658817739a0061511518600498
3
+ metadata.gz: 2336442c5e2f03e26705a7ab059f932c663f96e9122e2a6785162327a8236d7e
4
+ data.tar.gz: 5848a924fbc3fb59f60991e4c1ae9e7baf367ce115d5fb6a01d8f6590780893a
5
5
  SHA512:
6
- metadata.gz: 8957cc8eb8b24b6d4d7d792090a512a86a2650f66a02488a2d393b3dc4905d6390c79a994e0ce596b00da86b04fcb5c3a8ce97764f1ab9adf83c602beb486d7c
7
- data.tar.gz: 287083a87ad49bdc38ea0959240e60cd7afc054b8a49a0d77bdb9aa48e35eb6e7e4e1218fc232164dbeb62d4720672a0c803a5b628de4dafd6ccec706e5396b6
6
+ metadata.gz: 51d4a18b27ab708dfaba5e99e6c73fabd4cf1374739de5be6c51730b167325a89e8351a640eebe6dc830993f86c5846a7a549874dc77daf0e7a84b4546d9b2fd
7
+ data.tar.gz: a2155922966b5ede148c6f70518a19f60b43384fff154e9862c6863d8b462c39b4ab99268e157fa079a068b4919227783a548450fe8159711b1b259035380be0
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
 
@@ -10,6 +7,7 @@ PrettyTrace.filter [
10
7
  %r[mister_bin],
11
8
  %r[bin/jobly],
12
9
  %r[bin/ruby],
10
+ %r[lib/ruby],
13
11
  %r[lib/jobly],
14
12
  ]
15
13
 
@@ -1,4 +1,5 @@
1
- require 'jobly'
1
+ require 'jobly/module_functions'
2
+ require 'jobly/jobs'
2
3
  require 'jobly/version'
3
4
  require 'sinatra/base'
4
5
  require 'sinatra/reloader'
@@ -21,7 +21,7 @@ module Jobly
21
21
  args = [url]
22
22
  args << { params: params } unless params.empty?
23
23
 
24
- response = client.get *args
24
+ response = client.get(*args)
25
25
 
26
26
  raise HTTPError, "#{response.code} #{response.reason}" unless response.status.ok?
27
27
 
@@ -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
@@ -57,7 +57,7 @@ module Jobly
57
57
  if action.is_a? Symbol
58
58
  send action
59
59
  else
60
- instance_eval &action
60
+ instance_eval(&action)
61
61
  end
62
62
  end
63
63
  end
@@ -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:
@@ -1,4 +1,5 @@
1
- require 'jobly'
1
+ require 'jobly/module_functions'
2
+ require 'jobly/api'
2
3
  require 'rack'
3
4
 
4
5
  module Jobly
@@ -1,3 +1,3 @@
1
1
  module Jobly
2
- VERSION = "0.5.1"
2
+ VERSION = "0.5.6"
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.1
4
+ version: 0.5.6
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-05 00:00:00.000000000 Z
11
+ date: 2020-12-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: http
@@ -50,28 +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'
67
+ version: '2.2'
68
68
  type: :runtime
69
69
  prerelease: false
70
70
  version_requirements: !ruby/object:Gem::Requirement
71
71
  requirements:
72
72
  - - "~>"
73
73
  - !ruby/object:Gem::Version
74
- version: '2.0'
74
+ version: '2.2'
75
75
  - !ruby/object:Gem::Dependency
76
76
  name: remote_syslog_logger
77
77
  requirement: !ruby/object:Gem::Requirement
@@ -176,14 +176,14 @@ dependencies:
176
176
  requirements:
177
177
  - - "~>"
178
178
  - !ruby/object:Gem::Version
179
- version: '0.3'
179
+ version: '0.4'
180
180
  type: :runtime
181
181
  prerelease: false
182
182
  version_requirements: !ruby/object:Gem::Requirement
183
183
  requirements:
184
184
  - - "~>"
185
185
  - !ruby/object:Gem::Version
186
- version: '0.3'
186
+ version: '0.4'
187
187
  - !ruby/object:Gem::Dependency
188
188
  name: tty-command
189
189
  requirement: !ruby/object:Gem::Requirement
@@ -321,7 +321,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
321
321
  - !ruby/object:Gem::Version
322
322
  version: '0'
323
323
  requirements: []
324
- rubygems_version: 3.0.3
324
+ rubygems_version: 3.1.4
325
325
  signing_key:
326
326
  specification_version: 4
327
327
  summary: Compact job server with API, CLI, Web UI and a Sidekiq heart