sidekiq-clockwork 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +4 -1
- data/Gemfile.lock +2 -2
- data/README.md +4 -0
- data/lib/sidekiq/clockwork.rb +5 -3
- data/lib/sidekiq/clockwork/version.rb +1 -1
- data/sidekiq-clockwork.gemspec +1 -5
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 38f7273896ce937466b0b9aa4c0bc66ae848a1bb8ebce6eb44df01f2d1e2f4b2
|
4
|
+
data.tar.gz: a8e5eb507fc5147e8a0a1a2e594b0cdae095eb1e0329c422a3bca7effe9ac173
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5dda0395454f038e720c87b26490ecc0a6cd8e5d976891ca3681a30e6b3b3ed731469030e3b0ad4f28b475ffc8ff88376c830cfb017097c6eb7faaad15f061e0
|
7
|
+
data.tar.gz: d8ec7fb34710fa5c8d4a21f33d2d7c1050c9d4dbb11e0842791ec80c8cb84568bae8414886cbf4dec3be8aa7072904150c83bb891a67db1b3e8c78d335d3159f
|
data/.travis.yml
CHANGED
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -1,5 +1,9 @@
|
|
1
1
|
# Sidekiq::Clockwork
|
2
2
|
|
3
|
+
[![Build Status](https://travis-ci.org/fnando/sidekiq-clockwork.svg)](https://travis-ci.org/fnando/sidekiq-clockwork)
|
4
|
+
[![Code Climate](https://codeclimate.com/github/fnando/sidekiq-clockwork/badges/gpa.svg)](https://codeclimate.com/github/fnando/sidekiq-clockwork)
|
5
|
+
[![Gem Version](https://badge.fury.io/rb/sidekiq-clockwork.svg)](http://badge.fury.io/rb/sidekiq-clockwork)
|
6
|
+
|
3
7
|
Sidekiq::Clockwork is a simplistic implementation of a job scheduler based on Clockwork, but without having to run a separated process.
|
4
8
|
|
5
9
|
## Installation
|
data/lib/sidekiq/clockwork.rb
CHANGED
@@ -43,9 +43,11 @@ module Sidekiq
|
|
43
43
|
|
44
44
|
def run_error_handlers(error)
|
45
45
|
error_handlers.each do |handler|
|
46
|
-
|
47
|
-
|
48
|
-
|
46
|
+
begin
|
47
|
+
handler.call(error)
|
48
|
+
rescue StandardError => handler_error
|
49
|
+
$stderr << error_message(handler_error, "Error handler raised exception. ")
|
50
|
+
end
|
49
51
|
end
|
50
52
|
end
|
51
53
|
|
data/sidekiq-clockwork.gemspec
CHANGED
@@ -1,6 +1,4 @@
|
|
1
|
-
|
2
|
-
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
3
|
-
require "sidekiq/clockwork/version"
|
1
|
+
require "./lib/sidekiq/clockwork/version"
|
4
2
|
|
5
3
|
Gem::Specification.new do |spec|
|
6
4
|
spec.name = "sidekiq-clockwork"
|
@@ -13,8 +11,6 @@ Gem::Specification.new do |spec|
|
|
13
11
|
spec.homepage = "https://github.com/fnando/sidekiq-clockwork"
|
14
12
|
spec.license = "MIT"
|
15
13
|
|
16
|
-
# Specify which files should be added to the gem when it is released.
|
17
|
-
# The `git ls-files -z` loads the files in the RubyGem that have been added into git.
|
18
14
|
spec.files = Dir.chdir(File.expand_path('..', __FILE__)) do
|
19
15
|
`git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
20
16
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sidekiq-clockwork
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Nando Vieira
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-11-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: sidekiq
|