sidekiq-job_alert 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +13 -13
- data/README.md +8 -2
- data/lib/sidekiq/job_alert/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 61d8b95029b32cce87334cac985d3554194962cc
|
4
|
+
data.tar.gz: 6c6e9c7b2422bec752bbd9115ec70f5d553800dd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9bdcd52fd95dd63130aa7e21697bdde21b834bb36664990ba0c8f5e9db881a78f283fdc69ec8b1086929fc1fb513551a4ca9a9b28acc3c218266e994e6be797f
|
7
|
+
data.tar.gz: '084968499cb9aabad0c9f1e87ea7c804d39b8105eaad0429d31dc76036a543686d9d1b973a2e64c2c3370ee301d546190b9a79f13c5a6abc794c4de840cfd79e'
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
sidekiq-job_alert (0.1.
|
4
|
+
sidekiq-job_alert (0.1.2)
|
5
5
|
sidekiq (~> 4.2.1)
|
6
6
|
slack-notifier (~> 2.3.2)
|
7
7
|
thor
|
@@ -15,21 +15,21 @@ GEM
|
|
15
15
|
rack (2.0.7)
|
16
16
|
rack-protection (2.0.7)
|
17
17
|
rack
|
18
|
-
rake (10.
|
18
|
+
rake (10.5.0)
|
19
19
|
redis (3.3.5)
|
20
|
-
rspec (3.
|
21
|
-
rspec-core (~> 3.
|
22
|
-
rspec-expectations (~> 3.
|
23
|
-
rspec-mocks (~> 3.
|
24
|
-
rspec-core (3.
|
25
|
-
rspec-support (~> 3.
|
26
|
-
rspec-expectations (3.
|
20
|
+
rspec (3.8.0)
|
21
|
+
rspec-core (~> 3.8.0)
|
22
|
+
rspec-expectations (~> 3.8.0)
|
23
|
+
rspec-mocks (~> 3.8.0)
|
24
|
+
rspec-core (3.8.2)
|
25
|
+
rspec-support (~> 3.8.0)
|
26
|
+
rspec-expectations (3.8.4)
|
27
27
|
diff-lcs (>= 1.2.0, < 2.0)
|
28
|
-
rspec-support (~> 3.
|
29
|
-
rspec-mocks (3.
|
28
|
+
rspec-support (~> 3.8.0)
|
29
|
+
rspec-mocks (3.8.1)
|
30
30
|
diff-lcs (>= 1.2.0, < 2.0)
|
31
|
-
rspec-support (~> 3.
|
32
|
-
rspec-support (3.
|
31
|
+
rspec-support (~> 3.8.0)
|
32
|
+
rspec-support (3.8.2)
|
33
33
|
sidekiq (4.2.10)
|
34
34
|
concurrent-ruby (~> 1.0)
|
35
35
|
connection_pool (~> 2.2, >= 2.2.0)
|
data/README.md
CHANGED
@@ -19,7 +19,7 @@ Or install it yourself as:
|
|
19
19
|
$ gem install sidekiq-job_alert
|
20
20
|
|
21
21
|
## Usage
|
22
|
-
|
22
|
+
- copy `sidekiq_job_alert.yml` to your local and config it
|
23
23
|
|
24
24
|
```yaml
|
25
25
|
:webhook_url: "YOUR SLACK INCOMING WEBHOOK"
|
@@ -41,12 +41,18 @@ Or install it yourself as:
|
|
41
41
|
:limit: 0 # Only send alert when queue_2's jobs over limit
|
42
42
|
```
|
43
43
|
|
44
|
-
|
44
|
+
- run
|
45
45
|
|
46
46
|
```ruby
|
47
47
|
sidekiq_job_alert alert --config ./sidekiq_job_alert.yml
|
48
48
|
```
|
49
49
|
|
50
|
+
or
|
51
|
+
|
52
|
+
```ruby
|
53
|
+
Sidekiq::JobAlert::Notifier.new('config/sidekiq_job_alert.yml').call
|
54
|
+
```
|
55
|
+
|
50
56
|
## Development
|
51
57
|
|
52
58
|
After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
|